@smworks-cz/ui-kit 1.0.0 → 1.2.0

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 $t,{useState,useId,useRef,useCallback,useEffect,createContext,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,XCircle,CheckCircle,Info,Check,CaretDown,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,Warning,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var F=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),n=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};o.addEventListener("change",n);let a=new MutationObserver(l=>{l.forEach(u=>{u.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 le={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"},jo={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"}},Jo=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=l=>{n.current===void 0&&(n.current=l),r((l-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"})]})},Qo=$t.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:l,style:u,className:d,...c},p)=>{let[g,i]=useState(false),s=F()==="dark",b=typeof c.href=="string",m=n||(b?false:!!c.disabled),h=l!=null&&l!=="",S=r!=null,z=(S||n)&&!h,{paddingText:f,paddingSquare:w,fontSize:E,gap:v}=jo[t],x={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:h&&(S||n)?v:void 0,padding:z?w:f,borderRadius:"8px",cursor:m?"not-allowed":"pointer",opacity:m?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E,lineHeight:"normal",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:m?"none":void 0},C=(()=>{switch(e){case "primary":return {backgroundColor:g?le.primaryHover:le.primary,color:le.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:"1px solid transparent"};case "outline":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:`1px solid ${g?s?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":s?le.borderDark:le.borderLight}`}}})(),T=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(Jo,{size:parseInt(E)-1}):r}),k=n||S,P=o==="right"?jsxs(Fragment,{children:[h&&jsx("span",{children:l}),k&&T]}):jsxs(Fragment,{children:[k&&T,h&&jsx("span",{children:l})]}),R={style:{...x,...C,...u},className:d,onMouseEnter:W=>{i(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{i(false),c.onMouseLeave?.(W);}};if(b){let{href:W,target:M,rel:Y,..._}=c;return jsx("a",{ref:p,href:W,target:M,rel:Y??(M==="_blank"?"noopener noreferrer":void 0),"aria-disabled":m||void 0,..._,...R,children:P})}let{disabled:I,type:B="button",...N}=c;return jsx("button",{ref:p,type:B,disabled:m,"aria-busy":n||void 0,...N,...R,children:P})});Qo.displayName="Button";var an=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{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"})]})},vr={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"}},sn={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"}},Sr=$t.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:l=false,passwordToggle:u,size:d="md",fullWidth:c=false,style:p,className:g,inputStyle:i,disabled:y,required:s,value:b,onChange:m,onFocus:h,onBlur:S,type:z,...f},w)=>{let E=F(),v=vr[E],x=useId(),C=f.id??x,[T,k]=useState(false),[P,R]=useState(false),I=z==="password",B=u??I,N=I&&P?"text":z,W=y||a,M=!!o,Y=typeof o=="string"?o:void 0,_=b!=null&&b!=="",X$1=l&&_&&!W&&!B,J=sn[d],te=()=>{if(!m)return;m({target:{value:""},currentTarget:{value:""}});},ie=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,oe=B&&!W?jsx("span",{role:"button",tabIndex:-1,"aria-label":P?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>R(O=>!O),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:P?jsx(EyeSlash,{color:v.placeholder,size:J.iconSize}):jsx(Eye,{color:v.placeholder,size:J.iconSize})}):null,U=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsx(an,{size:J.iconSize,color:v.placeholder})}):oe||(X$1?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:te,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsx(X,{size:J.iconSize-2,color:v.placeholder})}):r==="right"&&ie?ie:null),ce=r==="left"?ie:null,se={display:"flex",alignItems:"center",gap:J.gap,backgroundColor:W?v.backgroundDisabled:v.background,border:`1px solid ${M?v.borderError:T?v.borderFocus:v.border}`,borderRadius:"8px",padding:J.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:J.fontSize,lineHeight:"normal",color:v.text,cursor:W?"not-allowed":"text",...i},ye={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},V={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,...p},className:g,children:[e&&jsxs("label",{htmlFor:C,style:ye,children:[e,s&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{style:se,children:[ce,jsx("input",{ref:w,id:C,type:N,disabled:y,required:s,readOnly:a||f.readOnly,value:b,onChange:m,style:Se,onFocus:O=>{k(true),h?.(O);},onBlur:O=>{k(false),S?.(O);},...f}),U]}),Y&&jsx("span",{style:{...V,color:v.borderError},children:Y}),!Y&&n&&jsx("span",{style:{...V,color:v.helperText},children:n})]})});Sr.displayName="Input";var Rs=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l,d={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:vr[a].label,userSelect:"none"};return jsxs("div",{style:d,className:n,children:[jsx("label",{htmlFor:u,style:c,children:e}),r??jsx(Sr,{id:u})]})};var pn=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{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"})]})},Rr={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)"}},Dt=180,wr=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:l=false,loading:u=false,error:d,placeholder:c="Vyberte\u2026",maxDropdownHeight:p=240,style:g,className:i})=>{let y=F(),s=Rr[y],b=useId(),m=useRef(null),h=useRef(null),S=useRef(null),z=useRef(null),[f,w]=useState(false),[E,v]=useState(false),[x,C]=useState("idle"),[T,k]=useState(""),[P,R]=useState(-1),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),N=l||u,W=!!d,M=typeof d=="string"?d:void 0,Y=useCallback(()=>{w(true),v(true),C("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>C("open"));});},[]),_=useCallback(()=>{w(false),C("closing"),k("");let A=setTimeout(()=>{v(false),C("idle");},Dt);return ()=>clearTimeout(A)},[]),X$1=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],J=A=>X$1.includes(A),te=T?e.filter(A=>(A.label??A.value).toLowerCase().includes(T.toLowerCase())):e,ie=useCallback(()=>{if(!m.current)return;let A=m.current.getBoundingClientRect(),q=h.current?.offsetHeight??p+60,Q=window.innerHeight-A.bottom-6,de=A.top-6,pe=Q<q&&de>Q;B({top:pe?A.top-6:A.bottom+6,left:A.left,width:A.width,openAbove:pe});},[p]);useEffect(()=>{if(E)return ie(),window.addEventListener("scroll",ie,true),window.addEventListener("resize",ie),()=>{window.removeEventListener("scroll",ie,true),window.removeEventListener("resize",ie);}},[E,ie]);let oe=useCallback(A=>{if(r)if(o){let q=J(A)?X$1.filter(Q=>Q!==A):[...X$1,A];r(q);}else r(A),_();},[o,r,X$1,_]),U=useCallback(A=>{A.stopPropagation(),r&&(r(o?[]:null),k(""));},[o,r]),ce=()=>{N||(f?_():Y(),R(-1));},se=A=>{if(!N)switch(A.key){case "ArrowDown":A.preventDefault(),f?R(q=>Math.min(q+1,te.length-1)):(Y(),R(0));break;case "ArrowUp":A.preventDefault(),R(q=>Math.max(q-1,0));break;case "Enter":case " ":A.preventDefault(),f&&P>=0&&te[P]&&!te[P].disabled?oe(te[P].value):f||(Y(),R(0));break;case "Escape":_();break;case "Tab":_();break}};useEffect(()=>{P>=0&&z.current&&z.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),useEffect(()=>{if(!f)return;let A=q=>{let Q=q.target,de=m.current?.contains(Q),pe=h.current?.contains(Q);!de&&!pe&&_();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[f,_]),useEffect(()=>{f&&n&&S.current&&S.current.focus();},[f,n]);let Se=A=>e.find(Q=>Q.value===A)?.label??A,ye=a&&X$1.length>0&&!N,V=()=>{let A=I.openAbove,q=A?"translateY(8px)":"translateY(-8px)",Q=A?"translateY(6px)":"translateY(-6px)",de={transition:`opacity ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...de,opacity:0,transform:`${q} scale(0.97)`}:x==="open"?{...de,opacity:1,transform:"translateY(0) scale(1)"}:{...de,opacity:0,transform:`${Q} scale(0.98)`,pointerEvents:"none"}},O={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?s.backgroundDisabled:s.background,border:`1px solid ${W?s.borderError:f?s.borderFocus:s.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",minHeight:"40px",userSelect:"none",outline:"none"},Ye=E?createPortal(jsxs("div",{ref:h,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:s.dropdownBg,border:`1px solid ${s.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",...V()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${s.divider}`},children:jsx("input",{ref:S,type:"text",value:T,onChange:A=>{k(A.target.value),R(0);},onKeyDown:se,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:z,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${b}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
1
+ import Bo,{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 s=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return s==="dark"||s==="light"?s:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),a=s=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(s.matches?"dark":"light");};o.addEventListener("change",a);let n=new MutationObserver(s=>{s.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"},xa={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"}},ma=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let n=s=>{a.current===void 0&&(a.current=s),r((s-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"})]})},ha=Bo.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:a=false,fullWidth:n=false,children:s,style:l,className:p,...i},f)=>{let[u,c]=useState(false),d=I()==="dark",g=typeof i.href=="string",b=a||(g?false:!!i.disabled),k=s!=null&&s!=="",R=r!=null,m=(R||a)&&!k,{paddingText:x,paddingSquare:S,fontSize:D,gap:T}=xa[t],h={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:k&&(R||a)?T:void 0,padding:m?S:x,borderRadius:"8px",cursor:b?"not-allowed":"pointer",opacity:b?.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:b?"none":void 0},w=(()=>{switch(e){case "primary":return {backgroundColor:u?ve.primaryHover:ve.primary,color:ve.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?d?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:d?ve.white:ve.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?d?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:d?ve.white:ve.black,border:`1px solid ${u?d?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":d?ve.borderDark:ve.borderLight}`};case "danger":return {backgroundColor:u?"#FF5252":"#EF3838",color:ve.white,border:"1px solid transparent"}}})(),v=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsx(ma,{size:parseInt(D)-1}):r}),C=a||R,z=o==="right"?jsxs(Fragment,{children:[k&&jsx("span",{children:s}),C&&v]}):jsxs(Fragment,{children:[C&&v,k&&jsx("span",{children:s})]}),B={style:{...h,...w,...l},className:p,onMouseEnter:A=>{c(true),i.onMouseEnter?.(A);},onMouseLeave:A=>{c(false),i.onMouseLeave?.(A);}};if(g){let{href:A,target:H,rel:L,...N}=i;return jsx("a",{ref:f,href:A,target:H,rel:L??(H==="_blank"?"noopener noreferrer":void 0),"aria-disabled":b||void 0,...N,...B,children:z})}let{disabled:E,type:F="button",...P}=i;return jsx("button",{ref:f,type:F,disabled:b,"aria-busy":a||void 0,...P,...B,children:z})});ha.displayName="Button";var Ra=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{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"})]})},Rr={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"}},wa={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"}},wr=Bo.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:a,loading:n=false,clearable:s=false,passwordToggle:l,size:p="md",fullWidth:i=false,style:f,className:u,inputStyle:c,disabled:y,required:d,value:g,onChange:b,onFocus:k,onBlur:R,type:m,...x},S)=>{let D=I(),T=Rr[D],h=useId(),w=x.id??h,[v,C]=useState(false),[z,B]=useState(false),E=m==="password",F=l??E,P=E&&z?"text":m,A=y||n,H=!!o,L=typeof o=="string"?o:void 0,N=g!=null&&g!=="",Y=s&&N&&!A&&!F,W=wa[p],q=()=>{if(!b)return;b({target:{value:""},currentTarget:{value:""}});},re=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,K=F&&!A?jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>B(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:z?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(Ra,{size:W.iconSize,color:T.placeholder})}):K||(Y?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:A?T.backgroundDisabled:T.background,border:`1px solid ${H?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"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:A?"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:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...f},className:u,children:[e&&jsxs("label",{htmlFor:w,style:de,children:[e,d&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:w,style:U,children:[Q,jsx("input",{ref:S,id:w,type:P,disabled:y,required:d,readOnly:n||x.readOnly,value:g,onChange:b,style:me,onFocus:G=>{C(true),k?.(G);},onBlur:G=>{C(false),R?.(G);},...x}),j]}),L&&jsx("span",{style:{...X$1,color:T.borderError},children:L}),!L&&a&&jsx("span",{style:{...X$1,color:T.helperText},children:a})]})});wr.displayName="Input";var Ud=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=useId(),l=t??s,p={display:"flex",flexDirection:"column",gap:"8px",...o},i={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Rr[n].label,userSelect:"none"};return jsxs("div",{style:p,className:a,children:[jsx("label",{htmlFor:l,style:i,children:e}),r??jsx(wr,{id:l})]})};var Pa={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"}},Ma={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"}},Aa=Bo.forwardRef(({value:e,onChange:t,min:r,max:o,step:a=1,label:n,error:s,disabled:l=false,size:p="md",variant:i="default",prefix:f,suffix:u,style:c,className:y},d)=>{let g=I(),b=Pa[g],R=useId(),m=Ma[p],[x,S]=useState(false),[D,T]=useState(null),h=!!s,w=typeof s=="string"?s: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]),C=useCallback(()=>{t(v(e+a));},[e,a,t,v]),z=useCallback(()=>{t(v(e-a));},[e,a,t,v]),B=useRef(null),E=useRef(null),F=useCallback(Q=>{l||(Q(),E.current=setTimeout(()=>{B.current=setInterval(Q,80);},400));},[l]),P=useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null),B.current&&(clearInterval(B.current),B.current=null);},[]);useEffect(()=>()=>P(),[P]);let A=Q=>{let U=Q.target.value;if(U===""||U==="-")return;let me=parseFloat(U);isNaN(me)||t(v(me));},H=()=>{S(false),t(v(e));},L=r===void 0||e>r,N=o===void 0||e<o,Y={display:"flex",alignItems:"center",backgroundColor:l?b.backgroundDisabled:b.background,border:`1px solid ${h?b.borderError:x?b.borderFocus:b.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:m.height},W=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:m.buttonPadding,border:"none",background:D===Q&&U&&!l?b.buttonHoverBg:b.buttonBg,color:U&&!l?b.buttonText:b.placeholder,cursor:l||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:m.height,userSelect:"none"}),q={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"normal",color:b.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:b.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:m.fontSize,color:b.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},j=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&U&&!l?b.buttonHoverBg:"transparent",color:U&&!l?b.buttonText:b.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 i==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:y,children:[n&&jsx("label",{htmlFor:R,style:re,children:n}),jsxs("div",{style:Y,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:m.padding,minWidth:0},children:[f&&jsx("span",{style:K,children:f}),jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>S(true),onBlur:H,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 ${h?b.borderError:x?b.borderFocus:b.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!N,style:j("up",N),onMouseDown:()=>F(C),onMouseUp:P,onMouseLeave:()=>{P(),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||!L,style:j("down",L),onMouseDown:()=>F(z),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:w})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:y,children:[n&&jsx("label",{htmlFor:R,style:re,children:n}),jsxs("div",{style:Y,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!L,style:W("minus",L),onMouseDown:()=>F(z),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("minus"),children:jsx(Minus,{size:m.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:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>S(true),onBlur:H,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||!N,style:W("plus",N),onMouseDown:()=>F(C),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("plus"),children:jsx(Plus,{size:m.iconSize})})]}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:w})]})});Aa.displayName="NumberInput";var $a=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{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"})]})},zr={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,Ir=({options:e,value:t,onChange:r,multiple:o=false,searchable:a=false,clearable:n=false,disabled:s=false,loading:l=false,error:p,label:i,placeholder:f="Vyberte\u2026",maxDropdownHeight:u=240,style:c,className:y})=>{let d=I(),g=zr[d],b=useId(),k=useRef(null),R=useRef(null),m=useRef(null),x=useRef(null),[S,D]=useState(false),[T,h]=useState(false),[w,v]=useState("idle"),[C,z]=useState(""),[B,E]=useState(-1),[F,P]=useState({top:0,left:0,width:0,openAbove:false}),A=s||l,H=!!p,L=typeof p=="string"?p:void 0,N=useCallback(()=>{D(true),h(true),v("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>v("open"));});},[]),Y=useCallback(()=>{D(false),v("closing"),z("");let $=setTimeout(()=>{h(false),v("idle");},go);return ()=>clearTimeout($)},[]),W=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],q=$=>W.includes($),re=C?e.filter($=>($.label??$.value).toLowerCase().includes(C.toLowerCase())):e,K=useCallback(()=>{if(!k.current)return;let $=k.current.getBoundingClientRect(),te=R.current?.offsetHeight??u+60,oe=window.innerHeight-$.bottom-6,le=$.top-6,Se=oe<te&&le>oe;P({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($),Y();},[o,r,W,Y]),Q=useCallback($=>{$.stopPropagation(),r&&(r(o?[]:null),z(""));},[o,r]),U=()=>{A||(S?Y():N(),E(-1));},me=$=>{if(!A)switch($.key){case "ArrowDown":$.preventDefault(),S?E(te=>Math.min(te+1,re.length-1)):(N(),E(0));break;case "ArrowUp":$.preventDefault(),E(te=>Math.max(te-1,0));break;case "Enter":case " ":$.preventDefault(),S&&B>=0&&re[B]&&!re[B].disabled?j(re[B].value):S||(N(),E(0));break;case "Escape":Y();break;case "Tab":Y();break}};useEffect(()=>{B>=0&&x.current&&x.current.children[B]?.scrollIntoView({block:"nearest"});},[B]),useEffect(()=>{if(!S)return;let $=te=>{let oe=te.target,le=k.current?.contains(oe),Se=R.current?.contains(oe);!le&&!Se&&Y();};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[S,Y]),useEffect(()=>{S&&a&&m.current&&m.current.focus();},[S,a]);let de=$=>e.find(oe=>oe.value===$)?.label??$,X$1=n&&W.length>0&&!A,G=()=>{let $=F.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 w==="opening"||w==="idle"?{...le,opacity:0,transform:`${te} scale(0.97)`}:w==="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:A?g.backgroundDisabled:g.background,border:`1px solid ${H?g.borderError:S?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"pointer",userSelect:"none",outline:"none"},Me=T?createPortal(jsxs("div",{ref:R,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:g.dropdownBg,border:`1px solid ${g.dropdownBorder}`,borderRadius:"12px",boxShadow:d==="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",...G()},children:[a&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${g.divider}`},children:jsx("input",{ref:m,type:"text",value:C,onChange:$=>{z($.target.value),E(0);},onKeyDown:me,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:x,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${b}`,style:{maxHeight:u,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
2
2
  .sm-select-list-${b}::-webkit-scrollbar {
3
3
  width: 6px;
4
4
  }
@@ -6,8 +6,14 @@ import $t,{useState,useId,useRef,useCallback,useEffect,createContext,useContext}
6
6
  background: transparent;
7
7
  }
8
8
  .sm-select-list-${b}::-webkit-scrollbar-thumb {
9
- background: ${s.scrollbarThumb};
9
+ background: ${g.scrollbarThumb};
10
10
  border-radius: 3px;
11
11
  }
12
- `}),te.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:s.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((A,q)=>{let Q=J(A.value),de=q===P;return jsxs("div",{role:"option","aria-selected":Q,"aria-disabled":A.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Q?500:400,lineHeight:"normal",color:Q?s.optionSelectedText:A.disabled?s.placeholder:s.text,backgroundColor:de?s.optionHover:Q?s.optionSelected:"transparent",cursor:A.disabled?"not-allowed":"pointer",opacity:A.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:q<te.length-1?"2px":0},onClick:()=>{A.disabled||oe(A.value);},onMouseEnter:()=>R(q),onMouseLeave:()=>R(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.label??A.value}),Q&&jsx(Check,{size:16,color:s.optionSelectedText})]},A.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...g},className:i,children:[jsxs("div",{ref:m,role:"combobox","aria-expanded":f,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:O,onClick:ce,onKeyDown:se,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[X$1.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.placeholder,lineHeight:"normal"},children:c}),o?X$1.map(A=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:s.tagBg,color:s.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:Se(A)}),!N&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:q=>{q.stopPropagation(),oe(A);},children:jsx(X,{size:14,color:s.tagText})})]},A)):X$1.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Se(X$1[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ye&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:U,children:jsx(X,{size:14,color:s.placeholder})}),u?jsx(pn,{size:16,color:s.placeholder}):jsx(CaretDown,{size:16,color:s.placeholder,style:{transition:"transform 0.2s ease",transform:f?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),M&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:M}),Ye]})};wr.displayName="Select";var fn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Rr[a].label,userSelect:"none"},children:e}),r??jsx(wr,{options:[]})]})};fn.displayName="SelectGroup";var mn=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{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"})]})},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",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)"}},zt=180,xn={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"}},hn=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Dr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function yn(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),l=[];for(let u=0;u<42;u++){let d=new Date(a);d.setDate(a.getDate()+u),l.push(d);}return l}function Pt(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function zr(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${Pt(e)} ${t}:${r}`}function Re(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Fr(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 vn(e){return Re(e,new Date)}var Ar=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:l,helperText:u,disabled:d=false,loading:c=false,clearable:p=false,size:g="md",fullWidth:i=false,required:y,minDate:s,maxDate:b,firstDayOfWeek:m=1,style:h,className:S})=>{let z=F(),f=Ir[z],w=useId(),E=xn[g],v=useRef(null),x=useRef(null),[C,T]=useState(false),[k,P]=useState(false),[R,I]=useState("idle"),[B,N]=useState({top:0,left:0,width:0,openAbove:false}),[W,M]=useState(null),Y=new Date,[_,X$1]=useState(Y.getFullYear()),[J,te]=useState(Y.getMonth()),[ie,oe]=useState("days"),[U,ce]=useState(0),se=d||c,Se=!!l,ye=typeof l=="string"?l:void 0,V=e==="single"&&r instanceof Date?r:null,O=e==="range"&&Array.isArray(r)?r:[null,null],Ye=e==="single"?V!==null:O[0]!==null||O[1]!==null,A=p&&Ye&&!se,q=(()=>{if(e==="single")return V?t?zr(V):Pt(V):"";let[D,Z]=O;if(!D&&!Z)return "";let $=t?zr:Pt;return `${D?$(D):"\u2026"} \u2013 ${Z?$(Z):"\u2026"}`})(),Q=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"),de=useCallback(()=>{let D=e==="single"?V:O[0];D&&(X$1(D.getFullYear()),te(D.getMonth())),oe("days"),T(true),P(true),I("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>I("open"));});},[e,V,O]),pe=useCallback(()=>{T(false),I("closing");let D=setTimeout(()=>{P(false),I("idle");},zt);return ()=>clearTimeout(D)},[]),Fe=useCallback(()=>{if(!v.current)return;let D=v.current.getBoundingClientRect(),Z=x.current?.offsetHeight??380,$=window.innerHeight-D.bottom-6,L=D.top-6,G=$<Z&&L>$;N({top:G?D.top-6:D.bottom+6,left:D.left,width:Math.max(D.width,300),openAbove:G});},[]);useEffect(()=>{if(k)return Fe(),window.addEventListener("scroll",Fe,true),window.addEventListener("resize",Fe),()=>{window.removeEventListener("scroll",Fe,true),window.removeEventListener("resize",Fe);}},[k,Fe]),useEffect(()=>{if(!C)return;let D=Z=>{let $=Z.target,L=v.current?.contains($),G=x.current?.contains($);!L&&!G&&pe();};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[C,pe]);let Mo=D=>{se||(D.key==="Escape"&&C&&(D.preventDefault(),pe()),(D.key==="Enter"||D.key===" ")&&!C&&(D.preventDefault(),de()));},kt=useCallback(D=>{if(s){let Z=new Date(s.getFullYear(),s.getMonth(),s.getDate());if(D<Z)return true}if(b){let Z=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(D>Z)return true}return false},[s,b]),Ho=useCallback(D=>{if(!kt(D)&&o)if(e==="single")t&&V&&D.setHours(V.getHours(),V.getMinutes()),o(new Date(D)),t||pe();else if(U===0)t&&O[0]&&D.setHours(O[0].getHours(),O[0].getMinutes()),o([new Date(D),null]),ce(1);else {let Z=O[0];t&&O[1]&&D.setHours(O[1].getHours(),O[1].getMinutes());let[$,L]=D>=Z?[Z,new Date(D)]:[new Date(D),Z];o([$,L]),ce(0),t||pe();}},[e,t,V,O,U,o,pe,kt]),ur=useCallback((D,Z,$)=>{if(!o)return;let L=parseInt(Z,10);if(isNaN(L)&&(L=0),D==="hour"&&(L=Math.max(0,Math.min(23,L))),D==="minute"&&(L=Math.max(0,Math.min(59,L))),e==="single"){let G=V?new Date(V):new Date;D==="hour"?G.setHours(L):G.setMinutes(L),o(G);}else {let G=$??0,ne=[O[0]?new Date(O[0]):null,O[1]?new Date(O[1]):null],Te=ne[G]??new Date;D==="hour"?Te.setHours(L):Te.setMinutes(L),ne[G]=Te,o(ne);}},[e,V,O,o]),Lo=()=>{J===0?(te(11),X$1(D=>D-1)):te(D=>D-1);},No=()=>{J===11?(te(0),X$1(D=>D+1)):te(D=>D+1);},Wo=D=>{D.stopPropagation(),o&&(o(e==="single"?null:[null,null]),ce(0));},$o=()=>{let D=B.openAbove,Z=D?"translateY(8px)":"translateY(-8px)",$=D?"translateY(6px)":"translateY(-6px)",L={transition:`opacity ${zt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...L,opacity:0,transform:`${Z} scale(0.97)`}:R==="open"?{...L,opacity:1,transform:"translateY(0) scale(1)"}:{...L,opacity:0,transform:`${$} scale(0.98)`,pointerEvents:"none"}},Oo=yn(_,J,m),Ct=(D,Z)=>{let $=D?D.getHours():0,L=D?D.getMinutes():0,G={width:"42px",background:"transparent",border:`1px solid ${f.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.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:ne=>ur("hour",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:f.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(L).padStart(2,"0"),onChange:ne=>ur("minute",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Minuty"})]})},Zo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Dr.map((D,Z)=>{let $=Z===J;return jsx("button",{type:"button",onClick:()=>{te(Z),oe("days");},style:{background:$?f.daySelected:"transparent",color:$?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:L=>{$||(L.target.style.backgroundColor=f.dayHover);},onMouseLeave:L=>{$||(L.target.style.backgroundColor="transparent");},children:D},Z)})}),Yo=()=>{let D=Math.floor(_/12)*12,Z=Array.from({length:12},($,L)=>D+L);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>X$1($=>$-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:f.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.text},children:[D," \u2013 ",D+11]}),jsx("button",{type:"button",onClick:()=>X$1($=>$+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:f.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Z.map($=>{let L=$===_;return jsx("button",{type:"button",onClick:()=>{X$1($),oe("months");},style:{background:L?f.daySelected:"transparent",color:L?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:G=>{L||(G.target.style.backgroundColor=f.dayHover);},onMouseLeave:G=>{L||(G.target.style.backgroundColor="transparent");},children:$},$)})})]})},Vo=k?createPortal(jsx("div",{ref:x,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:f.dropdownBg,border:`1px solid ${f.dropdownBorder}`,borderRadius:"12px",boxShadow:z==="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",...$o()},children:ie==="years"?Yo():ie==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})}),Zo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:Lo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:f.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>oe("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:Dr[J]}),jsx("button",{type:"button",onClick:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})]}),jsx("button",{type:"button",onClick:No,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:f.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:hn.map(D=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:f.placeholder,padding:"4px 0",userSelect:"none"},children:D},D))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Oo.map((D,Z)=>{let $=D.getMonth()!==J,L=kt(D),G=vn(D),ne=false,Te=false,Rt=false,nt=false;if(e==="single"&&V)ne=Re(D,V);else if(e==="range"){let[ke,it]=O;ke&&Re(D,ke)&&(Te=true,ne=true),it&&Re(D,it)&&(Rt=true,ne=true),ke&&it&&Fr(D,ke,it)&&!Te&&!Rt&&(nt=true),U===1&&ke&&W&&!L&&(Re(D,W)&&!Re(D,ke)&&(ne=true),Fr(D,ke,W)&&!Re(D,ke)&&!Re(D,W)&&(nt=true));}let wt="transparent",at=f.text;return ne?(wt=f.daySelected,at=f.daySelectedText):nt&&(wt=f.dayRangeMiddle),$&&(at=ne?f.daySelectedText:f.dayOutside),L&&(at=f.dayDisabled),jsx("button",{type:"button",disabled:L,onClick:()=>Ho(D),onMouseEnter:()=>{L||M(D);},onMouseLeave:()=>M(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:wt,color:at,border:"none",borderRadius:Te?"6px 0 0 6px":Rt?"0 6px 6px 0":nt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ne?600:400,cursor:L?"not-allowed":"pointer",opacity:L?.4:1,transition:"background-color 0.1s ease",outline:G&&!ne?`1.5px solid ${f.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:D.getDate()},Z)})}),t&&jsx("div",{style:{borderTop:`1px solid ${f.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:f.placeholder},children:"\u010Cas:"}),Ct(V)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"Od:"}),Ct(O[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"Do:"}),Ct(O[1],1)]})]})})]})}),document.body):null,Uo={display:"flex",alignItems:"center",gap:E.gap,backgroundColor:se?f.backgroundDisabled:f.background,border:`1px solid ${Se?f.borderError:C?f.borderFocus:f.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:se?.6:1,cursor:se?"not-allowed":"pointer",userSelect:"none",outline:"none"},qo={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},gr={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,...h},className:S,children:[n&&jsxs("label",{htmlFor:w,style:qo,children:[n,y&&jsx("span",{style:{color:f.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:v,role:"button",tabIndex:se?-1:0,style:Uo,onClick:()=>{se||(C?pe():de());},onKeyDown:Mo,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.text,lineHeight:"normal"},children:q}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.placeholder,lineHeight:"normal"},children:Q})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[A&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Wo,children:jsx(X,{size:E.iconSize-2,color:f.placeholder})}),c?jsx(mn,{size:E.iconSize,color:f.placeholder}):jsx(CalendarBlank,{size:E.iconSize,color:f.placeholder})]})]}),ye&&jsx("span",{style:{...gr,color:f.borderError},children:ye}),!ye&&u&&jsx("span",{style:{...gr,color:f.helperText},children:u}),Vo]})};Ar.displayName="DatePicker";var Sn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ir[a].label,userSelect:"none"},children:e}),r??jsx(Ar,{})]})};Sn.displayName="DatePickerGroup";var Br={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"}},wn={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}},Mr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:l=false,className:u,style:d})=>{let c=F(),p=Br[c],g=wn[a],i=useId(),y=useRef(null),s=!!n,b=typeof n=="string"?n:void 0;useEffect(()=>{y.current&&(y.current.indeterminate=l);},[l]);let m=()=>{o||t?.(!e);},h=s?p.borderError:e||l?p.checkBg:p.border,S=e||l?p.checkBg:o?p.backgroundDisabled:p.background,z={width:g.box,height:g.box,borderRadius:g.radius,border:`1.5px solid ${h}`,backgroundColor:S,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},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.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",...d},className:u,children:[jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:g.gap,cursor:o?"not-allowed":"pointer"},onClick:E=>{E.preventDefault(),m();},children:[jsx("input",{ref:y,id:i,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":s||void 0}),jsxs("span",{style:z,children:[e&&!l&&jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:f,children:r})]}),b&&jsx("span",{style:{...w,color:p.borderError,marginLeft:`${g.box+parseInt(g.gap)}px`},children:b})]})};Mr.displayName="Checkbox";var Hr=({label:e,children:t,error:r,className:o,style:n})=>{let a=F(),l=Br[a],u=typeof r=="string"?r:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.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:d,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),u&&jsx("span",{style:{...c,color:l.borderError},children:u})]})};Hr.displayName="CheckboxGroup";var Lr={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"}},En={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"}},It=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=Lr[d],p=En[a],g=useId(),i=()=>{n||r?.(e);},y=t?c.dotRing:c.border,s=n?c.backgroundDisabled:c.background,b={width:p.box,height:p.box,borderRadius:"50%",border:`1.5px solid ${y}`,backgroundColor:s,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...u},className:l,children:jsxs("label",{htmlFor:g,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:n?"not-allowed":"pointer"},onClick:h=>{h.preventDefault(),i();},children:[jsx("input",{id:g,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:b,children:t&&jsx("span",{style:{width:p.dot,height:p.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:m,children:o})]})})};It.displayName="Radio";var Nr=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:l,size:u="md",className:d,style:c})=>{let p=F(),g=Lr[p],i=!!a,y=typeof a=="string"?a:void 0,s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:d,children:[r&&jsx("span",{style:s,children:r}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(m=>jsx(It,{value:m.value,label:m.label,checked:e===m.value,onChange:t,disabled:m.disabled,size:u},m.value))}),y&&jsx("span",{style:{...b,color:g.borderError},children:y}),!y&&l&&jsx("span",{style:{...b,color:g.helperText},children:l})]})};Nr.displayName="RadioGroup";var zn={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"}},Fn={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"}},$r=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:l})=>{let u=F(),d=zn[u],c=Fn[n],p=useId(),g=()=>{o||t?.(!e);},i=1.5,y=2,b=c.trackW-i*2-c.thumb-y,m=e?b:0,h={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${i}px solid ${e?d.trackOnBorder:d.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"},S={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:y,transform:`translateY(-50%) translateX(${m}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},z={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:d.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:o?"not-allowed":"pointer"},onClick:f=>{f.preventDefault(),g();},children:[jsx("input",{id:p,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:h,children:jsx("span",{style:S})}),r&&jsx("span",{style:z,children:r})]})})};$r.displayName="Switch";var Ln={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"}},Nn={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Zr=$t.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:l=false,required:u,rows:d=4,maxLength:c,resize:p="vertical",autoHeight:g=false,minRows:i,maxRows:y,className:s,style:b,value:m,onChange:h,onFocus:S,onBlur:z,...f},w)=>{let E=F(),v=Ln[E],x=Nn[a],C=useId(),T=f.id??C,[k,P]=useState(false),R=useRef(null),I=useCallback(()=>{let U=R.current;if(!U||!g)return;U.style.height="auto";let ce=getComputedStyle(U),se=parseFloat(ce.lineHeight)||parseFloat(ce.fontSize)*1.5,Se=parseFloat(ce.paddingTop)||0,ye=parseFloat(ce.paddingBottom)||0,V=Se+ye,Ye=se*(i??1)+V,A=y?se*y+V:1/0,q=Math.min(Math.max(U.scrollHeight,Ye),A);U.style.height=`${q}px`,U.style.overflowY=U.scrollHeight>A?"auto":"hidden";},[g,i,y]);useEffect(()=>{I();},[m,I]);let B=useCallback(U=>{R.current=U,typeof w=="function"?w(U):w&&(w.current=U);},[w]),N=g?"none":p,W=g?i??1:d,M=o||n,Y=!!t,_=typeof t=="string"?t:void 0,X=typeof m=="string"?m.length:0,J={backgroundColor:M?v.backgroundDisabled:v.background,border:`1px solid ${Y?v.borderError:k?v.borderFocus:v.border}`,borderRadius:"8px",padding:x.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:M?.6:1,cursor:M?"not-allowed":"text"},te={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:x.fontSize,lineHeight:"1.5",color:v.text,cursor:M?"not-allowed":"text",resize:N,boxSizing:"border-box",overflow:g?"hidden":void 0},ie={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},oe={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...b},className:s,children:[e&&jsxs("label",{htmlFor:T,style:ie,children:[e,u&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:J,children:jsx("textarea",{ref:B,id:T,rows:W,maxLength:c,disabled:o,required:u,readOnly:n||f.readOnly,value:m,onChange:h,style:te,onFocus:U=>{P(true),S?.(U);},onBlur:U=>{P(false),z?.(U);},...f})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[_&&jsx("span",{style:{...oe,color:v.borderError},children:_}),!_&&r&&jsx("span",{style:{...oe,color:v.helperText},children:r})]}),c!==void 0&&jsxs("span",{style:{...oe,color:X>c?v.borderError:v.counter,flexShrink:0},children:[X,"/",c]})]})]})});Zr.displayName="Textarea";var $n={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)"}},On={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Ur(e,t,r){return Math.min(Math.max(e,t),r)}function Zn(e,t,r){return Math.round((e-t)/r)*r+t}var qr=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:l=false,showValue:u=false,range:d=false,size:c="md",className:p,style:g})=>{let i=F(),y=$n[i],s=On[c],b=useId(),m=useRef(null),h=useRef(null),S=d?e:[r,e],z=k=>(k-r)/(o-r)*100,f=z(S[0]),w=z(S[1]),E=useCallback(k=>{let P=m.current;if(!P)return r;let R=P.getBoundingClientRect(),I=Ur((k-R.left)/R.width,0,1),B=r+I*(o-r);return Ur(Zn(B,r,n),r,o)},[r,o,n]),v=useCallback(k=>{if(l)return;k.preventDefault();let P=E(k.clientX);if(d){let B=e,N=Math.abs(P-B[0]),W=Math.abs(P-B[1]),M=N<=W?"start":"end";h.current=M;let Y=M==="start"?[Math.min(P,B[1]),B[1]]:[B[0],Math.max(P,B[0])];t?.(Y);}else h.current="end",t?.(P);let R=B=>{let N=E(B.clientX);if(d){let W=e;h.current==="start"?t?.([Math.min(N,W[1]),W[1]]):t?.([W[0],Math.max(N,W[0])]);}else t?.(N);},I=()=>{h.current=null,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",I);};document.addEventListener("mousemove",R),document.addEventListener("mouseup",I);},[l,E,t,d,e]),x={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},C=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,T={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:y.thumb,border:`2px solid ${y.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"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:l?.5:1,...g},className:p,children:[(a||u)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:b,style:x,children:a}),u&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:y.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:m,role:"slider",id:b,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":d?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:s.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${d?f:0}%`,width:`${w-(d?f:0)}%`,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackFill}}),d&&jsx("span",{style:{...T,left:`${f}%`}}),jsx("span",{style:{...T,left:`${w}%`}})]})]})};qr.displayName="Slider";var _n={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 Ht(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Xn=0,Gr=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:l,helperText:u,error:d,className:c,style:p})=>{let g=F(),i=_n[g],y=useId(),s=useRef(null),[b,m]=useState(false),[h,S]=useState([]),[z,f]=useState(null),w=!!d||!!z,E=typeof d=="string"?d:z??void 0,v=useCallback(R=>{let I=Array.from(R);if(f(null),n){let W=I.find(M=>M.size>n);if(W){f(`Soubor \u201E${W.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ht(n)}.`);return}}let B=I.map(W=>({file:W,id:`file-${++Xn}`})),N=o?[...h,...B]:B;S(N),t?.(N.map(W=>W.file));},[h,n,o,t]),x=useCallback(R=>{R.preventDefault(),m(false),!a&&R.dataTransfer.files.length>0&&v(R.dataTransfer.files);},[a,v]),C=useCallback(R=>{let I=h.filter(B=>B.id!==R);S(I),t?.(I.map(B=>B.file));},[h,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},k={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${w?i.borderError:b?i.borderDrag:i.border}`,borderRadius:"8px",backgroundColor:b?i.backgroundDrag:a?i.backgroundDisabled:i.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},P={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...p},className:c,children:[l&&jsx("span",{style:T,children:l}),jsx("input",{ref:s,id:y,type:"file",accept:r,multiple:o,disabled:a,onChange:R=>{R.target.files&&R.target.files.length>0&&v(R.target.files),R.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:k,onClick:()=>!a&&s.current?.click(),onDragOver:R=>{R.preventDefault(),a||m(true);},onDragLeave:()=>m(false),onDrop:x,children:[jsx(UploadSimple,{size:32,color:i.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):jsxs("div",{onClick:()=>!a&&s.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${w?i.borderError:i.border}`,backgroundColor:a?i.backgroundDisabled:i.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:R=>{a||(R.currentTarget.style.borderColor=w?i.borderError:g==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:R=>{R.currentTarget.style.borderColor=w?i.borderError:i.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:h.length>0?jsx(FileText,{size:18,color:i.textSecondary}):jsx(UploadSimple,{size:18,color:i.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h.length>0?i.text:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.length===0?"Vyberte soubor...":h.length===1?h[0].file.name:`${h.length} soubor\u016F`}),h.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(h[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:jsx(Folder,{size:16,color:i.textSecondary})})]}),h.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:h.map(R=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i.fileBg},children:[jsx(FileText,{size:24,color:i.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:i.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(R.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${R.file.name}`,onClick:I=>{I.stopPropagation(),C(R.id);},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&C(R.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:i.removeColor})})]},R.id))}),E&&jsx("span",{style:{...P,color:i.borderError},children:E}),!E&&u&&jsx("span",{style:{...P,color:i.helperText},children:u})]})};Gr.displayName="FileUpload";var Gn={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)"}},jr="smSkeletonShimmer",Kn=`@keyframes ${jr}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,Nt=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:l})=>{let u=F(),d=Gn[u],c=t??(e==="circle"?40:"100%"),p=r??(e==="circle"?40:e==="text"?"1em":100),g={backgroundColor:d.base,backgroundImage:n?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jr} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof p=="number"?`${p}px`:p},i=n?jsx("style",{dangerouslySetInnerHTML:{__html:Kn}}):null;return e==="text"&&o>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:o}).map((y,s)=>jsx("div",{style:{...g,width:s===o-1?"75%":g.width}},s))]}):jsxs(Fragment,{children:[i,jsx("div",{className:a,style:{...g,...l}})]})};Nt.displayName="Skeleton";var Qn={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)"}},ea=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:l,striped:u=false,hoverable:d=true,className:c,style:p})=>{let g=F(),i=Qn[g],y=S=>{if(!S.sortable||!n)return;let z=a===S.key&&l==="asc"?"desc":"asc";n(S.key,z);},s={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",overflow:"hidden",...p},b=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),m={padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:s,children:[jsx("thead",{children:jsx("tr",{children:e.map(S=>jsx("th",{style:b(S),onClick:()=>y(S),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===S.key?i.sortActive:i.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((S,z)=>jsx("tr",{children:e.map(f=>jsx("td",{style:m,children:jsx(Nt,{variant:"text",width:"80%"})},f.key))},`skel-${z}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...m,textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:o})}):t.map((S,z)=>jsx("tr",{style:{backgroundColor:u&&z%2===1?i.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:f=>{d&&(f.currentTarget.style.backgroundColor=i.rowHover);},onMouseLeave:f=>{d&&(f.currentTarget.style.backgroundColor=u&&z%2===1?i.stripedBg:"transparent");},children:e.map(f=>jsx("td",{style:{...m,borderBottom:z===t.length-1?"none":m.borderBottom},children:f.render?f.render(S[f.key],S,z):S[f.key]},f.key))},z))})]})};ea.displayName="Table";var ta={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)"}},ra={none:"0",sm:"12px",md:"20px",lg:"28px"},oa=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:l=true,padding:u="md",className:d,style:c})=>{let p=F(),g=ta[p],i=ra[u],y={backgroundColor:g.background,border:l?`1px solid ${g.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},s=r??(e||t?jsxs("div",{style:{padding:i,paddingBottom:n||o?"0":i},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:g.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:g.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:d,style:y,onMouseEnter:b=>{a&&(b.currentTarget.style.borderColor=g.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=p==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{a&&(b.currentTarget.style.borderColor=l?g.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[s,n&&jsx("div",{style:{padding:i},children:n}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${g.divider}`}}),jsx("div",{style:{padding:i},children:o})]})]})};oa.displayName="Card";var to={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)"}},la=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:l})=>{let u=F(),d=to[u],[c,p]=useState(r),g=n?!!a:c,i=useRef(null),[y,s]=useState(0);useEffect(()=>{i.current&&s(i.current.scrollHeight);},[t,g]);let b=useCallback(()=>{o||(n&&l?l():p(m=>!m));},[o,n,l]);return jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:b,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?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:m=>{o||(m.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:g?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:g?`${y}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:d.textSecondary},children:t})})]})};la.displayName="AccordionItem";var ca=({children:e,multiple:t=false,className:r,style:o})=>{let n=F(),a=to[n],l=$t.Children.toArray(e).filter(p=>$t.isValidElement(p)),[u,d]=useState(()=>{let p=new Set;return l.forEach((g,i)=>{g.props.defaultOpen&&p.add(i);}),p}),c=useCallback(p=>{d(g=>{let i=new Set(g);return i.has(p)?i.delete(p):(t||i.clear(),i.add(p)),i});},[t]);return jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:l.map((p,g)=>$t.cloneElement(p,{key:g,_controlled:true,_open:u.has(g),_onToggle:()=>c(g)}))})};ca.displayName="Accordion";var da={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)"}},pa={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},fa=()=>null;fa.displayName="Tab";var ua=()=>null;ua.displayName="TabPanel";var ga=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=da[d],p=pa[a],g=$t.Children.toArray(r),i=g.filter(b=>$t.isValidElement(b)&&b.type?.displayName==="Tab"),s=g.filter(b=>$t.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxs("div",{className:l,style:u,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${c.border}`:"none"},children:i.map(b=>{let m=b.props.value===e,h=b.props.disabled,S=o==="underline"?{padding:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${m?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:h?"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:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.pillText:c.textInactive,backgroundColor:m?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:h?"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:h,style:S,onClick:()=>{h||t(b.props.value);},onMouseEnter:z=>{!h&&!m&&(z.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:z=>{h||(z.currentTarget.style.backgroundColor=o==="pills"&&m?c.pillBg:"transparent");},children:[b.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),s&&jsx("div",{style:{paddingTop:"16px"},children:s.props.children})]})};ga.displayName="Tabs";var xa={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ha=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let l=F(),u=xa[l],[d,c]=useState(false),[p,g]=useState({top:0,left:0}),i=useRef(null),y=useRef(null),s=useRef(void 0),b=6,m=8,h=useCallback(()=>{let E=i.current,v=y.current;if(!E||!v)return;let x=E.getBoundingClientRect(),C=v.getBoundingClientRect(),T=0,k=0;switch(r){case "top":T=x.top-C.height-m,k=x.left+x.width/2-C.width/2;break;case "bottom":T=x.bottom+m,k=x.left+x.width/2-C.width/2;break;case "left":T=x.top+x.height/2-C.height/2,k=x.left-C.width-m;break;case "right":T=x.top+x.height/2-C.height/2,k=x.right+m;break}g({top:T,left:k});},[r]);useEffect(()=>{d&&requestAnimationFrame(h);},[d,h]);let S=useCallback(()=>{s.current=setTimeout(()=>c(true),o);},[o]),z=useCallback(()=>{s.current&&clearTimeout(s.current),c(false);},[]);useEffect(()=>()=>{s.current&&clearTimeout(s.current);},[]);let f=(()=>{let E={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(r){case "top":return {...E,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:u.background,borderBottomWidth:0};case "bottom":return {...E,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:u.background,borderTopWidth:0};case "left":return {...E,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:u.background,borderRightWidth:0};case "right":return {...E,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:u.background,borderLeftWidth:0}}})(),w=d?createPortal(jsxs("div",{ref:y,className:n,style:{position:"fixed",top:p.top,left:p.left,zIndex:99999,padding:"6px 12px",backgroundColor:u.background,color:u.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:f})]}),document.body):null;return jsxs(Fragment,{children:[$t.cloneElement(t,{ref:i,onMouseEnter:E=>{S(),t.props.onMouseEnter?.(E);},onMouseLeave:E=>{z(),t.props.onMouseLeave?.(E);}}),w]})};ha.displayName="Tooltip";var Ca={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"}},_t=180,ut=8,Ra=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let l=F(),u=Ca[l],[d,c]=useState(false),[p,g]=useState(false),[i,y]=useState("idle"),[s,b]=useState({top:0,left:0}),m=useRef(null),h=useRef(null),S=useRef(void 0),z=useCallback(()=>{c(true),g(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[]),f=useCallback(()=>{c(false),y("closing");let k=setTimeout(()=>{g(false),y("idle");},_t);return ()=>clearTimeout(k)},[]),w=useCallback(()=>{let k=m.current,P=h.current;if(!k||!P)return;let R=k.getBoundingClientRect(),I=P.getBoundingClientRect(),B=0,N=0;switch(r){case "top":B=R.top-I.height-ut,N=R.left+R.width/2-I.width/2;break;case "bottom":B=R.bottom+ut,N=R.left+R.width/2-I.width/2;break;case "left":B=R.top+R.height/2-I.height/2,N=R.left-I.width-ut;break;case "right":B=R.top+R.height/2-I.height/2,N=R.right+ut;break}b({top:B,left:N});},[r]);useEffect(()=>{if(p)return requestAnimationFrame(w),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[p,w]),useEffect(()=>{if(!d)return;let k=P=>{let R=P.target;!m.current?.contains(R)&&!h.current?.contains(R)&&f();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[d,f]),useEffect(()=>{if(!d)return;let k=P=>{P.key==="Escape"&&f();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[d,f]);let E=()=>{let k={transition:`opacity ${_t}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${_t}ms cubic-bezier(0.16, 1, 0.3, 1)`},P={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},R=r==="top"||r==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.97)`}:i==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.98)`,pointerEvents:"none"}},v=useCallback(()=>{o==="click"&&(d?f():z());},[o,d,f,z]),x=useCallback(()=>{o==="hover"&&(S.current&&clearTimeout(S.current),d||z());},[o,d,z]),C=useCallback(()=>{o==="hover"&&(S.current=setTimeout(()=>{f();},150));},[o,f]);useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let T=p?createPortal(jsx("div",{ref:h,className:n,onMouseEnter:()=>{o==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:C,style:{position:"fixed",top:s.top,left:s.left,zIndex:99999,padding:"16px",backgroundColor:u.background,border:`1px solid ${u.border}`,borderRadius:"12px",color:u.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...E(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[$t.cloneElement(t,{ref:m,onClick:k=>{v(),t.props.onClick?.(k);},onMouseEnter:k=>{x(),t.props.onMouseEnter?.(k);},onMouseLeave:k=>{C(),t.props.onMouseLeave?.(k);}}),T]})};Ra.displayName="Popover";var Da={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},za=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let l=F(),u=Da[l];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:u.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:u.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:u.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};za.displayName="EmptyState";var Aa={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)"}},Ba=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:l,style:u})=>{let d=F(),c=Aa[d],p=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,g=i=>`${i>0?"+":""}${i.toFixed(1)} %`;return jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...u},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:p},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:p}),a==="down"&&jsx(TrendDownIcon,{size:14,color:p}),jsx("span",{children:g(r)}),o&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:o})]})]})]})};Ba.displayName="Stat";var Ma=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],fc=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let l=Ma(t),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:u,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:d,children:e.toUpperCase()})})};var so={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)"}},Gt=({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}),xc=({label:e,onRemove:t,style:r,className:o})=>{let n=so[F()];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"})]})},hc=({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}),yc=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:l})=>{let u=so[F()],d=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:u.itemBg,border:`1px solid ${u.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:u.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&d&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Gt,{onClick:t,title:"Filtrovat",color:u.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(Gt,{onClick:r,title:"Upravit",color:u.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(Gt,{onClick:o,title:"Smazat",color:u.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var Oa={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"}},mt=180,Za={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Ya=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:l=true,closeOnEscape:u=true,showClose:d=true,className:c,style:p})=>{let g=F(),i=Oa[g],y=Za[a],[s,b]=useState(false),[m,h]=useState("idle"),S=useRef(null),z=useRef(null);useEffect(()=>{if(e)z.current=document.activeElement,b(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(s){h("closing");let v=setTimeout(()=>{b(false),h("idle"),document.body.style.overflow="",z.current instanceof HTMLElement&&z.current.focus();},mt);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!s||!u)return;let v=x=>{x.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s,u,t]),useEffect(()=>{if(!s||!S.current)return;let v=S.current,x='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=T=>{if(T.key!=="Tab")return;let k=v.querySelectorAll(x);if(k.length===0){T.preventDefault();return}let P=k[0],R=k[k.length-1];T.shiftKey?document.activeElement===P&&(T.preventDefault(),R.focus()):document.activeElement===R&&(T.preventDefault(),P.focus());};return document.addEventListener("keydown",C),v.focus(),()=>document.removeEventListener("keydown",C)},[s]);let f=()=>{let v={transition:`opacity ${mt}ms ease`};return m==="opening"||m==="idle"?{...v,opacity:0}:m==="open"?{...v,opacity:1}:{...v,opacity:0,pointerEvents:"none"}},w=()=>{let v={transition:`opacity ${mt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${mt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...v,opacity:0,transform:"scale(0.95)"}:m==="open"?{...v,opacity:1,transform:"scale(1)"}:{...v,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!s)return null;let E=a==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:E?"stretch":"center",justifyContent:"center",...f()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:l?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:y.width,maxWidth:E?void 0:"calc(100vw - 32px)",maxHeight:E?"100vh":y.maxHeight,backgroundColor:i.cardBg,border:E?"none":`1px solid ${i.cardBorder}`,borderRadius:E?0:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...w(),...p},children:[(r||d)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:r}),d&&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:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:i.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.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 ${i.divider}`},children:n})]})]}),document.body)};Ya.displayName="Modal";var _a={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)"}},Qt=220,Xa=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:l=400,showClose:u=true,closeOnOverlay:d=true,className:c,style:p})=>{let g=F(),i=_a[g],[y,s]=useState(false),[b,m]=useState("idle"),h=useRef(null),S=typeof l=="number"?`${l}px`:l;useEffect(()=>{if(e)s(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(y){m("closing");let w=setTimeout(()=>{s(false),m("idle"),document.body.style.overflow="";},Qt);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!y)return;let w=E=>{E.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[y,t]);let z=w=>{let E=r==="right"?"100%":"-100%";return w==="opening"||w==="idle"?E:w==="open"?"0%":E},f=()=>b==="open"?1:0;return y?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:f(),transition:`opacity ${Qt}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-label":o,className:c,style:{position:"absolute",top:0,bottom:0,[r]:0,width:S,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:r==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${z(b)})`,transition:`transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...p},children:[(o||u)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:o}),u&&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:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:i.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.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 ${i.divider}`},children:a})]})]}),document.body):null};Xa.displayName="Drawer";var Ka={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)"}},ja=({items:e,separator:t="/",className:r,style:o})=>{let n=F(),a=Ka[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((l,u)=>{let d=u===e.length-1;return jsxs($t.Fragment,{children:[u>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),d?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxs("a",{href:l.href??"#",onClick:l.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:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},u)})})};ja.displayName="Breadcrumb";var ei={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)"}},ti={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ri(e,t,r,o,n){let a=[],l=Math.max(2,e-r),u=Math.min(t-1,e+r);(o||e-r<=1)&&a.push(1),l>2&&(o&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let d=l;d<=u;d++)a.includes(d)||a.push(d);return u<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var oi=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:l="md",className:u,style:d})=>{let c=F(),p=ei[c],g=ti[l];if(t<=0)return null;let i=ri(e,t,o,n,a),y={display:"inline-flex",alignItems:"center",justifyContent:"center",width:g.size,height:g.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.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:u,style:{display:"flex",alignItems:"center",gap:"4px",...d},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...y,color:e<=1?p.disabledText:p.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:s=>{e>1&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:g.iconSize,color:e<=1?p.disabledText:p.text})}),i.map((s,b)=>{if(s==="ellipsis-start"||s==="ellipsis-end")return jsx("span",{style:{...y,cursor:"default",color:p.text},"aria-hidden":"true",children:"..."},s);let m=s===e;return jsx("button",{type:"button","aria-current":m?"page":void 0,"aria-label":`Str\xE1nka ${s}`,onClick:()=>r(s),style:{...y,color:m?p.activeText:p.text,backgroundColor:m?p.activeBg:"transparent",fontWeight:m?600:500},onMouseEnter:h=>{m||(h.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:h=>{m||(h.currentTarget.style.backgroundColor="transparent");},children:s},s)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...y,color:e>=t?p.disabledText:p.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:s=>{e<t&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:g.iconSize,color:e>=t?p.disabledText:p.text})})]})};oi.displayName="Pagination";var si={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)"}},li=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:l})=>{let u=F(),d=si[u],[c,p]=useState(null),g=r==="horizontal",i=32,y=s=>!o||!n?false:o==="completed"?s<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:g?"row":"column",alignItems:g?"flex-start":"stretch",gap:0,...l},children:e.map((s,b)=>{let m=b<t,h=b===t,S=b>t,z=b===e.length-1,f=y(b),w=c===b&&f,E=m?d.completedBg:w?d.hoverBg:d.activeBg,v=m?d.completedBg:h||w?d.activeBorder:d.futureBorder,x=m?d.completedText:h||w?d.activeText:d.futureText,C=w?d.activeText:S?d.labelFuture:d.labelText,T=S?d.descFuture:d.descText,k=m?d.lineCompleted:d.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:g?"column":"row",alignItems:g?"center":"flex-start",flex:z?"0 0 auto":"1 1 0",minWidth:0,cursor:f?"pointer":"default"},onClick:()=>f&&n?.(b),onMouseEnter:()=>p(b),onMouseLeave:()=>p(null),children:[jsxs("div",{style:{display:"flex",flexDirection:g?"row":"column",alignItems:"center",width:g?"100%":"auto"},children:[jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:E,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:m?jsx(CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:x,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!z&&jsx("div",{style:g?{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:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:g?"10px":0,marginLeft:g?0:"14px",paddingTop:g?0:"4px",textAlign:g?"center":"left",minHeight:g||z?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:h||w?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:s.label}),s.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:T,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:s.description})]})]},b)})})};li.displayName="Stepper";var di={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"}},ar=180,pi=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=F(),l=di[a],u=useRef(null),d=useRef(null),[c,p]=useState(false),[g,i]=useState(false),[y,s]=useState("idle"),[b,m]=useState({top:0,left:0,openAbove:false}),[h,S]=useState(-1),z=useCallback(()=>{p(true),i(true),s("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>s("open"));});},[]),f=useCallback(()=>{p(false),s("closing");let x=setTimeout(()=>{i(false),s("idle");},ar);return ()=>clearTimeout(x)},[]),w=useCallback(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=d.current?.offsetHeight??200,T=d.current?.offsetWidth??200,k=window.innerHeight-x.bottom-6,P=x.top-6,R=k<C&&P>k,I;r==="bottom-right"?(I=x.right-T,I<4&&(I=4)):(I=x.left,I+T>window.innerWidth-4&&(I=window.innerWidth-T-4)),m({top:R?x.top-6:x.bottom+6,left:I,openAbove:R});},[r]);useEffect(()=>{if(g)return w(),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[g,w]),useEffect(()=>{if(!c)return;let x=C=>{let T=C.target,k=u.current?.contains(T),P=d.current?.contains(T);!k&&!P&&f();};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[c,f]),useEffect(()=>{if(!c)return;let x=t.map((T,k)=>({item:T,idx:k})).filter(({item:T})=>!T.divider&&!T.disabled),C=T=>{switch(T.key){case "Escape":T.preventDefault(),f();break;case "ArrowDown":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k<x.length-1?k+1:0;S(x[P]?.idx??-1);break}case "ArrowUp":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k>0?k-1:x.length-1;S(x[P]?.idx??-1);break}case "Enter":case " ":if(T.preventDefault(),h>=0){let k=t[h];k&&!k.divider&&!k.disabled&&(k.onClick?.(),f());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[c,h,t,f]);let E=()=>{let x=b.openAbove,C=x?"translateY(8px)":"translateY(-8px)",T=x?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`};return y==="opening"||y==="idle"?{...k,opacity:0,transform:`${C} scale(0.97)`}:y==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${T} scale(0.98)`,pointerEvents:"none"}},v=g?createPortal(jsx("div",{ref:d,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:l.dropdownBg,border:`1px solid ${l.dropdownBorder}`,borderRadius:"12px",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...E()},children:t.map((x,C)=>{if(x.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:l.divider,margin:"4px 6px"}},C);let T=x.danger,k=x.disabled,P=C===h,R=k?l.textDisabled:T?l.dangerText:l.text,I=T?l.dangerHover:l.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:R,backgroundColor:P?I:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{k||(x.onClick?.(),f());},onMouseEnter:()=>{k||S(C);},onMouseLeave:()=>S(-1),children:[x.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:x.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:u,onClick:()=>{c?f():z();},style:{display:"inline-flex",cursor:"pointer"},children:e}),v]})};pi.displayName="DropdownMenu";var ui={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},id=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:l,onMouseEnter:u,onMouseLeave:d,target:c,rel:p,...g})=>{let i=F(),y=ui[i],[s,b]=useState(false),m=e==="danger"?y.danger:y.default,h={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:s?y.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:m,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},S=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:h,className:l,target:c,rel:p??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:z=>{b(true),u?.(z);},onMouseLeave:z=>{b(false),d?.(z);},...g,children:r==="right"?jsxs(Fragment,{children:[n,S]}):jsxs(Fragment,{children:[S,n]})})};var xi={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"}},ht=180,hi=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:l,style:u})=>{let d=F(),c=xi[d],[p,g]=useState(false),[i,y]=useState("idle"),[s,b]=useState(-1),m=useRef(null),h=useRef(null);useEffect(()=>{let x="sm-spotlight-scrollbar-hide";if(document.getElementById(x))return;let C=document.createElement("style");C.id=x,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let S=n;useEffect(()=>{if(e)g(true),y("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});else if(p){y("closing");let x=setTimeout(()=>{g(false),y("idle");},ht);return ()=>clearTimeout(x)}},[e]),useEffect(()=>{p&&i==="open"&&m.current?.focus();},[p,i]),useEffect(()=>{b(-1);},[n]),useEffect(()=>{if(s<0||!h.current)return;let x=h.current.querySelector(`[data-spotlight-index="${s}"]`);x&&x.scrollIntoView({block:"nearest"});},[s]);let z=useCallback(x=>{switch(x.key){case "Escape":x.preventDefault(),t();break;case "ArrowDown":{x.preventDefault(),b(C=>{let T=C+1;return T>=S.length?0:T});break}case "ArrowUp":{x.preventDefault(),b(C=>{let T=C-1;return T<0?S.length-1:T});break}case "Enter":{x.preventDefault(),s>=0&&s<S.length&&(S[s].onSelect(),t());break}}},[S,s,t]),f=[],w=new Map;S.forEach((x,C)=>{let T=w.get(x.category);T||(T=[],w.set(x.category,T),f.push({category:x.category,items:T})),T.push({...x,flatIndex:C});});let E=()=>{let x={transition:`opacity ${ht}ms ease`};return i==="opening"||i==="idle"?{...x,opacity:0}:i==="open"?{...x,opacity:1}:{...x,opacity:0,pointerEvents:"none"}},v=()=>{let x={transition:`opacity ${ht}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ht}ms cubic-bezier(0.16, 1, 0.3, 1)`};return i==="opening"||i==="idle"?{...x,opacity:0,transform:"scale(0.95) translateY(-10px)"}:i==="open"?{...x,opacity:1,transform:"scale(1) translateY(0)"}:{...x,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...E()},onKeyDown:z,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:l,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",...v(),...u},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:m,type:"text",value:r,onChange:x=>o(x.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:h,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:f.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"}):f.map(x=>jsxs("div",{role:"group","aria-label":x.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:x.category}),x.items.map(C=>{let T=C.flatIndex===s;return jsxs("div",{role:"option","aria-selected":T,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>b(C.flatIndex),onMouseLeave:()=>b(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?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)})]},x.category))})]})]}),document.body):null};hi.displayName="Spotlight";var Si={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)"}},ki={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"}},Ci=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:l=false,className:u,style:d})=>{let c=F(),p=Si[c],g=ki[o],i=a==="vertical",y=e.map(f=>typeof f=="string"?{value:f,label:f}:f),s=y.findIndex(f=>f.value===t),b=useRef(null),m=useRef([]),[h,S]=useState({offset:0,size:0}),z=useCallback(()=>{let f=b.current,w=m.current[s];if(!f||!w||s<0)return;let E=f.getBoundingClientRect(),v=w.getBoundingClientRect();S(i?{offset:v.top-E.top,size:v.height}:{offset:v.left-E.left,size:v.width});},[s,i]);return useEffect(()=>{z();},[z,t,e,o]),useEffect(()=>(window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)),[z]),jsxs("div",{ref:b,role:"radiogroup",className:u,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:p.bg,border:`1px solid ${p.border}`,borderRadius:g.borderRadius,padding:g.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...d},children:[s>=0&&h.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:g.itemRadius,backgroundColor:p.indicator,border:`1px solid ${p.indicatorBorder}`,boxShadow:p.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:g.padding,right:g.padding,top:h.offset,height:h.size}:{top:g.padding,bottom:g.padding,left:h.offset,width:h.size}}}),y.map((f,w)=>{let E=f.value===t,v=l||f.disabled;return jsx("button",{ref:x=>{m.current[w]=x;},type:"button",role:"radio","aria-checked":E,disabled:v,onClick:()=>{v||r(f.value);},style:{position:"relative",zIndex:1,flex:n?1:void 0,padding:g.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:g.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,fontWeight:E?500:400,color:v?p.textDisabled:E?p.textActive:p.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:x=>{!v&&!E&&(x.currentTarget.style.color=p.textHover);},onMouseLeave:x=>{!v&&!E&&(x.currentTarget.style.color=p.text);},children:f.label??f.value},f.value)})]})};Ci.displayName="SegmentedControl";var zi={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)"}},Fi={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},So=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:l,className:u})=>{let{border:d,background:c}=zi[e],p=o??Fi[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 ${d}`,borderRadius:"8px",boxSizing:"border-box",...l},className:u,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:p}),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 ko=3,Bi=.06,Co=12,vt=320,Ro=createContext(null),Mi=0,Hi=()=>`sm-toast-${++Mi}-${Date.now()}`,Ed=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:l=4e3})=>{let[u,d]=useState([]),c=useCallback(i=>{d(y=>y.map(s=>s.id===i?{...s,lifecycle:"leaving"}:s)),setTimeout(()=>{d(y=>y.filter(s=>s.id!==i));},vt+100);},[]),p=useCallback(i=>{let y=Hi(),s=i.duration??l,b={id:y,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:s,lifecycle:"entering",height:0};return d(m=>{let h=[...m,b];return h.length>a?h.slice(h.length-a):h}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(m=>m.map(h=>h.id===y?{...h,lifecycle:"visible"}:h));});}),s>0&&setTimeout(()=>c(y),s),y},[a,c,l]),g=useCallback((i,y)=>{d(s=>s.map(b=>b.id===i&&b.height!==y?{...b,height:y}:b));},[]);return jsxs(Ro.Provider,{value:{toast:p,dismiss:c},children:[e,u.length>0&&jsx(Ni,{toasts:u,position:t,toastWidth:r,gap:o,offset:n,onDismiss:c,onHeightMeasured:g})]})},Li=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:l,toastWidth:u,onDismiss:d,onHeightMeasured:c})=>{let p=t.lifecycle==="leaving",g=!l||p,i=n?1:Math.max(.7,1-r*Bi),y=n?0:r*Co,s=a?-y:y,m=g?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${s}px)`,h=g?0:n?1:Math.max(.4,1-r*.18),S=!n&&r>=ko,z=o-r,f=useCallback(w=>{w&&t.height===0&&c(t.id,w.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:f,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:m,opacity:S?0:h,zIndex:z,transition:[`transform ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${vt}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(So,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:u,maxWidth:"100%",boxSizing:"border-box"}})})},Ni=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:l})=>{let[u,d]=useState(false),[c,p]=useState(new Set),g=t.startsWith("bottom"),i=t.endsWith("right"),y=t.endsWith("center");useEffect(()=>{p(f=>{let w=new Set(f);return e.forEach(E=>{E.lifecycle==="visible"&&w.add(E.id);}),[...w].forEach(E=>{e.find(v=>v.id===E)||w.delete(E);}),w});},[e]);let m=(e[e.length-1]?.height||80)+Math.min(e.length-1,ko-1)*Co,h=e.reduce((f,w)=>f+(w.height||80),0)+Math.max(0,e.length-1)*o,S=u?h:m,z=y?{left:"50%",transform:"translateX(-50%)"}:i?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:S,...g?{bottom:n}:{top:n},...z,transition:`height ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((f,w)=>{let E=e.length-1-w,v=c.has(f.id),x=f.lifecycle==="leaving",C=!v||x,T;if(u&&!C){let P=e.slice(w+1).reduce((I,B)=>I+(B.height||80)+o,0);T=`translateY(${g?-P:P}px)`;}return jsx(Li,{item:f,depthIndex:E,stackSize:e.length,expanded:u,isBottom:g,appeared:v,toastWidth:r,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:T},f.id)})})},Dd=()=>{let e=useContext(Ro);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 qi={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)"}},_i={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"}},Md=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:l,style:u})=>{let d=F(),c=qi[d],p=_i[e],[g,i]=useState(true);if(!g)return null;let y=d==="light",s=y?p.borderLight:p.border,b=y?p.backgroundLight:p.background,m=y?p.iconColorLight:p.iconColor,S=o??{info:jsx(Info,{size:24,color:m}),success:jsx(CheckCircle,{size:24,color:m}),warning:jsx(Warning,{size:24,color:m}),error:jsx(XCircle,{size:24,color:m})}[e],z=()=>{i(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${s}`,borderRadius:"4px",boxSizing:"border-box",...u},className:l,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),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:z,"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 Eo={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},Xi={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},To="sm-ui-progress-stripes",Gi=()=>{if(typeof document>"u"||document.getElementById(To))return;let e=document.createElement("style");e.id=To,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Wd=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:l=false,className:u,style:d})=>{let c=F(),p=Eo[c],g=Xi[t],i=Math.max(0,Math.min(100,e));a&&l&&Gi();let y=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",...l?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:u,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:p.label,userSelect:"none"},children:n}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:g.fontSize,color:p.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(i),"%"]})]}),jsx("div",{style:{width:"100%",height:g.height,backgroundColor:p.trackBg,borderRadius:g.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${i}%`,height:"100%",backgroundColor:r,borderRadius:g.height/2,transition:"width 0.3s ease",...y}})})]})},$d=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:l,style:u})=>{let d=F(),c=Eo[d],p=Math.max(0,Math.min(100,e)),g=(t-r)/2,i=2*Math.PI*g,y=i-p/100*i;return jsxs("div",{role:"progressbar","aria-valuenow":p,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...u},className:l,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:g,fill:"none",stroke:c.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:g,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:y,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(p),"%"]}),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 Ji={sm:16,md:24,lg:40},Ud=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,l]=useState(0),u=useRef(void 0),d=useRef(void 0);useEffect(()=>{let g=i=>{d.current===void 0&&(d.current=i),l((i-d.current)/800*360%360),u.current=requestAnimationFrame(g);};return u.current=requestAnimationFrame(g),()=>{u.current!==void 0&&cancelAnimationFrame(u.current);}},[]);let c=typeof e=="number"?e:Ji[e]??24,p=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:p,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:p,strokeWidth:"2",strokeLinecap:"round"})]})})};var es={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"}},Gd=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=F(),a=es[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 rs={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},os={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Jd=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:l,className:u,style:d})=>jsx("div",{className:u,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:rs[r],justifyContent:os[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...d},children:l});var as={sm:640,md:768,lg:1024,xl:1280},tp=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let l=typeof e=="number"?e:as[e],u=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${l}px`,width:"100%",padding:u,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var ps={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)"}},Fo="smDragListPulse",fs=`@keyframes ${Fo}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=fr(r.children,t);if(o)return o}}return null}function dr(e,t,r){let o=fr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||dr([n],n.id,r))return true;return false}function Po(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[l,u]=Po(a.children,t);u&&(r=u),n.push({...a,children:l.length>0?l:void 0});}else n.push(a);return n},[]),r]}function pr(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:pr(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:pr(a.children,t,r,o)}):n.push(a);return n}function Io(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Io(r.children,t)}:r)}function Ao(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Ao(o.children,t,r)}:o)}var zo=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${Fo} 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}})}),Bo=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s})=>{let[b,m]=useState(false),[h,S]=useState(false),[z,f]=useState(false),w=useRef(false),E=useRef(null),v=e.children&&e.children.length>0,x=e.expanded??false,C=n===e.id,T=n!==null,k=y==="handle",P=a?.targetId===e.id,R=P&&a?.position==="before",I=P&&a?.position==="after",B=P&&a?.position==="inside",N=C?"transparent":B?s.nestHighlight:h&&!T?s.itemHoverBg:s.itemBg,W=B?s.nestBorder:C?"transparent":s.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[R&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(zo,{color:s.dropIndicator})}),jsxs("div",{ref:E,draggable:true,onDragStart:M=>{if(k&&!w.current){M.preventDefault();return}if(w.current=false,M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",e.id),E.current){let Y=E.current.cloneNode(true);Y.style.width=`${E.current.offsetWidth}px`,Y.style.opacity="0.85",Y.style.transform="rotate(1.5deg) scale(1.02)",Y.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",Y.style.position="fixed",Y.style.top="-1000px",document.body.appendChild(Y),M.dataTransfer.setDragImage(Y,M.nativeEvent.offsetX,M.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(Y));}l(e.id);},onDragOver:M=>{M.preventDefault(),M.stopPropagation(),u(M,e.id,t);},onDragLeave:M=>{let Y=M.relatedTarget;E.current&&Y&&E.current.contains(Y)||(M.stopPropagation(),d(M,E.current),S(false));},onDrop:M=>{M.preventDefault(),M.stopPropagation(),c(M);},onDragEnd:p,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":s.text,cursor:T?"grabbing":k?"default":"grab",opacity:C?.35:1,backgroundColor:N,borderWidth:"1px",borderColor:W,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 ${s.nestBorder}`:h&&!T?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!i&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:T?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),onMouseDown:()=>{w.current=true;},children:jsx(DotsSixVertical,{size:14,color:b?s.gripHover:s.gripColor})}),B&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:s.dropIndicator})}),v?jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),g(e.id);},onMouseEnter:()=>f(true),onMouseLeave:()=>f(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:z?s.chevronHover:s.chevron,style:{transition:"transform 0.2s ease",transform:x?"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:i?i(e,{handleProps:{onMouseDown:()=>{w.current=true;},style:{cursor:T?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:x,toggleExpand:()=>g(e.id),hasChildren:!!v}):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})]})})]}),I&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(zo,{color:s.dropIndicator})}),v&&x&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${s.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(M=>jsx(Bo,{item:M,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s},M.id))})]})},us=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:l,style:u})=>{let d=F(),c=ps[d],[p,g]=useState(null),[i,y]=useState(null),s=useRef(null),b=useRef(void 0),m=useRef(void 0),h=useRef(null),S=useCallback(x=>{g(x);},[]),z=useCallback((x,C,T)=>{if(!p||p===C||dr(e,p,C))return;b.current&&(clearTimeout(b.current),b.current=void 0);let k=x.currentTarget.getBoundingClientRect(),P=x.clientY-k.top,R=k.height,I;o&&T<n?P<R*.25?I="before":P>R*.75?I="after":I="inside":P<R*.35?I="before":P>R*.65?I="after":h.current?.targetId===C?I=h.current.position:I=P<R/2?"before":"after";let B={targetId:C,position:I},N=fr(e,C);I==="inside"&&N?.children&&N.children.length>0&&!N.expanded?(h.current?.targetId!==C||h.current?.position!=="inside")&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{t(Ao(e,C,true));},600)):m.current&&(clearTimeout(m.current),m.current=void 0),h.current=B,y(B);},[p,e,o,n,t]),f=useCallback((x,C)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{y(null),h.current=null;},60),m.current&&(clearTimeout(m.current),m.current=void 0);},[]),w=useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),!p||!i)return;let{targetId:x,position:C}=i;if(p===x||dr(e,p,x))return;let[T,k]=Po(e,p);if(!k)return;let P=pr(T,x,C,k);t(P),g(null),y(null),h.current=null;},[p,i,e,t]),E=useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),g(null),y(null),h.current=null;},[]),v=useCallback(x=>{t(Io(e,x));},[e,t]);return useEffect(()=>()=>{b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current);},[]),jsxs("div",{ref:s,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...u},children:[jsx("style",{dangerouslySetInnerHTML:{__html:fs}}),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(x=>jsx(Bo,{item:x,depth:0,allowNesting:o,maxDepth:n,draggedId:p,dropState:i,onDragStart:S,onDragOver:z,onDragLeave:f,onDrop:w,onDragEnd:E,onToggleExpand:v,renderItem:r,dragMode:a,tokens:c},x.id))]})};us.displayName="DragList";export{ca as Accordion,la as AccordionItem,Md as Alert,fc as Avatar,hc as Badge,ja as Breadcrumb,Qo as Button,oa as Card,Mr as Checkbox,Hr as CheckboxGroup,tp as Container,Ar as DatePicker,Sn as DatePickerGroup,Gd as Divider,us as DragList,Xa as Drawer,pi as DropdownMenu,za as EmptyState,Gr as FileUpload,Sr as Input,Rs as InputGroup,id as Link,Ya as Modal,oi as Pagination,Ra as Popover,Wd as ProgressBar,$d as ProgressCircle,It as Radio,Nr as RadioGroup,Ci as SegmentedControl,wr as Select,fn as SelectGroup,Nt as Skeleton,qr as Slider,Ud as Spinner,hi as Spotlight,Jd as Stack,Ba as Stat,li as Stepper,$r as Switch,fa as Tab,ua as TabPanel,ea as Table,ga as Tabs,xc as Tag,yc as TagItem,Zr as Textarea,So as Toast,Ed as ToasterProvider,ha as Tooltip,F as useTheme,Dd as useToast};//# sourceMappingURL=index.mjs.map
12
+ `}),re.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),re.map(($,te)=>{let oe=q($.value),le=te===B;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?g.optionSelectedText:$.disabled?g.placeholder:g.text,backgroundColor:le?g.optionHover:oe?g.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:()=>E(te),onMouseLeave:()=>E(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.label??$.value}),oe&&jsx(Check,{size:16,color:g.optionSelectedText})]},$.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...c},className:y,children:[i&&jsx("label",{htmlFor:b,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.text,userSelect:"none"},children:i}),jsxs("div",{ref:k,role:"combobox","aria-expanded":S,"aria-haspopup":"listbox",tabIndex:A?-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:g.placeholder,lineHeight:"normal"},children:f}),o?W.map($=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:g.tagBg,color:g.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($)}),!A&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:te=>{te.stopPropagation(),j($);},children:jsx(X,{size:14,color:g.tagText})})]},$)):W.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:g.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:g.placeholder})}),l?jsx($a,{size:16,color:g.placeholder}):jsx(CaretDown,{size:16,color:g.placeholder,style:{transition:"transform 0.2s ease",transform:S?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),L&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:L}),Me]})};Ir.displayName="Select";var Wa=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=useId(),l=t??s;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:zr[n].label,userSelect:"none"},children:e}),r??jsx(Ir,{options:[]})]})};Wa.displayName="SelectGroup";var Ga=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{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"})]})},_a={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,Ka={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"}},Xa=Bo.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:a="Hledat\u2026",label:n,error:s,disabled:l=false,loading:p=false,allowCustom:i=false,onCreate:f,renderOption:u,notFoundContent:c,footer:y,size:d="md",style:g,className:b},k)=>{let R=I(),m=_a[R],S=useId(),D=Ka[d],T=useRef(null),h=useRef(null),w=useRef(null),v=useRef(null),[C,z]=useState(false),[B,E]=useState(false),[F,P]=useState("idle"),[A,H]=useState(""),[L,N]=useState(-1),[Y,W]=useState(false),[q,re]=useState({top:0,left:0,width:0,openAbove:false}),K=l||p,j=!!s,Q=typeof s=="string"?s:void 0;useEffect(()=>{if(!Y){let Z=e.find(ee=>ee.value===t);H(Z?Z.label??Z.value:t||"");}},[t,e,Y]);let U=A?e.filter(Z=>(Z.label??Z.value).toLowerCase().includes(A.toLowerCase())):e,me=useCallback(()=>{z(true),E(true),P("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>P("open"));});},[]),de=useCallback(()=>{z(false),P("closing");let Z=setTimeout(()=>{E(false),P("idle");},bo);return ()=>clearTimeout(Z)},[]),X=useCallback(()=>{if(!T.current)return;let Z=T.current.getBoundingClientRect(),ee=w.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(B)return X(),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[B,X]),useEffect(()=>{if(!C)return;let Z=ee=>{let ue=ee.target;if(!T.current?.contains(ue)&&!w.current?.contains(ue)){de();let ye=e.find(je=>je.value===t);i||H(ye?ye.label??ye.value:"");}};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[C,de,t,e,i]),useEffect(()=>{L>=0&&v.current&&v.current.children[L]?.scrollIntoView({block:"nearest"});},[L]);let G=Z=>{let ee=Z.target.value;H(ee),o?.(ee),N(0),C||me();},Pe=useCallback(Z=>{r(Z);let ee=e.find(ue=>ue.value===Z);H(ee?ee.label??ee.value:Z),de();},[r,e,de]),Me=Z=>{if(!K)switch(Z.key){case "ArrowDown":Z.preventDefault(),C?N(ee=>Math.min(ee+1,U.length-1)):(me(),N(0));break;case "ArrowUp":Z.preventDefault(),N(ee=>Math.max(ee-1,0));break;case "Enter":Z.preventDefault(),C&&L>=0&&U[L]?Pe(U[L].value):i&&A&&(r(A),f?.(A),de());break;case "Escape":de();break;case "Tab":C&&de();break}},$=()=>{W(true),!C&&!K&&me();},te=()=>{W(false),i&&A&&r(A);},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 F==="opening"||F==="idle"?{...ye,opacity:0,transform:`${ee} scale(0.97)`}:F==="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?m.backgroundDisabled:m.background,border:`1px solid ${j?m.borderError:Y?m.borderFocus:m.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:m.text,cursor:K?"not-allowed":"text"},io={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.label,userSelect:"none"},bt=B?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:m.dropdownBg,border:`1px solid ${m.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",...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:m.placeholder,textAlign:"center"},children:i&&A?"Stiskn\u011Bte Enter pro potvrzen\xED":c??"\u017D\xE1dn\xE9 v\xFDsledky"}),U.map((Z,ee)=>{let ue=Z.value===t,ye=ee===L;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?m.optionSelectedText:m.text,backgroundColor:ye?m.optionHover:ue?m.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:()=>N(ee),onMouseLeave:()=>N(-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:m.optionSelectedText})]})},Z.value)})]}),y&&jsx("div",{style:{borderTop:`1px solid ${m.divider}`,padding:"8px 6px"},children:y})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...g},className:b,children:[n&&jsx("label",{htmlFor:S,style:io,children:n}),jsxs("div",{ref:T,style:le,onClick:()=>h.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:m.placeholder},children:p?jsx(Ga,{size:D.iconSize,color:m.placeholder}):jsx(MagnifyingGlass,{size:D.iconSize,color:m.placeholder})}),jsx("input",{ref:Z=>{h.current=Z,typeof k=="function"?k(Z):k&&(k.current=Z);},id:S,type:"text",value:A,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:m.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:m.borderError,lineHeight:"normal"},children:Q}),bt]})});Xa.displayName="Combobox";var ts=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{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"})]})},Nr={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,os={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"}},rs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Mr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function ns(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),s=[];for(let l=0;l<42;l++){let p=new Date(n);p.setDate(n.getDate()+l),s.push(p);}return s}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 Ar(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 Hr(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 as(e){return Ne(e,new Date)}var $r=({mode:e="single",showTime:t=false,value:r,onChange:o,label:a,placeholder:n,error:s,helperText:l,disabled:p=false,loading:i=false,clearable:f=false,size:u="md",fullWidth:c=false,required:y,minDate:d,maxDate:g,firstDayOfWeek:b=1,style:k,className:R})=>{let m=I(),x=Nr[m],S=useId(),D=os[u],T=useRef(null),h=useRef(null),[w,v]=useState(false),[C,z]=useState(false),[B,E]=useState("idle"),[F,P]=useState({top:0,left:0,width:0,openAbove:false}),[A,H]=useState(null),L=new Date,[N,Y]=useState(L.getFullYear()),[W,q]=useState(L.getMonth()),[re,K]=useState("days"),[j,Q]=useState(0),U=p||i,me=!!s,de=typeof s=="string"?s: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?Ar(X$1):ho(X$1):"";let[M,J]=G;if(!M&&!J)return "";let _=t?Ar: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&&(Y(M.getFullYear()),q(M.getMonth())),K("days"),v(true),z(true),E("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>E("open"));});},[e,X$1,G]),le=useCallback(()=>{v(false),E("closing");let M=setTimeout(()=>{z(false),E("idle");},xo);return ()=>clearTimeout(M)},[]),Se=useCallback(()=>{if(!T.current)return;let M=T.current.getBoundingClientRect(),J=h.current?.offsetHeight??380,_=window.innerHeight-M.bottom-6,V=M.top-6,se=_<J&&V>_;P({top:se?M.top-6:M.bottom+6,left:M.left,width:Math.max(M.width,300),openAbove:se});},[]);useEffect(()=>{if(C)return Se(),window.addEventListener("scroll",Se,true),window.addEventListener("resize",Se),()=>{window.removeEventListener("scroll",Se,true),window.removeEventListener("resize",Se);}},[C,Se]),useEffect(()=>{if(!w)return;let M=J=>{let _=J.target,V=T.current?.contains(_),se=h.current?.contains(_);!V&&!se&&le();};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[w,le]);let io=M=>{U||(M.key==="Escape"&&w&&(M.preventDefault(),le()),(M.key==="Enter"||M.key===" ")&&!w&&(M.preventDefault(),oe()));},bt=useCallback(M=>{if(d){let J=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(M<J)return true}if(g){let J=new Date(g.getFullYear(),g.getMonth(),g.getDate());if(M>J)return true}return false},[d,g]),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),Y(M=>M-1)):q(M=>M-1);},ye=()=>{W===11?(q(0),Y(M=>M+1)):q(M=>M+1);},je=M=>{M.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},aa=()=>{let M=F.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 B==="opening"||B==="idle"?{...V,opacity:0,transform:`${J} scale(0.97)`}:B==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},sa=ns(N,W,b),lo=(M,J)=>{let _=M?M.getHours():0,V=M?M.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${x.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.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:x.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"})]})},ia=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Mr.map((M,J)=>{let _=J===W;return jsx("button",{type:"button",onClick:()=>{q(J),K("days");},style:{background:_?x.daySelected:"transparent",color:_?x.daySelectedText:x.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=x.dayHover);},onMouseLeave:V=>{_||(V.target.style.backgroundColor="transparent");},children:M},J)})}),la=()=>{let M=Math.floor(N/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:()=>Y(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:x.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text},children:[M," \u2013 ",M+11]}),jsx("button",{type:"button",onClick:()=>Y(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:x.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:J.map(_=>{let V=_===N;return jsx("button",{type:"button",onClick:()=>{Y(_),K("months");},style:{background:V?x.daySelected:"transparent",color:V?x.daySelectedText:x.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=x.dayHover);},onMouseLeave:se=>{V||(se.target.style.backgroundColor="transparent");},children:_},_)})})]})},ca=C?createPortal(jsx("div",{ref:h,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:m==="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",...aa()},children:re==="years"?la():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:x.text,padding:"4px 8px",borderRadius:"4px"},children:N})}),ia()]}):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:x.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:x.text,padding:"4px 8px",borderRadius:"4px"},children:Mr[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:x.text,padding:"4px 8px",borderRadius:"4px"},children:N})]}),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:x.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:rs.map(M=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:x.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:sa.map((M,J)=>{let _=M.getMonth()!==W,V=bt(M),se=as(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&&Hr(M,Ae,Nt)&&!Ye&&!co&&(Ht=true),j===1&&Ae&&A&&!V&&(Ne(M,A)&&!Ne(M,Ae)&&(be=true),Hr(M,Ae,A)&&!Ne(M,Ae)&&!Ne(M,A)&&(Ht=true));}let po="transparent",Lt=x.text;return be?(po=x.daySelected,Lt=x.daySelectedText):Ht&&(po=x.dayRangeMiddle),_&&(Lt=be?x.daySelectedText:x.dayOutside),V&&(Lt=x.dayDisabled),jsx("button",{type:"button",disabled:V,onClick:()=>Z(M),onMouseEnter:()=>{V||H(M);},onMouseLeave:()=>H(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 ${x.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:M.getDate()},J)})}),t&&jsx("div",{style:{borderTop:`1px solid ${x.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:x.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:x.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:x.placeholder},children:"Do:"}),lo(G[1],1)]})]})})]})}),document.body):null,da={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:U?x.backgroundDisabled:x.background,border:`1px solid ${me?x.borderError:w?x.borderFocus:x.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"},pa={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},hr={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,...k},className:R,children:[a&&jsxs("label",{htmlFor:S,style:pa,children:[a,y&&jsx("span",{style:{color:x.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:T,role:"button",tabIndex:U?-1:0,style:da,onClick:()=>{U||(w?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:x.text,lineHeight:"normal"},children:$}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:x.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:x.placeholder})}),i?jsx(ts,{size:D.iconSize,color:x.placeholder}):jsx(CalendarBlank,{size:D.iconSize,color:x.placeholder})]})]}),de&&jsx("span",{style:{...hr,color:x.borderError},children:de}),!de&&l&&jsx("span",{style:{...hr,color:x.helperText},children:l}),ca]})};$r.displayName="DatePicker";var ss=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=useId(),l=t??s;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:Nr[n].label,userSelect:"none"},children:e}),r??jsx($r,{})]})};ss.displayName="DatePickerGroup";var Wr={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"}},ds={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}},Zr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:a,size:n="md",indeterminate:s=false,className:l,style:p})=>{let i=I(),f=Wr[i],u=ds[n],c=useId(),y=useRef(null),d=!!a,g=typeof a=="string"?a:void 0;useEffect(()=>{y.current&&(y.current.indeterminate=s);},[s]);let b=()=>{o||t?.(!e);},k=d?f.borderError:e||s?f.checkBg:f.border,R=e||s?f.checkBg:o?f.backgroundDisabled:f.background,m={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${k}`,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},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},S={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(),b();},children:[jsx("input",{ref:y,id:c,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:m,children:[e&&!s&&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"})}),s&&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:x,children:r})]}),g&&jsx("span",{style:{...S,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:g})]})};Zr.displayName="Checkbox";var Or=({label:e,children:t,error:r,className:o,style:a})=>{let n=I(),s=Wr[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:s.label,userSelect:"none"},i={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:{...i,color:s.borderError},children:l})]})};Or.displayName="CheckboxGroup";var Yr={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"}},fs={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:s,style:l})=>{let p=I(),i=Yr[p],f=fs[n],u=useId(),c=()=>{a||r?.(e);},y=t?i.dotRing:i.border,d=a?i.backgroundDisabled:i.background,g={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${y}`,backgroundColor:d,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:i.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...l},className:s,children:jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:k=>{k.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:g,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:i.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:b,children:o})]})})};yo.displayName="Radio";var Vr=({value:e,onChange:t,label:r,options:o,direction:a="vertical",error:n,helperText:s,size:l="md",className:p,style:i})=>{let f=I(),u=Yr[f],c=!!n,y=typeof n=="string"?n:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},g={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",...i},className:p,children:[r&&jsx("span",{style:d,children:r}),jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:o.map(b=>jsx(yo,{value:b.value,label:b.label,checked:e===b.value,onChange:t,disabled:b.disabled,size:l},b.value))}),y&&jsx("span",{style:{...g,color:u.borderError},children:y}),!y&&s&&jsx("span",{style:{...g,color:u.helperText},children:s})]})};Vr.displayName="RadioGroup";var gs={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"}},bs={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"}},qr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:a="md",className:n,style:s})=>{let l=I(),p=gs[l],i=bs[a],f=useId(),u=()=>{o||t?.(!e);},c=1.5,y=2,g=i.trackW-c*2-i.thumb-y,b=e?g:0,k={width:i.trackW,height:i.trackH,borderRadius:i.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"},R={width:i.thumb,height:i.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:y,transform:`translateY(-50%) translateX(${b}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:i.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${i.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:n,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:i.gap,cursor:o?"not-allowed":"pointer"},onClick:x=>{x.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:k,children:jsx("span",{style:R})}),r&&jsx("span",{style:m,children:r})]})})};qr.displayName="Switch";var ks={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"}},Cs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},_r=Bo.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:a=false,size:n="md",fullWidth:s=false,required:l,rows:p=4,maxLength:i,resize:f="vertical",autoHeight:u=false,minRows:c,maxRows:y,className:d,style:g,value:b,onChange:k,onFocus:R,onBlur:m,...x},S)=>{let D=I(),T=ks[D],h=Cs[n],w=useId(),v=x.id??w,[C,z]=useState(false),B=useRef(null),E=useCallback(()=>{let j=B.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=y?U*y+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,y]);useEffect(()=>{E();},[b,E]);let F=useCallback(j=>{B.current=j,typeof S=="function"?S(j):S&&(S.current=j);},[S]),P=u?"none":f,A=u?c??1:p,H=o||a,L=!!t,N=typeof t=="string"?t:void 0,Y=typeof b=="string"?b.length:0,W={backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${L?T.borderError:C?T.borderFocus:T.border}`,borderRadius:"8px",padding:h.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"1.5",color:T.text,cursor:H?"not-allowed":"text",resize:P,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:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...g},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:W,children:jsx("textarea",{ref:F,id:v,rows:A,maxLength:i,disabled:o,required:l,readOnly:a||x.readOnly,value:b,onChange:k,style:q,onFocus:j=>{z(true),R?.(j);},onBlur:j=>{z(false),m?.(j);},...x})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[N&&jsx("span",{style:{...K,color:T.borderError},children:N}),!N&&r&&jsx("span",{style:{...K,color:T.helperText},children:r})]}),i!==void 0&&jsxs("span",{style:{...K,color:Y>i?T.borderError:T.counter,flexShrink:0},children:[Y,"/",i]})]})]})});_r.displayName="Textarea";var ws={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)"}},Ts={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 Fs(e,t,r){return Math.round((e-t)/r)*r+t}var Jr=({value:e,onChange:t,min:r=0,max:o=100,step:a=1,label:n,disabled:s=false,showValue:l=false,range:p=false,size:i="md",className:f,style:u})=>{let c=I(),y=ws[c],d=Ts[i],g=useId(),b=useRef(null),k=useRef(null),R=p?e:[r,e],m=C=>(C-r)/(o-r)*100,x=m(R[0]),S=m(R[1]),D=useCallback(C=>{let z=b.current;if(!z)return r;let B=z.getBoundingClientRect(),E=jr((C-B.left)/B.width,0,1),F=r+E*(o-r);return jr(Fs(F,r,a),r,o)},[r,o,a]),T=useCallback(C=>{if(s)return;C.preventDefault();let z=D(C.clientX);if(p){let F=e,P=Math.abs(z-F[0]),A=Math.abs(z-F[1]),H=P<=A?"start":"end";k.current=H;let L=H==="start"?[Math.min(z,F[1]),F[1]]:[F[0],Math.max(z,F[0])];t?.(L);}else k.current="end",t?.(z);let B=F=>{let P=D(F.clientX);if(p){let A=e;k.current==="start"?t?.([Math.min(P,A[1]),A[1]]):t?.([A[0],Math.max(P,A[0])]);}else t?.(P);},E=()=>{k.current=null,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",E);};document.addEventListener("mousemove",B),document.addEventListener("mouseup",E);},[s,D,t,p,e]),h={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},w=p?`${R[0]} \u2013 ${R[1]}`:`${e}`,v={width:d.thumb,height:d.thumb,borderRadius:"50%",backgroundColor:y.thumb,border:`2px solid ${y.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:s?"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:s?.5:1,...u},className:f,children:[(n||l)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("label",{htmlFor:g,style:h,children:n}),l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:y.text,userSelect:"none"},children:w})]}),jsxs("div",{ref:b,role:"slider",id:g,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":s||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:d.thumb,cursor:s?"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:y.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${p?x:0}%`,width:`${S-(p?x:0)}%`,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:y.trackFill}}),p&&jsx("span",{style:{...v,left:`${x}%`}}),jsx("span",{style:{...v,left:`${S}%`}})]})]})};Jr.displayName="Slider";var Bs={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 Ps=0,en=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:a,disabled:n=false,label:s,helperText:l,error:p,buttonStyle:i="default",showFileList:f=true,className:u,style:c})=>{let y=I(),d=Bs[y],g=useId(),b=useRef(null),[k,R]=useState(false),[m,x]=useState([]),[S,D]=useState(null),T=!!p||!!S,h=typeof p=="string"?p:S??void 0,w=useCallback(F=>{let P=Array.from(F);if(D(null),a){let L=P.find(N=>N.size>a);if(L){D(`Soubor \u201E${L.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ro(a)}.`);return}}let A=P.map(L=>({file:L,id:`file-${++Ps}`})),H=o?[...m,...A]:A;x(H),t?.(H.map(L=>L.file));},[m,a,o,t]),v=useCallback(F=>{F.preventDefault(),R(false),!n&&F.dataTransfer.files.length>0&&w(F.dataTransfer.files);},[n,w]),C=useCallback(F=>{let P=m.filter(A=>A.id!==F);x(P),t?.(P.map(A=>A.file));},[m,t]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},B={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${T?d.borderError:k?d.borderDrag:d.border}`,borderRadius:"8px",backgroundColor:k?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},E={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...c},className:u,children:[s&&jsx("span",{style:z,children:s}),jsx("input",{ref:b,id:g,type:"file",accept:r,multiple:o,disabled:n,onChange:F=>{F.target.files&&F.target.files.length>0&&w(F.target.files),F.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:B,onClick:()=>!n&&b.current?.click(),onDragOver:F=>{F.preventDefault(),n||R(true);},onDragLeave:()=>R(false),onDrop:v,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"})]}):i==="primary"?jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&b.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:F=>{n||(F.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.length===0?"Nahr\xE1t soubor":m.length===1?m[0].file.name:`${m.length} soubor\u016F`})]}):jsxs("div",{onClick:()=>!n&&b.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${T?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:F=>{n||(F.currentTarget.style.borderColor=T?d.borderError:y==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:F=>{F.currentTarget.style.borderColor=T?d.borderError:d.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:m.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:m.length>0?d.text:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.length===0?"Vyberte soubor...":m.length===1?m[0].file.name:`${m.length} soubor\u016F`}),m.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(m[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:jsx(Folder,{size:16,color:d.textSecondary})})]}),f&&m.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:m.map(F=>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:F.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(F.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${F.file.name}`,onClick:P=>{P.stopPropagation(),C(F.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&C(F.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:d.removeColor})})]},F.id))}),h&&jsx("span",{style:{...E,color:d.borderError},children:h}),!h&&l&&jsx("span",{style:{...E,color:d.helperText},children:l})]})};en.displayName="FileUpload";var Hs={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)"}},Ls={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"}},Ns=({data:e,value:t,onChange:r,size:o="md",fullWidth:a=false,orientation:n="horizontal",disabled:s=false,className:l,style:p})=>{let i=I(),f=Hs[i],u=Ls[o],c=n==="vertical",y=e.map(x=>typeof x=="string"?{value:x,label:x}:x),d=y.findIndex(x=>x.value===t),g=useRef(null),b=useRef([]),[k,R]=useState({offset:0,size:0}),m=useCallback(()=>{let x=g.current,S=b.current[d];if(!x||!S||d<0)return;let D=x.getBoundingClientRect(),T=S.getBoundingClientRect();R(c?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[d,c]);return useEffect(()=>{m();},[m,t,e,o]),useEffect(()=>(window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[m]),jsxs("div",{ref:g,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:s?.5:1,cursor:s?"not-allowed":void 0,...p},children:[d>=0&&k.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:k.offset,height:k.size}:{top:u.padding,bottom:u.padding,left:k.offset,width:k.size}}}),y.map((x,S)=>{let D=x.value===t,T=s||x.disabled;return jsx("button",{ref:h=>{b.current[S]=h;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(x.value);},style:{position:"relative",zIndex:1,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:h=>{!T&&!D&&(h.currentTarget.style.color=f.textHover);},onMouseLeave:h=>{!T&&!D&&(h.currentTarget.style.color=f.text);},children:x.label??x.value},x.value)})]})};Ns.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)"}},Fo=180,Vs=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Eo=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:s})=>{let l=I(),p=Ys[l],f=useId(),u=useRef(null),c=useRef(null),[y,d]=useState(false),[g,b]=useState(false),[k,R]=useState("idle"),[m,x]=useState(e),[S,D]=useState(false),[T,h]=useState({top:0,left:0,openAbove:false});useEffect(()=>{S||x(e);},[e,S]);let w=useCallback(()=>{a||(d(true),b(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));}));},[a]),v=useCallback(()=>{d(false),R("closing");let N=setTimeout(()=>{b(false),R("idle");},Fo);return ()=>clearTimeout(N)},[]),C=useCallback(()=>{if(!u.current)return;let N=u.current.getBoundingClientRect(),Y=220,W=window.innerHeight-N.bottom-8,q=W<Y&&N.top>W;h({top:q?N.top-8:N.bottom+8,left:N.left,openAbove:q});},[]);useEffect(()=>{if(g)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[g,C]),useEffect(()=>{if(!y)return;let N=Y=>{let W=Y.target;!u.current?.contains(W)&&!c.current?.contains(W)&&v();};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[y,v]);let z=N=>{let Y=Us(N.target.value);x(Y),Eo(Y)&&t(Y);},B=()=>{D(false),Eo(m)?t(m):x(e);},E=N=>{t(N),x(N),v();},F=()=>{let N=T.openAbove,Y=N?"translateY(8px)":"translateY(-8px)",W=N?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${Fo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Fo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return k==="opening"||k==="idle"?{...q,opacity:0,transform:`${Y} scale(0.97)`}:k==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},P={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?p.backgroundDisabled:p.background,border:`1px solid ${S?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"},A={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Eo(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},H={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},L=g?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",...F()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((N,Y)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${N}`,onClick:()=>E(N),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:N,border:N===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)";}},`${N}-${Y}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:s,children:[o&&jsx("label",{htmlFor:f,style:H,children:o}),jsxs("div",{ref:u,style:P,children:[jsx("div",{style:A,onClick:()=>{a||(y?v():w());}}),jsx("input",{id:f,type:"text",value:m,onChange:z,onFocus:()=>D(true),onBlur:B,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||(y?v():w());},children:jsx(Eyedropper,{size:16,color:(qs(e)&&l==="light",p.placeholder)})})]}),L]})};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:s,className:l})=>{let p=I(),i=js[p],f=useId(),u=Js[o],[c,y]=useState(null),d=!a&&!!t,g=useCallback(x=>{d&&t(x+1);},[d,t]),b=useCallback(x=>{d&&y(x);},[d]),k=useCallback(()=>{y(null);},[]),R={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},m=Array.from({length:r},(x,S)=>{let D=c!==null?c+1:e,T=S<D,h=c!==null&&S<=c;return jsx("span",{role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":d?`Hodnocen\xED ${S+1} z ${r}`:void 0,onClick:()=>g(S),onMouseEnter:()=>b(S),onMouseLeave:k,onKeyDown:w=>{d&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(S));},style:{display:"inline-flex",cursor:d?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:h?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:u.starSize,weight:T?"fill":"regular",color:T?h?i.starHover:i.starFilled:i.starEmpty})},S)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:l,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsx("label",{htmlFor:f,style:R,children:n}),jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:k,children:m})]})};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:s,separatorAfter:l,separator:p="-",style:i,className:f})=>{let u=I(),c=si[u],y=useId(),d=useRef([]),[g,b]=useState(null),k=!!o,R=typeof o=="string"?o:void 0,m=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{n&&d.current[0]&&d.current[0].focus();},[n]);let x=useCallback(E=>{E>=0&&E<e&&d.current[E]?.focus();},[e]),S=useCallback(E=>{let F=E.join("").replace(/[^0-9]/g,"");r(F);},[r]),D=useCallback((E,F)=>{if(!/^[0-9]$/.test(F))return;let P=[...m];P[E]=F,S(P),E<e-1&&x(E+1);},[m,e,S,x]),T=useCallback((E,F)=>{switch(F.key){case "Backspace":if(F.preventDefault(),m[E]){let P=[...m];P[E]="",S(P);}else if(E>0){let P=[...m];P[E-1]="",S(P),x(E-1);}break;case "Delete":F.preventDefault();{let P=[...m];P[E]="",S(P);}break;case "ArrowLeft":F.preventDefault(),E>0&&x(E-1);break;case "ArrowRight":F.preventDefault(),E<e-1&&x(E+1);break}},[m,e,S,x]),h=useCallback((E,F)=>{let A=F.target.value.slice(-1);A&&/^[0-9]$/.test(A)&&D(E,A);},[D]),w=useCallback(E=>{E.preventDefault();let F=E.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!F)return;let P=[...m];for(let H=0;H<F.length;H++)P[H]=F[H];S(P);let A=Math.min(F.length,e-1);x(A);},[m,e,S,x]),v=useCallback(E=>{b(E),d.current[E]?.select();},[]),C=useCallback(()=>{b(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},B=E=>{let F=g===E,P=!!m[E];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:P?c.backgroundFilled:c.background,border:`1px solid ${k?c.borderError:F?c.borderFocus:P?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",...i},className:f,children:[s&&jsx("label",{htmlFor:`${y}-0`,style:z,children:s}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:w,children:Array.from({length:e},(E,F)=>jsxs(Bo.Fragment,{children:[l&&F>0&&F%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:P=>{d.current[F]=P;},id:`${y}-${F}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:m[F]||"",onChange:P=>h(F,P),onKeyDown:P=>T(F,P),onFocus:()=>v(F),onBlur:C,disabled:a,"aria-label":`\u010C\xEDslice ${F+1} z ${e}`,style:B(F)})]},F))}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:c.borderError,lineHeight:"normal"},children:R})]})};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)"}},cn="smSkeletonShimmer",ci=`@keyframes ${cn}{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:s})=>{let l=I(),p=li[l],i=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?`${cn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof i=="number"?`${i}px`:i,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",...s},children:[c,Array.from({length:o}).map((y,d)=>jsx("div",{style:{...u,width:d===o-1?"75%":u.width}},d))]}):jsxs(Fragment,{children:[c,jsx("div",{className:n,style:{...u,...s}})]})};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:s,striped:l=false,hoverable:p=true,className:i,style:f})=>{let u=I(),c=fi[u],y=R=>{if(!R.sortable||!a)return;let m=n===R.key&&s==="asc"?"desc":"asc";a(R.key,m);},d={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},g=R=>({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:R.sortable?"pointer":"default",userSelect:"none",width:R.width!=null?typeof R.width=="number"?`${R.width}px`:R.width:void 0}),b={padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal"};return jsxs("table",{className:i,style:d,children:[jsx("thead",{children:jsx("tr",{children:e.map(R=>jsx("th",{style:g(R),onClick:()=>y(R),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[R.header,R.sortable&&jsx(CaretUpDownIcon,{size:14,color:n===R.key?c.sortActive:c.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},R.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((R,m)=>jsx("tr",{children:e.map(x=>jsx("td",{style:b,children:jsx(nt,{variant:"text",width:"80%"})},x.key))},`skel-${m}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...b,textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:o})}):t.map((R,m)=>jsx("tr",{style:{backgroundColor:l&&m%2===1?c.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:x=>{p&&(x.currentTarget.style.backgroundColor=c.rowHover);},onMouseLeave:x=>{p&&(x.currentTarget.style.backgroundColor=l&&m%2===1?c.stripedBg:"transparent");},children:e.map(x=>jsx("td",{style:{...b,borderBottom:m===t.length-1?"none":b.borderBottom},children:x.render?x.render(R[x.key],R,m):R[x.key]},x.key))},m))})]})};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"}},un=({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:s,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:i,className:f})=>{let u=I(),c=bi[u],[y,d]=useState(new Set),[g,b]=useState(null),k=useMemo(()=>t.map(z=>String(z[n])),[t,n]),R=k.length>0&&k.every(z=>y.has(z)),m=k.some(z=>y.has(z))&&!R,x=useCallback(()=>{let z=R?new Set:new Set(k);d(z),o?.(Array.from(z));},[R,k,o]),S=useCallback(z=>{d(B=>{let E=new Set(B);return E.has(z)?E.delete(z):E.add(z),o?.(Array.from(E)),E});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background},T=z=>({padding:"12px 16px",textAlign:z.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:z.width!=null?typeof z.width=="number"?`${z.width}px`:z.width:void 0,minWidth:z.minWidth!=null?`${z.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),h=z=>({padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal",textAlign:z.align||"left"}),w={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}`,...i},children:jsxs("table",{style:D,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:w,children:jsx(un,{checked:R,indeterminate:m,onChange:x,t:c})}),e.map(z=>jsx("th",{style:T(z),children:z.header},z.key))]})}),jsx("tbody",{children:a?Array.from({length:5}).map((z,B)=>jsxs("tr",{children:[r&&jsx("td",{style:v,children:jsx(nt,{variant:"rect",width:16,height:16})}),e.map(E=>jsx("td",{style:h(E),children:jsx(nt,{variant:"text",width:"80%"})},E.key))]},`skel-${B}`)):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((z,B)=>{let E=String(z[n]),F=y.has(E),P=g===E,A=B===t.length-1,H="transparent";return F?H=c.selectedRowBg:P&&(H=c.rowHover),jsxs("tr",{style:{backgroundColor:H,cursor:s?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>b(E),onMouseLeave:()=>b(null),onClick:()=>s?.(z),children:[r&&jsx("td",{style:{...v,borderBottom:A?"none":v.borderBottom},children:jsx(un,{checked:F,onChange:()=>S(E),t:c})}),e.map(L=>jsx("td",{style:{...h(L),borderBottom:A?"none":h(L).borderBottom},children:L.render?L.render(z[L.key],z,B):z[L.key]},L.key))]},E)})})]})})};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:s=true,padding:l="md",className:p,style:i})=>{let f=I(),u=mi[f],c=hi[l],y={backgroundColor:u.background,border:s?`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,...i},d=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:y,onMouseEnter:g=>{n&&(g.currentTarget.style.borderColor=u.borderHover,g.currentTarget.style.transform="translateY(-2px)",g.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:g=>{n&&(g.currentTarget.style.borderColor=s?u.border:"transparent",g.currentTarget.style.transform="translateY(0)",g.currentTarget.style.boxShadow="none");},children:[d,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 xn={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:s})=>{let l=I(),p=xn[l],[i,f]=useState(r),u=a?!!n:i,c=useRef(null),[y,d]=useState(0);useEffect(()=>{c.current&&d(c.current.scrollHeight);},[t,u]);let g=useCallback(()=>{o||(a&&s?s():f(b=>!b));},[o,a,s]);return jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:g,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:b=>{o||(b.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:b=>{b.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?`${y}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=I(),n=xn[a],s=Bo.Children.toArray(e).filter(f=>Bo.isValidElement(f)),[l,p]=useState(()=>{let f=new Set;return s.forEach((u,c)=>{u.props.defaultOpen&&f.add(c);}),f}),i=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:s.map((f,u)=>Bo.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>i(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:s,style:l})=>{let p=I(),i=Ti[p],f=Fi[n],u=Bo.Children.toArray(r),c=u.filter(g=>Bo.isValidElement(g)&&g.type?.displayName==="Tab"),d=u.filter(g=>Bo.isValidElement(g)&&g.type?.displayName==="TabPanel").find(g=>g.props.value===e);return jsxs("div",{className:s,style:l,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${i.border}`:"none"},children:c.map(g=>{let b=g.props.value===e,k=g.props.disabled,R=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:b?500:400,color:k?i.textDisabled:b?i.text:i.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${b?i.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:k?"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:b?500:400,color:k?i.textDisabled:b?i.pillText:i.textInactive,backgroundColor:b?i.pillBg:i.pillInactiveBg,border:"none",borderRadius:"8px",cursor:k?"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:k,style:R,onClick:()=>{k||t(g.props.value);},onMouseEnter:m=>{!k&&!b&&(m.currentTarget.style.backgroundColor=i.hoverBg);},onMouseLeave:m=>{k||(m.currentTarget.style.backgroundColor=o==="pills"&&b?i.pillBg:"transparent");},children:[g.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:g.props.icon}),g.props.label]},g.props.value)})}),d&&jsx("div",{style:{paddingTop:"16px"},children:d.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 s=I(),l=Pi[s],[p,i]=useState(false),[f,u]=useState({top:0,left:0}),c=useRef(null),y=useRef(null),d=useRef(void 0),g=6,b=8,k=useCallback(()=>{let D=c.current,T=y.current;if(!D||!T)return;let h=D.getBoundingClientRect(),w=T.getBoundingClientRect(),v=0,C=0;switch(r){case "top":v=h.top-w.height-b,C=h.left+h.width/2-w.width/2;break;case "bottom":v=h.bottom+b,C=h.left+h.width/2-w.width/2;break;case "left":v=h.top+h.height/2-w.height/2,C=h.left-w.width-b;break;case "right":v=h.top+h.height/2-w.height/2,C=h.right+b;break}u({top:v,left:C});},[r]);useEffect(()=>{p&&requestAnimationFrame(k);},[p,k]);let R=useCallback(()=>{d.current=setTimeout(()=>i(true),o);},[o]),m=useCallback(()=>{d.current&&clearTimeout(d.current),i(false);},[]);useEffect(()=>()=>{d.current&&clearTimeout(d.current);},[]);let x=(()=>{let D={position:"absolute",width:0,height:0,border:`${g}px solid transparent`};switch(r){case "top":return {...D,bottom:-g,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-g,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-g,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-g,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),S=p?createPortal(jsxs("div",{ref:y,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:x})]}),document.body):null;return jsxs(Fragment,{children:[Bo.cloneElement(t,{ref:c,onMouseEnter:D=>{R(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{m(),t.props.onMouseLeave?.(D);}}),S]})};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"}},$o=180,qt=8,Wi=({content:e,children:t,position:r="bottom",trigger:o="click",className:a,style:n})=>{let s=I(),l=$i[s],[p,i]=useState(false),[f,u]=useState(false),[c,y]=useState("idle"),[d,g]=useState({top:0,left:0}),b=useRef(null),k=useRef(null),R=useRef(void 0),m=useCallback(()=>{i(true),u(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[]),x=useCallback(()=>{i(false),y("closing");let C=setTimeout(()=>{u(false),y("idle");},$o);return ()=>clearTimeout(C)},[]),S=useCallback(()=>{let C=b.current,z=k.current;if(!C||!z)return;let B=C.getBoundingClientRect(),E=z.getBoundingClientRect(),F=0,P=0;switch(r){case "top":F=B.top-E.height-qt,P=B.left+B.width/2-E.width/2;break;case "bottom":F=B.bottom+qt,P=B.left+B.width/2-E.width/2;break;case "left":F=B.top+B.height/2-E.height/2,P=B.left-E.width-qt;break;case "right":F=B.top+B.height/2-E.height/2,P=B.right+qt;break}g({top:F,left:P});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(S),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[f,S]),useEffect(()=>{if(!p)return;let C=z=>{let B=z.target;!b.current?.contains(B)&&!k.current?.contains(B)&&x();};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[p,x]),useEffect(()=>{if(!p)return;let C=z=>{z.key==="Escape"&&x();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[p,x]);let D=()=>{let C={transition:`opacity ${$o}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${$o}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},B=r==="top"||r==="bottom"?"Y":"X";return c==="opening"||c==="idle"?{...C,opacity:0,transform:`translate${B}(${z[r]}) scale(0.97)`}:c==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`translate${B}(${z[r]}) scale(0.98)`,pointerEvents:"none"}},T=useCallback(()=>{o==="click"&&(p?x():m());},[o,p,x,m]),h=useCallback(()=>{o==="hover"&&(R.current&&clearTimeout(R.current),p||m());},[o,p,m]),w=useCallback(()=>{o==="hover"&&(R.current=setTimeout(()=>{x();},150));},[o,x]);useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]);let v=f?createPortal(jsx("div",{ref:k,className:a,onMouseEnter:()=>{o==="hover"&&R.current&&clearTimeout(R.current);},onMouseLeave:w,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(),...n},children:e}),document.body):null;return jsxs(Fragment,{children:[Bo.cloneElement(t,{ref:b,onClick:C=>{T(),t.props.onClick?.(C);},onMouseEnter:C=>{h(),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{w(),t.props.onMouseLeave?.(C);}}),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 s=I(),l=Vi[s];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:s,style:l})=>{let p=I(),i=Ki[p],f=n==="up"?i.trendUp:n==="down"?i.trendDown:i.trendNeutral,u=c=>`${c>0?"+":""}${c.toFixed(1)} %`;return jsxs("div",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:i.background,border:`1px solid ${i.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:i.iconColor,flexShrink:0,color:i.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:i.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:i.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:i.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 s=ji(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,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(s*.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 kn={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)"}},Zo=({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=kn[I()];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:s})=>{let l=kn[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",...n},className:s,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(Zo,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(Zo,{onClick:r,title:"Upravit",color:l.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(Zo,{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"],Yo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Uo=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=Uo(r),a=[],n=new Date(o);for(let s=0;s<42;s++)a.push(new Date(n)),n.setDate(n.getDate()+1);return a},sl=e=>{let t=Uo(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:s,className:l})=>{let p=I(),i=rl[p],f=useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,c]=useState(()=>e?e.getMonth():f.getMonth()),[y,d]=useState(()=>e?e.getFullYear():f.getFullYear()),[g,b]=useState(()=>Uo(e||f)),[k,R]=useState(null),m=useMemo(()=>r==="week"?sl(g):al(y,u),[r,y,u,g]),x=useCallback(()=>{r==="week"?b(v=>{let C=new Date(v);return C.setDate(C.getDate()-7),C}):c(v=>v===0?(d(C=>C-1),11):v-1);},[r]),S=useCallback(()=>{r==="week"?b(v=>{let C=new Date(v);return C.setDate(C.getDate()+7),C}):c(v=>v===11?(d(C=>C+1),0):v+1);},[r]),D=v=>o.filter(C=>Yo(C.date,v)),T=r==="week"?(()=>{let v=new Date(g);return v.setDate(v.getDate()+6),g.getMonth()===v.getMonth()?`${g.getDate()}. \u2013 ${v.getDate()}. ${Kt[v.getMonth()]} ${v.getFullYear()}`:`${g.getDate()}. ${Kt[g.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${Kt[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${Kt[u]} ${y}`,h={backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,overflow:"hidden",userSelect:"none",...s},w={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:i.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:l,style:h,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`},children:[jsx("button",{style:w,onClick:x,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.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:w,onClick:S,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.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:i.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:m.map((v,C)=>{let z=Yo(v,f),B=e?Yo(v,e):false,E=r==="month"&&v.getMonth()!==u,F=il(v,a,n),P=v.toISOString(),A=k===P,H=D(v),L="transparent",N=E?i.outsideText:i.text,Y="2px solid transparent";return B?(L=i.selectedBg,N=i.selectedText):z?(L=i.todayBg,Y=`2px solid ${i.todayBorder}`):A&&!F&&(L=i.hover),F&&(N=i.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:Y,background:L,color:N,fontSize:"13px",fontWeight:z?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:F?"default":"pointer",opacity:F?.4:1,transition:"background-color 0.12s ease"},disabled:F,onClick:()=>{!F&&t&&t(v);},onMouseEnter:()=>!F&&R(P),onMouseLeave:()=>R(null),children:v.getDate()}),H.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:H.slice(0,3).map((W,q)=>jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||i.eventDot}},q))})]},C)})})]})};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=I(),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((s,l)=>{let p=l===e.length-1,i=s.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}}),s.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:i,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${i}`,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:s.title}),s.date&&jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:s.description})]})]},l)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...r},children:e.map((s,l)=>{let p=l===e.length-1,i=s.color||n.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:s.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[s.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:i,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${i}`,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:s.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:s.title}),s.date&&jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:s.date})]}),s.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:s.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=I(),s=pl[n],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},i=y=>l<=1?y:Math.floor(y/l),f=y=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${s.border}`,backgroundColor:r&&i(y)%2===1?s.stripedBg:s.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:s.textMuted,flexShrink:0,letterSpacing:"0.01em"},c={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:a,style:p,children:e.map((y,d)=>jsxs("div",{style:f(d),children:[jsx("span",{style:u,children:y.label}),jsx("span",{style:c,children:y.value})]},d))})};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"}},Tn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:s})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),i=o===e.id,[f,u]=useState(false),c="transparent";return i?c=s.selectedBg:f&&(c=s.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:c,borderLeft:i?`2px solid ${s.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:y=>{y.stopPropagation(),l&&a(e.id);},children:l&&jsx(CaretRightIcon,{size:14,color:p?s.iconExpanded:s.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:i?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:i?500:400,color:i?s.selectedText:s.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:s.line}}),e.children.map(y=>jsx(Tn,{node:y,depth:t+1,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:s},y.id))]})]})},ml=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:a,className:n})=>{let s=I(),l=xl[s],[p,i]=useState(()=>new Set(o)),f=useCallback(c=>{i(y=>{let d=new Set(y);return d.has(c)?d.delete(c):d.add(c),d});},[]),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(Tn,{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"}},_o=false,kl=()=>{if(_o||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){_o=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
13
+ @keyframes sm-statusbadge-pulse {
14
+ 0% { transform: scale(1); opacity: 1; }
15
+ 50% { transform: scale(1.8); opacity: 0; }
16
+ 100% { transform: scale(1.8); opacity: 0; }
17
+ }
18
+ `,document.head.appendChild(t),_o=true;},Cl=({status:e,label:t,size:r="md",pulse:o=false,color:a,style:n,className:s})=>{let l=I(),p=yl[l],i=Sl[r],f=a||vl[e]||"#888888";return o&&kl(),jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:i.gap,...n},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${i.dot}px`,height:`${i.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:i.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:s=true,closeOnEscape:l=true,showClose:p=true,className:i,style:f})=>{let u=I(),c=Tl[u],y=Fl[n],[d,g]=useState(false),[b,k]=useState("idle"),R=useRef(null),m=useRef(null);useEffect(()=>{if(e)m.current=document.activeElement,g(true),k("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>k("open"));}),document.body.style.overflow="hidden";else if(d){k("closing");let T=setTimeout(()=>{g(false),k("idle"),document.body.style.overflow="",m.current instanceof HTMLElement&&m.current.focus();},jt);return ()=>clearTimeout(T)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!d||!l)return;let T=h=>{h.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,h='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',w=v=>{if(v.key!=="Tab")return;let C=T.querySelectorAll(h);if(C.length===0){v.preventDefault();return}let z=C[0],B=C[C.length-1];v.shiftKey?document.activeElement===z&&(v.preventDefault(),B.focus()):document.activeElement===B&&(v.preventDefault(),z.focus());};return document.addEventListener("keydown",w),T.focus(),()=>document.removeEventListener("keydown",w)},[d]);let x=()=>{let T={transition:`opacity ${jt}ms ease`};return b==="opening"||b==="idle"?{...T,opacity:0}:b==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},S=()=>{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 b==="opening"||b==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:b==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!d)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",...x()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:s?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:y.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":y.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",...S(),...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)"}},Qo=220,Bl=({open:e,onClose:t,position:r="right",title:o,children:a,footer:n,width:s=400,showClose:l=true,closeOnOverlay:p=true,className:i,style:f})=>{let u=I(),c=Il[u],[y,d]=useState(false),[g,b]=useState("idle"),k=useRef(null),R=typeof s=="number"?`${s}px`:s;useEffect(()=>{if(e)d(true),b("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));}),document.body.style.overflow="hidden";else if(y){b("closing");let S=setTimeout(()=>{d(false),b("idle"),document.body.style.overflow="";},Qo);return ()=>clearTimeout(S)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!y)return;let S=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[y,t]);let m=S=>{let D=r==="right"?"100%":"-100%";return S==="opening"||S==="idle"?D:S==="open"?"0%":D},x=()=>g==="open"?1:0;return y?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:x(),transition:`opacity ${Qo}ms ease`,...g==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-label":o,className:i,style:{position:"absolute",top:0,bottom:0,[r]:0,width:R,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(${m(g)})`,transition:`transform ${Qo}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:S=>{S.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:S=>{S.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)"}},or=180,Ll=({open:e,onClose:t,children:r,side:o="bottom",title:a,showClose:n=true,style:s,className:l})=>{let p=I(),i=Hl[p],[f,u]=useState(false),[c,y]=useState("idle"),d=useRef(null);useEffect(()=>{if(e)u(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));}),document.body.style.overflow="hidden";else if(f){y("closing");let S=setTimeout(()=>{u(false),y("idle"),document.body.style.overflow="";},or);return ()=>clearTimeout(S)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let S=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[f,t]);let k=S=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return S==="opening"||S==="idle"?D[o]:S==="open"?"translate(0, 0)":D[o]},R=()=>c==="open"?1:0,m={};o==="bottom"?(m.bottom=0,m.left=0,m.right=0,m.maxHeight="85vh",m.borderTopLeftRadius="16px",m.borderTopRightRadius="16px"):o==="top"?(m.top=0,m.left=0,m.right=0,m.maxHeight="85vh",m.borderBottomLeftRadius="16px",m.borderBottomRightRadius="16px"):o==="right"?(m.top=0,m.bottom=0,m.right=0,m.width="400px",m.maxWidth="100vw"):o==="left"&&(m.top=0,m.bottom=0,m.left=0,m.width="400px",m.maxWidth="100vw");let x={};return o==="bottom"?x.borderTop=`1px solid ${i.panelBorder}`:o==="top"?x.borderBottom=`1px solid ${i.panelBorder}`:o==="right"?x.borderLeft=`1px solid ${i.panelBorder}`:o==="left"&&(x.borderRight=`1px solid ${i.panelBorder}`),f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:R(),transition:`opacity ${or}ms ease`,...c==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":a,className:l,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:k(c),transition:`transform ${or}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...m,...x,...s},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:i.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 ${i.divider}`},children:[a&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.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:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:i.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.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=I(),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((s,l)=>{let p=l===e.length-1;return jsxs(Bo.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:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]}):jsxs("a",{href:s.href??"#",onClick:s.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:i=>{i.currentTarget.style.color=n.linkHover;},onMouseLeave:i=>{i.currentTarget.style.color=n.text;},children:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.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=[],s=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&n.push(1),s>2&&(o&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let p=s;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:s="md",className:l,style:p})=>{let i=I(),f=Yl[i],u=Vl[s];if(t<=0)return null;let c=Ul(e,t,o,a,n),y={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:{...y,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})}),c.map((d,g)=>{if(d==="ellipsis-start"||d==="ellipsis-end")return jsx("span",{style:{...y,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},d);let b=d===e;return jsx("button",{type:"button","aria-current":b?"page":void 0,"aria-label":`Str\xE1nka ${d}`,onClick:()=>r(d),style:{...y,color:b?f.activeText:f.text,backgroundColor:b?f.activeBg:"transparent",fontWeight:b?600:500},onMouseEnter:k=>{b||(k.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:k=>{b||(k.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:{...y,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})})]})};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:s})=>{let l=I(),p=Xl[l],[i,f]=useState(null),u=r==="horizontal",c=32,y=d=>!o||!a?false:o==="completed"?d<=t:true;return jsx("div",{className:n,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...s},children:e.map((d,g)=>{let b=g<t,k=g===t,R=g>t,m=g===e.length-1,x=y(g),S=i===g&&x,D=b?p.completedBg:S?p.hoverBg:p.activeBg,T=b?p.completedBg:k||S?p.activeBorder:p.futureBorder,h=b?p.completedText:k||S?p.activeText:p.futureText,w=S?p.activeText:R?p.labelFuture:p.labelText,v=R?p.descFuture:p.descText,C=b?p.lineCompleted:p.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:m?"0 0 auto":"1 1 0",minWidth:0,cursor:x?"pointer":"default"},onClick:()=>x&&a?.(g),onMouseEnter:()=>f(g),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:b?jsx(CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:h,lineHeight:1,transition:"color 0.2s ease"},children:g+1})}),!m&&jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:C,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:C,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||m?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:k||S?600:500,color:w,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})]})]},g)})})};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"}},lr=180,ec=({trigger:e,items:t,position:r="bottom-left",className:o,style:a})=>{let n=I(),s=Ql[n],l=useRef(null),p=useRef(null),[i,f]=useState(false),[u,c]=useState(false),[y,d]=useState("idle"),[g,b]=useState({top:0,left:0,openAbove:false}),[k,R]=useState(-1),m=useCallback(()=>{f(true),c(true),d("opening"),R(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>d("open"));});},[]),x=useCallback(()=>{f(false),d("closing");let h=setTimeout(()=>{c(false),d("idle");},lr);return ()=>clearTimeout(h)},[]),S=useCallback(()=>{if(!l.current)return;let h=l.current.getBoundingClientRect(),w=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,C=window.innerHeight-h.bottom-6,z=h.top-6,B=C<w&&z>C,E;r==="bottom-right"?(E=h.right-v,E<4&&(E=4)):(E=h.left,E+v>window.innerWidth-4&&(E=window.innerWidth-v-4)),b({top:B?h.top-6:h.bottom+6,left:E,openAbove:B});},[r]);useEffect(()=>{if(u)return S(),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[u,S]),useEffect(()=>{if(!i)return;let h=w=>{let v=w.target,C=l.current?.contains(v),z=p.current?.contains(v);!C&&!z&&x();};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[i,x]),useEffect(()=>{if(!i)return;let h=t.map((v,C)=>({item:v,idx:C})).filter(({item:v})=>!v.divider&&!v.disabled),w=v=>{switch(v.key){case "Escape":v.preventDefault(),x();break;case "ArrowDown":{v.preventDefault();let C=h.findIndex(({idx:B})=>B===k),z=C<h.length-1?C+1:0;R(h[z]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let C=h.findIndex(({idx:B})=>B===k),z=C>0?C-1:h.length-1;R(h[z]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),k>=0){let C=t[k];C&&!C.divider&&!C.disabled&&(C.onClick?.(),x());}break}};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[i,k,t,x]);let D=()=>{let h=g.openAbove,w=h?"translateY(8px)":"translateY(-8px)",v=h?"translateY(6px)":"translateY(-6px)",C={transition:`opacity ${lr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${lr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return y==="opening"||y==="idle"?{...C,opacity:0,transform:`${w} scale(0.97)`}:y==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?createPortal(jsx("div",{ref:p,role:"menu",style:{position:"fixed",...g.openAbove?{bottom:window.innerHeight-g.top,left:g.left}:{top:g.top,left:g.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:g.openAbove?"bottom center":"top center",...D()},children:t.map((h,w)=>{if(h.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},w);let v=h.danger,C=h.disabled,z=w===k,B=C?s.textDisabled:v?s.dangerText:s.text,E=v?s.dangerHover:s.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":C,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:B,backgroundColor:z?E:"transparent",cursor:C?"not-allowed":"pointer",opacity:C?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{C||(h.onClick?.(),x());},onMouseEnter:()=>{C||R(w);},onMouseLeave:()=>R(-1),children:[h.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:h.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label})]},w)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:l,onClick:()=>{i?x():m();},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:s,onMouseEnter:l,onMouseLeave:p,target:i,rel:f,...u})=>{let c=I(),y=oc[c],[d,g]=useState(false),b=e==="danger"?y.danger:y.default,k={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:d?y.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:b,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},R=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:k,className:s,target:i,rel:f??(i==="_blank"?"noopener noreferrer":void 0),onMouseEnter:m=>{g(true),l?.(m);},onMouseLeave:m=>{g(false),p?.(m);},...u,children:r==="right"?jsxs(Fragment,{children:[a,R]}):jsxs(Fragment,{children:[R,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:s,style:l})=>{let p=I(),i=sc[p],[f,u]=useState(false),[c,y]=useState("idle"),[d,g]=useState(-1),b=useRef(null),k=useRef(null);useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let w=document.createElement("style");w.id=h,w.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(w);},[]);let R=a;useEffect(()=>{if(e)u(true),y("opening"),g(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});else if(f){y("closing");let h=setTimeout(()=>{u(false),y("idle");},Qt);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{f&&c==="open"&&b.current?.focus();},[f,c]),useEffect(()=>{g(-1);},[a]),useEffect(()=>{if(d<0||!k.current)return;let h=k.current.querySelector(`[data-spotlight-index="${d}"]`);h&&h.scrollIntoView({block:"nearest"});},[d]);let m=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),g(w=>{let v=w+1;return v>=R.length?0:v});break}case "ArrowUp":{h.preventDefault(),g(w=>{let v=w-1;return v<0?R.length-1:v});break}case "Enter":{h.preventDefault(),d>=0&&d<R.length&&(R[d].onSelect(),t());break}}},[R,d,t]),x=[],S=new Map;R.forEach((h,w)=>{let v=S.get(h.category);v||(v=[],S.set(h.category,v),x.push({category:h.category,items:v})),v.push({...h,flatIndex:w});});let D=()=>{let h={transition:`opacity ${Qt}ms ease`};return c==="opening"||c==="idle"?{...h,opacity:0}:c==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},T=()=>{let h={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"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,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:m,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.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 ${i.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsx("input",{ref:b,type:"text",value:r,onChange:h=>o(h.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:i.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:k,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:x.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(h=>jsxs("div",{role:"group","aria-label":h.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:i.categoryText,userSelect:"none"},children:h.category}),h.items.map(w=>{let v=w.flatIndex===d;return jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":w.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{w.onSelect(),t();},onMouseEnter:()=>g(w.flatIndex),onMouseLeave:()=>g(-1),children:[w.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:w.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.label}),w.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:w.description})]})]},w.id)})]},h.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 s=I(),l=pc[s],[p,i]=useState(false),[f,u]=useState("idle"),[c,y]=useState(""),[d,g]=useState(-1),b=useRef(null),k=useRef(null);useEffect(()=>{let h="sm-commandmenu-scrollbar-hide";if(document.getElementById(h))return;let w=document.createElement("style");w.id=h,w.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(w);},[]);let R=r.map(h=>({...h,items:h.items.filter(w=>w.label.toLowerCase().includes(c.toLowerCase())||w.description?.toLowerCase().includes(c.toLowerCase()))})).filter(h=>h.items.length>0),m=R.flatMap(h=>h.items);useEffect(()=>{if(e)y(""),g(-1),i(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let h=setTimeout(()=>{i(false),u("idle");},to);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{p&&f==="open"&&b.current?.focus();},[p,f]),useEffect(()=>{g(-1);},[c]),useEffect(()=>{if(d<0||!k.current)return;let h=k.current.querySelector(`[data-cmd-index="${d}"]`);h&&h.scrollIntoView({block:"nearest"});},[d]);let x=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),g(w=>{let v=w+1;return v>=m.length?0:v});break}case "ArrowUp":{h.preventDefault(),g(w=>{let v=w-1;return v<0?m.length-1:v});break}case "Enter":{h.preventDefault(),d>=0&&d<m.length&&(m[d].onSelect(),t());break}}},[m,d,t]),S=()=>{let h={transition:`opacity ${to}ms ease`};return f==="opening"||f==="idle"?{...h,opacity:0}:f==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},D=()=>{let h={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"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,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",...S()},onKeyDown:x,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:b,type:"text",value:c,onChange:h=>y(h.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:k,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(h=>jsxs("div",{role:"group","aria-label":h.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:h.label}),h.items.map(w=>{let v=T++,C=v===d;return jsxs("div",{role:"option","aria-selected":C,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:C?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{w.onSelect(),t();},onMouseEnter:()=>g(v),onMouseLeave:()=>g(-1),children:[w.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:C?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:w.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:w.label}),w.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:w.description})]}),w.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:w.shortcut})]},w.id)})]},h.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:s})=>{let l=I(),p=uc[l],i=t?a:o;return jsx("aside",{className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:`${i}px`,minWidth:`${i}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:s,children:l,collapsed:p=false,disabled:i=false,style:f,className:u})=>{let c=I(),y=yc[c],d=Bo.Children.count(l)>0,g=a!==void 0,[b,k]=useState(o),R=g?a:b,[m,x]=useState(false),S=useRef(null),[D,T]=useState(0);useEffect(()=>{S.current&&T(S.current.scrollHeight);},[l,R]);let h=useCallback(()=>{g?n?.(!a):k(B=>{let E=!B;return n?.(E),E});},[g,a,n]),w=useCallback(()=>{i||(d&&h(),s?.());},[i,d,h,s]),v=i?`${y.text}66`:r?y.textActive:m?y.textHover:y.text,C=i?`${y.icon}66`:r?y.iconActive:m?y.iconHover:y.icon,z=r?y.activeBg:m&&!i?y.hoverBg:"transparent";return p?jsx("button",{type:"button",onClick:w,disabled:i,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:z,color:C,cursor:i?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>x(true),onMouseLeave:()=>x(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:w,disabled:i,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:v,cursor:i?"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:()=>x(true),onMouseLeave:()=>x(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:C,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),d&&jsx(CaretDownIcon,{size:14,color:m?y.chevronHover:y.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:R?"rotate(0deg)":"rotate(-90deg)"}})]}),d&&jsx("div",{ref:S,style:{overflow:"hidden",maxHeight:R?`${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:s})=>{let l=I(),p=Sc[l];return jsxs("header",{className:s,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={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)"}},Dc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},On=({variant:e="info",title:t,content:r,icon:o,onClose:a,role:n="alert",style:s,className:l})=>{let{border:p,background:i}=Ec[e],f=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:i,border:`2px solid ${p}`,borderRadius:"8px",boxSizing:"border-box",...s},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})]})]}),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:"#ffffff",opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var Yn=3,Pc=.06,Vn=12,ro=320,Un=createContext(null),Mc=0,Ac=()=>`sm-toast-${++Mc}-${Date.now()}`,S0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:a=16,maxToasts:n=5,duration:s=4e3})=>{let[l,p]=useState([]),i=useCallback(c=>{p(y=>y.map(d=>d.id===c?{...d,lifecycle:"leaving"}:d)),setTimeout(()=>{p(y=>y.filter(d=>d.id!==c));},ro+100);},[]),f=useCallback(c=>{let y=Ac(),d=c.duration??s,g={id:y,variant:c.variant??"info",title:c.title,content:c.content,icon:c.icon,duration:d,lifecycle:"entering",height:0};return p(b=>{let k=[...b,g];return k.length>n?k.slice(k.length-n):k}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(b=>b.map(k=>k.id===y?{...k,lifecycle:"visible"}:k));});}),d>0&&setTimeout(()=>i(y),d),y},[n,i,s]),u=useCallback((c,y)=>{p(d=>d.map(g=>g.id===c&&g.height!==y?{...g,height:y}:g));},[]);return jsxs(Un.Provider,{value:{toast:f,dismiss:i},children:[e,l.length>0&&jsx(Lc,{toasts:l,position:t,toastWidth:r,gap:o,offset:a,onDismiss:i,onHeightMeasured:u})]})},Hc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:a,isBottom:n,appeared:s,toastWidth:l,onDismiss:p,onHeightMeasured:i})=>{let f=t.lifecycle==="leaving",u=!s||f,c=a?1:Math.max(.7,1-r*Pc),y=a?0:r*Vn,d=n?-y:y,b=u?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${c}) translateY(${d}px)`,k=u?0:a?1:Math.max(.4,1-r*.18),R=!a&&r>=Yn,m=o-r,x=useCallback(S=>{S&&t.height===0&&i(t.id,S.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:x,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:b,opacity:R?0:k,zIndex:m,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(On,{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:s})=>{let[l,p]=useState(false),[i,f]=useState(new Set),u=t.startsWith("bottom"),c=t.endsWith("right"),y=t.endsWith("center");useEffect(()=>{f(x=>{let S=new Set(x);return e.forEach(D=>{D.lifecycle==="visible"&&S.add(D.id);}),[...S].forEach(D=>{e.find(T=>T.id===D)||S.delete(D);}),S});},[e]);let b=(e[e.length-1]?.height||80)+Math.min(e.length-1,Yn-1)*Vn,k=e.reduce((x,S)=>x+(S.height||80),0)+Math.max(0,e.length-1)*o,R=l?k:b,m=y?{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:R,...u?{bottom:a}:{top:a},...m,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((x,S)=>{let D=e.length-1-S,T=i.has(x.id),h=x.lifecycle==="leaving",w=!T||h,v;if(l&&!w){let z=e.slice(S+1).reduce((E,F)=>E+(F.height||80)+o,0);v=`translateY(${u?-z:z}px)`;}return jsx(Hc,{item:x,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:n,onHeightMeasured:s,expandedTransformOverride:v},x.id)})})},k0=()=>{let e=useContext(Un);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"}},D0=({variant:e="info",title:t,children:r,icon:o,closable:a=false,onClose:n,className:s,style:l})=>{let p=I(),i=Uc[p],f=qc[e],[u,c]=useState(true);if(!u)return null;let y=p==="light",d=y?f.borderLight:f.border,g=y?f.backgroundLight:f.background,b=y?f.iconColorLight:f.iconColor,R=o??{info:jsx(Info,{size:24,color:b}),success:jsx(CheckCircle,{size:24,color:b}),warning:jsx(Warning,{size:24,color:b}),error:jsx(XCircle,{size:24,color:b})}[e],m=()=>{c(false),n?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:g,borderLeft:`4px solid ${d}`,borderRadius:"4px",boxSizing:"border-box",...l},className:s,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:i.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:i.descriptionText},children:r})]}),a&&jsx("button",{type:"button",onClick:m,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:i.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:s,style:l,className:p})=>{let i=I(),f=Qc[i],u=ed[e],[c,y]=useState(true);if(!c)return null;let d=i==="light",g=d?u.bgLight:u.bg,b=d?u.accentLight:u.accent,R=n??{info:jsx(Info,{size:20,color:b}),success:jsx(CheckCircle,{size:20,color:b}),warning:jsx(Warning,{size:20,color:b}),error:jsx(XCircle,{size:20,color:b})}[e],m=()=>{y(false),a?.();};return jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:g,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})]}),s&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),o&&jsx("button",{type:"button",onClick:m,"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 Kn={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"}},_n="sm-ui-progress-stripes",rd=()=>{if(typeof document>"u"||document.getElementById(_n))return;let e=document.createElement("style");e.id=_n,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},$0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:a,striped:n=false,animated:s=false,className:l,style:p})=>{let i=I(),f=Kn[i],u=od[t],c=Math.max(0,Math.min(100,e));n&&s&&rd();let y=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",...s?{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",...y}})})]})},W0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:a=false,label:n,className:s,style:l})=>{let p=I(),i=Kn[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,c=2*Math.PI*u,y=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:s,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:i.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:y,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:i.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:i.label,userSelect:"none"},children:n})]})};var sd={sm:16,md:24,lg:40},U0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:a})=>{let[n,s]=useState(0),l=useRef(void 0),p=useRef(void 0);useEffect(()=>{let u=c=>{p.current===void 0&&(p.current=c),s((c-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let i=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:i,height:i,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:s="Zru\u0161it",variant:l="default",loading:p=false,style:i,className:f})=>{let u=I(),c=ld[u],[y,d]=useState(false),[g,b]=useState(false),k=l==="danger",R=k?g?c.dangerHover:c.dangerBg:g?c.confirmHover:c.confirmBg,m=k?c.dangerText:c.confirmText;return jsx(jo,{open:e,onClose:r,title:o,size:"sm",className:f,style:i,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:y?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:s}),jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>b(true),onMouseLeave:()=>b(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:m,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:s,style:l,className:p})=>{let i=I(),f=xd[i],u=md[r],[c,y]=useState(false),[d,g]=useState(false),b=useRef(null),k=useCallback(async()=>{await hd(e)&&(y(true),s?.(),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{y(false),b.current=null;},2e3));},[e,s]),R=c?f.successColor:d?f.iconHover:f.iconColor,m=c?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(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":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(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(m,{size:u.iconSize,color:R})}):jsxs("button",{type:"button","aria-label":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(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:c?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsx(m,{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"}},db=({orientation:e="horizontal",label:t,className:r,style:o})=>{let a=I(),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"},ub=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:a=false,fullWidth:n=false,children:s,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:s});var Td={sm:640,md:768,lg:1024,xl:1280},xb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:a,style:n})=>{let s=typeof e=="number"?e:Td[e],l=typeof t=="number"?`${t}px`:t;return jsx("div",{className:a,style:{maxWidth:`${s}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)"}},ea="smDragListPulse",Pd=`@keyframes ${ea}{0%,100%{opacity:1}50%{opacity:0.5}}`;function mr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=mr(r.children,t);if(o)return o}}return null}function br(e,t,r){let o=mr(e,t);if(!o||!o.children)return false;for(let a of o.children)if(a.id===r||br([a],a.id,r))return true;return false}function ta(e,t){let r=null;return [e.reduce((a,n)=>{if(n.id===t)return r=n,a;if(n.children){let[s,l]=ta(n.children,t);l&&(r=l),a.push({...n,children:s.length>0?s:void 0});}else a.push(n);return a},[]),r]}function xr(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:xr(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:xr(n.children,t,r,o)}):a.push(n);return a}function oa(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:oa(r.children,t)}:r)}function ra(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:ra(o.children,t,r)}:o)}var Qn=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ea} 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}})}),na=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:s,onDragOver:l,onDragLeave:p,onDrop:i,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:y,tokens:d})=>{let[g,b]=useState(false),[k,R]=useState(false),[m,x]=useState(false),S=useRef(false),D=useRef(null),T=e.children&&e.children.length>0,h=e.expanded??false,w=a===e.id,v=a!==null,C=y==="handle",z=n?.targetId===e.id,B=z&&n?.position==="before",E=z&&n?.position==="after",F=z&&n?.position==="inside",P=w?"transparent":F?d.nestHighlight:k&&!v?d.itemHoverBg:d.itemBg,A=F?d.nestBorder:w?"transparent":d.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[B&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Qn,{color:d.dropIndicator})}),jsxs("div",{ref:D,draggable:true,onDragStart:H=>{if(C&&!S.current){H.preventDefault();return}if(S.current=false,H.dataTransfer.effectAllowed="move",H.dataTransfer.setData("text/plain",e.id),D.current){let L=D.current.cloneNode(true);L.style.width=`${D.current.offsetWidth}px`,L.style.opacity="0.85",L.style.transform="rotate(1.5deg) scale(1.02)",L.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",L.style.position="fixed",L.style.top="-1000px",document.body.appendChild(L),H.dataTransfer.setDragImage(L,H.nativeEvent.offsetX,H.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(L));}s(e.id);},onDragOver:H=>{H.preventDefault(),H.stopPropagation(),l(H,e.id,t);},onDragLeave:H=>{let L=H.relatedTarget;D.current&&L&&D.current.contains(L)||(H.stopPropagation(),p(H,D.current),R(false));},onDrop:H=>{H.preventDefault(),H.stopPropagation(),i(H);},onDragEnd:f,onMouseEnter:()=>R(true),onMouseLeave:()=>R(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:w?"transparent":d.text,cursor:v?"grabbing":C?"default":"grab",opacity:w?.35:1,backgroundColor:P,borderWidth:"1px",borderColor:A,borderStyle:w?"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:F?`inset 0 0 0 1px ${d.nestBorder}`:k&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:F?"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:w?"hidden":"visible"},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),onMouseDown:()=>{S.current=true;},children:jsx(DotsSixVertical,{size:14,color:g?d.gripHover:d.gripColor})}),F&&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:H=>{H.stopPropagation(),u(e.id);},onMouseEnter:()=>x(true),onMouseLeave:()=>x(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:w?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:m?d.chevronHover:d.chevron,style:{transition:"transform 0.2s ease",transform:h?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:w?"hidden":"visible"},children:c?c(e,{handleProps:{onMouseDown:()=>{S.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:w,depth:t,isExpanded:h,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})]})})]}),E&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Qn,{color:d.dropIndicator})}),T&&h&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${d.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(H=>jsx(na,{item:H,depth:t+1,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:s,onDragOver:l,onDragLeave:p,onDrop:i,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:y,tokens:d},H.id))})]})},Md=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:a=3,dragMode:n="full",className:s,style:l})=>{let p=I(),i=Bd[p],[f,u]=useState(null),[c,y]=useState(null),d=useRef(null),g=useRef(void 0),b=useRef(void 0),k=useRef(null),R=useCallback(h=>{u(h);},[]),m=useCallback((h,w,v)=>{if(!f||f===w||br(e,f,w))return;g.current&&(clearTimeout(g.current),g.current=void 0);let C=h.currentTarget.getBoundingClientRect(),z=h.clientY-C.top,B=C.height,E;o&&v<a?z<B*.25?E="before":z>B*.75?E="after":E="inside":z<B*.35?E="before":z>B*.65?E="after":k.current?.targetId===w?E=k.current.position:E=z<B/2?"before":"after";let F={targetId:w,position:E},P=mr(e,w);E==="inside"&&P?.children&&P.children.length>0&&!P.expanded?(k.current?.targetId!==w||k.current?.position!=="inside")&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{t(ra(e,w,true));},600)):b.current&&(clearTimeout(b.current),b.current=void 0),k.current=F,y(F);},[f,e,o,a,t]),x=useCallback((h,w)=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{y(null),k.current=null;},60),b.current&&(clearTimeout(b.current),b.current=void 0);},[]),S=useCallback(()=>{if(g.current&&(clearTimeout(g.current),g.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),!f||!c)return;let{targetId:h,position:w}=c;if(f===h||br(e,f,h))return;let[v,C]=ta(e,f);if(!C)return;let z=xr(v,h,w,C);t(z),u(null),y(null),k.current=null;},[f,c,e,t]),D=useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),u(null),y(null),k.current=null;},[]),T=useCallback(h=>{t(oa(e,h));},[e,t]);return useEffect(()=>()=>{g.current&&clearTimeout(g.current),b.current&&clearTimeout(b.current);},[]),jsxs("div",{ref:d,className:s,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:i.textSecondary,backgroundColor:i.itemBg,borderRadius:"10px",border:`1px solid ${i.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(h=>jsx(na,{item:h,depth:0,allowNesting:o,maxDepth:a,draggedId:f,dropState:c,onDragStart:R,onDragOver:m,onDragLeave:x,onDrop:S,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:n,tokens:i},h.id))]})};Md.displayName="DragList";export{wi as Accordion,Ri as AccordionItem,D0 as Alert,gc as AppSidebar,yu as Avatar,wu as Badge,Wl as Breadcrumb,ha as Button,ll as Calendar,yi as Card,Zr as Checkbox,Or as CheckboxGroup,Gs as ColorPicker,Xa as Combobox,fc as CommandMenu,cd as ConfirmDialog,xb as Container,yd as CopyButton,xi as DataGrid,fl as DataList,$r as DatePicker,ss as DatePickerGroup,db as Divider,Md as DragList,Bl as Drawer,ec as DropdownMenu,Ui as EmptyState,en as FileUpload,wr as Input,Ud as InputGroup,Zg as Link,jo as Modal,kc as Navbar,td as Notification,Aa as NumberInput,ii as OTPInput,ql as Pagination,Wi as Popover,$0 as ProgressBar,W0 as ProgressCircle,yo as Radio,Vr as RadioGroup,Qs as Rating,Ns as SegmentedControl,Ir as Select,Wa as SelectGroup,Ll as Sheet,vc as SidebarItem,nt as Skeleton,Jr as Slider,U0 as Spinner,ic as Spotlight,ub as Stack,Xi as Stat,Cl as StatusBadge,jl as Stepper,qr as Switch,Ei as Tab,Di as TabPanel,ui as Table,zi as Tabs,Ru as Tag,Tu as TagItem,_r as Textarea,dl as Timeline,On as Toast,S0 as ToasterProvider,Mi as Tooltip,ml as Tree,I as useTheme,k0 as useToast};//# sourceMappingURL=index.mjs.map
13
19
  //# sourceMappingURL=index.mjs.map