@smworks-cz/ui-kit 1.3.1 → 1.4.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.d.mts +200 -3
- package/dist/index.d.ts +200 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import Ko,{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,CaretUpDown,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,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 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(i=>{i.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 ye={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"},Pa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},Ma=({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"})]})},Aa=Ko.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:l,style:i,className:d,...s},f)=>{let[g,c]=useState(false),b=I()==="dark",x=typeof s.href=="string",u=n||(x?false:!!s.disabled),T=l!=null&&l!=="",y=r!=null,S=(y||n)&&!T,{paddingText:p,paddingSquare:k,fontSize:P,gap:E,height:m}=Pa[t],R={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:T&&(y||n)?E:void 0,padding:S?k:p,height:m,borderRadius:"8px",cursor:u?"not-allowed":"pointer",opacity:u?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:P,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:u?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:g?ye.primaryHover:ye.primary,color:ye.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:g?b?ye.secondaryHoverDark:ye.secondaryHoverLight:"transparent",color:b?ye.white:ye.black,border:"1px solid transparent"};case "outline":return {backgroundColor:g?b?ye.secondaryHoverDark:ye.secondaryHoverLight:"transparent",color:b?ye.white:ye.black,border:`1px solid ${g?b?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":b?ye.borderDark:ye.borderLight}`};case "danger":return {backgroundColor:g?"#FF5252":"#EF3838",color:ye.white,border:"1px solid transparent"}}})(),C=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(Ma,{size:parseInt(P)-1}):r}),z=n||y,A=o==="right"?jsxs(Fragment,{children:[T&&jsx("span",{children:l}),z&&C]}):jsxs(Fragment,{children:[z&&C,T&&jsx("span",{children:l})]}),v={style:{...R,...F,...i},className:d,onMouseEnter:N=>{c(true),s.onMouseEnter?.(N);},onMouseLeave:N=>{c(false),s.onMouseLeave?.(N);}};if(x){let{href:N,target:D,rel:H,...Z}=s;return jsx("a",{ref:f,href:N,target:D,rel:H??(D==="_blank"?"noopener noreferrer":void 0),"aria-disabled":u||void 0,...Z,...v,children:A})}let{disabled:B,type:M="button",...L}=s;return jsx("button",{ref:f,type:M,disabled:u,"aria-busy":n||void 0,...L,...v,children:A})});Aa.displayName="Button";var Za=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),o((i-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"})]})},Or={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"}},Oa={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"}},Yr=Ko.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:l=false,passwordToggle:i,size:d="md",fullWidth:s=false,style:f,className:g,inputStyle:c,disabled:h,required:b,value:x,onChange:u,onFocus:T,onBlur:y,type:S,...p},k)=>{let P=I(),E=Or[P],m=useId(),R=p.id??m,[F,C]=useState(false),[z,A]=useState(false),v=S==="password",B=i??v,M=v&&z?"text":S,L=h||a,N=!!o,D=typeof o=="string"?o:void 0,H=x!=null&&x!=="",Z=l&&H&&!L&&!B,W=Oa[d],j=()=>{if(!u)return;u({target:{value:""},currentTarget:{value:""}});},ee=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:E.placeholder},children:t}):null,O=B&&!L?jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>A(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:z?jsx(EyeSlash,{color:E.placeholder,size:W.iconSize}):jsx(Eye,{color:E.placeholder,size:W.iconSize})}):null,_=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:E.placeholder},children:jsx(Za,{size:W.iconSize,color:E.placeholder})}):O||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:j,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:jsx(X,{size:W.iconSize-2,color:E.placeholder})}):r==="right"&&ee?ee:null),q=r==="left"?ee:null,G={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:L?E.backgroundDisabled:E.background,border:`1px solid ${N?E.borderError:F?E.borderFocus:E.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},ge={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:E.text,cursor:L?"not-allowed":"text",...c},Q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.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,...f},className:g,children:[e&&jsxs("label",{htmlFor:R,style:Q,children:[e,b&&jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:R,style:G,children:[q,jsx("input",{ref:k,id:R,type:M,disabled:h,required:b,readOnly:a||p.readOnly,value:x,onChange:u,style:ge,onFocus:J=>{C(true),T?.(J);},onBlur:J=>{C(false),y?.(J);},...p}),_]}),D&&jsx("span",{style:{...K,color:E.borderError},children:D}),!D&&n&&jsx("span",{style:{...K,color:E.helperText},children:n})]})});Yr.displayName="Input";var pp=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),l=useId(),i=t??l,d={display:"flex",flexDirection:"column",gap:"8px",...o},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Or[a].label,userSelect:"none"};return jsxs("div",{style:d,className:n,children:[jsx("label",{htmlFor:i,style:s,children:e}),r??jsx(Yr,{id:i})]})};var qa={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"}},Ka={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"}},Ja=Ko.forwardRef(({value:e,onChange:t,min:r,max:o,step:n=1,label:a,error:l,disabled:i=false,size:d="md",variant:s="default",prefix:f,suffix:g,style:c,className:h},b)=>{let x=I(),u=qa[x],y=useId(),S=Ka[d],[p,k]=useState(false),[P,E]=useState(null),m=!!l,R=typeof l=="string"?l:void 0,F=useCallback(q=>{let G=q;return r!==void 0&&G<r&&(G=r),o!==void 0&&G>o&&(G=o),G},[r,o]),C=useCallback(()=>{t(F(e+n));},[e,n,t,F]),z=useCallback(()=>{t(F(e-n));},[e,n,t,F]),A=useRef(null),v=useRef(null),B=useCallback(q=>{i||(q(),v.current=setTimeout(()=>{A.current=setInterval(q,80);},400));},[i]),M=useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null),A.current&&(clearInterval(A.current),A.current=null);},[]);useEffect(()=>()=>M(),[M]);let L=q=>{let G=q.target.value;if(G===""||G==="-")return;let ge=parseFloat(G);isNaN(ge)||t(F(ge));},N=()=>{k(false),t(F(e));},D=r===void 0||e>r,H=o===void 0||e<o,Z={display:"flex",alignItems:"center",backgroundColor:i?u.backgroundDisabled:u.background,border:`1px solid ${m?u.borderError:p?u.borderFocus:u.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:S.height},W=(q,G)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:S.buttonPadding,border:"none",background:P===q&&G&&!i?u.buttonHoverBg:u.buttonBg,color:G&&!i?u.buttonText:u.placeholder,cursor:i||!G?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:S.height,userSelect:"none"}),j={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:S.fontSize,lineHeight:"normal",color:u.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},ee={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},O={fontFamily:"'Zalando Sans', sans-serif",fontSize:S.fontSize,color:u.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},_=(q,G)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:P===q&&G&&!i?u.buttonHoverBg:"transparent",color:G&&!i?u.buttonText:u.placeholder,cursor:i||!G?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return s==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[a&&jsx("label",{htmlFor:y,style:ee,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:S.padding,minWidth:0},children:[f&&jsx("span",{style:O,children:f}),jsx("input",{ref:b,id:y,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>k(true),onBlur:N,disabled:i,style:{...j,textAlign:"left"}}),g&&jsx("span",{style:O,children:g})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${m?u.borderError:p?u.borderFocus:u.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!H,style:_("up",H),onMouseDown:()=>B(C),onMouseUp:M,onMouseLeave:()=>{M(),E(null);},onMouseEnter:()=>E("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!D,style:_("down",D),onMouseDown:()=>B(z),onMouseUp:M,onMouseLeave:()=>{M(),E(null);},onMouseEnter:()=>E("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:R})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[a&&jsx("label",{htmlFor:y,style:ee,children:a}),jsxs("div",{style:Z,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!D,style:W("minus",D),onMouseDown:()=>B(z),onMouseUp:M,onMouseLeave:()=>{M(),E(null);},onMouseEnter:()=>E("minus"),children:jsx(Minus,{size:S.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsx("span",{style:O,children:f}),jsx("input",{ref:b,id:y,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>k(true),onBlur:N,disabled:i,style:j}),g&&jsx("span",{style:O,children:g})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!H,style:W("plus",H),onMouseDown:()=>B(C),onMouseUp:M,onMouseLeave:()=>{M(),E(null);},onMouseEnter:()=>E("plus"),children:jsx(Plus,{size:S.iconSize})})]}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:R})]})});Ja.displayName="NumberInput";var os=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),o((i-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"})]})},jr={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)"}},zo=180,Xr=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:l=false,loading:i=false,error:d,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:g=240,style:c,className:h})=>{let b=I(),x=jr[b],u=useId(),T=useRef(null),y=useRef(null),S=useRef(null),p=useRef(null),[k,P]=useState(false),[E,m]=useState(false),[R,F]=useState("idle"),[C,z]=useState(""),[A,v]=useState(-1),[B,M]=useState({top:0,left:0,width:0,openAbove:false}),L=l||i,N=!!d,D=typeof d=="string"?d:void 0,H=useCallback(()=>{P(true),m(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),Z=useCallback(()=>{P(false),F("closing"),z("");let Y=setTimeout(()=>{m(false),F("idle");},zo);return ()=>clearTimeout(Y)},[]),W=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],j=Y=>W.includes(Y),ee=C?e.filter(Y=>(Y.label??Y.value).toLowerCase().includes(C.toLowerCase())):e,O=useCallback(()=>{if(!T.current)return;let Y=T.current.getBoundingClientRect(),ae=y.current?.offsetHeight??g+60,te=window.innerHeight-Y.bottom-6,le=Y.top-6,ve=te<ae&&le>te;M({top:ve?Y.top-6:Y.bottom+6,left:Y.left,width:Y.width,openAbove:ve});},[g]);useEffect(()=>{if(E)return O(),window.addEventListener("scroll",O,true),window.addEventListener("resize",O),()=>{window.removeEventListener("scroll",O,true),window.removeEventListener("resize",O);}},[E,O]);let _=useCallback(Y=>{if(r)if(o){let ae=j(Y)?W.filter(te=>te!==Y):[...W,Y];r(ae);}else r(Y),Z();},[o,r,W,Z]),q=useCallback(Y=>{Y.stopPropagation(),r&&(r(o?[]:null),z(""));},[o,r]),G=()=>{L||(k?Z():H(),v(-1));},ge=Y=>{if(!L)switch(Y.key){case "ArrowDown":Y.preventDefault(),k?v(ae=>Math.min(ae+1,ee.length-1)):(H(),v(0));break;case "ArrowUp":Y.preventDefault(),v(ae=>Math.max(ae-1,0));break;case "Enter":case " ":Y.preventDefault(),k&&A>=0&&ee[A]&&!ee[A].disabled?_(ee[A].value):k||(H(),v(0));break;case "Escape":Z();break;case "Tab":Z();break}};useEffect(()=>{A>=0&&p.current&&p.current.children[A]?.scrollIntoView({block:"nearest"});},[A]),useEffect(()=>{if(!k)return;let Y=ae=>{let te=ae.target,le=T.current?.contains(te),ve=y.current?.contains(te);!le&&!ve&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[k,Z]),useEffect(()=>{k&&n&&S.current&&S.current.focus();},[k,n]);let Q=Y=>e.find(te=>te.value===Y)?.label??Y,K=a&&W.length>0&&!L,J=()=>{let Y=B.openAbove,ae=Y?"translateY(8px)":"translateY(-8px)",te=Y?"translateY(6px)":"translateY(-6px)",le={transition:`opacity ${zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...le,opacity:0,transform:`${ae} scale(0.97)`}:R==="open"?{...le,opacity:1,transform:"translateY(0) scale(1)"}:{...le,opacity:0,transform:`${te} scale(0.98)`,pointerEvents:"none"}},be={display:"flex",alignItems:"center",gap:"10px",backgroundColor:L?x.backgroundDisabled:x.background,border:`1px solid ${N?x.borderError:k?x.borderFocus:x.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"pointer",userSelect:"none",outline:"none"},Ee=E?createPortal(jsxs("div",{ref:y,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:b==="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",...J()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${x.divider}`},children:jsx("input",{ref:S,type:"text",value:C,onChange:Y=>{z(Y.target.value),v(0);},onKeyDown:ge,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:p,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${u}`,style:{maxHeight:g,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
1
|
+
import ur,{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,Warning,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,Crop,CaretUpDownIcon,CaretUpDown,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var P=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let o=()=>{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(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),n=s=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(s.matches?"dark":"light");};r.addEventListener("change",n);let a=new MutationObserver(s=>{s.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",n),a.disconnect();}},[]),e};var ke={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"},ns={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},as=({size:e=14})=>{let[t,o]=useState(0),r=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=s=>{n.current===void 0&&(n.current=s),o((s-n.current)/800*360%360),r.current=requestAnimationFrame(a);};return r.current=requestAnimationFrame(a),()=>{r.current!==void 0&&cancelAnimationFrame(r.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"})]})},ss=ur.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:n=false,fullWidth:a=false,children:s,style:i,className:u,...c},d)=>{let[p,l]=useState(false),b=P()==="dark",m=typeof c.href=="string",f=n||(m?false:!!c.disabled),C=s!=null&&s!=="",w=o!=null,y=(w||n)&&!C,{paddingText:g,paddingSquare:v,fontSize:M,gap:D,height:k}=ns[t],h={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:C&&(w||n)?D:void 0,padding:y?v:g,height:k,borderRadius:"8px",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:M,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:f?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?ke.primaryHover:ke.primary,color:ke.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:`1px solid ${p?b?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":b?ke.borderDark:ke.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:ke.white,border:"1px solid transparent"}}})(),S=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(as,{size:parseInt(M)-1}):o}),I=n||w,L=r==="right"?jsxs(Fragment,{children:[C&&jsx("span",{children:s}),I&&S]}):jsxs(Fragment,{children:[I&&S,C&&jsx("span",{children:s})]}),R={style:{...h,...F,...i},className:u,onMouseEnter:W=>{l(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{l(false),c.onMouseLeave?.(W);}};if(m){let{href:W,target:z,rel:A,...Z}=c;return jsx("a",{ref:d,href:W,target:z,rel:A??(z==="_blank"?"noopener noreferrer":void 0),"aria-disabled":f||void 0,...Z,...R,children:L})}let{disabled:T,type:E="button",...N}=c;return jsx("button",{ref:d,type:E,disabled:f,"aria-busy":n||void 0,...N,...R,children:L})});ss.displayName="Button";var fs=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}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"})]})},sn={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"}},us={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"}},ln=ur.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:n,loading:a=false,clearable:s=false,passwordToggle:i,size:u="md",fullWidth:c=false,style:d,className:p,inputStyle:l,disabled:x,required:b,value:m,onChange:f,onFocus:C,onBlur:w,type:y,...g},v)=>{let M=P(),D=sn[M],k=useId(),h=g.id??k,[F,S]=useState(false),[I,L]=useState(false),R=y==="password",T=i??R,E=R&&I?"text":y,N=x||a,W=!!r,z=typeof r=="string"?r:void 0,A=m!=null&&m!=="",Z=s&&A&&!N&&!T,O=us[u],X$1=()=>{if(!f)return;f({target:{value:""},currentTarget:{value:""}});},te=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:D.placeholder},children:t}):null,Y=T&&!N?jsx("span",{role:"button",tabIndex:-1,"aria-label":I?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>L(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:I?jsx(EyeSlash,{color:D.placeholder,size:O.iconSize}):jsx(Eye,{color:D.placeholder,size:O.iconSize})}):null,$=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:D.placeholder},children:jsx(fs,{size:O.iconSize,color:D.placeholder})}):Y||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:X$1,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:jsx(X,{size:O.iconSize-2,color:D.placeholder})}):o==="right"&&te?te:null),j=o==="left"?te:null,U={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:N?D.backgroundDisabled:D.background,border:`1px solid ${W?D.borderError:F?D.borderFocus:D.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},re={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:O.fontSize,lineHeight:"normal",color:D.text,cursor:N?"not-allowed":"text",...l},K={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},q={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,...d},className:p,children:[e&&jsxs("label",{htmlFor:h,style:K,children:[e,b&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:h,style:U,children:[j,jsx("input",{ref:v,id:h,type:E,disabled:x,required:b,readOnly:a||g.readOnly,value:m,onChange:f,style:re,onFocus:J=>{S(true),C?.(J);},onBlur:J=>{S(false),w?.(J);},...g}),$]}),z&&jsx("span",{style:{...q,color:D.borderError},children:z}),!z&&n&&jsx("span",{style:{...q,color:D.helperText},children:n})]})});ln.displayName="Input";var gf=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s,u={display:"flex",flexDirection:"column",gap:"8px",...r},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:sn[a].label,userSelect:"none"};return jsxs("div",{style:u,className:n,children:[jsx("label",{htmlFor:i,style:c,children:e}),o??jsx(ln,{id:i})]})};var Ss={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"}},ks={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"}},Cs=ur.forwardRef(({value:e,onChange:t,min:o,max:r,step:n=1,label:a,error:s,disabled:i=false,size:u="md",variant:c="default",prefix:d,suffix:p,style:l,className:x},b)=>{let m=P(),f=Ss[m],w=useId(),y=ks[u],[g,v]=useState(false),[M,D]=useState(null),k=!!s,h=typeof s=="string"?s:void 0,F=useCallback(j=>{let U=j;return o!==void 0&&U<o&&(U=o),r!==void 0&&U>r&&(U=r),U},[o,r]),S=useCallback(()=>{t(F(e+n));},[e,n,t,F]),I=useCallback(()=>{t(F(e-n));},[e,n,t,F]),L=useRef(null),R=useRef(null),T=useCallback(j=>{i||(j(),R.current=setTimeout(()=>{L.current=setInterval(j,80);},400));},[i]),E=useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),L.current&&(clearInterval(L.current),L.current=null);},[]);useEffect(()=>()=>E(),[E]);let N=j=>{let U=j.target.value;if(U===""||U==="-")return;let re=parseFloat(U);isNaN(re)||t(F(re));},W=()=>{v(false),t(F(e));},z=o===void 0||e>o,A=r===void 0||e<r,Z={display:"flex",alignItems:"center",backgroundColor:i?f.backgroundDisabled:f.background,border:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:y.height},O=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:M===j&&U&&!i?f.buttonHoverBg:f.buttonBg,color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),X={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:f.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},Y={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:f.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:M===j&&U&&!i?f.buttonHoverBg:"transparent",color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return c==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:{...X,textAlign:"left"}}),p&&jsx("span",{style:Y,children:p})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:$("up",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:$("down",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),h&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:O("minus",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("minus"),children:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:X}),p&&jsx("span",{style:Y,children:p})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:O("plus",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("plus"),children:jsx(Plus,{size:y.iconSize})})]}),h&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]})});Cs.displayName="NumberInput";var Fs=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}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"})]})},un={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)"}},Yo=180,gn=({options:e,value:t,onChange:o,multiple:r=false,searchable:n=false,clearable:a=false,disabled:s=false,loading:i=false,error:u,label:c,placeholder:d="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:x})=>{let b=P(),m=un[b],f=useId(),C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState("idle"),[S,I]=useState(""),[L,R]=useState(-1),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),N=s||i,W=!!u,z=typeof u=="string"?u:void 0,A=useCallback(()=>{M(true),k(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),Z=useCallback(()=>{M(false),F("closing"),I("");let H=setTimeout(()=>{k(false),F("idle");},Yo);return ()=>clearTimeout(H)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],X$1=H=>O.includes(H),te=S?e.filter(H=>(H.label??H.value).toLowerCase().includes(S.toLowerCase())):e,Y=useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??p+60,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;E({top:he?H.top-6:H.bottom+6,left:H.left,width:H.width,openAbove:he});},[p]);useEffect(()=>{if(D)return Y(),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[D,Y]);let $=useCallback(H=>{if(o)if(r){let Q=X$1(H)?O.filter(ee=>ee!==H):[...O,H];o(Q);}else o(H),Z();},[r,o,O,Z]),j=useCallback(H=>{H.stopPropagation(),o&&(o(r?[]:null),I(""));},[r,o]),U=()=>{N||(v?Z():A(),R(-1));},re=H=>{if(!N)switch(H.key){case "ArrowDown":H.preventDefault(),v?R(Q=>Math.min(Q+1,te.length-1)):(A(),R(0));break;case "ArrowUp":H.preventDefault(),R(Q=>Math.max(Q-1,0));break;case "Enter":case " ":H.preventDefault(),v&&L>=0&&te[L]&&!te[L].disabled?$(te[L].value):v||(A(),R(0));break;case "Escape":Z();break;case "Tab":Z();break}};useEffect(()=>{L>=0&&g.current&&g.current.children[L]?.scrollIntoView({block:"nearest"});},[L]),useEffect(()=>{if(!v)return;let H=Q=>{let ee=Q.target,ne=C.current?.contains(ee),he=w.current?.contains(ee);!ne&&!he&&Z();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,Z]),useEffect(()=>{v&&n&&y.current&&y.current.focus();},[v,n]);let K=H=>e.find(ee=>ee.value===H)?.label??H,q=a&&O.length>0&&!N,J=()=>{let H=T.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:h==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?m.backgroundDisabled:m.background,border:`1px solid ${W?m.borderError:v?m.borderFocus:m.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",userSelect:"none",outline:"none"},we=D?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:m.dropdownBg,border:`1px solid ${m.dropdownBorder}`,borderRadius:"12px",boxShadow:b==="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:T.openAbove?"bottom center":"top center",...J()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${m.divider}`},children:jsx("input",{ref:y,type:"text",value:S,onChange:H=>{I(H.target.value),R(0);},onKeyDown:re,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:m.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:g,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${f}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
+
.sm-select-list-${f}::-webkit-scrollbar {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${f}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${f}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${m.scrollbarThumb};
|
|
10
10
|
border-radius: 3px;
|
|
11
11
|
}
|
|
12
|
-
`}),ee.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),ee.map((Y,ae)=>{let te=j(Y.value),le=ae===A;return jsxs("div",{role:"option","aria-selected":te,"aria-disabled":Y.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:te?500:400,lineHeight:"normal",color:te?x.optionSelectedText:Y.disabled?x.placeholder:x.text,backgroundColor:le?x.optionHover:te?x.optionSelected:"transparent",cursor:Y.disabled?"not-allowed":"pointer",opacity:Y.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ae<ee.length-1?"2px":0},onClick:()=>{Y.disabled||_(Y.value);},onMouseEnter:()=>v(ae),onMouseLeave:()=>v(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Y.label??Y.value}),te&&jsx(Check,{size:16,color:x.optionSelectedText})]},Y.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...c},className:h,children:[s&&jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.text,userSelect:"none"},children:s}),jsxs("div",{ref:T,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox",tabIndex:L?-1:0,style:be,onClick:G,onKeyDown:ge,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:x.placeholder,lineHeight:"normal"},children:f}),o?W.map(Y=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:x.tagBg,color:x.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:Q(Y)}),!L&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ae=>{ae.stopPropagation(),_(Y);},children:jsx(X,{size:14,color:x.tagText})})]},Y)):W.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q(W[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[K&&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:x.placeholder})}),i?jsx(os,{size:16,color:x.placeholder}):jsx(CaretDown,{size:16,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),D&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:D}),Ee]})};Xr.displayName="Select";var rs=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),l=useId(),i=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:jr[a].label,userSelect:"none"},children:e}),r??jsx(Xr,{options:[]})]})};rs.displayName="SelectGroup";var ds=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),o((i-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"})]})},ps={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)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},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)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Io=180,fs={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"}},us=Ko.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:n="Hledat\u2026",label:a,error:l,disabled:i=false,loading:d=false,multiple:s=false,clearable:f=false,onOpenChange:g,onSelect:c,onDeselect:h,onClear:b,onFocus:x,onBlur:u,allowCustom:T=false,onCreate:y,renderOption:S,notFoundContent:p,footer:k,size:P="md",style:E,className:m},R)=>{let F=I(),C=ps[F],A=useId(),v=fs[P],B=useRef(null),M=useRef(null),L=useRef(null),N=useRef(null),[D,H]=useState(false),[Z,W]=useState(false),[j,ee]=useState("idle"),[O,_]=useState(""),[q,G]=useState(-1),[ge,Q]=useState(false),[K,J]=useState({top:0,left:0,width:0,openAbove:false}),be=i||d,Ee=!!l,Y=typeof l=="string"?l:void 0,ae=f&&!be,te=s?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],le=w=>te.includes(w),ve=w=>{let $=e.find(U=>U.value===w);return $?$.label??$.value:w};useEffect(()=>{if(!s&&!ge){let w=e.find($=>$.value===t);_(w?w.label??w.value:(typeof t=="string"?t:"")||"");}},[t,e,ge,s]);let $e=O?e.filter(w=>(w.label??w.value).toLowerCase().includes(O.toLowerCase())):e,je=useCallback(()=>{H(true),W(true),ee("opening"),g?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>ee("open"));});},[g]),we=useCallback(()=>{H(false),ee("closing"),g?.(false);let w=setTimeout(()=>{W(false),ee("idle");},Io);return ()=>clearTimeout(w)},[g]),He=useCallback(()=>{if(!B.current)return;let w=B.current.getBoundingClientRect(),$=L.current?.offsetHeight??240,U=window.innerHeight-w.bottom-6,V=w.top-6,re=U<$&&V>U;J({top:re?w.top-6:w.bottom+6,left:w.left,width:w.width,openAbove:re});},[]);useEffect(()=>{if(Z)return He(),window.addEventListener("scroll",He,true),window.addEventListener("resize",He),()=>{window.removeEventListener("scroll",He,true),window.removeEventListener("resize",He);}},[Z,He]),useEffect(()=>{if(!D)return;let w=$=>{let U=$.target;if(!B.current?.contains(U)&&!L.current?.contains(U))if(we(),s)_("");else {let V=e.find(re=>re.value===t);T||_(V?V.label??V.value:"");}};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[D,we,t,e,T,s]),useEffect(()=>{q>=0&&N.current&&N.current.children[q]?.scrollIntoView({block:"nearest"});},[q]);let ho=w=>{let $=w.target.value;_($),o?.($),G(0),D||je();},Vt=useCallback(w=>{let $=e.find(U=>U.value===w)||{value:w};if(s){if(le(w)){let U=te.filter(V=>V!==w);r(U),h?.(w,$);}else {let U=[...te,w];r(U),c?.(w,$);}_("");}else r(w),c?.(w,$),_($.label??$.value),we();},[r,e,we,s,te,c,h]),yo=useCallback(w=>{if(!s)return;let $=e.find(V=>V.value===w)||{value:w},U=te.filter(V=>V!==w);r(U),h?.(w,$);},[s,te,r,e,h]),vo=useCallback(w=>{w.stopPropagation(),r(s?[]:""),_(""),b?.();},[s,r,b]),So=w=>{if(!be)switch(w.key){case "ArrowDown":w.preventDefault(),D?G($=>Math.min($+1,$e.length-1)):(je(),G(0));break;case "ArrowUp":w.preventDefault(),G($=>Math.max($-1,0));break;case "Enter":w.preventDefault(),D&&q>=0&&$e[q]?Vt($e[q].value):T&&O&&(s?(r([...te,O]),y?.(O),_("")):(r(O),y?.(O),we()));break;case "Backspace":if(s&&O===""&&te.length>0){let $=te.slice(0,-1);r($);}break;case "Escape":we();break;case "Tab":D&&we();break}},kt=w=>{Q(true),x?.(w),!D&&!be&&je();},ko=w=>{let $=w.relatedTarget;$&&(L.current?.contains($)||B.current?.contains($))||(Q(false),u?.(w),!s&&T&&O&&r(O),s&&_(""));},Co=()=>{let w=K.openAbove,$=w?"translateY(8px)":"translateY(-8px)",U=w?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${Io}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Io}ms cubic-bezier(0.16, 1, 0.3, 1)`};return j==="opening"||j==="idle"?{...V,opacity:0,transform:`${$} scale(0.97)`}:j==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${U} scale(0.98)`,pointerEvents:"none"}},wo={display:"flex",alignItems:"center",gap:v.gap,backgroundColor:be?C.backgroundDisabled:C.background,border:`1px solid ${Ee?C.borderError:ge?C.borderFocus:C.border}`,borderRadius:"8px",padding:v.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:be?.6:1,cursor:be?"not-allowed":"text",flexWrap:"nowrap"},Ro={flex:1,minWidth:s?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v.fontSize,lineHeight:"normal",color:C.text,cursor:be?"not-allowed":"text"},To={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:C.label,userSelect:"none"},Ut=Z?createPortal(jsxs("div",{ref:L,style:{position:"fixed",...K.openAbove?{bottom:window.innerHeight-K.top,left:K.left}:{top:K.top,left:K.left},width:K.width,backgroundColor:C.dropdownBg,border:`1px solid ${C.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="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:K.openAbove?"bottom center":"top center",...Co()},onMouseDown:w=>{w.preventDefault();},children:[jsxs("div",{ref:N,role:"listbox","aria-multiselectable":s,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[$e.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:C.placeholder,textAlign:"center"},children:T&&O?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof p=="function"?p(we):p??"\u017D\xE1dn\xE9 v\xFDsledky"}),$e.map((w,$)=>{let U=le(w.value),V=$===q;return jsx("div",{role:"option","aria-selected":U,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:U?500:400,lineHeight:"normal",color:U?C.optionSelectedText:C.text,backgroundColor:V?C.optionHover:U?C.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:$<$e.length-1?"2px":0},onClick:()=>Vt(w.value),onMouseEnter:()=>G($),onMouseLeave:()=>G(-1),children:S?S(w,V):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.label??w.value}),U&&jsx(Check,{size:16,color:C.optionSelectedText})]})},w.value)})]}),k&&jsx("div",{style:{borderTop:`1px solid ${C.divider}`,padding:"8px 6px"},children:typeof k=="function"?k(we):k})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...E},className:m,children:[a&&jsx("label",{htmlFor:A,style:To,children:a}),jsxs("div",{ref:B,style:wo,onClick:()=>M.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:C.placeholder},children:d?jsx(ds,{size:v.iconSize,color:C.placeholder}):jsx(MagnifyingGlass,{size:v.iconSize,color:C.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[s&&te.map(w=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:C.tagBg,color:C.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:ve(w)}),!be&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:$=>{$.stopPropagation(),yo(w);},children:jsx(X,{size:14,color:C.tagText})})]},w)),jsx("input",{ref:w=>{M.current=w,typeof R=="function"?R(w):R&&(R.current=w);},id:A,type:"text",value:O,onChange:ho,onFocus:kt,onBlur:ko,onKeyDown:So,placeholder:s&&te.length>0?"":n,disabled:i,readOnly:d,style:Ro})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ae&&te.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:vo,children:jsx(X,{size:14,color:C.placeholder})}),jsx(CaretDown,{size:v.iconSize,color:C.placeholder,style:{transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:C.borderError,lineHeight:"normal"},children:Y}),Ut]})});us.displayName="Combobox";var hs=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),o((i-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"})]})},rn={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)"}},Po=180,ys={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"}},vs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Qr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function Ss(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 i=0;i<42;i++){let d=new Date(a);d.setDate(a.getDate()+i),l.push(d);}return l}function Ao(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function en(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${Ao(e)} ${t}:${r}`}function Ye(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function tn(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 ks(e){return Ye(e,new Date)}var nn=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:l,helperText:i,disabled:d=false,loading:s=false,clearable:f=false,size:g="md",fullWidth:c=false,required:h,minDate:b,maxDate:x,firstDayOfWeek:u=1,style:T,className:y})=>{let S=I(),p=rn[S],k=useId(),P=ys[g],E=useRef(null),m=useRef(null),[R,F]=useState(false),[C,z]=useState(false),[A,v]=useState("idle"),[B,M]=useState({top:0,left:0,width:0,openAbove:false}),[L,N]=useState(null),D=new Date,[H,Z]=useState(D.getFullYear()),[W,j]=useState(D.getMonth()),[ee,O]=useState("days"),[_,q]=useState(0),G=d||s,ge=!!l,Q=typeof l=="string"?l:void 0,K=e==="single"&&r instanceof Date?r:null,J=e==="range"&&Array.isArray(r)?r:[null,null],be=e==="single"?K!==null:J[0]!==null||J[1]!==null,Ee=f&&be&&!G,Y=(()=>{if(e==="single")return K?t?en(K):Ao(K):"";let[w,$]=J;if(!w&&!$)return "";let U=t?en:Ao;return `${w?U(w):"\u2026"} \u2013 ${$?U($):"\u2026"}`})(),ae=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"),te=useCallback(()=>{let w=e==="single"?K:J[0];w&&(Z(w.getFullYear()),j(w.getMonth())),O("days"),F(true),z(true),v("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>v("open"));});},[e,K,J]),le=useCallback(()=>{F(false),v("closing");let w=setTimeout(()=>{z(false),v("idle");},Po);return ()=>clearTimeout(w)},[]),ve=useCallback(()=>{if(!E.current)return;let w=E.current.getBoundingClientRect(),$=m.current?.offsetHeight??380,U=window.innerHeight-w.bottom-6,V=w.top-6,re=U<$&&V>U;M({top:re?w.top-6:w.bottom+6,left:w.left,width:Math.max(w.width,300),openAbove:re});},[]);useEffect(()=>{if(C)return ve(),window.addEventListener("scroll",ve,true),window.addEventListener("resize",ve),()=>{window.removeEventListener("scroll",ve,true),window.removeEventListener("resize",ve);}},[C,ve]),useEffect(()=>{if(!R)return;let w=$=>{let U=$.target,V=E.current?.contains(U),re=m.current?.contains(U);!V&&!re&&le();};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[R,le]);let $e=w=>{G||(w.key==="Escape"&&R&&(w.preventDefault(),le()),(w.key==="Enter"||w.key===" ")&&!R&&(w.preventDefault(),te()));},je=useCallback(w=>{if(b){let $=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(w<$)return true}if(x){let $=new Date(x.getFullYear(),x.getMonth(),x.getDate());if(w>$)return true}return false},[b,x]),we=useCallback(w=>{if(!je(w)&&o)if(e==="single")t&&K&&w.setHours(K.getHours(),K.getMinutes()),o(new Date(w)),t||le();else if(_===0)t&&J[0]&&w.setHours(J[0].getHours(),J[0].getMinutes()),o([new Date(w),null]),q(1);else {let $=J[0];t&&J[1]&&w.setHours(J[1].getHours(),J[1].getMinutes());let[U,V]=w>=$?[$,new Date(w)]:[new Date(w),$];o([U,V]),q(0),t||le();}},[e,t,K,J,_,o,le,je]),He=useCallback((w,$,U)=>{if(!o)return;let V=parseInt($,10);if(isNaN(V)&&(V=0),w==="hour"&&(V=Math.max(0,Math.min(23,V))),w==="minute"&&(V=Math.max(0,Math.min(59,V))),e==="single"){let re=K?new Date(K):new Date;w==="hour"?re.setHours(V):re.setMinutes(V),o(re);}else {let re=U??0,me=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],Xe=me[re]??new Date;w==="hour"?Xe.setHours(V):Xe.setMinutes(V),me[re]=Xe,o(me);}},[e,K,J,o]),ho=()=>{W===0?(j(11),Z(w=>w-1)):j(w=>w-1);},Vt=()=>{W===11?(j(0),Z(w=>w+1)):j(w=>w+1);},yo=w=>{w.stopPropagation(),o&&(o(e==="single"?null:[null,null]),q(0));},vo=()=>{let w=B.openAbove,$=w?"translateY(8px)":"translateY(-8px)",U=w?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${Po}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Po}ms cubic-bezier(0.16, 1, 0.3, 1)`};return A==="opening"||A==="idle"?{...V,opacity:0,transform:`${$} scale(0.97)`}:A==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${U} scale(0.98)`,pointerEvents:"none"}},So=Ss(H,W,u),kt=(w,$)=>{let U=w?w.getHours():0,V=w?w.getMinutes():0,re={width:"42px",background:"transparent",border:`1px solid ${p.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.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(U).padStart(2,"0"),onChange:me=>He("hour",me.target.value,$),style:re,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:p.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(V).padStart(2,"0"),onChange:me=>He("minute",me.target.value,$),style:re,maxLength:2,"aria-label":"Minuty"})]})},ko=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Qr.map((w,$)=>{let U=$===W;return jsx("button",{type:"button",onClick:()=>{j($),O("days");},style:{background:U?p.daySelected:"transparent",color:U?p.daySelectedText:p.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=>{U||(V.target.style.backgroundColor=p.dayHover);},onMouseLeave:V=>{U||(V.target.style.backgroundColor="transparent");},children:w},$)})}),Co=()=>{let w=Math.floor(H/12)*12,$=Array.from({length:12},(U,V)=>w+V);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>Z(U=>U-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:p.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.text},children:[w," \u2013 ",w+11]}),jsx("button",{type:"button",onClick:()=>Z(U=>U+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:p.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:$.map(U=>{let V=U===H;return jsx("button",{type:"button",onClick:()=>{Z(U),O("months");},style:{background:V?p.daySelected:"transparent",color:V?p.daySelectedText:p.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:re=>{V||(re.target.style.backgroundColor=p.dayHover);},onMouseLeave:re=>{V||(re.target.style.backgroundColor="transparent");},children:U},U)})})]})},wo=C?createPortal(jsx("div",{ref:m,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:p.dropdownBg,border:`1px solid ${p.dropdownBorder}`,borderRadius:"12px",boxShadow:S==="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",...vo()},children:ee==="years"?Co():ee==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>O("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:p.text,padding:"4px 8px",borderRadius:"4px"},children:H})}),ko()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:ho,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:p.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>O("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:p.text,padding:"4px 8px",borderRadius:"4px"},children:Qr[W]}),jsx("button",{type:"button",onClick:()=>O("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:p.text,padding:"4px 8px",borderRadius:"4px"},children:H})]}),jsx("button",{type:"button",onClick:Vt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:p.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:vs.map(w=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:p.placeholder,padding:"4px 0",userSelect:"none"},children:w},w))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:So.map((w,$)=>{let U=w.getMonth()!==W,V=je(w),re=ks(w),me=false,Xe=false,Fo=false,_t=false;if(e==="single"&&K)me=Ye(w,K);else if(e==="range"){let[We,jt]=J;We&&Ye(w,We)&&(Xe=true,me=true),jt&&Ye(w,jt)&&(Fo=true,me=true),We&&jt&&tn(w,We,jt)&&!Xe&&!Fo&&(_t=true),_===1&&We&&L&&!V&&(Ye(w,L)&&!Ye(w,We)&&(me=true),tn(w,We,L)&&!Ye(w,We)&&!Ye(w,L)&&(_t=true));}let Eo="transparent",Gt=p.text;return me?(Eo=p.daySelected,Gt=p.daySelectedText):_t&&(Eo=p.dayRangeMiddle),U&&(Gt=me?p.daySelectedText:p.dayOutside),V&&(Gt=p.dayDisabled),jsx("button",{type:"button",disabled:V,onClick:()=>we(w),onMouseEnter:()=>{V||N(w);},onMouseLeave:()=>N(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Eo,color:Gt,border:"none",borderRadius:Xe?"6px 0 0 6px":Fo?"0 6px 6px 0":_t?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:me?600:400,cursor:V?"not-allowed":"pointer",opacity:V?.4:1,transition:"background-color 0.1s ease",outline:re&&!me?`1.5px solid ${p.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:w.getDate()},$)})}),t&&jsx("div",{style:{borderTop:`1px solid ${p.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:p.placeholder},children:"\u010Cas:"}),kt(K)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.placeholder},children:"Od:"}),kt(J[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.placeholder},children:"Do:"}),kt(J[1],1)]})]})})]})}),document.body):null,Ro={display:"flex",alignItems:"center",gap:P.gap,backgroundColor:G?p.backgroundDisabled:p.background,border:`1px solid ${ge?p.borderError:R?p.borderFocus:p.border}`,borderRadius:"8px",padding:P.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:G?.6:1,cursor:G?"not-allowed":"pointer",userSelect:"none",outline:"none"},To={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},Ut={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,...T},className:y,children:[n&&jsxs("label",{htmlFor:k,style:To,children:[n,h&&jsx("span",{style:{color:p.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:E,role:"button",tabIndex:G?-1:0,style:Ro,onClick:()=>{G||(R?le():te());},onKeyDown:$e,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Y?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:P.fontSize,color:p.text,lineHeight:"normal"},children:Y}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:P.fontSize,color:p.placeholder,lineHeight:"normal"},children:ae})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Ee&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:yo,children:jsx(X,{size:P.iconSize-2,color:p.placeholder})}),s?jsx(hs,{size:P.iconSize,color:p.placeholder}):jsx(CalendarBlank,{size:P.iconSize,color:p.placeholder})]})]}),Q&&jsx("span",{style:{...Ut,color:p.borderError},children:Q}),!Q&&i&&jsx("span",{style:{...Ut,color:p.helperText},children:i}),wo]})};nn.displayName="DatePicker";var Cs=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),l=useId(),i=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:rn[a].label,userSelect:"none"},children:e}),r??jsx(nn,{})]})};Cs.displayName="DatePickerGroup";var an={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"}},Fs={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}},sn=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:l=false,className:i,style:d})=>{let s=I(),f=an[s],g=Fs[a],c=useId(),h=useRef(null),b=!!n,x=typeof n=="string"?n:void 0;useEffect(()=>{h.current&&(h.current.indeterminate=l);},[l]);let u=()=>{o||t?.(!e);},T=b?f.borderError:e||l?f.checkBg:f.border,y=e||l?f.checkBg:o?f.backgroundDisabled:f.background,S={width:g.box,height:g.box,borderRadius:g.radius,border:`1.5px solid ${T}`,backgroundColor:y,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},p={fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},k={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...d},className:i,children:[jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:g.gap,cursor:o?"not-allowed":"pointer"},onClick:P=>{P.preventDefault(),u();},children:[jsx("input",{ref:h,id:c,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":b||void 0}),jsxs("span",{style:S,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:f.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:f.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:p,children:r})]}),x&&jsx("span",{style:{...k,color:f.borderError,marginLeft:`${g.box+parseInt(g.gap)}px`},children:x})]})};sn.displayName="Checkbox";var ln=({label:e,children:t,error:r,className:o,style:n})=>{let a=I(),l=an[a],i=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"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:o,children:[e&&jsx("span",{style:d,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsx("span",{style:{...s,color:l.borderError},children:i})]})};ln.displayName="CheckboxGroup";var cn={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"}},Ds={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},Ho=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:l,style:i})=>{let d=I(),s=cn[d],f=Ds[a],g=useId(),c=()=>{n||r?.(e);},h=t?s.dotRing:s.border,b=n?s.backgroundDisabled:s.background,x={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${h}`,backgroundColor:b,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},u={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...i},className:l,children:jsxs("label",{htmlFor:g,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:n?"not-allowed":"pointer"},onClick:T=>{T.preventDefault(),c();},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:x,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:u,children:o})]})})};Ho.displayName="Radio";var dn=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:l,size:i="md",className:d,style:s})=>{let f=I(),g=cn[f],c=!!a,h=typeof a=="string"?a:void 0,b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":c||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...s},className:d,children:[r&&jsx("span",{style:b,children:r}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(u=>jsx(Ho,{value:u.value,label:u.label,checked:e===u.value,onChange:t,disabled:u.disabled,size:i},u.value))}),h&&jsx("span",{style:{...x,color:g.borderError},children:h}),!h&&l&&jsx("span",{style:{...x,color:g.helperText},children:l})]})};dn.displayName="RadioGroup";var zs={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"}},Is={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"}},fn=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:l})=>{let i=I(),d=zs[i],s=Is[n],f=useId(),g=()=>{o||t?.(!e);},c=1.5,h=2,x=s.trackW-c*2-s.thumb-h,u=e?x:0,T={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${c}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"},y={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:h,transform:`translateY(-50%) translateX(${u}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:d.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:o?"not-allowed":"pointer"},onClick:p=>{p.preventDefault(),g();},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:T,children:jsx("span",{style:y})}),r&&jsx("span",{style:S,children:r})]})})};fn.displayName="Switch";var $s={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",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"}},Ws={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},gn=Ko.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:l=false,required:i,rows:d=4,maxLength:s,resize:f="vertical",autoHeight:g=false,minRows:c,maxRows:h,className:b,style:x,value:u,onChange:T,onFocus:y,onBlur:S,...p},k)=>{let P=I(),E=$s[P],m=Ws[a],R=useId(),F=p.id??R,[C,z]=useState(false),A=useRef(null),v=useCallback(()=>{let _=A.current;if(!_||!g)return;_.style.height="auto";let q=getComputedStyle(_),G=parseFloat(q.lineHeight)||parseFloat(q.fontSize)*1.5,ge=parseFloat(q.paddingTop)||0,Q=parseFloat(q.paddingBottom)||0,K=ge+Q,be=G*(c??1)+K,Ee=h?G*h+K:1/0,Y=Math.min(Math.max(_.scrollHeight,be),Ee);_.style.height=`${Y}px`,_.style.overflowY=_.scrollHeight>Ee?"auto":"hidden";},[g,c,h]);useEffect(()=>{v();},[u,v]);let B=useCallback(_=>{A.current=_,typeof k=="function"?k(_):k&&(k.current=_);},[k]),M=g?"none":f,L=g?c??1:d,N=o||n,D=!!t,H=typeof t=="string"?t:void 0,Z=typeof u=="string"?u.length:0,W={backgroundColor:N?E.backgroundDisabled:E.background,border:`1px solid ${D?E.borderError:C?E.borderFocus:E.border}`,borderRadius:"8px",padding:m.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},j={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"1.5",color:E.text,cursor:N?"not-allowed":"text",resize:M,boxSizing:"border-box",overflow:g?"hidden":void 0},ee={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},O={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,...x},className:b,children:[e&&jsxs("label",{htmlFor:F,style:ee,children:[e,i&&jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:W,children:jsx("textarea",{ref:B,id:F,rows:L,maxLength:s,disabled:o,required:i,readOnly:n||p.readOnly,value:u,onChange:T,style:j,onFocus:_=>{z(true),y?.(_);},onBlur:_=>{z(false),S?.(_);},...p})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[H&&jsx("span",{style:{...O,color:E.borderError},children:H}),!H&&r&&jsx("span",{style:{...O,color:E.helperText},children:r})]}),s!==void 0&&jsxs("span",{style:{...O,color:Z>s?E.borderError:E.counter,flexShrink:0},children:[Z,"/",s]})]})]})});gn.displayName="Textarea";var Os={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)"}},Ys={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function mn(e,t,r){return Math.min(Math.max(e,t),r)}function Vs(e,t,r){return Math.round((e-t)/r)*r+t}var hn=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:l=false,showValue:i=false,range:d=false,size:s="md",className:f,style:g})=>{let c=I(),h=Os[c],b=Ys[s],x=useId(),u=useRef(null),T=useRef(null),y=d?e:[r,e],S=C=>(C-r)/(o-r)*100,p=S(y[0]),k=S(y[1]),P=useCallback(C=>{let z=u.current;if(!z)return r;let A=z.getBoundingClientRect(),v=mn((C-A.left)/A.width,0,1),B=r+v*(o-r);return mn(Vs(B,r,n),r,o)},[r,o,n]),E=useCallback(C=>{if(l)return;C.preventDefault();let z=P(C.clientX);if(d){let B=e,M=Math.abs(z-B[0]),L=Math.abs(z-B[1]),N=M<=L?"start":"end";T.current=N;let D=N==="start"?[Math.min(z,B[1]),B[1]]:[B[0],Math.max(z,B[0])];t?.(D);}else T.current="end",t?.(z);let A=B=>{let M=P(B.clientX);if(d){let L=e;T.current==="start"?t?.([Math.min(M,L[1]),L[1]]):t?.([L[0],Math.max(M,L[0])]);}else t?.(M);},v=()=>{T.current=null,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",v);};document.addEventListener("mousemove",A),document.addEventListener("mouseup",v);},[l,P,t,d,e]),m={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:h.label,userSelect:"none"},R=d?`${y[0]} \u2013 ${y[1]}`:`${e}`,F={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:h.thumb,border:`2px solid ${h.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:f,children:[(a||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:x,style:m,children:a}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:h.text,userSelect:"none"},children:R})]}),jsxs("div",{ref:u,role:"slider",id:x,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":d?void 0:e,"aria-disabled":l||void 0,onMouseDown:E,style:{position:"relative",width:"100%",height:b.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:h.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${d?p:0}%`,width:`${k-(d?p:0)}%`,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:h.trackFill}}),d&&jsx("span",{style:{...F,left:`${p}%`}}),jsx("span",{style:{...F,left:`${k}%`}})]})]})};hn.displayName="Slider";var Xs={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 Zo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var qs=0,vn=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:l,helperText:i,error:d,value:s,buttonStyle:f="default",showFileList:g=true,buttonLabel:c,className:h,style:b})=>{let x=I(),u=Xs[x],T=useId(),y=useRef(null),[S,p]=useState(false),[k,P]=useState([]),[E,m]=useState(null),R=s!==void 0,F=R?s.map((D,H)=>({file:D,id:`controlled-${H}`})):k,C=!!d||!!E,z=typeof d=="string"?d:E??void 0,A=useCallback(D=>{let H=Array.from(D);if(m(null),n){let Z=H.find(W=>W.size>n);if(Z){m(`Soubor \u201E${Z.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Zo(n)}.`);return}}if(R){let W=o?[...s||[],...H]:H;t?.(W);}else {let Z=H.map(j=>({file:j,id:`file-${++qs}`})),W=o?[...k,...Z]:Z;P(W),t?.(W.map(j=>j.file));}},[R,s,k,n,o,t]),v=useCallback(D=>{D.preventDefault(),p(false),!a&&D.dataTransfer.files.length>0&&A(D.dataTransfer.files);},[a,A]),B=useCallback(D=>{if(R){let H=(s||[]).filter((Z,W)=>`controlled-${W}`!==D);t?.(H);}else {let H=k.filter(Z=>Z.id!==D);P(H),t?.(H.map(Z=>Z.file));}},[R,s,k,t]),M={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${C?u.borderError:S?u.borderDrag:u.border}`,borderRadius:"8px",backgroundColor:S?u.backgroundDrag:a?u.backgroundDisabled:u.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...b},className:h,children:[l&&jsx("span",{style:M,children:l}),jsx("input",{ref:y,id:T,type:"file",accept:r,multiple:o,disabled:a,onChange:D=>{D.target.files&&D.target.files.length>0&&A(D.target.files),D.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:L,onClick:()=>!a&&y.current?.click(),onDragOver:D=>{D.preventDefault(),a||p(true);},onDragLeave:()=>p(false),onDrop:v,children:[jsx(UploadSimple,{size:32,color:u.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:u.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):f==="primary"?jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&y.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:a?.5:1,cursor:a?"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:D=>{a||(D.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:D=>{D.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!a&&y.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${C?u.borderError:u.border}`,backgroundColor:a?u.backgroundDisabled:u.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:D=>{a||(D.currentTarget.style.borderColor=C?u.borderError:x==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:D=>{D.currentTarget.style.borderColor=C?u.borderError:u.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.textSecondary},children:F.length>0?jsx(FileText,{size:18,color:u.textSecondary}):jsx(UploadSimple,{size:18,color:u.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?u.text:u.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.textSecondary,flexShrink:0},children:Zo(F[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.textSecondary},children:jsx(Folder,{size:16,color:u.textSecondary})})]}),g&&F.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(D=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:u.fileBg},children:[jsx(FileText,{size:24,color:u.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.textSecondary,flexShrink:0},children:Zo(D.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${D.file.name}`,onClick:H=>{H.stopPropagation(),B(D.id);},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&B(D.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:u.removeColor})})]},D.id))}),z&&jsx("span",{style:{...N,color:u.borderError},children:z}),!z&&i&&jsx("span",{style:{...N,color:u.helperText},children:i})]})};vn.displayName="FileUpload";var Qs={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)"}},ei={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"}},ti=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:l=false,className:i,style:d})=>{let s=I(),f=Qs[s],g=ei[o],c=a==="vertical",h=e.map(p=>typeof p=="string"?{value:p,label:p}:p),b=h.findIndex(p=>p.value===t),x=useRef(null),u=useRef([]),[T,y]=useState({offset:0,size:0}),S=useCallback(()=>{let p=x.current,k=u.current[b];if(!p||!k||b<0)return;let P=p.getBoundingClientRect(),E=k.getBoundingClientRect();y(c?{offset:E.top-P.top,size:E.height}:{offset:E.left-P.left,size:E.width});},[b,c]);return useEffect(()=>{S();},[S,t,e,o]),useEffect(()=>(window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)),[S]),jsxs("div",{ref:x,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:c?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:g.borderRadius,padding:g.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...d},children:[b>=0&&T.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:g.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:g.padding,right:g.padding,top:T.offset,height:T.size}:{top:g.padding,bottom:g.padding,left:T.offset,width:T.size}}}),h.map((p,k)=>{let P=p.value===t,E=l||p.disabled;return jsxs("button",{ref:m=>{u.current[k]=m;},type:"button",role:"radio","aria-checked":P,disabled:E,onClick:()=>{E||r(p.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",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:P?500:400,color:E?f.textDisabled:P?f.textActive:f.text,cursor:E?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:m=>{!E&&!P&&(m.currentTarget.style.color=f.textHover);},onMouseLeave:m=>{!E&&!P&&(m.currentTarget.style.color=f.text);},children:[p.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:p.icon}),(p.label||!p.icon&&p.value)&&jsx("span",{children:p.label??p.value})]},p.value)})]})};ti.displayName="SegmentedControl";var ai={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)"}},Uo=180,si=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],_o=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),ii=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},li=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+n*114)/1e3>150},ci=({value:e,onChange:t,presets:r=si,label:o,disabled:n=false,style:a,className:l})=>{let i=I(),d=ai[i],f=useId(),g=useRef(null),c=useRef(null),[h,b]=useState(false),[x,u]=useState(false),[T,y]=useState("idle"),[S,p]=useState(e),[k,P]=useState(false),[E,m]=useState({top:0,left:0,openAbove:false});useEffect(()=>{k||p(e);},[e,k]);let R=useCallback(()=>{n||(b(true),u(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));}));},[n]),F=useCallback(()=>{b(false),y("closing");let H=setTimeout(()=>{u(false),y("idle");},Uo);return ()=>clearTimeout(H)},[]),C=useCallback(()=>{if(!g.current)return;let H=g.current.getBoundingClientRect(),Z=220,W=window.innerHeight-H.bottom-8,j=W<Z&&H.top>W;m({top:j?H.top-8:H.bottom+8,left:H.left,openAbove:j});},[]);useEffect(()=>{if(x)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[x,C]),useEffect(()=>{if(!h)return;let H=Z=>{let W=Z.target;!g.current?.contains(W)&&!c.current?.contains(W)&&F();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[h,F]);let z=H=>{let Z=ii(H.target.value);p(Z),_o(Z)&&t(Z);},A=()=>{P(false),_o(S)?t(S):p(e);},v=H=>{t(H),p(H),F();},B=()=>{let H=E.openAbove,Z=H?"translateY(8px)":"translateY(-8px)",W=H?"translateY(6px)":"translateY(-6px)",j={transition:`opacity ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return T==="opening"||T==="idle"?{...j,opacity:0,transform:`${Z} scale(0.97)`}:T==="open"?{...j,opacity:1,transform:"translateY(0) scale(1)"}:{...j,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},M={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?d.backgroundDisabled:d.background,border:`1px solid ${k?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:_o(e)?e:"#cccccc",border:`1px solid ${d.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},N={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},D=x?createPortal(jsx("div",{ref:c,style:{position:"fixed",...E.openAbove?{bottom:window.innerHeight-E.top,left:E.left}:{top:E.top,left:E.left},backgroundColor:d.popoverBg,border:`1px solid ${d.popoverBorder}`,borderRadius:"12px",boxShadow:i==="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:E.openAbove?"bottom left":"top left",...B()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((H,Z)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${H}`,onClick:()=>v(H),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:H,border:H===e?"2px solid #FC4F00":`1px solid ${d.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)";}},`${H}-${Z}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:l,children:[o&&jsx("label",{htmlFor:f,style:N,children:o}),jsxs("div",{ref:g,style:M,children:[jsx("div",{style:L,onClick:()=>{n||(h?F():R());}}),jsx("input",{id:f,type:"text",value:S,onChange:z,onFocus:()=>P(true),onBlur:A,disabled:n,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:d.text,cursor:n?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(h?F():R());},children:jsx(Eyedropper,{size:16,color:(li(e)&&i==="light",d.placeholder)})})]}),D]})};ci.displayName="ColorPicker";var ui={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"}},gi={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},bi=({value:e,onChange:t,max:r=5,size:o="md",readOnly:n=false,label:a,style:l,className:i})=>{let d=I(),s=ui[d],f=useId(),g=gi[o],[c,h]=useState(null),b=!n&&!!t,x=useCallback(p=>{b&&t(p+1);},[b,t]),u=useCallback(p=>{b&&h(p);},[b]),T=useCallback(()=>{h(null);},[]),y={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},S=Array.from({length:r},(p,k)=>{let P=c!==null?c+1:e,E=k<P,m=c!==null&&k<=c;return jsx("span",{role:b?"button":void 0,tabIndex:b?0:void 0,"aria-label":b?`Hodnocen\xED ${k+1} z ${r}`:void 0,onClick:()=>x(k),onMouseEnter:()=>u(k),onMouseLeave:T,onKeyDown:R=>{b&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),x(k));},style:{display:"inline-flex",cursor:b?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:m?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:g.starSize,weight:E?"fill":"regular",color:E?m?s.starHover:s.starFilled:s.starEmpty})},k)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:f,style:y,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:g.gap},onMouseLeave:T,children:S})]})};bi.displayName="Rating";var ki={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"}},Ci=({length:e=6,value:t,onChange:r,error:o,disabled:n=false,autoFocus:a=false,label:l,separatorAfter:i,separator:d="-",style:s,className:f})=>{let g=I(),c=ki[g],h=useId(),b=useRef([]),[x,u]=useState(null),T=!!o,y=typeof o=="string"?o:void 0,S=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&b.current[0]&&b.current[0].focus();},[a]);let p=useCallback(v=>{v>=0&&v<e&&b.current[v]?.focus();},[e]),k=useCallback(v=>{let B=v.join("").replace(/[^0-9]/g,"");r(B);},[r]),P=useCallback((v,B)=>{if(!/^[0-9]$/.test(B))return;let M=[...S];M[v]=B,k(M),v<e-1&&p(v+1);},[S,e,k,p]),E=useCallback((v,B)=>{switch(B.key){case "Backspace":if(B.preventDefault(),S[v]){let M=[...S];M[v]="",k(M);}else if(v>0){let M=[...S];M[v-1]="",k(M),p(v-1);}break;case "Delete":B.preventDefault();{let M=[...S];M[v]="",k(M);}break;case "ArrowLeft":B.preventDefault(),v>0&&p(v-1);break;case "ArrowRight":B.preventDefault(),v<e-1&&p(v+1);break}},[S,e,k,p]),m=useCallback((v,B)=>{let L=B.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&P(v,L);},[P]),R=useCallback(v=>{v.preventDefault();let B=v.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!B)return;let M=[...S];for(let N=0;N<B.length;N++)M[N]=B[N];k(M);let L=Math.min(B.length,e-1);p(L);},[S,e,k,p]),F=useCallback(v=>{u(v),b.current[v]?.select();},[]),C=useCallback(()=>{u(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},A=v=>{let B=x===v,M=!!S[v];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:n?c.backgroundDisabled:M?c.backgroundFilled:c.background,border:`1px solid ${T?c.borderError:B?c.borderFocus:M?c.borderFilled:c.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"text",caretColor:c.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[l&&jsx("label",{htmlFor:`${h}-0`,style:z,children:l}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:R,children:Array.from({length:e},(v,B)=>jsxs(Ko.Fragment,{children:[i&&B>0&&B%i===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:c.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:d}),jsx("input",{ref:M=>{b.current[B]=M;},id:`${h}-${B}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:S[B]||"",onChange:M=>m(B,M),onKeyDown:M=>E(B,M),onFocus:()=>F(B),onBlur:C,disabled:n,"aria-label":`\u010C\xEDslice ${B+1} z ${e}`,style:A(B)})]},B))}),y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:c.borderError,lineHeight:"normal"},children:y})]})};Ci.displayName="OTPInput";var wi={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)"}},En="smSkeletonShimmer",Ri=`@keyframes ${En}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,Se=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:l})=>{let i=I(),d=wi[i],s=t??(e==="circle"?40:"100%"),f=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?`${En} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof s=="number"?`${s}px`:s,height:typeof f=="number"?`${f}px`:f},c=n?jsx("style",{dangerouslySetInnerHTML:{__html:Ri}}):null;return e==="text"&&o>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[c,Array.from({length:o}).map((h,b)=>jsx("div",{style:{...g,width:b===o-1?"75%":g.width}},b))]}):jsxs(Fragment,{children:[c,jsx("div",{className:a,style:{...g,...l}})]})};Se.displayName="Skeleton";var Ei={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)"}},Di=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:l,striped:i=false,hoverable:d=true,className:s,style:f})=>{let g=I(),c=Ei[g],h=y=>{if(!y.sortable||!n)return;let S=a===y.key&&l==="asc"?"desc":"asc";n(y.key,S);},b={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},x=y=>({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:y.sortable?"pointer":"default",userSelect:"none",width:y.width!=null?typeof y.width=="number"?`${y.width}px`:y.width:void 0}),u={padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal"};return jsxs("table",{className:s,style:b,children:[jsx("thead",{children:jsx("tr",{children:e.map(y=>jsx("th",{style:x(y),onClick:()=>h(y),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[y.header,y.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===y.key?c.sortActive:c.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},y.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((y,S)=>jsx("tr",{children:e.map(p=>jsx("td",{style:u,children:jsx(Se,{variant:"text",width:"80%"})},p.key))},`skel-${S}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...u,textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:o})}):t.map((y,S)=>jsx("tr",{style:{backgroundColor:i&&S%2===1?c.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:p=>{d&&(p.currentTarget.style.backgroundColor=c.rowHover);},onMouseLeave:p=>{d&&(p.currentTarget.style.backgroundColor=i&&S%2===1?c.stripedBg:"transparent");},children:e.map(p=>jsx("td",{style:{...u,borderBottom:S===t.length-1?"none":u.borderBottom},children:p.render?p.render(y[p.key],y,S):y[p.key]},p.key))},S))})]})};Di.displayName="Table";var zi={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"}},In=({checked:e,indeterminate:t,onChange:r,t:o})=>{let n=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),r();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:n?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},Ii=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:n=false,rowKey:a="id",onRowClick:l,stickyHeader:i=false,emptyText:d="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let g=I(),c=zi[g],[h,b]=useState(new Set),[x,u]=useState(null),T=useMemo(()=>t.map(z=>String(z[a])),[t,a]),y=T.length>0&&T.every(z=>h.has(z)),S=T.some(z=>h.has(z))&&!y,p=useCallback(()=>{let z=y?new Set:new Set(T);b(z),o?.(Array.from(z));},[y,T,o]),k=useCallback(z=>{b(A=>{let v=new Set(A);return v.has(z)?v.delete(z):v.add(z),o?.(Array.from(v)),v});},[o]),P={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background},E=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,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),m=z=>({padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal",textAlign:z.align||"left"}),R={padding:"12px 12px 12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${c.border}`,width:"40px"};return jsx("div",{className:f,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${c.border}`,...s},children:jsxs("table",{style:P,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:R,children:jsx(In,{checked:y,indeterminate:S,onChange:p,t:c})}),e.map(z=>jsx("th",{style:E(z),children:z.header},z.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((z,A)=>jsxs("tr",{children:[r&&jsx("td",{style:F,children:jsx(Se,{variant:"rect",width:16,height:16})}),e.map(v=>jsx("td",{style:m(v),children:jsx(Se,{variant:"text",width:"80%"})},v.key))]},`skel-${A}`)):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:d})}):t.map((z,A)=>{let v=String(z[a]),B=h.has(v),M=x===v,L=A===t.length-1,N="transparent";return B?N=c.selectedRowBg:M&&(N=c.rowHover),jsxs("tr",{style:{backgroundColor:N,cursor:l?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>u(v),onMouseLeave:()=>u(null),onClick:()=>l?.(z),children:[r&&jsx("td",{style:{...F,borderBottom:L?"none":F.borderBottom},children:jsx(In,{checked:B,onChange:()=>k(v),t:c})}),e.map(D=>jsx("td",{style:{...m(D),borderBottom:L?"none":m(D).borderBottom},children:D.render?D.render(z[D.key],z,A):z[D.key]},D.key))]},v)})})]})})};Ii.displayName="DataGrid";var Hi={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},Mn=({checked:e,indeterminate:t,onChange:r,t:o})=>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(),n.stopPropagation(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:e||t?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M3 6H9",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),Li=({columns:e,data:t,primaryKey:r,rowKey:o="id",selectable:n=false,selectedIds:a,onSelectionChange:l,onCardClick:i,onSort:d,sortKey:s,sortDirection:f,loading:g=false,skeletonCount:c=3,emptyText:h="\u017D\xE1dn\xE1 data",emptyContent:b,gap:x=12,cardActions:u,style:T,className:y})=>{let S=I(),p=Hi[S],[k,P]=useState(new Set),[E,m]=useState(null),R=a!==void 0,F=useMemo(()=>R?new Set(a):k,[R,a,k]),C=useMemo(()=>e.find(D=>D.primary)||(r?e.find(D=>D.key===r):void 0),[e,r]),z=useMemo(()=>e.filter(D=>!D.hidden&&D!==C),[e,C]),A=useMemo(()=>e.filter(D=>D.sortable),[e]),v=useCallback(D=>{let H=new Set(F);H.has(D)?H.delete(D):H.add(D),R||P(H),l?.(Array.from(H));},[F,R,l]),B=useCallback(()=>{let D=t.map(W=>String(W[o])),Z=D.every(W=>F.has(W))?new Set:new Set(D);R||P(Z),l?.(Array.from(Z));},[t,o,F,R,l]),M=t.length>0&&t.every(D=>F.has(String(D[o]))),L=t.some(D=>F.has(String(D[o])))&&!M,N=useCallback(D=>{if(!d)return;d(D,s===D&&f==="asc"?"desc":"asc");},[d,s,f]);if(g){let D=z.length>0?z.length:3;return jsx("div",{className:y,style:{display:"flex",flexDirection:"column",gap:`${x}px`,...T},children:Array.from({length:c}).map((H,Z)=>jsxs("div",{style:{backgroundColor:p.cardBg,border:`1px solid ${p.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(C||n)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${p.divider}`,backgroundColor:p.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[n&&jsx(Se,{variant:"rect",width:18,height:18}),jsx(Se,{variant:"text",width:"45%",height:18})]}),Array.from({length:D}).map((W,j)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:j<D-1?`1px solid ${p.divider}`:"none"},children:[jsx(Se,{variant:"text",width:70,height:12}),jsx(Se,{variant:"text",width:100,height:14})]},j)),u&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${p.divider}`},children:[jsx(Se,{variant:"rect",width:64,height:30}),jsx(Se,{variant:"rect",width:64,height:30})]})]},Z))})}return t.length===0?jsx("div",{className:y,style:{display:"flex",flexDirection:"column",gap:`${x}px`,...T},children:jsx("div",{style:{backgroundColor:p.emptyBg,border:`1px solid ${p.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:b??h})}):jsxs("div",{className:y,style:{display:"flex",flexDirection:"column",gap:`${x}px`,fontFamily:"'Zalando Sans', sans-serif",...T},children:[(n||A.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(Mn,{checked:M,indeterminate:L,onChange:B,t:p}),jsx("span",{style:{fontSize:"12px",color:p.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:F.size>0?`${F.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),A.length>0&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:n?"auto":0},children:A.map(D=>{let H=s===D.key;return jsxs("button",{onClick:()=>N(D.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:H?p.sortChipActiveBg:p.sortChipBg,color:H?p.sortActive:p.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:H?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[D.header,H?f==="asc"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(CaretUpDown,{size:12})]},D.key)})})]}),t.map((D,H)=>{let Z=String(D[o]),W=F.has(Z),j=E===Z,ee=C?C.render?C.render(D[C.key],D,H):D[C.key]:null;return jsxs("div",{style:{backgroundColor:W?p.selectedBg:j?p.hover:p.cardBg,border:`1px solid ${W?p.selectedBorder:p.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:i?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>i?.(D),onMouseEnter:()=>m(Z),onMouseLeave:()=>m(null),children:[(ee!==null||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.divider}`},children:[n&&jsx(Mn,{checked:W,onChange:()=>v(Z),t:p}),ee!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:p.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ee})]}),jsx("div",{children:z.map((O,_)=>{let q=O.render?O.render(D[O.key],D,H):D[O.key];return jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:_<z.length-1?`1px solid ${p.divider}`:"none"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:p.textSecondary,flexShrink:0,paddingTop:"2px"},children:O.header}),jsx("span",{style:{fontSize:"14px",color:p.text,textAlign:"right",wordBreak:"break-word"},children:q??"\u2014"})]},O.key)})}),u&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${p.divider}`},onClick:O=>O.stopPropagation(),children:u(D,H)})]},Z??H)})]})};Li.displayName="MobileDataCard";var Ni={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)"}},$i={none:"0",sm:"12px",md:"20px",lg:"28px"},Wi=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:l=true,padding:i="md",className:d,style:s})=>{let f=I(),g=Ni[f],c=$i[i],h={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,...s},b=r??(e||t?jsxs("div",{style:{padding:c,paddingBottom:n||o?"0":c},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:h,onMouseEnter:x=>{a&&(x.currentTarget.style.borderColor=g.borderHover,x.currentTarget.style.transform="translateY(-2px)",x.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:x=>{a&&(x.currentTarget.style.borderColor=l?g.border:"transparent",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none");},children:[b,n&&jsx("div",{style:{padding:c},children:n}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${g.divider}`}}),jsx("div",{style:{padding:c},children:o})]})]})};Wi.displayName="Card";var Ln={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)"}},Ui=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:l})=>{let i=I(),d=Ln[i],[s,f]=useState(r),g=n?!!a:s,c=useRef(null),[h,b]=useState(0);useEffect(()=>{c.current&&b(c.current.scrollHeight);},[t,g]);let x=useCallback(()=>{o||(n&&l?l():f(u=>!u));},[o,n,l]);return jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:x,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:u=>{o||(u.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:u=>{u.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:c,style:{overflow:"hidden",maxHeight:g?`${h}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:d.textSecondary},children:t})})]})};Ui.displayName="AccordionItem";var _i=({children:e,multiple:t=false,className:r,style:o})=>{let n=I(),a=Ln[n],l=Ko.Children.toArray(e).filter(f=>Ko.isValidElement(f)),[i,d]=useState(()=>{let f=new Set;return l.forEach((g,c)=>{g.props.defaultOpen&&f.add(c);}),f}),s=useCallback(f=>{d(g=>{let c=new Set(g);return c.has(f)?c.delete(f):(t||c.clear(),c.add(f)),c});},[t]);return jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:l.map((f,g)=>Ko.cloneElement(f,{key:g,_controlled:true,_open:i.has(g),_onToggle:()=>s(g)}))})};_i.displayName="Accordion";var Gi={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)"}},ji={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Xi=()=>null;Xi.displayName="Tab";var qi=()=>null;qi.displayName="TabPanel";var Ki=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:l,style:i})=>{let d=I(),s=Gi[d],f=ji[a],g=Ko.Children.toArray(r),c=g.filter(x=>Ko.isValidElement(x)&&x.type?.displayName==="Tab"),b=g.filter(x=>Ko.isValidElement(x)&&x.type?.displayName==="TabPanel").find(x=>x.props.value===e);return jsxs("div",{className:l,style:i,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${s.border}`:"none"},children:c.map(x=>{let u=x.props.value===e,T=x.props.disabled,y=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:u?500:400,color:T?s.textDisabled:u?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${u?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:T?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:u?500:400,color:T?s.textDisabled:u?s.pillText:s.textInactive,backgroundColor:u?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:T?"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:T,style:y,onClick:()=>{T||t(x.props.value);},onMouseEnter:S=>{!T&&!u&&(S.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:S=>{T||(S.currentTarget.style.backgroundColor=o==="pills"&&u?s.pillBg:"transparent");},children:[x.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:x.props.icon}),x.props.label]},x.props.value)})}),b&&jsx("div",{style:{paddingTop:"16px"},children:b.props.children})]})};Ki.displayName="Tabs";var el={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},rr=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let l=I(),i=el[l],[d,s]=useState(false),[f,g]=useState({top:0,left:0}),c=useRef(null),h=useRef(null),b=useRef(void 0),x=6,u=8,T=useCallback(()=>{let P=c.current,E=h.current;if(!P||!E)return;let m=P.getBoundingClientRect(),R=E.getBoundingClientRect(),F=0,C=0;switch(r){case "top":F=m.top-R.height-u,C=m.left+m.width/2-R.width/2;break;case "bottom":F=m.bottom+u,C=m.left+m.width/2-R.width/2;break;case "left":F=m.top+m.height/2-R.height/2,C=m.left-R.width-u;break;case "right":F=m.top+m.height/2-R.height/2,C=m.right+u;break}g({top:F,left:C});},[r]);useEffect(()=>{d&&requestAnimationFrame(T);},[d,T]);let y=useCallback(()=>{b.current=setTimeout(()=>s(true),o);},[o]),S=useCallback(()=>{b.current&&clearTimeout(b.current),s(false);},[]);useEffect(()=>()=>{b.current&&clearTimeout(b.current);},[]);let p=(()=>{let P={position:"absolute",width:0,height:0,border:`${x}px solid transparent`};switch(r){case "top":return {...P,bottom:-x,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...P,top:-x,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...P,right:-x,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...P,left:-x,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),k=d?createPortal(jsxs("div",{ref:h,className:n,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.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:p})]}),document.body):null;return jsxs(Fragment,{children:[Ko.cloneElement(t,{ref:c,onMouseEnter:P=>{y(),t.props.onMouseEnter?.(P);},onMouseLeave:P=>{S(),t.props.onMouseLeave?.(P);}}),k]})};rr.displayName="Tooltip";var al={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"}},ar=180,oo=8,sl=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let l=I(),i=al[l],[d,s]=useState(false),[f,g]=useState(false),[c,h]=useState("idle"),[b,x]=useState({top:0,left:0}),u=useRef(null),T=useRef(null),y=useRef(void 0),S=useCallback(()=>{s(true),g(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});},[]),p=useCallback(()=>{s(false),h("closing");let C=setTimeout(()=>{g(false),h("idle");},ar);return ()=>clearTimeout(C)},[]),k=useCallback(()=>{let C=u.current,z=T.current;if(!C||!z)return;let A=C.getBoundingClientRect(),v=z.getBoundingClientRect(),B=0,M=0;switch(r){case "top":B=A.top-v.height-oo,M=A.left+A.width/2-v.width/2;break;case "bottom":B=A.bottom+oo,M=A.left+A.width/2-v.width/2;break;case "left":B=A.top+A.height/2-v.height/2,M=A.left-v.width-oo;break;case "right":B=A.top+A.height/2-v.height/2,M=A.right+oo;break}x({top:B,left:M});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(k),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[f,k]),useEffect(()=>{if(!d)return;let C=z=>{let A=z.target;!u.current?.contains(A)&&!T.current?.contains(A)&&p();};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[d,p]),useEffect(()=>{if(!d)return;let C=z=>{z.key==="Escape"&&p();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[d,p]);let P=()=>{let C={transition:`opacity ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},A=r==="top"||r==="bottom"?"Y":"X";return c==="opening"||c==="idle"?{...C,opacity:0,transform:`translate${A}(${z[r]}) scale(0.97)`}:c==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`translate${A}(${z[r]}) scale(0.98)`,pointerEvents:"none"}},E=useCallback(()=>{o==="click"&&(d?p():S());},[o,d,p,S]),m=useCallback(()=>{o==="hover"&&(y.current&&clearTimeout(y.current),d||S());},[o,d,S]),R=useCallback(()=>{o==="hover"&&(y.current=setTimeout(()=>{p();},150));},[o,p]);useEffect(()=>()=>{y.current&&clearTimeout(y.current);},[]);let F=f?createPortal(jsx("div",{ref:T,className:n,onMouseEnter:()=>{o==="hover"&&y.current&&clearTimeout(y.current);},onMouseLeave:R,style:{position:"fixed",top:b.top,left:b.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...P(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[Ko.cloneElement(t,{ref:u,onClick:C=>{E(),t.props.onClick?.(C);},onMouseEnter:C=>{m(),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{R(),t.props.onMouseLeave?.(C);}}),F]})};sl.displayName="Popover";var dl={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},pl=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let l=I(),i=dl[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:i.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};pl.displayName="EmptyState";var bl={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)"}},xl=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:l,style:i})=>{let d=I(),s=bl[d],f=a==="up"?s.trendUp:a==="down"?s.trendDown:s.trendNeutral,g=c=>`${c>0?"+":""}${c.toFixed(1)} %`;return jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.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:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:f}),a==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:g(r)}),o&&jsx("span",{style:{color:s.label,marginLeft:"2px"},children:o})]})]})]})};xl.displayName="Stat";var ml=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],Gu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let l=ml(t),i={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:i,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:d,children:e.toUpperCase()})})};var Yn={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)"}},ir=({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}),Ju=({label:e,onRemove:t,style:r,className:o})=>{let n=Yn[I()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:n.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:n.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Qu=({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}),eg=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:l})=>{let i=Yn[I()],d=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.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(ir,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(ir,{onClick:r,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(ir,{onClick:o,title:"Smazat",color:i.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var Sl={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)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},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)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},_n={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},et=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),kl=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,Pe=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},cr=(e,t=1)=>{let r=new Date(e),o=r.getDay(),n=t===1?(o===0?-6:1)-o:-o;return r.setDate(r.getDate()+n),r.setHours(0,0,0,0),r},Gn=(e,t,r=1)=>{let o=new Date(e,t,1),n=cr(o,r),a=[],l=new Date(n);for(let i=0;i<42;i++)a.push(new Date(l)),l.setDate(l.getDate()+1);return a},Cl=(e,t=1)=>{let r=cr(e,t),o=[];for(let n=0;n<7;n++){let a=new Date(r);a.setDate(r.getDate()+n),o.push(a);}return o},jn=(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};function wl(e,t){let r=[],o=new Map,n=Pe(e[0]),a=Pe(e[6]),l=t.filter(i=>{let d=Pe(i.date);return (i.endDate?Pe(i.endDate):d)>=n&&d<=a}).sort((i,d)=>{let s=Pe(i.date).getTime(),f=Pe(d.date).getTime();if(s!==f)return s-f;let g=i.endDate?Pe(i.endDate).getTime():s;return (d.endDate?Pe(d.endDate).getTime():f)-f-(g-s)});for(let i of l){let d=Pe(i.date),s=i.endDate?Pe(i.endDate):d,f=d<n?n:d,g=s>a?a:s,c=e.findIndex(y=>et(y,f)),h=e.findIndex(y=>et(y,g));if(c===-1||h===-1)continue;let b=h-c+1,x=d>=n,u=0;for(;;){o.has(u)||o.set(u,new Set);let y=o.get(u),S=true;for(let p=c;p<=h;p++)if(y.has(p)){S=false;break}if(S)break;u++;}let T=o.get(u);for(let y=c;y<=h;y++)T.add(y);r.push({event:i,row:u,startCol:c,span:b,isStart:x});}return r}var Rl=({value:e,onChange:t,view:r="month",events:o=[],minDate:n,maxDate:a,style:l,className:i,firstDay:d=1,locale:s="cs",initialDate:f,t:g,today:c})=>{let h=_n[s],b=f||e||c,[x,u]=useState(()=>b.getMonth()),[T,y]=useState(()=>b.getFullYear()),[S,p]=useState(()=>cr(b,d)),[k,P]=useState(null),E=useMemo(()=>r==="week"?Cl(S,d):Gn(T,x,d),[r,T,x,S,d]),m=useCallback(()=>{r==="week"?p(v=>{let B=new Date(v);return B.setDate(B.getDate()-7),B}):u(v=>v===0?(y(B=>B-1),11):v-1);},[r]),R=useCallback(()=>{r==="week"?p(v=>{let B=new Date(v);return B.setDate(B.getDate()+7),B}):u(v=>v===11?(y(B=>B+1),0):v+1);},[r]),F=v=>o.filter(B=>et(B.date,v)),C=r==="week"?(()=>{let v=new Date(S);return v.setDate(v.getDate()+6),S.getMonth()===v.getMonth()?`${S.getDate()}. \u2013 ${v.getDate()}. ${h.months[v.getMonth()]} ${v.getFullYear()}`:`${S.getDate()}. ${h.months[S.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${h.months[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${h.months[x]} ${T}`,z={backgroundColor:g.background,border:`1px solid ${g.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.text,overflow:"hidden",userSelect:"none",...l},A={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:g.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:i,style:z,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:g.headerBg,borderBottom:`1px solid ${g.border}`},children:[jsx("button",{style:A,onClick:m,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=g.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:C}),jsx("button",{style:A,onClick:R,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=g.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:h.daysFull.map(v=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:g.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:E.map((v,B)=>{let M=et(v,c),L=e?et(v,e):false,N=r==="month"&&v.getMonth()!==x,D=jn(v,n,a),H=v.toISOString(),Z=k===H,W=F(v),j="transparent",ee=N?g.outsideText:g.text,O="2px solid transparent";return L?(j=g.selectedBg,ee=g.selectedText):M?(j=g.todayBg,O=`2px solid ${g.todayBorder}`):Z&&!D&&(j=g.hover),D&&(ee=g.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:O,background:j,color:ee,fontSize:"13px",fontWeight:M?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:D?"default":"pointer",opacity:D?.4:1,transition:"background-color 0.12s ease"},disabled:D,onClick:()=>{!D&&t&&t(v);},onMouseEnter:()=>!D&&P(H),onMouseLeave:()=>P(null),children:v.getDate()}),W.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:W.slice(0,3).map((_,q)=>jsx("div",{title:_.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:_.color||g.eventDot}},q))})]},B)})})]})},no=24,ft=2,Tl=({value:e,onChange:t,events:r=[],onEventClick:o,showHeader:n=true,onNavigate:a,minDate:l,maxDate:i,style:d,className:s,firstDay:f=1,locale:g="cs",maxEventsPerDay:c=3,initialDate:h,t:b,today:x})=>{let u=_n[g],T=h||e||x,[y,S]=useState(()=>T.getMonth()),[p,k]=useState(()=>T.getFullYear()),[P,E]=useState(null),m=useMemo(()=>Gn(p,y,f),[p,y,f]),R=useMemo(()=>{let M=[];for(let L=0;L<m.length;L+=7)M.push(m.slice(L,L+7));return M},[m]),F=useMemo(()=>{let M=R[R.length-1];return M&&M.every(L=>L.getMonth()!==y)?R.slice(0,-1):R},[R,y]),C=useCallback(()=>{let M=y-1,L=p;M<0&&(M=11,L--),S(M),k(L),a&&a(new Date(L,M,1));},[y,p,a]),z=useCallback(()=>{let M=y+1,L=p;M>11&&(M=0,L++),S(M),k(L),a&&a(new Date(L,M,1));},[y,p,a]),A=`${u.months[y]} ${p}`,B={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:s,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,userSelect:"none",...d},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:B,onClick:C,onMouseEnter:M=>{M.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:M=>{M.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:A}),jsx("button",{style:B,onClick:z,onMouseEnter:M=>{M.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:M=>{M.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${b.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:b.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${b.cellBorder}`},children:u.days.map((M,L)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:b.text,padding:"10px 0",borderRight:L<6?`1px solid ${b.cellBorder}`:"none"},children:M},M))}),F.map((M,L)=>{let N=wl(M,r),D=N.length>0?Math.max(...N.map(O=>O.row))+1:0,H=M.map((O,_)=>{let q=N.filter(G=>_>=G.startCol&&_<G.startCol+G.span);return Math.max(0,q.filter(G=>G.row>=c).length)}),W=Math.min(D,c)*(no+ft)+ft,ee=H.some(O=>O>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<F.length-1?`1px solid ${b.cellBorder}`:"none"},children:M.map((O,_)=>{let q=et(O,x),G=O.getMonth()!==y,ge=e?et(O,e):false;return jsxs("div",{style:{borderRight:_<6?`1px solid ${b.cellBorder}`:"none",backgroundColor:q?b.todayCellBg:"transparent",minHeight:`${30+W+ee}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!jn(O,l,i)&&t(O);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:q?700:400,color:G?b.outsideText:q?"#FC4F00":b.text},children:ge?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[O.getDate(),"."]}):jsxs(Fragment,{children:[O.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${W}px`},children:N.filter(Q=>Q.startCol===_&&Q.row<c).map((Q,K)=>{let J=Q.event.id||`${kl(Q.event.date)}-${Q.event.title}`,be=P===J,Ee=Q.event.color||b.eventBarDefault,Y=jsxs("div",{style:{position:"absolute",top:`${ft+Q.row*(no+ft)}px`,left:"2px",width:Q.span>1?`calc(${Q.span*100}% - 4px)`:"calc(100% - 4px)",height:`${no}px`,backgroundColor:Ee,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:o?"pointer":"default",zIndex:be?2:1,opacity:be?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:Q.event.tooltip?void 0:Q.event.title,onClick:ae=>{ae.stopPropagation(),o&&o(Q.event);},onMouseEnter:()=>E(J),onMouseLeave:()=>E(null),children:[Q.isStart&&Q.event.emoji&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:Q.event.emoji}),Q.isStart&&jsx("span",{style:{fontSize:"11px",fontWeight:500,color:Q.event.textColor||b.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Q.event.title})]},K);return Q.event.tooltip?jsx(rr,{content:Q.event.tooltip,children:Y},K):Y})}),H[_]>0&&jsxs("div",{style:{fontSize:"10px",color:b.moreText,textAlign:"center",padding:"2px 0"},children:["+",H[_]]})]},_)})},L)})]})]})},Fl=e=>{let t=I(),r=Sl[t],o=useMemo(()=>{let n=new Date;return n.setHours(0,0,0,0),n},[]);return e.fullSize?jsx(Tl,{...e,t:r,today:o}):jsx(Rl,{...e,t:r,today:o})};Fl.displayName="Calendar";var Dl={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)"}},Bl=({items:e,orientation:t="vertical",style:r,className:o})=>{let n=I(),a=Dl[n];return t==="horizontal"?jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...r},children:e.map((l,i)=>{let d=i===e.length-1,s=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:d?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsx("div",{style:{flex:1}}),l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:a.dotBg,flexShrink:0}}),!d&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),d&&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:l.title}),l.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:l.date}),l.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:l.description})]})]},i)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...r},children:e.map((l,i)=>{let d=i===e.length-1,s=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:d?0:"4px",minHeight:l.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!d&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:l.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:l.title}),l.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:l.date})]}),l.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:l.description})]})]},i)})})};Bl.displayName="Timeline";var zl={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)"}},Il=({items:e,columns:t=1,striped:r=false,style:o,className:n})=>{let a=I(),l=zl[a],i=Math.max(1,Math.round(t)),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...o},s=h=>i<=1?h:Math.floor(h/i),f=h=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${l.border}`,backgroundColor:r&&s(h)%2===1?l.stripedBg:l.background}),g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:l.textMuted,flexShrink:0,letterSpacing:"0.01em"},c={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:n,style:d,children:e.map((h,b)=>jsxs("div",{style:f(b),children:[jsx("span",{style:g,children:h.label}),jsx("span",{style:c,children:h.value})]},b))})};Il.displayName="DataList";var Hl={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"}},qn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:l})=>{let i=e.children&&e.children.length>0,d=r.has(e.id),s=o===e.id,[f,g]=useState(false),c="transparent";return s?c=l.selectedBg:f&&(c=l.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:c,borderLeft:s?`2px solid ${l.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:h=>{h.stopPropagation(),i&&n(e.id);},children:i&&jsx(CaretRightIcon,{size:14,color:d?l.iconExpanded:l.iconColor,style:{transform:d?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:s?l.selectedBorder:l.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?l.selectedText:l.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&d&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:l.line}}),e.children.map(h=>jsx(qn,{node:h,depth:t+1,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:l},h.id))]})]})},Ll=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:n,className:a})=>{let l=I(),i=Hl[l],[d,s]=useState(()=>new Set(o)),f=useCallback(c=>{s(h=>{let b=new Set(h);return b.has(c)?b.delete(c):b.add(c),b});},[]),g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...n};return jsx("div",{className:a,style:g,role:"tree",children:e.map(c=>jsx(qn,{node:c,depth:0,expanded:d,selectedId:r,onToggle:f,onSelect:t,t:i},c.id))})};Ll.displayName="Tree";var $l={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Wl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Zl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},fr=false,Ol=()=>{if(fr||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){fr=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
12
|
+
`}),te.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:m.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((H,Q)=>{let ee=X$1(H.value),ne=Q===L;return jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":H.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ee?500:400,lineHeight:"normal",color:ee?m.optionSelectedText:H.disabled?m.placeholder:m.text,backgroundColor:ne?m.optionHover:ee?m.optionSelected:"transparent",cursor:H.disabled?"not-allowed":"pointer",opacity:H.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:Q<te.length-1?"2px":0},onClick:()=>{H.disabled||$(H.value);},onMouseEnter:()=>R(Q),onMouseLeave:()=>R(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H.label??H.value}),ee&&jsx(Check,{size:16,color:m.optionSelectedText})]},H.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:x,children:[c&&jsx("label",{htmlFor:f,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.text,userSelect:"none"},children:c}),jsxs("div",{ref:C,role:"combobox","aria-expanded":v,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:pe,onClick:U,onKeyDown:re,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[O.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.placeholder,lineHeight:"normal"},children:d}),r?O.map(H=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:m.tagBg,color:m.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:K(H)}),!N&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:Q=>{Q.stopPropagation(),$(H);},children:jsx(X,{size:14,color:m.tagText})})]},H)):O.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(O[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[q&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:j,children:jsx(X,{size:14,color:m.placeholder})}),i?jsx(Fs,{size:16,color:m.placeholder}):jsx(CaretDown,{size:16,color:m.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:m.borderError,lineHeight:"normal"},children:z}),we]})};gn.displayName="Select";var Es=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:un[a].label,userSelect:"none"},children:e}),o??jsx(gn,{options:[]})]})};Es.displayName="SelectGroup";var As=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}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"})]})},Hs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",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)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},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)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Vo=180,Ls={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ns=ur.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:n="Hledat\u2026",label:a,error:s,disabled:i=false,loading:u=false,multiple:c=false,clearable:d=false,onOpenChange:p,onSelect:l,onDeselect:x,onClear:b,onFocus:m,onBlur:f,allowCustom:C=false,onCreate:w,renderOption:y,notFoundContent:g,footer:v,size:M="md",style:D,className:k},h)=>{let F=P(),S=Hs[F],L=useId(),R=Ls[M],T=useRef(null),E=useRef(null),N=useRef(null),W=useRef(null),[z,A]=useState(false),[Z,O]=useState(false),[X$1,te]=useState("idle"),[Y,$]=useState(""),[j,U]=useState(-1),[re,K]=useState(false),[q,J]=useState({top:0,left:0,width:0,openAbove:false}),pe=i||u,we=!!s,H=typeof s=="string"?s:void 0,Q=d&&!pe,ee=c?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ne=B=>ee.includes(B),he=B=>{let V=e.find(G=>G.value===B);return V?V.label??V.value:B};useEffect(()=>{if(!c&&!re){let B=e.find(V=>V.value===t);$(B?B.label??B.value:(typeof t=="string"?t:"")||"");}},[t,e,re,c]);let Ye=Y?e.filter(B=>(B.label??B.value).toLowerCase().includes(Y.toLowerCase())):e,Qe=useCallback(()=>{A(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Ee=useCallback(()=>{A(false),te("closing"),p?.(false);let B=setTimeout(()=>{O(false),te("idle");},Vo);return ()=>clearTimeout(B)},[p]),$e=useCallback(()=>{if(!T.current)return;let B=T.current.getBoundingClientRect(),V=N.current?.offsetHeight??240,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;J({top:se?B.top-6:B.bottom+6,left:B.left,width:B.width,openAbove:se});},[]);useEffect(()=>{if(Z)return $e(),window.addEventListener("scroll",$e,true),window.addEventListener("resize",$e),()=>{window.removeEventListener("scroll",$e,true),window.removeEventListener("resize",$e);}},[Z,$e]),useEffect(()=>{if(!z)return;let B=V=>{let G=V.target;if(!T.current?.contains(G)&&!N.current?.contains(G))if(Ee(),c)$("");else {let _=e.find(se=>se.value===t);C||$(_?_.label??_.value:"");}};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[z,Ee,t,e,C,c]),useEffect(()=>{j>=0&&W.current&&W.current.children[j]?.scrollIntoView({block:"nearest"});},[j]);let Do=B=>{let V=B.target.value;$(V),r?.(V),U(0),z||Qe();},Qt=useCallback(B=>{let V=e.find(G=>G.value===B)||{value:B};if(c){if(ne(B)){let G=ee.filter(_=>_!==B);o(G),x?.(B,V);}else {let G=[...ee,B];o(G),l?.(B,V);}$("");}else o(B),l?.(B,V),$(V.label??V.value),Ee();},[o,e,Ee,c,ee,l,x]),zo=useCallback(B=>{if(!c)return;let V=e.find(_=>_.value===B)||{value:B},G=ee.filter(_=>_!==B);o(G),x?.(B,V);},[c,ee,o,e,x]),Io=useCallback(B=>{B.stopPropagation(),o(c?[]:""),$(""),b?.();},[c,o,b]),Po=B=>{if(!pe)switch(B.key){case "ArrowDown":B.preventDefault(),z?U(V=>Math.min(V+1,Ye.length-1)):(Qe(),U(0));break;case "ArrowUp":B.preventDefault(),U(V=>Math.max(V-1,0));break;case "Enter":B.preventDefault(),z&&j>=0&&Ye[j]?Qt(Ye[j].value):C&&Y&&(c?(o([...ee,Y]),w?.(Y),$("")):(o(Y),w?.(Y),Ee()));break;case "Backspace":if(c&&Y===""&&ee.length>0){let V=ee.slice(0,-1);o(V);}break;case "Escape":Ee();break;case "Tab":z&&Ee();break}},zt=B=>{K(true),m?.(B),!z&&!pe&&Qe();},Mo=B=>{let V=B.relatedTarget;V&&(N.current?.contains(V)||T.current?.contains(V))||(K(false),f?.(B),!c&&C&&Y&&o(Y),c&&$(""));},Ao=()=>{let B=q.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return X$1==="opening"||X$1==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:X$1==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Ho={display:"flex",alignItems:"center",gap:R.gap,backgroundColor:pe?S.backgroundDisabled:S.background,border:`1px solid ${we?S.borderError:re?S.borderFocus:S.border}`,borderRadius:"8px",padding:R.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:pe?.6:1,cursor:pe?"not-allowed":"text",flexWrap:"nowrap"},Lo={flex:1,minWidth:c?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:R.fontSize,lineHeight:"normal",color:S.text,cursor:pe?"not-allowed":"text"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:S.label,userSelect:"none"},eo=Z?createPortal(jsxs("div",{ref:N,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:S.dropdownBg,border:`1px solid ${S.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="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",...Ao()},onMouseDown:B=>{B.preventDefault();},children:[jsxs("div",{ref:W,role:"listbox","aria-multiselectable":c,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[Ye.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:S.placeholder,textAlign:"center"},children:C&&Y?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof g=="function"?g(Ee):g??"\u017D\xE1dn\xE9 v\xFDsledky"}),Ye.map((B,V)=>{let G=ne(B.value),_=V===j;return jsx("div",{role:"option","aria-selected":G,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:G?500:400,lineHeight:"normal",color:G?S.optionSelectedText:S.text,backgroundColor:_?S.optionHover:G?S.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:V<Ye.length-1?"2px":0},onClick:()=>Qt(B.value),onMouseEnter:()=>U(V),onMouseLeave:()=>U(-1),children:y?y(B,_):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.label??B.value}),G&&jsx(Check,{size:16,color:S.optionSelectedText})]})},B.value)})]}),v&&jsx("div",{style:{borderTop:`1px solid ${S.divider}`,padding:"8px 6px"},children:typeof v=="function"?v(Ee):v})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...D},className:k,children:[a&&jsx("label",{htmlFor:L,style:No,children:a}),jsxs("div",{ref:T,style:Ho,onClick:()=>E.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S.placeholder},children:u?jsx(As,{size:R.iconSize,color:S.placeholder}):jsx(MagnifyingGlass,{size:R.iconSize,color:S.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[c&&ee.map(B=>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:he(B)}),!pe&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:V=>{V.stopPropagation(),zo(B);},children:jsx(X,{size:14,color:S.tagText})})]},B)),jsx("input",{ref:B=>{E.current=B,typeof h=="function"?h(B):h&&(h.current=B);},id:L,type:"text",value:Y,onChange:Do,onFocus:zt,onBlur:Mo,onKeyDown:Po,placeholder:c&&ee.length>0?"":n,disabled:i,readOnly:u,style:Lo})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Q&&ee.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Io,children:jsx(X,{size:14,color:S.placeholder})}),jsx(CaretDown,{size:R.iconSize,color:S.placeholder,style:{transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]})]}),H&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:S.borderError,lineHeight:"normal"},children:H}),eo]})});Ns.displayName="Combobox";var Ys=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}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"})]})},kn={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)"}},Uo=180,Vs={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"}},Us=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],hn=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function _s(e,t,o){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-o,n<0&&(n+=7);let a=new Date(e,t,1-n),s=[];for(let i=0;i<42;i++){let u=new Date(a);u.setDate(a.getDate()+i),s.push(u);}return s}function Xo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function yn(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Xo(e)} ${t}:${o}`}function Xe(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function vn(e,t,o){let r=e.getTime(),n=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return r>=n&&r<=a}function Xs(e){return Xe(e,new Date)}var Cn=({mode:e="single",showTime:t=false,value:o,onChange:r,label:n,placeholder:a,error:s,helperText:i,disabled:u=false,loading:c=false,clearable:d=false,size:p="md",fullWidth:l=false,required:x,minDate:b,maxDate:m,firstDayOfWeek:f=1,style:C,className:w})=>{let y=P(),g=kn[y],v=useId(),M=Vs[p],D=useRef(null),k=useRef(null),[h,F]=useState(false),[S,I]=useState(false),[L,R]=useState("idle"),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),[N,W]=useState(null),z=new Date,[A,Z]=useState(z.getFullYear()),[O,X$1]=useState(z.getMonth()),[te,Y]=useState("days"),[$,j]=useState(0),U=u||c,re=!!s,K=typeof s=="string"?s:void 0,q=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],pe=e==="single"?q!==null:J[0]!==null||J[1]!==null,we=d&&pe&&!U,H=(()=>{if(e==="single")return q?t?yn(q):Xo(q):"";let[B,V]=J;if(!B&&!V)return "";let G=t?yn:Xo;return `${B?G(B):"\u2026"} \u2013 ${V?G(V):"\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"),ee=useCallback(()=>{let B=e==="single"?q:J[0];B&&(Z(B.getFullYear()),X$1(B.getMonth())),Y("days"),F(true),I(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));});},[e,q,J]),ne=useCallback(()=>{F(false),R("closing");let B=setTimeout(()=>{I(false),R("idle");},Uo);return ()=>clearTimeout(B)},[]),he=useCallback(()=>{if(!D.current)return;let B=D.current.getBoundingClientRect(),V=k.current?.offsetHeight??380,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;E({top:se?B.top-6:B.bottom+6,left:B.left,width:Math.max(B.width,300),openAbove:se});},[]);useEffect(()=>{if(S)return he(),window.addEventListener("scroll",he,true),window.addEventListener("resize",he),()=>{window.removeEventListener("scroll",he,true),window.removeEventListener("resize",he);}},[S,he]),useEffect(()=>{if(!h)return;let B=V=>{let G=V.target,_=D.current?.contains(G),se=k.current?.contains(G);!_&&!se&&ne();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[h,ne]);let Ye=B=>{U||(B.key==="Escape"&&h&&(B.preventDefault(),ne()),(B.key==="Enter"||B.key===" ")&&!h&&(B.preventDefault(),ee()));},Qe=useCallback(B=>{if(b){let V=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(B<V)return true}if(m){let V=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(B>V)return true}return false},[b,m]),Ee=useCallback(B=>{if(!Qe(B)&&r)if(e==="single")t&&q&&B.setHours(q.getHours(),q.getMinutes()),r(new Date(B)),t||ne();else if($===0)t&&J[0]&&B.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(B),null]),j(1);else {let V=J[0];t&&J[1]&&B.setHours(J[1].getHours(),J[1].getMinutes());let[G,_]=B>=V?[V,new Date(B)]:[new Date(B),V];r([G,_]),j(0),t||ne();}},[e,t,q,J,$,r,ne,Qe]),$e=useCallback((B,V,G)=>{if(!r)return;let _=parseInt(V,10);if(isNaN(_)&&(_=0),B==="hour"&&(_=Math.max(0,Math.min(23,_))),B==="minute"&&(_=Math.max(0,Math.min(59,_))),e==="single"){let se=q?new Date(q):new Date;B==="hour"?se.setHours(_):se.setMinutes(_),r(se);}else {let se=G??0,ye=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],et=ye[se]??new Date;B==="hour"?et.setHours(_):et.setMinutes(_),ye[se]=et,r(ye);}},[e,q,J,r]),Do=()=>{O===0?(X$1(11),Z(B=>B-1)):X$1(B=>B-1);},Qt=()=>{O===11?(X$1(0),Z(B=>B+1)):X$1(B=>B+1);},zo=B=>{B.stopPropagation(),r&&(r(e==="single"?null:[null,null]),j(0));},Io=()=>{let B=T.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:L==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Po=_s(A,O,f),zt=(B,V)=>{let G=B?B.getHours():0,_=B?B.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${g.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.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(G).padStart(2,"0"),onChange:ye=>$e("hour",ye.target.value,V),style:se,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:g.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:ye=>$e("minute",ye.target.value,V),style:se,maxLength:2,"aria-label":"Minuty"})]})},Mo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:hn.map((B,V)=>{let G=V===O;return jsx("button",{type:"button",onClick:()=>{X$1(V),Y("days");},style:{background:G?g.daySelected:"transparent",color:G?g.daySelectedText:g.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||(_.target.style.backgroundColor=g.dayHover);},onMouseLeave:_=>{G||(_.target.style.backgroundColor="transparent");},children:B},V)})}),Ao=()=>{let B=Math.floor(A/12)*12,V=Array.from({length:12},(G,_)=>B+_);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>Z(G=>G-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text},children:[B," \u2013 ",B+11]}),jsx("button",{type:"button",onClick:()=>Z(G=>G+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:V.map(G=>{let _=G===A;return jsx("button",{type:"button",onClick:()=>{Z(G),Y("months");},style:{background:_?g.daySelected:"transparent",color:_?g.daySelectedText:g.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=>{_||(se.target.style.backgroundColor=g.dayHover);},onMouseLeave:se=>{_||(se.target.style.backgroundColor="transparent");},children:G},G)})})]})},Ho=S?createPortal(jsx("div",{ref:k,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:g.dropdownBg,border:`1px solid ${g.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:T.openAbove?"bottom center":"top center",...Io()},children:te==="years"?Ao():te==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})}),Mo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:Do,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>Y("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:hn[O]}),jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})]}),jsx("button",{type:"button",onClick:Qt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Us.map(B=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:g.placeholder,padding:"4px 0",userSelect:"none"},children:B},B))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Po.map((B,V)=>{let G=B.getMonth()!==O,_=Qe(B),se=Xs(B),ye=false,et=false,$o=false,to=false;if(e==="single"&&q)ye=Xe(B,q);else if(e==="range"){let[Ve,ro]=J;Ve&&Xe(B,Ve)&&(et=true,ye=true),ro&&Xe(B,ro)&&($o=true,ye=true),Ve&&ro&&vn(B,Ve,ro)&&!et&&!$o&&(to=true),$===1&&Ve&&N&&!_&&(Xe(B,N)&&!Xe(B,Ve)&&(ye=true),vn(B,Ve,N)&&!Xe(B,Ve)&&!Xe(B,N)&&(to=true));}let Wo="transparent",oo=g.text;return ye?(Wo=g.daySelected,oo=g.daySelectedText):to&&(Wo=g.dayRangeMiddle),G&&(oo=ye?g.daySelectedText:g.dayOutside),_&&(oo=g.dayDisabled),jsx("button",{type:"button",disabled:_,onClick:()=>Ee(B),onMouseEnter:()=>{_||W(B);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Wo,color:oo,border:"none",borderRadius:et?"6px 0 0 6px":$o?"0 6px 6px 0":to?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ye?600:400,cursor:_?"not-allowed":"pointer",opacity:_?.4:1,transition:"background-color 0.1s ease",outline:se&&!ye?`1.5px solid ${g.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:B.getDate()},V)})}),t&&jsx("div",{style:{borderTop:`1px solid ${g.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:g.placeholder},children:"\u010Cas:"}),zt(q)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Od:"}),zt(J[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Do:"}),zt(J[1],1)]})]})})]})}),document.body):null,Lo={display:"flex",alignItems:"center",gap:M.gap,backgroundColor:U?g.backgroundDisabled:g.background,border:`1px solid ${re?g.borderError:h?g.borderFocus:g.border}`,borderRadius:"8px",padding:M.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},eo={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,...C},className:w,children:[n&&jsxs("label",{htmlFor:v,style:No,children:[n,x&&jsx("span",{style:{color:g.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:D,role:"button",tabIndex:U?-1:0,style:Lo,onClick:()=>{U||(h?ne():ee());},onKeyDown:Ye,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.text,lineHeight:"normal"},children:H}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.placeholder,lineHeight:"normal"},children:Q})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[we&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:zo,children:jsx(X,{size:M.iconSize-2,color:g.placeholder})}),c?jsx(Ys,{size:M.iconSize,color:g.placeholder}):jsx(CalendarBlank,{size:M.iconSize,color:g.placeholder})]})]}),K&&jsx("span",{style:{...eo,color:g.borderError},children:K}),!K&&i&&jsx("span",{style:{...eo,color:g.helperText},children:i}),Ho]})};Cn.displayName="DatePicker";var Gs=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:kn[a].label,userSelect:"none"},children:e}),o??jsx(Cn,{})]})};Gs.displayName="DatePickerGroup";var wn={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"}},Js={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}},Rn=({checked:e=false,onChange:t,label:o,disabled:r=false,error:n,size:a="md",indeterminate:s=false,className:i,style:u})=>{let c=P(),d=wn[c],p=Js[a],l=useId(),x=useRef(null),b=!!n,m=typeof n=="string"?n:void 0;useEffect(()=>{x.current&&(x.current.indeterminate=s);},[s]);let f=()=>{r||t?.(!e);},C=b?d.borderError:e||s?d.checkBg:d.border,w=e||s?d.checkBg:r?d.backgroundDisabled:d.background,y={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${C}`,backgroundColor:w,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:r?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...u},className:i,children:[jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:M=>{M.preventDefault(),f();},children:[jsx("input",{ref:x,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":b||void 0}),jsxs("span",{style:y,children:[e&&!s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:g,children:o})]}),m&&jsx("span",{style:{...v,color:d.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:m})]})};Rn.displayName="Checkbox";var Tn=({label:e,children:t,error:o,className:r,style:n})=>{let a=P(),s=wn[a],i=typeof o=="string"?o:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.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:r,children:[e&&jsx("span",{style:u,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsx("span",{style:{...c,color:s.borderError},children:i})]})};Tn.displayName="CheckboxGroup";var Fn={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"}},ei={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"}},Go=({value:e,checked:t=false,onChange:o,label:r,disabled:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Fn[u],d=ei[a],p=useId(),l=()=>{n||o?.(e);},x=t?c.dotRing:c.border,b=n?c.backgroundDisabled:c.background,m={width:d.box,height:d.box,borderRadius:"50%",border:`1.5px solid ${x}`,backgroundColor:b,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...i},className:s,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:C=>{C.preventDefault(),l();},children:[jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:n,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:m,children:t&&jsx("span",{style:{width:d.dot,height:d.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),r&&jsx("span",{style:f,children:r})]})})};Go.displayName="Radio";var En=({value:e,onChange:t,label:o,options:r,direction:n="vertical",error:a,helperText:s,size:i="md",className:u,style:c})=>{let d=P(),p=Fn[d],l=!!a,x=typeof a=="string"?a:void 0,b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:u,children:[o&&jsx("span",{style:b,children:o}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:r.map(f=>jsx(Go,{value:f.value,label:f.label,checked:e===f.value,onChange:t,disabled:f.disabled,size:i},f.value))}),x&&jsx("span",{style:{...m,color:p.borderError},children:x}),!x&&s&&jsx("span",{style:{...m,color:p.helperText},children:s})]})};En.displayName="RadioGroup";var oi={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"}},ri={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"}},Dn=({checked:e=false,onChange:t,label:o,disabled:r=false,size:n="md",className:a,style:s})=>{let i=P(),u=oi[i],c=ri[n],d=useId(),p=()=>{r||t?.(!e);},l=1.5,x=2,m=c.trackW-l*2-c.thumb-x,f=e?m:0,C={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?u.trackOn:u.trackOff,border:`${l}px solid ${e?u.trackOnBorder:u.trackOffBorder}`,position:"relative",cursor:r?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:r?.5:1,boxSizing:"border-box"},w={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:u.thumb,position:"absolute",top:"50%",left:x,transform:`translateY(-50%) translateX(${f}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:u.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:a,children:jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:g=>{g.preventDefault(),p();},children:[jsx("input",{id:d,type:"checkbox",role:"switch",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:C,children:jsx("span",{style:w})}),o&&jsx("span",{style:y,children:o})]})})};Dn.displayName="Switch";var ci={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"}},pi={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},In=ur.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:n=false,size:a="md",fullWidth:s=false,required:i,rows:u=4,maxLength:c,resize:d="vertical",autoHeight:p=false,minRows:l,maxRows:x,className:b,style:m,value:f,onChange:C,onFocus:w,onBlur:y,...g},v)=>{let M=P(),D=ci[M],k=pi[a],h=useId(),F=g.id??h,[S,I]=useState(false),L=useRef(null),R=useCallback(()=>{let $=L.current;if(!$||!p)return;$.style.height="auto";let j=getComputedStyle($),U=parseFloat(j.lineHeight)||parseFloat(j.fontSize)*1.5,re=parseFloat(j.paddingTop)||0,K=parseFloat(j.paddingBottom)||0,q=re+K,pe=U*(l??1)+q,we=x?U*x+q:1/0,H=Math.min(Math.max($.scrollHeight,pe),we);$.style.height=`${H}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[p,l,x]);useEffect(()=>{R();},[f,R]);let T=useCallback($=>{L.current=$,typeof v=="function"?v($):v&&(v.current=$);},[v]),E=p?"none":d,N=p?l??1:u,W=r||n,z=!!t,A=typeof t=="string"?t:void 0,Z=typeof f=="string"?f.length:0,O={backgroundColor:W?D.backgroundDisabled:D.background,border:`1px solid ${z?D.borderError:S?D.borderFocus:D.border}`,borderRadius:"8px",padding:k.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},X={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:k.fontSize,lineHeight:"1.5",color:D.text,cursor:W?"not-allowed":"text",resize:E,boxSizing:"border-box",overflow:p?"hidden":void 0},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},Y={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,...m},className:b,children:[e&&jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:O,children:jsx("textarea",{ref:T,id:F,rows:N,maxLength:c,disabled:r,required:i,readOnly:n||g.readOnly,value:f,onChange:C,style:X,onFocus:$=>{I(true),w?.($);},onBlur:$=>{I(false),y?.($);},...g})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[A&&jsx("span",{style:{...Y,color:D.borderError},children:A}),!A&&o&&jsx("span",{style:{...Y,color:D.helperText},children:o})]}),c!==void 0&&jsxs("span",{style:{...Y,color:Z>c?D.borderError:D.counter,flexShrink:0},children:[Z,"/",c]})]})]})});In.displayName="Textarea";var ui={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)"}},gi={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function An(e,t,o){return Math.min(Math.max(e,t),o)}function bi(e,t,o){return Math.round((e-t)/o)*o+t}var Hn=({value:e,onChange:t,min:o=0,max:r=100,step:n=1,label:a,disabled:s=false,showValue:i=false,range:u=false,size:c="md",className:d,style:p})=>{let l=P(),x=ui[l],b=gi[c],m=useId(),f=useRef(null),C=useRef(null),w=u?e:[o,e],y=S=>(S-o)/(r-o)*100,g=y(w[0]),v=y(w[1]),M=useCallback(S=>{let I=f.current;if(!I)return o;let L=I.getBoundingClientRect(),R=An((S-L.left)/L.width,0,1),T=o+R*(r-o);return An(bi(T,o,n),o,r)},[o,r,n]),D=useCallback(S=>{if(s)return;S.preventDefault();let I=M(S.clientX);if(u){let T=e,E=Math.abs(I-T[0]),N=Math.abs(I-T[1]),W=E<=N?"start":"end";C.current=W;let z=W==="start"?[Math.min(I,T[1]),T[1]]:[T[0],Math.max(I,T[0])];t?.(z);}else C.current="end",t?.(I);let L=T=>{let E=M(T.clientX);if(u){let N=e;C.current==="start"?t?.([Math.min(E,N[1]),N[1]]):t?.([N[0],Math.max(E,N[0])]);}else t?.(E);},R=()=>{C.current=null,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",R);};document.addEventListener("mousemove",L),document.addEventListener("mouseup",R);},[s,M,t,u,e]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},h=u?`${w[0]} \u2013 ${w[1]}`:`${e}`,F={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:x.thumb,border:`2px solid ${x.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,...p},className:d,children:[(a||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:m,style:k,children:a}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,userSelect:"none"},children:h})]}),jsxs("div",{ref:f,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":u?void 0:e,"aria-disabled":s||void 0,onMouseDown:D,style:{position:"relative",width:"100%",height:b.thumb,cursor:s?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${u?g:0}%`,width:`${v-(u?g:0)}%`,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackFill}}),u&&jsx("span",{style:{...F,left:`${g}%`}}),jsx("span",{style:{...F,left:`${v}%`}})]})]})};Hn.displayName="Slider";var vi={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 Qo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Si=0,Nn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:n,disabled:a=false,label:s,helperText:i,error:u,value:c,buttonStyle:d="default",showFileList:p=true,buttonLabel:l,className:x,style:b})=>{let m=P(),f=vi[m],C=useId(),w=useRef(null),[y,g]=useState(false),[v,M]=useState([]),[D,k]=useState(null),h=c!==void 0,F=h?c.map((z,A)=>({file:z,id:`controlled-${A}`})):v,S=!!u||!!D,I=typeof u=="string"?u:D??void 0,L=useCallback(z=>{let A=Array.from(z);if(k(null),n){let Z=A.find(O=>O.size>n);if(Z){k(`Soubor \u201E${Z.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Qo(n)}.`);return}}if(h){let O=r?[...c||[],...A]:A;t?.(O);}else {let Z=A.map(X=>({file:X,id:`file-${++Si}`})),O=r?[...v,...Z]:Z;M(O),t?.(O.map(X=>X.file));}},[h,c,v,n,r,t]),R=useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&L(z.dataTransfer.files);},[a,L]),T=useCallback(z=>{if(h){let A=(c||[]).filter((Z,O)=>`controlled-${O}`!==z);t?.(A);}else {let A=v.filter(Z=>Z.id!==z);M(A),t?.(A.map(Z=>Z.file));}},[h,c,v,t]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},N={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${S?f.borderError:y?f.borderDrag:f.border}`,borderRadius:"8px",backgroundColor:y?f.backgroundDrag:a?f.backgroundDisabled:f.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},W={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...b},className:x,children:[s&&jsx("span",{style:E,children:s}),jsx("input",{ref:w,id:C,type:"file",accept:o,multiple:r,disabled:a,onChange:z=>{z.target.files&&z.target.files.length>0&&L(z.target.files),z.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:N,onClick:()=>!a&&w.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:R,children:[jsx(UploadSimple,{size:32,color:f.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):d==="primary"?jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&w.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:a?.5:1,cursor:a?"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:z=>{a||(z.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!a&&w.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${S?f.borderError:f.border}`,backgroundColor:a?f.backgroundDisabled:f.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:z=>{a||(z.currentTarget.style.borderColor=S?f.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:z=>{z.currentTarget.style.borderColor=S?f.borderError:f.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:F.length>0?jsx(FileText,{size:18,color:f.textSecondary}):jsx(UploadSimple,{size:18,color:f.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?f.text:f.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(F[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:jsx(Folder,{size:16,color:f.textSecondary})})]}),p&&F.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(z=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:f.fileBg},children:[jsx(FileText,{size:24,color:f.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(z.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${z.file.name}`,onClick:A=>{A.stopPropagation(),T(z.id);},onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&T(z.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:f.removeColor})})]},z.id))}),I&&jsx("span",{style:{...W,color:f.borderError},children:I}),!I&&i&&jsx("span",{style:{...W,color:f.helperText},children:i})]})};Nn.displayName="FileUpload";var wi={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)"}},Ri={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"}},Ti=({data:e,value:t,onChange:o,size:r="md",fullWidth:n=false,orientation:a="horizontal",disabled:s=false,className:i,style:u})=>{let c=P(),d=wi[c],p=Ri[r],l=a==="vertical",x=e.map(g=>typeof g=="string"?{value:g,label:g}:g),b=x.findIndex(g=>g.value===t),m=useRef(null),f=useRef([]),[C,w]=useState({offset:0,size:0}),y=useCallback(()=>{let g=m.current,v=f.current[b];if(!g||!v||b<0)return;let M=g.getBoundingClientRect(),D=v.getBoundingClientRect();w(l?{offset:D.top-M.top,size:D.height}:{offset:D.left-M.left,size:D.width});},[b,l]);return useEffect(()=>{y();},[y,t,e,r]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:m,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:d.bg,border:`1px solid ${d.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:s?.5:1,cursor:s?"not-allowed":void 0,...u},children:[b>=0&&C.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.itemRadius,backgroundColor:d.indicator,border:`1px solid ${d.indicatorBorder}`,boxShadow:d.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:p.padding,right:p.padding,top:C.offset,height:C.size}:{top:p.padding,bottom:p.padding,left:C.offset,width:C.size}}}),x.map((g,v)=>{let M=g.value===t,D=s||g.disabled;return jsxs("button",{ref:k=>{f.current[v]=k;},type:"button",role:"radio","aria-checked":M,disabled:D,onClick:()=>{D||o(g.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:n?1:void 0,padding:p.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:p.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:M?500:400,color:D?d.textDisabled:M?d.textActive:d.text,cursor:D?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:k=>{!D&&!M&&(k.currentTarget.style.color=d.textHover);},onMouseLeave:k=>{!D&&!M&&(k.currentTarget.style.color=d.text);},children:[g.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:g.icon}),(g.label||!g.icon&&g.value)&&jsx("span",{children:g.label??g.value})]},g.value)})]})};Ti.displayName="SegmentedControl";var Di={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)"}},rr=180,zi=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],nr=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Ii=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},Pi=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),r=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+n*114)/1e3>150},Mi=({value:e,onChange:t,presets:o=zi,label:r,disabled:n=false,style:a,className:s})=>{let i=P(),u=Di[i],d=useId(),p=useRef(null),l=useRef(null),[x,b]=useState(false),[m,f]=useState(false),[C,w]=useState("idle"),[y,g]=useState(e),[v,M]=useState(false),[D,k]=useState({top:0,left:0,openAbove:false});useEffect(()=>{v||g(e);},[e,v]);let h=useCallback(()=>{n||(b(true),f(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[n]),F=useCallback(()=>{b(false),w("closing");let A=setTimeout(()=>{f(false),w("idle");},rr);return ()=>clearTimeout(A)},[]),S=useCallback(()=>{if(!p.current)return;let A=p.current.getBoundingClientRect(),Z=220,O=window.innerHeight-A.bottom-8,X=O<Z&&A.top>O;k({top:X?A.top-8:A.bottom+8,left:A.left,openAbove:X});},[]);useEffect(()=>{if(m)return S(),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[m,S]),useEffect(()=>{if(!x)return;let A=Z=>{let O=Z.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,F]);let I=A=>{let Z=Ii(A.target.value);g(Z),nr(Z)&&t(Z);},L=()=>{M(false),nr(y)?t(y):g(e);},R=A=>{t(A),g(A),F();},T=()=>{let A=D.openAbove,Z=A?"translateY(8px)":"translateY(-8px)",O=A?"translateY(6px)":"translateY(-6px)",X={transition:`opacity ${rr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return C==="opening"||C==="idle"?{...X,opacity:0,transform:`${Z} scale(0.97)`}:C==="open"?{...X,opacity:1,transform:"translateY(0) scale(1)"}:{...X,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},E={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?u.backgroundDisabled:u.background,border:`1px solid ${v?u.borderFocus:u.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},N={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:nr(e)?e:"#cccccc",border:`1px solid ${u.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},W={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},z=m?createPortal(jsx("div",{ref:l,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},backgroundColor:u.popoverBg,border:`1px solid ${u.popoverBorder}`,borderRadius:"12px",boxShadow:i==="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:D.openAbove?"bottom left":"top left",...T()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((A,Z)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${A}`,onClick:()=>R(A),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:A,border:A===e?"2px solid #FC4F00":`1px solid ${u.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${A}-${Z}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:s,children:[r&&jsx("label",{htmlFor:d,style:W,children:r}),jsxs("div",{ref:p,style:E,children:[jsx("div",{style:N,onClick:()=>{n||(x?F():h());}}),jsx("input",{id:d,type:"text",value:y,onChange:I,onFocus:()=>M(true),onBlur:L,disabled:n,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:u.text,cursor:n?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(x?F():h());},children:jsx(Eyedropper,{size:16,color:(Pi(e)&&i==="light",u.placeholder)})})]}),z]})};Mi.displayName="ColorPicker";var Ni={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"}},$i={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Wi=({value:e,onChange:t,max:o=5,size:r="md",readOnly:n=false,label:a,style:s,className:i})=>{let u=P(),c=Ni[u],d=useId(),p=$i[r],[l,x]=useState(null),b=!n&&!!t,m=useCallback(g=>{b&&t(g+1);},[b,t]),f=useCallback(g=>{b&&x(g);},[b]),C=useCallback(()=>{x(null);},[]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},y=Array.from({length:o},(g,v)=>{let M=l!==null?l+1:e,D=v<M,k=l!==null&&v<=l;return jsx("span",{role:b?"button":void 0,tabIndex:b?0:void 0,"aria-label":b?`Hodnocen\xED ${v+1} z ${o}`:void 0,onClick:()=>m(v),onMouseEnter:()=>f(v),onMouseLeave:C,onKeyDown:h=>{b&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m(v));},style:{display:"inline-flex",cursor:b?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:k?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:p.starSize,weight:D?"fill":"regular",color:D?k?c.starHover:c.starFilled:c.starEmpty})},v)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:d,style:w,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:C,children:y})]})};Wi.displayName="Rating";var Xi={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"}},Gi=({length:e=6,value:t,onChange:o,error:r,disabled:n=false,autoFocus:a=false,label:s,separatorAfter:i,separator:u="-",style:c,className:d})=>{let p=P(),l=Xi[p],x=useId(),b=useRef([]),[m,f]=useState(null),C=!!r,w=typeof r=="string"?r:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&b.current[0]&&b.current[0].focus();},[a]);let g=useCallback(R=>{R>=0&&R<e&&b.current[R]?.focus();},[e]),v=useCallback(R=>{let T=R.join("").replace(/[^0-9]/g,"");o(T);},[o]),M=useCallback((R,T)=>{if(!/^[0-9]$/.test(T))return;let E=[...y];E[R]=T,v(E),R<e-1&&g(R+1);},[y,e,v,g]),D=useCallback((R,T)=>{switch(T.key){case "Backspace":if(T.preventDefault(),y[R]){let E=[...y];E[R]="",v(E);}else if(R>0){let E=[...y];E[R-1]="",v(E),g(R-1);}break;case "Delete":T.preventDefault();{let E=[...y];E[R]="",v(E);}break;case "ArrowLeft":T.preventDefault(),R>0&&g(R-1);break;case "ArrowRight":T.preventDefault(),R<e-1&&g(R+1);break}},[y,e,v,g]),k=useCallback((R,T)=>{let N=T.target.value.slice(-1);N&&/^[0-9]$/.test(N)&&M(R,N);},[M]),h=useCallback(R=>{R.preventDefault();let T=R.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!T)return;let E=[...y];for(let W=0;W<T.length;W++)E[W]=T[W];v(E);let N=Math.min(T.length,e-1);g(N);},[y,e,v,g]),F=useCallback(R=>{f(R),b.current[R]?.select();},[]),S=useCallback(()=>{f(null);},[]),I={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},L=R=>{let T=m===R,E=!!y[R];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:l.text,textAlign:"center",backgroundColor:n?l.backgroundDisabled:E?l.backgroundFilled:l.background,border:`1px solid ${C?l.borderError:T?l.borderFocus:E?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"text",caretColor:l.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:d,children:[s&&jsx("label",{htmlFor:`${x}-0`,style:I,children:s}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:h,children:Array.from({length:e},(R,T)=>jsxs(ur.Fragment,{children:[i&&T>0&&T%i===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:u}),jsx("input",{ref:E=>{b.current[T]=E;},id:`${x}-${T}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[T]||"",onChange:E=>k(T,E),onKeyDown:E=>D(T,E),onFocus:()=>F(T),onBlur:S,disabled:n,"aria-label":`\u010C\xEDslice ${T+1} z ${e}`,style:L(T)})]},T))}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:w})]})};Gi.displayName="OTPInput";var Qi={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",divider:"rgba(255,255,255,0.15)",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",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.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",divider:"rgba(0,0,0,0.1)",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",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},ir=180,el={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},tl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function ol(e,t){return [...t].sort((r,n)=>n.dialCode.length-r.dialCode.length).find(r=>e.startsWith(r.dialCode))}var rl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:r,label:n,error:a,helperText:s,disabled:i=false,size:u="md",placeholder:c="123 456 789",style:d,className:p})=>{let l=P(),x=Qi[l],b=el[u],m=useId(),f=r||tl,C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState(false),[S,I]=useState("idle"),[L,R]=useState(""),[T,E]=useState(-1),[N,W]=useState({top:0,left:0,width:0,openAbove:false}),z=!!a,A=typeof a=="string"?a:void 0,Z=useMemo(()=>{if(e){let H=ol(e,f);if(H)return H}return f.find(H=>H.code===o)||f[0]},[e,f,o]),O=useMemo(()=>!e||!Z?"":e.startsWith(Z.dialCode)?e.slice(Z.dialCode.length):e.replace(/^\+\d+/,""),[e,Z]),X=useMemo(()=>{if(!L)return f;let H=L.toLowerCase();return f.filter(Q=>Q.name.toLowerCase().includes(H)||Q.dialCode.includes(H)||Q.code.toLowerCase().includes(H))},[f,L]),te=useCallback(()=>{k(true),F(true),I("opening"),R(""),E(-1);let H=setTimeout(()=>{I("open"),g.current?.focus();},10);return ()=>clearTimeout(H)},[]),Y=useCallback(()=>{k(false),I("closing");let H=setTimeout(()=>{F(false),I("idle");},ir);return ()=>clearTimeout(H)},[]),$=useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??300,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;W({top:he?H.top-6:H.bottom+6,left:H.left,width:Math.max(H.width,280),openAbove:he});},[]);useEffect(()=>{if(h)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[h,$]),useEffect(()=>{if(!D)return;let H=Q=>{let ee=Q.target;!C.current?.contains(ee)&&!w.current?.contains(ee)&&Y();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[D,Y]);let j=useCallback(H=>{let Q=H.dialCode+O;t?.(Q),Y(),y.current?.focus();},[O,t,Y]),U=H=>{let Q=H.target.value.replace(/[^0-9\s]/g,"");t?.(Z.dialCode+Q);},re=H=>{let Q=H.clipboardData.getData("text").trim();Q.startsWith("+")&&(H.preventDefault(),t?.(Q.replace(/[^0-9+]/g,"")));},K=H=>{switch(H.key){case "ArrowDown":H.preventDefault(),E(Q=>Math.min(Q+1,X.length-1));break;case "ArrowUp":H.preventDefault(),E(Q=>Math.max(Q-1,0));break;case "Enter":H.preventDefault(),T>=0&&X[T]&&j(X[T]);break;case "Escape":H.preventDefault(),Y(),y.current?.focus();break}},q=()=>{let H=N.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${ir}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ir}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:S==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},pe={display:"flex",alignItems:"center",backgroundColor:i?x.backgroundDisabled:x.background,border:`1px solid ${z?x.borderError:v?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden"},we=h?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...N.openAbove?{bottom:window.innerHeight-N.top,left:N.left}:{top:N.top,left:N.left},width:N.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:x.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:N.openAbove?"bottom center":"top center",...q()},onKeyDown:K,children:[jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${x.divider}`},children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:l==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsx(MagnifyingGlass,{size:14,color:x.placeholder}),jsx("input",{ref:g,type:"text",value:L,onChange:H=>{R(H.target.value),E(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text}})]})}),jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[X.length===0&&jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:x.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),X.map((H,Q)=>{let ee=H.code===Z.code;return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:Q===T?x.optionHover:ee?x.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>j(H),onMouseEnter:()=>E(Q),onMouseLeave:()=>E(-1),children:[jsx("span",{style:{fontSize:"18px",flexShrink:0},children:H.flag}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ee?x.optionSelectedText:x.text,fontWeight:ee?500:400},children:H.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,flexShrink:0},children:H.dialCode})]},H.code)})]})]}),document.body):null;return jsxs("div",{className:p,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},children:[n&&jsx("label",{htmlFor:m,style:J,children:n}),jsxs("div",{ref:C,style:pe,children:[jsxs("button",{type:"button",disabled:i,onClick:()=>{i||(D?Y():te());},style:{display:"flex",alignItems:"center",gap:"4px",padding:b.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:i?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,flexShrink:0,outline:"none"},children:[jsx("span",{style:{fontSize:u==="sm"?"14px":"18px"},children:Z.flag}),jsx("span",{style:{fontSize:"13px",color:x.placeholder},children:Z.dialCode}),jsx(CaretDown,{size:12,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}),jsx("div",{style:{width:"1px",height:"60%",backgroundColor:x.divider,flexShrink:0}}),jsx("input",{ref:y,id:m,type:"tel",value:O,onChange:U,onPaste:re,onFocus:()=>M(true),onBlur:()=>M(false),placeholder:c,disabled:i,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,padding:b.padding,paddingLeft:"8px"}})]}),A&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:A}),!A&&s&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.helperText,lineHeight:"normal"},children:s}),we]})};rl.displayName="PhoneInput";var il={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},dr=10;function po(e,t,o){return Math.max(t,Math.min(o,e))}var ll=({src:e,onCrop:t,onCancel:o,aspectRatio:r,minWidth:n=50,minHeight:a=50,shape:s="rect",style:i,className:u})=>{let c=P(),d=il[c],p=useRef(null),l=useRef(null),[x,b]=useState(""),[m,f]=useState(false),[C,w]=useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[y,g]=useState({x:0,y:0,width:0,height:0}),[v,M]=useState(null),D=s==="circle"?1:r;useEffect(()=>{if(e instanceof File){let T=URL.createObjectURL(e);return b(T),()=>URL.revokeObjectURL(T)}else b(e);},[e]);let k=useCallback(()=>{let T=p.current,E=l.current;if(!T||!E||!E.naturalWidth)return;let N=T.clientWidth,W=T.clientHeight,z=E.naturalWidth,A=E.naturalHeight,Z=Math.min(N/z,W/A),O=z*Z,X=A*Z,te=(N-O)/2,Y=(W-X)/2;w({natural:{w:z,h:A},display:{w:O,h:X},offset:{x:te,y:Y}});let $=O*.8,j=X*.8,U,re;D?$/D<=j?(U=$,re=$/D):(re=j,U=j*D):(U=$,re=j),U=Math.max(U,n),re=Math.max(re,a),g({x:te+(O-U)/2,y:Y+(X-re)/2,width:U,height:re});},[D,n,a]),h=()=>{f(true),k();};useEffect(()=>(window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]);let F=T=>"touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};useEffect(()=>{if(!v)return;let{display:{w:T,h:E},offset:{x:N,y:W}}=C,z=Z=>{Z.preventDefault();let O=F(Z);if(!p.current?.getBoundingClientRect())return;let te=O.x-v.startX,Y=O.y-v.startY,$=v.startCrop,j={...$};if(v.type==="move")j.x=po($.x+te,N,N+T-$.width),j.y=po($.y+Y,W,W+E-$.height);else {let U=$.x,re=$.y,K=$.width,q=$.height,J=v.type;J.includes("e")&&(K=Math.max(n,$.width+te)),J.includes("w")&&(K=Math.max(n,$.width-te),U=$.x+$.width-K),J.includes("s")&&(q=Math.max(a,$.height+Y)),J.includes("n")&&(q=Math.max(a,$.height-Y),re=$.y+$.height-q),D&&(J==="n"||J==="s"?(K=q*D,U=$.x+($.width-K)/2):J==="e"||J==="w"?(q=K/D,re=$.y+($.height-q)/2):(q=K/D,J.includes("n")&&(re=$.y+$.height-q))),U=po(U,N,N+T-K),re=po(re,W,W+E-q),K=Math.min(K,N+T-U),q=Math.min(q,W+E-re),j={x:U,y:re,width:K,height:q};}g(j);},A=()=>M(null);return document.addEventListener("mousemove",z),document.addEventListener("mouseup",A),document.addEventListener("touchmove",z,{passive:false}),document.addEventListener("touchend",A),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",A),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",A);}},[v,C,D,n,a]);let S=(T,E)=>{E.preventDefault(),E.stopPropagation();let N="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};M({type:T,startX:N.x,startY:N.y,startCrop:{...y}});},I=useCallback(()=>{let T=l.current;if(!T||!C.display.w)return;let E=C.natural.w/C.display.w,N=(y.x-C.offset.x)*E,W=(y.y-C.offset.y)*E,z=y.width*E,A=y.height*E,Z=document.createElement("canvas");Z.width=z,Z.height=A;let O=Z.getContext("2d");O&&(s==="circle"&&(O.beginPath(),O.arc(z/2,A/2,z/2,0,Math.PI*2),O.clip()),O.drawImage(T,N,W,z,A,0,0,z,A),Z.toBlob(X=>{X&&t(X);},"image/png"));},[y,C,s,t]),L=useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),R={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxs("div",{className:u,style:{display:"flex",flexDirection:"column",backgroundColor:d.containerBg,border:`1px solid ${d.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...i},children:[jsxs("div",{ref:p,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:v?v.type==="move"?"grabbing":`${v.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[x&&jsx("img",{ref:l,src:x,crossOrigin:"anonymous",onLoad:h,style:{position:"absolute",top:C.offset.y,left:C.offset.x,width:C.display.w||"100%",height:C.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxs(Fragment,{children:[jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:y.y,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y+y.height,left:0,right:0,bottom:0,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:0,width:y.x,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:y.x+y.width,right:0,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxs("div",{style:{position:"absolute",left:y.x,top:y.y,width:y.width,height:y.height,border:`2px dashed ${d.cropBorder}`,borderRadius:s==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:T=>S("move",T),onTouchStart:T=>S("move",T),children:[jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),L.map(T=>jsx("div",{style:{position:"absolute",width:dr,height:dr,backgroundColor:d.handleBg,border:`1px solid ${d.handleBorder}`,borderRadius:"2px",cursor:T.cursor,zIndex:2,...T.style},onMouseDown:E=>S(T.type,E),onTouchStart:E=>S(T.type,E)},T.type))]})]})]}),jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:d.actionBarBg,borderTop:`1px solid ${d.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`},onClick:o,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsx(X,{size:14}),"Zru\u0161it"]}),jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonPrimary,color:d.buttonPrimaryText,border:"1px solid transparent"},onClick:I,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimary;},children:[jsx(Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};ll.displayName="ImageCropper";var cl={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)"}},jn="smSkeletonShimmer",pl=`@keyframes ${jn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,xe=({variant:e="text",width:t,height:o,lines:r=1,animate:n=true,className:a,style:s})=>{let i=P(),u=cl[i],c=t??(e==="circle"?40:"100%"),d=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:u.base,backgroundImage:n?`linear-gradient(90deg, ${u.base} 25%, ${u.shimmer} 50%, ${u.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof d=="number"?`${d}px`:d},l=n?jsx("style",{dangerouslySetInnerHTML:{__html:pl}}):null;return e==="text"&&r>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...s},children:[l,Array.from({length:r}).map((x,b)=>jsx("div",{style:{...p,width:b===r-1?"75%":p.width}},b))]}):jsxs(Fragment,{children:[l,jsx("div",{className:a,style:{...p,...s}})]})};xe.displayName="Skeleton";var gl={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)"}},bl=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:s,striped:i=false,hoverable:u=true,className:c,style:d})=>{let p=P(),l=gl[p],x=w=>{if(!w.sortable||!n)return;let y=a===w.key&&s==="asc"?"desc":"asc";n(w.key,y);},b={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",overflow:"hidden",...d},m=w=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",cursor:w.sortable?"pointer":"default",userSelect:"none",width:w.width!=null?typeof w.width=="number"?`${w.width}px`:w.width:void 0}),f={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:b,children:[jsx("thead",{children:jsx("tr",{children:e.map(w=>jsx("th",{style:m(w),onClick:()=>x(w),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===w.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsx("tbody",{children:o?Array.from({length:5}).map((w,y)=>jsx("tr",{children:e.map(g=>jsx("td",{style:f,children:jsx(xe,{variant:"text",width:"80%"})},g.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...f,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((w,y)=>jsx("tr",{style:{backgroundColor:i&&y%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:g=>{u&&(g.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:g=>{u&&(g.currentTarget.style.backgroundColor=i&&y%2===1?l.stripedBg:"transparent");},children:e.map(g=>jsx("td",{style:{...f,borderBottom:y===t.length-1?"none":f.borderBottom},children:g.render?g.render(w[g.key],w,y):w[g.key]},g.key))},y))})]})};bl.displayName="Table";var ml={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"}},Qn=({checked:e,indeterminate:t,onChange:o,t:r})=>{let n=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:n?r.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:r.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:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},hl=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:n=false,rowKey:a="id",onRowClick:s,stickyHeader:i=false,emptyText:u="\u017D\xE1dn\xE1 data",style:c,className:d})=>{let p=P(),l=ml[p],[x,b]=useState(new Set),[m,f]=useState(null),C=useMemo(()=>t.map(I=>String(I[a])),[t,a]),w=C.length>0&&C.every(I=>x.has(I)),y=C.some(I=>x.has(I))&&!w,g=useCallback(()=>{let I=w?new Set:new Set(C);b(I),r?.(Array.from(I));},[w,C,r]),v=useCallback(I=>{b(L=>{let R=new Set(L);return R.has(I)?R.delete(I):R.add(I),r?.(Array.from(R)),R});},[r]),M={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},D=I=>({padding:"12px 16px",textAlign:I.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",userSelect:"none",width:I.width!=null?typeof I.width=="number"?`${I.width}px`:I.width:void 0,minWidth:I.minWidth!=null?`${I.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),k=I=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:I.align||"left"}),h={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsx("div",{className:d,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...c},children:jsxs("table",{style:M,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:h,children:jsx(Qn,{checked:w,indeterminate:y,onChange:g,t:l})}),e.map(I=>jsx("th",{style:D(I),children:I.header},I.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((I,L)=>jsxs("tr",{children:[o&&jsx("td",{style:F,children:jsx(xe,{variant:"rect",width:16,height:16})}),e.map(R=>jsx("td",{style:k(R),children:jsx(xe,{variant:"text",width:"80%"})},R.key))]},`skel-${L}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:u})}):t.map((I,L)=>{let R=String(I[a]),T=x.has(R),E=m===R,N=L===t.length-1,W="transparent";return T?W=l.selectedRowBg:E&&(W=l.rowHover),jsxs("tr",{style:{backgroundColor:W,cursor:s?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>f(R),onMouseLeave:()=>f(null),onClick:()=>s?.(I),children:[o&&jsx("td",{style:{...F,borderBottom:N?"none":F.borderBottom},children:jsx(Qn,{checked:T,onChange:()=>v(R),t:l})}),e.map(z=>jsx("td",{style:{...k(z),borderBottom:N?"none":k(z).borderBottom},children:z.render?z.render(I[z.key],I,L):I[z.key]},z.key))]},R)})})]})})};hl.displayName="DataGrid";var kl={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ta=({checked:e,indeterminate:t,onChange:o,t:r})=>jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),o();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),n.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:e||t?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M3 6H9",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),Cl=({columns:e,data:t,primaryKey:o,rowKey:r="id",selectable:n=false,selectedIds:a,onSelectionChange:s,onCardClick:i,onSort:u,sortKey:c,sortDirection:d,loading:p=false,skeletonCount:l=3,emptyText:x="\u017D\xE1dn\xE1 data",emptyContent:b,gap:m=12,cardActions:f,style:C,className:w})=>{let y=P(),g=kl[y],[v,M]=useState(new Set),[D,k]=useState(null),h=a!==void 0,F=useMemo(()=>h?new Set(a):v,[h,a,v]),S=useMemo(()=>e.find(z=>z.primary)||(o?e.find(z=>z.key===o):void 0),[e,o]),I=useMemo(()=>e.filter(z=>!z.hidden&&z!==S),[e,S]),L=useMemo(()=>e.filter(z=>z.sortable),[e]),R=useCallback(z=>{let A=new Set(F);A.has(z)?A.delete(z):A.add(z),h||M(A),s?.(Array.from(A));},[F,h,s]),T=useCallback(()=>{let z=t.map(O=>String(O[r])),Z=z.every(O=>F.has(O))?new Set:new Set(z);h||M(Z),s?.(Array.from(Z));},[t,r,F,h,s]),E=t.length>0&&t.every(z=>F.has(String(z[r]))),N=t.some(z=>F.has(String(z[r])))&&!E,W=useCallback(z=>{if(!u)return;u(z,c===z&&d==="asc"?"desc":"asc");},[u,c,d]);if(p){let z=I.length>0?I.length:3;return jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:Array.from({length:l}).map((A,Z)=>jsxs("div",{style:{backgroundColor:g.cardBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(S||n)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${g.divider}`,backgroundColor:g.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[n&&jsx(xe,{variant:"rect",width:18,height:18}),jsx(xe,{variant:"text",width:"45%",height:18})]}),Array.from({length:z}).map((O,X)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:X<z-1?`1px solid ${g.divider}`:"none"},children:[jsx(xe,{variant:"text",width:70,height:12}),jsx(xe,{variant:"text",width:100,height:14})]},X)),f&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},children:[jsx(xe,{variant:"rect",width:64,height:30}),jsx(xe,{variant:"rect",width:64,height:30})]})]},Z))})}return t.length===0?jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:jsx("div",{style:{backgroundColor:g.emptyBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:b??x})}):jsxs("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...C},children:[(n||L.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(ta,{checked:E,indeterminate:N,onChange:T,t:g}),jsx("span",{style:{fontSize:"12px",color:g.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:F.size>0?`${F.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),L.length>0&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:n?"auto":0},children:L.map(z=>{let A=c===z.key;return jsxs("button",{onClick:()=>W(z.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:A?g.sortChipActiveBg:g.sortChipBg,color:A?g.sortActive:g.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:A?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[z.header,A?d==="asc"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(CaretUpDown,{size:12})]},z.key)})})]}),t.map((z,A)=>{let Z=String(z[r]),O=F.has(Z),X=D===Z,te=S?S.render?S.render(z[S.key],z,A):z[S.key]:null;return jsxs("div",{style:{backgroundColor:O?g.selectedBg:X?g.hover:g.cardBg,border:`1px solid ${O?g.selectedBorder:g.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:i?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>i?.(z),onMouseEnter:()=>k(Z),onMouseLeave:()=>k(null),children:[(te!==null||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:g.headerBg,borderBottom:`1px solid ${g.divider}`},children:[n&&jsx(ta,{checked:O,onChange:()=>R(Z),t:g}),te!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:g.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te})]}),jsx("div",{children:I.map((Y,$)=>{let j=Y.render?Y.render(z[Y.key],z,A):z[Y.key];return jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<I.length-1?`1px solid ${g.divider}`:"none"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:g.textSecondary,flexShrink:0,paddingTop:"2px"},children:Y.header}),jsx("span",{style:{fontSize:"14px",color:g.text,textAlign:"right",wordBreak:"break-word"},children:j??"\u2014"})]},Y.key)})}),f&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},onClick:Y=>Y.stopPropagation(),children:f(z,A)})]},Z??A)})]})};Cl.displayName="MobileDataCard";var wl={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)"}},Rl={none:"0",sm:"12px",md:"20px",lg:"28px"},Tl=({title:e,subtitle:t,header:o,footer:r,children:n,hoverable:a=false,bordered:s=true,padding:i="md",className:u,style:c})=>{let d=P(),p=wl[d],l=Rl[i],x={backgroundColor:p.background,border:s?`1px solid ${p.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},b=o??(e||t?jsxs("div",{style:{padding:l,paddingBottom:n||r?"0":l},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:u,style:x,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=p.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=d==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=s?p.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[b,n&&jsx("div",{style:{padding:l},children:n}),r&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsx("div",{style:{padding:l},children:r})]})]})};Tl.displayName="Card";var na={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)"}},zl=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:n,_open:a,_onToggle:s})=>{let i=P(),u=na[i],[c,d]=useState(o),p=n?!!a:c,l=useRef(null),[x,b]=useState(0);useEffect(()=>{l.current&&b(l.current.scrollHeight);},[t,p]);let m=useCallback(()=>{r||(n&&s?s():d(f=>!f));},[r,n,s]);return jsxs("div",{style:{borderBottom:`1px solid ${u.border}`},children:[jsxs("button",{type:"button",disabled:r,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:r?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:r?u.textDisabled:u.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:f=>{r||(f.currentTarget.style.backgroundColor=u.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:r?u.chevronDisabled:u.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${x}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:u.textSecondary},children:t})})]})};zl.displayName="AccordionItem";var Il=({children:e,multiple:t=false,className:o,style:r})=>{let n=P(),a=na[n],s=ur.Children.toArray(e).filter(d=>ur.isValidElement(d)),[i,u]=useState(()=>{let d=new Set;return s.forEach((p,l)=>{p.props.defaultOpen&&d.add(l);}),d}),c=useCallback(d=>{u(p=>{let l=new Set(p);return l.has(d)?l.delete(d):(t||l.clear(),l.add(d)),l});},[t]);return jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...r},children:s.map((d,p)=>ur.cloneElement(d,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>c(p)}))})};Il.displayName="Accordion";var Pl={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)"}},Ml={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Al=()=>null;Al.displayName="Tab";var Hl=()=>null;Hl.displayName="TabPanel";var Ll=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Pl[u],d=Ml[a],p=ur.Children.toArray(o),l=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="Tab"),b=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxs("div",{className:s,style:i,children:[jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${c.border}`:"none"},children:l.map(m=>{let f=m.props.value===e,C=m.props.disabled,w=r==="underline"?{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${f?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:C?"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:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.pillText:c.textInactive,backgroundColor:f?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:C?"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:C,style:w,onClick:()=>{C||t(m.props.value);},onMouseEnter:y=>{!C&&!f&&(y.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:y=>{C||(y.currentTarget.style.backgroundColor=r==="pills"&&f?c.pillBg:"transparent");},children:[m.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),b&&jsx("div",{style:{paddingTop:"16px"},children:b.props.children})]})};Ll.displayName="Tabs";var Wl={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},yr=({content:e,children:t,position:o="top",delay:r=200,className:n,style:a})=>{let s=P(),i=Wl[s],[u,c]=useState(false),[d,p]=useState({top:0,left:0}),l=useRef(null),x=useRef(null),b=useRef(void 0),m=6,f=8,C=useCallback(()=>{let M=l.current,D=x.current;if(!M||!D)return;let k=M.getBoundingClientRect(),h=D.getBoundingClientRect(),F=0,S=0;switch(o){case "top":F=k.top-h.height-f,S=k.left+k.width/2-h.width/2;break;case "bottom":F=k.bottom+f,S=k.left+k.width/2-h.width/2;break;case "left":F=k.top+k.height/2-h.height/2,S=k.left-h.width-f;break;case "right":F=k.top+k.height/2-h.height/2,S=k.right+f;break}p({top:F,left:S});},[o]);useEffect(()=>{u&&requestAnimationFrame(C);},[u,C]);let w=useCallback(()=>{b.current=setTimeout(()=>c(true),r);},[r]),y=useCallback(()=>{b.current&&clearTimeout(b.current),c(false);},[]);useEffect(()=>()=>{b.current&&clearTimeout(b.current);},[]);let g=(()=>{let M={position:"absolute",width:0,height:0,border:`${m}px solid transparent`};switch(o){case "top":return {...M,bottom:-m,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...M,top:-m,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...M,right:-m,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...M,left:-m,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),v=u?createPortal(jsxs("div",{ref:x,className:n,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.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:g})]}),document.body):null;return jsxs(Fragment,{children:[ur.cloneElement(t,{ref:l,onMouseEnter:M=>{w(),t.props.onMouseEnter?.(M);},onMouseLeave:M=>{y(),t.props.onMouseLeave?.(M);}}),v]})};yr.displayName="Tooltip";var Ul={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"}},Sr=180,bo=8,_l=({content:e,children:t,position:o="bottom",trigger:r="click",className:n,style:a})=>{let s=P(),i=Ul[s],[u,c]=useState(false),[d,p]=useState(false),[l,x]=useState("idle"),[b,m]=useState({top:0,left:0}),f=useRef(null),C=useRef(null),w=useRef(void 0),y=useCallback(()=>{c(true),p(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));});},[]),g=useCallback(()=>{c(false),x("closing");let S=setTimeout(()=>{p(false),x("idle");},Sr);return ()=>clearTimeout(S)},[]),v=useCallback(()=>{let S=f.current,I=C.current;if(!S||!I)return;let L=S.getBoundingClientRect(),R=I.getBoundingClientRect(),T=0,E=0;switch(o){case "top":T=L.top-R.height-bo,E=L.left+L.width/2-R.width/2;break;case "bottom":T=L.bottom+bo,E=L.left+L.width/2-R.width/2;break;case "left":T=L.top+L.height/2-R.height/2,E=L.left-R.width-bo;break;case "right":T=L.top+L.height/2-R.height/2,E=L.right+bo;break}m({top:T,left:E});},[o]);useEffect(()=>{if(d)return requestAnimationFrame(v),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[d,v]),useEffect(()=>{if(!u)return;let S=I=>{let L=I.target;!f.current?.contains(L)&&!C.current?.contains(L)&&g();};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[u,g]),useEffect(()=>{if(!u)return;let S=I=>{I.key==="Escape"&&g();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[u,g]);let M=()=>{let S={transition:`opacity ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1)`},I={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},L=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.97)`}:l==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.98)`,pointerEvents:"none"}},D=useCallback(()=>{r==="click"&&(u?g():y());},[r,u,g,y]),k=useCallback(()=>{r==="hover"&&(w.current&&clearTimeout(w.current),u||y());},[r,u,y]),h=useCallback(()=>{r==="hover"&&(w.current=setTimeout(()=>{g();},150));},[r,g]);useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let F=d?createPortal(jsx("div",{ref:C,className:n,onMouseEnter:()=>{r==="hover"&&w.current&&clearTimeout(w.current);},onMouseLeave:h,style:{position:"fixed",top:b.top,left:b.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...M(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[ur.cloneElement(t,{ref:f,onClick:S=>{D(),t.props.onClick?.(S);},onMouseEnter:S=>{k(),t.props.onMouseEnter?.(S);},onMouseLeave:S=>{h(),t.props.onMouseLeave?.(S);}}),F]})};_l.displayName="Popover";var ql={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Kl=({icon:e,title:t,description:o,action:r,className:n,style:a})=>{let s=P(),i=ql[s];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:i.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&jsx("div",{style:{marginTop:"8px"},children:r})]})};Kl.displayName="EmptyState";var td={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)"}},od=({label:e,value:t,change:o,changeLabel:r,icon:n,trend:a="neutral",className:s,style:i})=>{let u=P(),c=td[u],d=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxs("div",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...i},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}),o!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:d}),a==="down"&&jsx(TrendDownIcon,{size:14,color:d}),jsx("span",{children:p(o)}),r&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:r})]})]})]})};od.displayName="Stat";var rd=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],l0=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:n,"aria-label":a})=>{let s=rd(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},u={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:i,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:u,children:e.toUpperCase()})})};var ca={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)"}},Cr=({onClick:e,title:t,color:o,children:r})=>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:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:r}),u0=({label:e,onRemove:t,style:o,className:r})=>{let n=ca[P()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...o},className:r,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"})]})},g0=({label:e,style:t,className:o})=>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:o,children:e}),b0=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:n=true,style:a,className:s})=>{let i=ca[P()],u=t||o||r;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...a},className:s,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&u&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Cr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(Cr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),r&&jsx(Cr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var id={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)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},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)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},ua={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},lt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ld=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,Le=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Rr=(e,t=1)=>{let o=new Date(e),r=o.getDay(),n=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+n),o.setHours(0,0,0,0),o},ga=(e,t,o=1)=>{let r=new Date(e,t,1),n=Rr(r,o),a=[],s=new Date(n);for(let i=0;i<42;i++)a.push(new Date(s)),s.setDate(s.getDate()+1);return a},dd=(e,t=1)=>{let o=Rr(e,t),r=[];for(let n=0;n<7;n++){let a=new Date(o);a.setDate(o.getDate()+n),r.push(a);}return r},ba=(e,t,o)=>{if(t){let r=new Date(t);if(r.setHours(0,0,0,0),e<r)return true}if(o){let r=new Date(o);if(r.setHours(23,59,59,999),e>r)return true}return false};function cd(e,t){let o=[],r=new Map,n=Le(e[0]),a=Le(e[6]),s=t.filter(i=>{let u=Le(i.date);return (i.endDate?Le(i.endDate):u)>=n&&u<=a}).sort((i,u)=>{let c=Le(i.date).getTime(),d=Le(u.date).getTime();if(c!==d)return c-d;let p=i.endDate?Le(i.endDate).getTime():c;return (u.endDate?Le(u.endDate).getTime():d)-d-(p-c)});for(let i of s){let u=Le(i.date),c=i.endDate?Le(i.endDate):u,d=u<n?n:u,p=c>a?a:c,l=e.findIndex(w=>lt(w,d)),x=e.findIndex(w=>lt(w,p));if(l===-1||x===-1)continue;let b=x-l+1,m=u>=n,f=0;for(;;){r.has(f)||r.set(f,new Set);let w=r.get(f),y=true;for(let g=l;g<=x;g++)if(w.has(g)){y=false;break}if(y)break;f++;}let C=r.get(f);for(let w=l;w<=x;w++)C.add(w);o.push({event:i,row:f,startCol:l,span:b,isStart:m});}return o}var pd=({value:e,onChange:t,view:o="month",events:r=[],minDate:n,maxDate:a,style:s,className:i,firstDay:u=1,locale:c="cs",initialDate:d,t:p,today:l})=>{let x=ua[c],b=d||e||l,[m,f]=useState(()=>b.getMonth()),[C,w]=useState(()=>b.getFullYear()),[y,g]=useState(()=>Rr(b,u)),[v,M]=useState(null),D=useMemo(()=>o==="week"?dd(y,u):ga(C,m,u),[o,C,m,y,u]),k=useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()-7),T}):f(R=>R===0?(w(T=>T-1),11):R-1);},[o]),h=useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()+7),T}):f(R=>R===11?(w(T=>T+1),0):R+1);},[o]),F=R=>r.filter(T=>lt(T.date,R)),S=o==="week"?(()=>{let R=new Date(y);return R.setDate(R.getDate()+6),y.getMonth()===R.getMonth()?`${y.getDate()}. \u2013 ${R.getDate()}. ${x.months[R.getMonth()]} ${R.getFullYear()}`:`${y.getDate()}. ${x.months[y.getMonth()].slice(0,3)} \u2013 ${R.getDate()}. ${x.months[R.getMonth()].slice(0,3)} ${R.getFullYear()}`})():`${x.months[m]} ${C}`,I={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...s},L={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:p.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:i,style:I,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[jsx("button",{style:L,onClick:k,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:S}),jsx("button",{style:L,onClick:h,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:x.daysFull.map(R=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:p.textMuted,padding:"6px 0 8px"},children:R},R))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:D.map((R,T)=>{let E=lt(R,l),N=e?lt(R,e):false,W=o==="month"&&R.getMonth()!==m,z=ba(R,n,a),A=R.toISOString(),Z=v===A,O=F(R),X="transparent",te=W?p.outsideText:p.text,Y="2px solid transparent";return N?(X=p.selectedBg,te=p.selectedText):E?(X=p.todayBg,Y=`2px solid ${p.todayBorder}`):Z&&!z&&(X=p.hover),z&&(te=p.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:X,color:te,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:z?"default":"pointer",opacity:z?.4:1,transition:"background-color 0.12s ease"},disabled:z,onClick:()=>{!z&&t&&t(R);},onMouseEnter:()=>!z&&M(A),onMouseLeave:()=>M(null),children:R.getDate()}),O.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map(($,j)=>jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||p.eventDot}},j))})]},T)})})]})},mo=24,kt=2,fd=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:n=true,onNavigate:a,minDate:s,maxDate:i,style:u,className:c,firstDay:d=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:x,t:b,today:m})=>{let f=ua[p],C=x||e||m,[w,y]=useState(()=>C.getMonth()),[g,v]=useState(()=>C.getFullYear()),[M,D]=useState(null),k=useMemo(()=>ga(g,w,d),[g,w,d]),h=useMemo(()=>{let E=[];for(let N=0;N<k.length;N+=7)E.push(k.slice(N,N+7));return E},[k]),F=useMemo(()=>{let E=h[h.length-1];return E&&E.every(N=>N.getMonth()!==w)?h.slice(0,-1):h},[h,w]),S=useCallback(()=>{let E=w-1,N=g;E<0&&(E=11,N--),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),I=useCallback(()=>{let E=w+1,N=g;E>11&&(E=0,N++),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),L=`${f.months[w]} ${g}`,T={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:c,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,userSelect:"none",...u},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:T,onClick:S,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:L}),jsx("button",{style:T,onClick:I,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${b.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:b.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${b.cellBorder}`},children:f.days.map((E,N)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:b.text,padding:"10px 0",borderRight:N<6?`1px solid ${b.cellBorder}`:"none"},children:E},E))}),F.map((E,N)=>{let W=cd(E,o),z=W.length>0?Math.max(...W.map(Y=>Y.row))+1:0,A=E.map((Y,$)=>{let j=W.filter(U=>$>=U.startCol&&$<U.startCol+U.span);return Math.max(0,j.filter(U=>U.row>=l).length)}),O=Math.min(z,l)*(mo+kt)+kt,te=A.some(Y=>Y>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:N<F.length-1?`1px solid ${b.cellBorder}`:"none"},children:E.map((Y,$)=>{let j=lt(Y,m),U=Y.getMonth()!==w,re=e?lt(Y,e):false;return jsxs("div",{style:{borderRight:$<6?`1px solid ${b.cellBorder}`:"none",backgroundColor:j?b.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!ba(Y,s,i)&&t(Y);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:j?700:400,color:U?b.outsideText:j?"#FC4F00":b.text},children:re?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Y.getDate(),"."]}):jsxs(Fragment,{children:[Y.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${O}px`},children:W.filter(K=>K.startCol===$&&K.row<l).map((K,q)=>{let J=K.event.id||`${ld(K.event.date)}-${K.event.title}`,pe=M===J,we=K.event.color||b.eventBarDefault,H=jsxs("div",{style:{position:"absolute",top:`${kt+K.row*(mo+kt)}px`,left:"2px",width:K.span>1?`calc(${K.span*100}% - 4px)`:"calc(100% - 4px)",height:`${mo}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:pe?2:1,opacity:pe?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:K.event.tooltip?void 0:K.event.title,onClick:Q=>{Q.stopPropagation(),r&&r(K.event);},onMouseEnter:()=>D(J),onMouseLeave:()=>D(null),children:[K.isStart&&K.event.emoji&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:K.event.emoji}),K.isStart&&jsx("span",{style:{fontSize:"11px",fontWeight:500,color:K.event.textColor||b.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K.event.title})]},q);return K.event.tooltip?jsx(yr,{content:K.event.tooltip,children:H},q):H})}),A[$]>0&&jsxs("div",{style:{fontSize:"10px",color:b.moreText,textAlign:"center",padding:"2px 0"},children:["+",A[$]]})]},$)})},N)})]})]})},ud=e=>{let t=P(),o=id[t],r=useMemo(()=>{let n=new Date;return n.setHours(0,0,0,0),n},[]);return e.fullSize?jsx(fd,{...e,t:o,today:r}):jsx(pd,{...e,t:o,today:r})};ud.displayName="Calendar";var bd={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)"}},xd=({items:e,orientation:t="vertical",style:o,className:r})=>{let n=P(),a=bd[n];return t==="horizontal"?jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:u?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsx("div",{style:{flex:1}}),s.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!u&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),u&&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:a.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:s.description})]})]},i)})}):jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:u?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`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!u&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.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:a.textMuted,flexShrink:0},children:s.date})]}),s.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:s.description})]})]},i)})})};xd.displayName="Timeline";var md={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)"}},hd=({items:e,columns:t=1,striped:o=false,style:r,className:n})=>{let a=P(),s=md[a],i=Math.max(1,Math.round(t)),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},c=x=>i<=1?x:Math.floor(x/i),d=x=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${s.border}`,backgroundColor:o&&c(x)%2===1?s.stripedBg:s.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:s.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:n,style:u,children:e.map((x,b)=>jsxs("div",{style:d(b),children:[jsx("span",{style:p,children:x.label}),jsx("span",{style:l,children:x.value})]},b))})};hd.displayName="DataList";var kd={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"}},ma=({node:e,depth:t,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s})=>{let i=e.children&&e.children.length>0,u=o.has(e.id),c=r===e.id,[d,p]=useState(false),l="transparent";return c?l=s.selectedBg:d&&(l=s.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:c?`2px solid ${s.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:x=>{x.stopPropagation(),i&&n(e.id);},children:i&&jsx(CaretRightIcon,{size:14,color:u?s.iconExpanded:s.iconColor,style:{transform:u?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:c?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:c?500:400,color:c?s.selectedText:s.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&u&&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(x=>jsx(ma,{node:x,depth:t+1,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s},x.id))]})]})},Cd=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:n,className:a})=>{let s=P(),i=kd[s],[u,c]=useState(()=>new Set(r)),d=useCallback(l=>{c(x=>{let b=new Set(x);return b.has(l)?b.delete(l):b.add(l),b});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...n};return jsx("div",{className:a,style:p,role:"tree",children:e.map(l=>jsx(ma,{node:l,depth:0,expanded:u,selectedId:o,onToggle:d,onSelect:t,t:i},l.id))})};Cd.displayName="Tree";var Rd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Td={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Fd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Er=false,Ed=()=>{if(Er||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Er=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
13
13
|
@keyframes sm-statusbadge-pulse {
|
|
14
14
|
0% { transform: scale(1); opacity: 1; }
|
|
15
15
|
50% { transform: scale(1.8); opacity: 0; }
|
|
16
16
|
100% { transform: scale(1.8); opacity: 0; }
|
|
17
17
|
}
|
|
18
|
-
`,document.head.appendChild(t),fr=true;},Yl=({status:e,label:t,size:r="md",pulse:o=false,color:n,style:a,className:l})=>{let i=I(),d=$l[i],s=Zl[r],f=n||Wl[e]||"#888888";return o&&Ol(),jsxs("span",{className:l,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[o&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,fontWeight:400,color:d.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Yl.displayName="StatusBadge";var _l={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"}},io=180,Gl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},br=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:l=true,closeOnEscape:i=true,showClose:d=true,className:s,style:f})=>{let g=I(),c=_l[g],h=Gl[a],[b,x]=useState(false),[u,T]=useState("idle"),y=useRef(null),S=useRef(null);useEffect(()=>{if(e){S.current=document.activeElement,x(true),T("opening");let E=setTimeout(()=>{T("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(E)}else if(b){T("closing");let E=setTimeout(()=>{x(false),T("idle"),document.body.style.overflow="",S.current instanceof HTMLElement&&S.current.focus();},io);return ()=>clearTimeout(E)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!b||!i)return;let E=m=>{m.key==="Escape"&&t();};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[b,i,t]),useEffect(()=>{if(!b||!y.current)return;let E=y.current,m='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',R=F=>{if(F.key!=="Tab")return;let C=E.querySelectorAll(m);if(C.length===0){F.preventDefault();return}let z=C[0],A=C[C.length-1];F.shiftKey?document.activeElement===z&&(F.preventDefault(),A.focus()):document.activeElement===A&&(F.preventDefault(),z.focus());};return document.addEventListener("keydown",R),E.focus(),()=>document.removeEventListener("keydown",R)},[b]);let p=()=>{let E={transition:`opacity ${io}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${io}ms cubic-bezier(0.16, 1, 0.3, 1)`};return u==="opening"||u==="idle"?{...E,opacity:0,transform:"scale(0.95)"}:u==="open"?{...E,opacity:1,transform:"scale(1)"}:{...E,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!b)return null;let k=a==="fullscreen",P=()=>{let E={transition:`opacity ${io}ms ease`};return u==="opening"||u==="idle"?{...E,opacity:0}:u==="open"?{...E,opacity:1}:{...E,opacity:0}};return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:k?"stretch":"center",justifyContent:"center",...u==="closing"?{pointerEvents:"none"}:{}},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...P()},onClick:l?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:h.width,maxWidth:k?void 0:"calc(100vw - 32px)",maxHeight:k?"100vh":h.maxHeight,backgroundColor:c.cardBg,border:k?"none":`1px solid ${c.cardBorder}`,borderRadius:k?0:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...p(),...f},children:[(r||d)&&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}),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:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:E=>{E.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}),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)};br.displayName="Modal";var Kl={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)"}},mr=220,Jl=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:l=400,showClose:i=true,closeOnOverlay:d=true,className:s,style:f})=>{let g=I(),c=Kl[g],[h,b]=useState(false),[x,u]=useState("idle"),T=useRef(null),y=typeof l=="number"?`${l}px`:l;useEffect(()=>{if(e){b(true),u("opening");let k=setTimeout(()=>{u("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(h){u("closing");let k=setTimeout(()=>{b(false),u("idle"),document.body.style.overflow="";},mr);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h)return;let k=P=>{P.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,t]);let S=k=>{let P=r==="right"?"100%":"-100%";return k==="opening"||k==="idle"?P:k==="open"?"0%":P},p=()=>x==="open"?1:0;return h?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:p(),transition:`opacity ${mr}ms ease`,...x==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:T,role:"dialog","aria-modal":"true","aria-label":o,className:s,style:{position:"absolute",top:0,bottom:0,[r]:0,width:y,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(${S(x)})`,transition:`transform ${mr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||i)&&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}),i&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:n}),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):null};Jl.displayName="Drawer";var oc={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)"}},vr=180,rc=({open:e,onClose:t,children:r,side:o="bottom",title:n,showClose:a=true,style:l,className:i})=>{let d=I(),s=oc[d],[f,g]=useState(false),[c,h]=useState("idle"),b=useRef(null);useEffect(()=>{if(e){g(true),h("opening");let k=setTimeout(()=>{h("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(f){h("closing");let k=setTimeout(()=>{g(false),h("idle"),document.body.style.overflow="";},vr);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let k=P=>{P.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,t]);let T=k=>{let P={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return k==="opening"||k==="idle"?P[o]:k==="open"?"translate(0, 0)":P[o]},y=()=>c==="open"?1:0,S={};o==="bottom"?(S.bottom=0,S.left=0,S.right=0,S.maxHeight="85vh",S.borderTopLeftRadius="16px",S.borderTopRightRadius="16px"):o==="top"?(S.top=0,S.left=0,S.right=0,S.maxHeight="85vh",S.borderBottomLeftRadius="16px",S.borderBottomRightRadius="16px"):o==="right"?(S.top=0,S.bottom=0,S.right=0,S.width="400px",S.maxWidth="100vw"):o==="left"&&(S.top=0,S.bottom=0,S.left=0,S.width="400px",S.maxWidth="100vw");let p={};return o==="bottom"?p.borderTop=`1px solid ${s.panelBorder}`:o==="top"?p.borderBottom=`1px solid ${s.panelBorder}`:o==="right"?p.borderLeft=`1px solid ${s.panelBorder}`:o==="left"&&(p.borderRight=`1px solid ${s.panelBorder}`),f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:y(),transition:`opacity ${vr}ms ease`,...c==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":n,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:T(c),transition:`transform ${vr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...S,...p,...l},children:[o==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:s.handleBg}})}),(n||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:o==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:n}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:r})]})]}),document.body):null};rc.displayName="Sheet";var ac={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)"}},sc=({items:e,separator:t="/",className:r,style:o})=>{let n=I(),a=ac[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,i)=>{let d=i===e.length-1;return jsxs(Ko.Fragment,{children:[i>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:s=>{s.currentTarget.style.color=a.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=a.text;},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},i)})})};sc.displayName="Breadcrumb";var cc={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)"}},dc={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function pc(e,t,r,o,n){let a=[],l=Math.max(2,e-r),i=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<=i;d++)a.includes(d)||a.push(d);return i<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var fc=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:l="md",className:i,style:d})=>{let s=I(),f=cc[s],g=dc[l];if(t<=0)return null;let c=pc(e,t,o,n,a),h={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:i,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:{...h,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:b=>{e>1&&(b.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:g.iconSize,color:e<=1?f.disabledText:f.text})}),c.map((b,x)=>{if(b==="ellipsis-start"||b==="ellipsis-end")return jsx("span",{style:{...h,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},b);let u=b===e;return jsx("button",{type:"button","aria-current":u?"page":void 0,"aria-label":`Str\xE1nka ${b}`,onClick:()=>r(b),style:{...h,color:u?f.activeText:f.text,backgroundColor:u?f.activeBg:"transparent",fontWeight:u?600:500},onMouseEnter:T=>{u||(T.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:T=>{u||(T.currentTarget.style.backgroundColor="transparent");},children:b},b)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...h,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:b=>{e<t&&(b.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:g.iconSize,color:e>=t?f.disabledText:f.text})})]})};fc.displayName="Pagination";var xc={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)"}},mc=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:l})=>{let i=I(),d=xc[i],[s,f]=useState(null),g=r==="horizontal",c=32,h=b=>!o||!n?false:o==="completed"?b<=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((b,x)=>{let u=x<t,T=x===t,y=x>t,S=x===e.length-1,p=h(x),k=s===x&&p,P=u?d.completedBg:k?d.hoverBg:d.activeBg,E=u?d.completedBg:T||k?d.activeBorder:d.futureBorder,m=u?d.completedText:T||k?d.activeText:d.futureText,R=k?d.activeText:y?d.labelFuture:d.labelText,F=y?d.descFuture:d.descText,C=u?d.lineCompleted:d.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:g?"column":"row",alignItems:"flex-start",flex:S?"0 0 auto":"1 1 0",minWidth:0,cursor:p?"pointer":"default"},onClick:()=>p&&n?.(x),onMouseEnter:()=>f(x),onMouseLeave:()=>f(null),children:[jsxs("div",{style:{display:"flex",flexDirection:g?"row":"column",alignItems:"center",width:g?"100%":"auto"},children:[jsx("div",{style:{width:c,height:c,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:P,border:`2px solid ${E}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:u?jsx(CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:m,lineHeight:1,transition:"color 0.2s ease"},children:x+1})}),!S&&jsx("div",{style:g?{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:g?"10px":0,marginLeft:g?0:"14px",paddingTop:g?0:"4px",textAlign:"left",minHeight:g||S?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:T||k?600:500,color:R,lineHeight:"normal",transition:"color 0.2s ease"},children:b.label}),b.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:b.description})]})]},x)})})};mc.displayName="Stepper";var yc={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"}},Tr=180,vc=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=I(),l=yc[a],i=useRef(null),d=useRef(null),[s,f]=useState(false),[g,c]=useState(false),[h,b]=useState("idle"),[x,u]=useState({top:0,left:0,openAbove:false}),[T,y]=useState(-1),S=useCallback(()=>{f(true),c(true),b("opening"),y(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));});},[]),p=useCallback(()=>{f(false),b("closing");let m=setTimeout(()=>{c(false),b("idle");},Tr);return ()=>clearTimeout(m)},[]),k=useCallback(()=>{if(!i.current)return;let m=i.current.getBoundingClientRect(),R=d.current?.offsetHeight??200,F=d.current?.offsetWidth??200,C=window.innerHeight-m.bottom-6,z=m.top-6,A=C<R&&z>C,v;r==="bottom-right"?(v=m.right-F,v<4&&(v=4)):(v=m.left,v+F>window.innerWidth-4&&(v=window.innerWidth-F-4)),u({top:A?m.top-6:m.bottom+6,left:v,openAbove:A});},[r]);useEffect(()=>{if(g)return k(),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[g,k]),useEffect(()=>{if(!s)return;let m=R=>{let F=R.target,C=i.current?.contains(F),z=d.current?.contains(F);!C&&!z&&p();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[s,p]),useEffect(()=>{if(!s)return;let m=t.map((F,C)=>({item:F,idx:C})).filter(({item:F})=>!F.divider&&!F.disabled),R=F=>{switch(F.key){case "Escape":F.preventDefault(),p();break;case "ArrowDown":{F.preventDefault();let C=m.findIndex(({idx:A})=>A===T),z=C<m.length-1?C+1:0;y(m[z]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let C=m.findIndex(({idx:A})=>A===T),z=C>0?C-1:m.length-1;y(m[z]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),T>=0){let C=t[T];C&&!C.divider&&!C.disabled&&(C.onClick?.(),p());}break}};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[s,T,t,p]);let P=()=>{let m=x.openAbove,R=m?"translateY(8px)":"translateY(-8px)",F=m?"translateY(6px)":"translateY(-6px)",C={transition:`opacity ${Tr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Tr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...C,opacity:0,transform:`${R} scale(0.97)`}:h==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},E=g?createPortal(jsx("div",{ref:d,role:"menu",style:{position:"fixed",...x.openAbove?{bottom:window.innerHeight-x.top,left:x.left}:{top:x.top,left:x.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:x.openAbove?"bottom center":"top center",...P()},children:t.map((m,R)=>{if(m.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:l.divider,margin:"4px 6px"}},R);let F=m.danger,C=m.disabled,z=R===T,A=C?l.textDisabled:F?l.dangerText:l.text,v=F?l.dangerHover:l.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:A,backgroundColor:z?v:"transparent",cursor:C?"not-allowed":"pointer",opacity:C?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{C||(m.onClick?.(),p());},onMouseEnter:()=>{C||y(R);},onMouseLeave:()=>y(-1),children:[m.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:m.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label})]},R)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:i,onClick:()=>{s?p():S();},style:{display:"inline-flex",cursor:"pointer"},children:e}),E]})};vc.displayName="DropdownMenu";var kc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},x0=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:l,onMouseEnter:i,onMouseLeave:d,target:s,rel:f,...g})=>{let c=I(),h=kc[c],[b,x]=useState(false),u=e==="danger"?h.danger:h.default,T={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:b?h.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:u,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},y=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:T,className:l,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:S=>{x(true),i?.(S);},onMouseLeave:S=>{x(false),d?.(S);},...g,children:r==="right"?jsxs(Fragment,{children:[n,y]}):jsxs(Fragment,{children:[y,n]})})};var Tc={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"}},co=180,Fc=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:l,style:i})=>{let d=I(),s=Tc[d],[f,g]=useState(false),[c,h]=useState("idle"),[b,x]=useState(-1),u=useRef(null),T=useRef(null);useEffect(()=>{let m="sm-spotlight-scrollbar-hide";if(document.getElementById(m))return;let R=document.createElement("style");R.id=m,R.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let y=n;useEffect(()=>{if(e){g(true),h("opening"),x(-1);let m=setTimeout(()=>{h("open");},10);return ()=>clearTimeout(m)}else if(f){h("closing");let m=setTimeout(()=>{g(false),h("idle");},co);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{f&&c==="open"&&u.current?.focus();},[f,c]),useEffect(()=>{x(-1);},[n]),useEffect(()=>{if(b<0||!T.current)return;let m=T.current.querySelector(`[data-spotlight-index="${b}"]`);m&&m.scrollIntoView({block:"nearest"});},[b]);let S=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(R=>{let F=R+1;return F>=y.length?0:F});break}case "ArrowUp":{m.preventDefault(),x(R=>{let F=R-1;return F<0?y.length-1:F});break}case "Enter":{m.preventDefault(),b>=0&&b<y.length&&(y[b].onSelect(),t());break}}},[y,b,t]),p=[],k=new Map;y.forEach((m,R)=>{let F=k.get(m.category);F||(F=[],k.set(m.category,F),p.push({category:m.category,items:F})),F.push({...m,flatIndex:R});});let P=()=>{let m={transition:`opacity ${co}ms ease`};return c==="opening"||c==="idle"?{...m,opacity:0}:c==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},E=()=>{let m={transition:`opacity ${co}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${co}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...P()},onKeyDown:S,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...i},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsx("input",{ref:u,type:"text",value:r,onChange:m=>o(m.target.value),placeholder:a,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:T,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:p.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):p.map(m=>jsxs("div",{role:"group","aria-label":m.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:m.category}),m.items.map(R=>{let F=R.flatIndex===b;return jsxs("div",{role:"option","aria-selected":F,"data-spotlight-index":R.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:F?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>x(R.flatIndex),onMouseLeave:()=>x(-1),children:[R.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:F?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:R.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.label}),R.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:R.description})]})]},R.id)})]},m.category))})]})]}),document.body):null};Fc.displayName="Spotlight";var zc={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"}},fo=180,Ic=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let l=I(),i=zc[l],[d,s]=useState(false),[f,g]=useState("idle"),[c,h]=useState(""),[b,x]=useState(-1),u=useRef(null),T=useRef(null);useEffect(()=>{let m="sm-commandmenu-scrollbar-hide";if(document.getElementById(m))return;let R=document.createElement("style");R.id=m,R.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let y=r.map(m=>({...m,items:m.items.filter(R=>R.label.toLowerCase().includes(c.toLowerCase())||R.description?.toLowerCase().includes(c.toLowerCase()))})).filter(m=>m.items.length>0),S=y.flatMap(m=>m.items);useEffect(()=>{if(e){h(""),x(-1),s(true),g("opening");let m=setTimeout(()=>{g("open");},10);return ()=>clearTimeout(m)}else if(d){g("closing");let m=setTimeout(()=>{s(false),g("idle");},fo);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{d&&f==="open"&&u.current?.focus();},[d,f]),useEffect(()=>{x(-1);},[c]),useEffect(()=>{if(b<0||!T.current)return;let m=T.current.querySelector(`[data-cmd-index="${b}"]`);m&&m.scrollIntoView({block:"nearest"});},[b]);let p=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(R=>{let F=R+1;return F>=S.length?0:F});break}case "ArrowUp":{m.preventDefault(),x(R=>{let F=R-1;return F<0?S.length-1:F});break}case "Enter":{m.preventDefault(),b>=0&&b<S.length&&(S[b].onSelect(),t());break}}},[S,b,t]),k=()=>{let m={transition:`opacity ${fo}ms ease`};return f==="opening"||f==="idle"?{...m,opacity:0}:f==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},P=()=>{let m={transition:`opacity ${fo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${fo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},E=0;return d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...k()},onKeyDown:p,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:a,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",...P(),...n},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:u,type:"text",value:c,onChange:m=>h(m.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color: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:T,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:y.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"}):y.map(m=>jsxs("div",{role:"group","aria-label":m.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.categoryText,userSelect:"none"},children:m.label}),m.items.map(R=>{let F=E++,C=F===b;return jsxs("div",{role:"option","aria-selected":C,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:C?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>x(F),onMouseLeave:()=>x(-1),children:[R.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:C?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:R.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:R.label}),R.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:R.description})]}),R.shortcut&&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,whiteSpace:"nowrap"},children:R.shortcut})]},R.id)})]},m.label))})]})]}),document.body):null};Ic.displayName="CommandMenu";var Pc={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)"}},Er=250,Mc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:n=64,style:a,className:l})=>{let i=I(),d=Pc[i],s=t?n:o;return jsx("aside",{className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:`${s}px`,minWidth:`${s}px`,height:"100%",backgroundColor:d.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${d.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${Er}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${Er}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${Er}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Mc.displayName="AppSidebar";var $c={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)"}},Wc=({label:e,icon:t,active:r=false,defaultExpanded:o=false,expanded:n,onExpandedChange:a,onClick:l,children:i,collapsed:d=false,disabled:s=false,style:f,className:g})=>{let c=I(),h=$c[c],b=Ko.Children.count(i)>0,x=n!==void 0,[u,T]=useState(o),y=x?n:u,[S,p]=useState(false),k=useRef(null),[P,E]=useState(0);useEffect(()=>{k.current&&E(k.current.scrollHeight);},[i,y]);let m=useCallback(()=>{x?a?.(!n):T(A=>{let v=!A;return a?.(v),v});},[x,n,a]),R=useCallback(()=>{s||(b&&m(),l?.());},[s,b,m,l]),F=s?`${h.text}66`:r?h.textActive:S?h.textHover:h.text,C=s?`${h.icon}66`:r?h.iconActive:S?h.iconHover:h.icon,z=r?h.activeBg:S&&!s?h.hoverBg:"transparent";return d?jsx("button",{type:"button",onClick:R,disabled:s,title:e,className:g,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:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxs("div",{className:g,style:f,children:[jsxs("button",{type:"button",onClick:R,disabled:s,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:F,cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:r?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(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}),b&&jsx(CaretDownIcon,{size:14,color:S?h.chevronHover:h.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:y?"rotate(0deg)":"rotate(-90deg)"}})]}),b&&jsx("div",{ref:k,style:{overflow:"hidden",maxHeight:y?`${P}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:i})})]})};Wc.displayName="SidebarItem";var Zc={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)"}},Oc=({logo:e,children:t,actions:r,sticky:o=true,glass:n=true,style:a,className:l})=>{let i=I(),d=Zc[i];return jsxs("header",{className:l,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?d.background:d.backgroundSolid,borderBottom:`1px solid ${d.border}`,boxShadow:d.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),r&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};Oc.displayName="Navbar";var jc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Xc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},fa=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:l,className:i})=>{let d=I(),s=jc[d],{border:f,background:g}=s[e],c=o??Xc[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:g,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...l},className:i,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.iconColor},children:c}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:s.text,lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:r})]})]}),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:s.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var ua=3,Qc=.06,ga=12,go=320,ba=createContext(null),ed=0,td=()=>`sm-toast-${++ed}-${Date.now()}`,K0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:l=4e3})=>{let[i,d]=useState([]),s=useCallback(c=>{d(h=>h.map(b=>b.id===c?{...b,lifecycle:"leaving"}:b)),setTimeout(()=>{d(h=>h.filter(b=>b.id!==c));},go+100);},[]),f=useCallback(c=>{let h=td(),b=c.duration??l,x={id:h,variant:c.variant??"info",title:c.title,content:c.content,icon:c.icon,duration:b,lifecycle:"entering",height:0};return d(u=>{let T=[...u,x];return T.length>a?T.slice(T.length-a):T}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(u=>u.map(T=>T.id===h?{...T,lifecycle:"visible"}:T));});}),b>0&&setTimeout(()=>s(h),b),h},[a,s,l]),g=useCallback((c,h)=>{d(b=>b.map(x=>x.id===c&&x.height!==h?{...x,height:h}:x));},[]);return jsxs(ba.Provider,{value:{toast:f,dismiss:s},children:[e,i.length>0&&jsx(rd,{toasts:i,position:t,toastWidth:r,gap:o,offset:n,onDismiss:s,onHeightMeasured:g})]})},od=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:l,toastWidth:i,onDismiss:d,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",g=!l||f,c=n?1:Math.max(.7,1-r*Qc),h=n?0:r*ga,b=a?-h:h,u=g?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${c}) translateY(${b}px)`,T=g?0:n?1:Math.max(.4,1-r*.18),y=!n&&r>=ua,S=o-r,p=useCallback(k=>{k&&t.height===0&&s(t.id,k.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:p,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:u,opacity:y?0:T,zIndex:S,transition:[`transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${go}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(fa,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},rd=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:l})=>{let[i,d]=useState(false),[s,f]=useState(new Set),g=t.startsWith("bottom"),c=t.endsWith("right"),h=t.endsWith("center");useEffect(()=>{f(p=>{let k=new Set(p);return e.forEach(P=>{P.lifecycle==="visible"&&k.add(P.id);}),[...k].forEach(P=>{e.find(E=>E.id===P)||k.delete(P);}),k});},[e]);let u=(e[e.length-1]?.height||80)+Math.min(e.length-1,ua-1)*ga,T=e.reduce((p,k)=>p+(k.height||80),0)+Math.max(0,e.length-1)*o,y=i?T:u,S=h?{left:"50%",transform:"translateX(-50%)"}:c?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:99999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:y,...g?{bottom:n}:{top:n},...S,transition:`height ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((p,k)=>{let P=e.length-1-k,E=s.has(p.id),m=p.lifecycle==="leaving",R=!E||m,F;if(i&&!R){let z=e.slice(k+1).reduce((v,B)=>v+(B.height||80)+o,0);F=`translateY(${g?-z:z}px)`;}return jsx(od,{item:p,depthIndex:P,stackSize:e.length,expanded:i,isBottom:g,appeared:E,toastWidth:r,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:F},p.id)})})},J0=()=>{let e=useContext(ba);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 pd={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)"}},fd={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"}},ab=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:l,style:i})=>{let d=I(),s=pd[d],f=fd[e],[g,c]=useState(true);if(!g)return null;let h=d==="light",b=h?f.borderLight:f.border,x=h?f.backgroundLight:f.background,u=h?f.iconColorLight:f.iconColor,y=o??{info:jsx(Info,{size:24,color:u}),success:jsx(CheckCircle,{size:24,color:u}),warning:jsx(Warning,{size:24,color:u}),error:jsx(XCircle,{size:24,color:u})}[e],S=()=>{c(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:x,borderLeft:`4px solid ${b}`,borderRadius:"4px",boxSizing:"border-box",...i},className:l,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:y}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:s.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:r})]}),n&&jsx("button",{type:"button",onClick:S,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:s.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var yd={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)"}},vd={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"}},Sd=({variant:e="info",title:t,children:r,closable:o=false,onClose:n,icon:a,action:l,style:i,className:d})=>{let s=I(),f=yd[s],g=vd[e],[c,h]=useState(true);if(!c)return null;let b=s==="light",x=b?g.bgLight:g.bg,u=b?g.accentLight:g.accent,y=a??{info:jsx(Info,{size:20,color:u}),success:jsx(CheckCircle,{size:20,color:u}),warning:jsx(Warning,{size:20,color:u}),error:jsx(XCircle,{size:20,color:u})}[e],S=()=>{h(false),n?.();};return jsxs("div",{role:"status",className:d,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:x,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:y}),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})]}),l&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:l}),o&&jsx("button",{type:"button",onClick:S,"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"})})]})};Sd.displayName="Notification";var ya={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},kd={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},ha="sm-ui-progress-stripes",Cd=()=>{if(typeof document>"u"||document.getElementById(ha))return;let e=document.createElement("style");e.id=ha,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},bb=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:l=false,className:i,style:d})=>{let s=I(),f=ya[s],g=kd[t],c=Math.max(0,Math.min(100,e));a&&l&&Cd();let h=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...l?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:i,children:[(n||o)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:n}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:g.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(c),"%"]})]}),jsx("div",{style:{width:"100%",height:g.height,backgroundColor:f.trackBg,borderRadius:g.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${c}%`,height:"100%",backgroundColor:r,borderRadius:g.height/2,transition:"width 0.3s ease",...h}})})]})},xb=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:l,style:i})=>{let d=I(),s=ya[d],f=Math.max(0,Math.min(100,e)),g=(t-r)/2,c=2*Math.PI*g,h=c-f/100*c;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},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:s.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:g,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:h,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),n&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:a})]})};var Td={sm:16,md:24,lg:40},Sb=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,l]=useState(0),i=useRef(void 0),d=useRef(void 0);useEffect(()=>{let g=c=>{d.current===void 0&&(d.current=c),l((c-d.current)/800*360%360),i.current=requestAnimationFrame(g);};return i.current=requestAnimationFrame(g),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let s=typeof e=="number"?e:Td[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...n},children:jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var Ed={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"}},Dd=({open:e,onConfirm:t,onCancel:r,title:o,description:n,confirmLabel:a="Potvrdit",cancelLabel:l="Zru\u0161it",variant:i="default",loading:d=false,style:s,className:f})=>{let g=I(),c=Ed[g],[h,b]=useState(false),[x,u]=useState(false),T=i==="danger",y=T?x?c.dangerHover:c.dangerBg:x?c.confirmHover:c.confirmBg,S=T?c.dangerText:c.confirmText;return jsx(br,{open:e,onClose:r,title:o,size:"sm",className:f,style:s,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:r,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:h?c.cancelHover:c.cancelBg,border:`1px solid ${c.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:l}),jsx("button",{type:"button",onClick:t,disabled:d,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:y,border:"none",borderRadius:"6px",cursor:d?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:S,lineHeight:"normal",opacity:d?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:d?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.descriptionText},children:n})})};Dd.displayName="ConfirmDialog";var Hd={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"}},Ld={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"}},Nd=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}},$d=({text:e,children:t,size:r="md",variant:o="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:l,style:i,className:d})=>{let s=I(),f=Hd[s],g=Ld[r],[c,h]=useState(false),[b,x]=useState(false),u=useRef(null),T=useCallback(async()=>{await Nd(e)&&(h(true),l?.(),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{h(false),u.current=null;},2e3));},[e,l]),y=c?f.successColor:b?f.iconHover:f.iconColor,S=c?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":c?a:n,onClick:T,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:g.iconPadding,background:b?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:y,...i},children:t}):o==="icon"?jsx("button",{type:"button","aria-label":c?a:n,onClick:T,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:d,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:g.iconPadding,background:b?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:y,...i},children:jsx(S,{size:g.iconSize,color:y})}):jsxs("button",{type:"button","aria-label":c?a:n,onClick:T,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:g.buttonPadding,background:b?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:g.fontSize,fontWeight:500,color:c?f.successColor:f.buttonText,lineHeight:"normal",...i},children:[jsx(S,{size:g.iconSize,color:c?f.successColor:f.buttonText}),c?a:n]})};$d.displayName="CopyButton";var Zd={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"}},Wb=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=I(),a=Zd[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 Yd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Vd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Yb=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:l,className:i,style:d})=>jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Yd[r],justifyContent:Vd[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...d},children:l});var _d={sm:640,md:768,lg:1024,xl:1280},_b=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let l=typeof e=="number"?e:_d[e],i=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${l}px`,width:"100%",padding:i,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var Jd={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)"}},wa="smDragListPulse",Qd=`@keyframes ${wa}{0%,100%{opacity:1}50%{opacity:0.5}}`;function Hr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=Hr(r.children,t);if(o)return o}}return null}function Mr(e,t,r){let o=Hr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||Mr([n],n.id,r))return true;return false}function Ra(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[l,i]=Ra(a.children,t);i&&(r=i),n.push({...a,children:l.length>0?l:void 0});}else n.push(a);return n},[]),r]}function Ar(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:Ar(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:Ar(a.children,t,r,o)}):n.push(a);return n}function Ta(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Ta(r.children,t)}:r)}function Fa(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Fa(o.children,t,r)}:o)}var Ca=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${wa} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),Ea=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:g,renderItem:c,dragMode:h,tokens:b})=>{let[x,u]=useState(false),[T,y]=useState(false),[S,p]=useState(false),k=useRef(false),P=useRef(null),E=e.children&&e.children.length>0,m=e.expanded??false,R=n===e.id,F=n!==null,C=h==="handle",z=a?.targetId===e.id,A=z&&a?.position==="before",v=z&&a?.position==="after",B=z&&a?.position==="inside",M=R?"transparent":B?b.nestHighlight:T&&!F?b.itemHoverBg:b.itemBg,L=B?b.nestBorder:R?"transparent":b.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[A&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ca,{color:b.dropIndicator})}),jsxs("div",{ref:P,draggable:true,onDragStart:N=>{if(C&&!k.current){N.preventDefault();return}if(k.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),P.current){let D=P.current.cloneNode(true);D.style.width=`${P.current.offsetWidth}px`,D.style.opacity="0.85",D.style.transform="rotate(1.5deg) scale(1.02)",D.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",D.style.position="fixed",D.style.top="-1000px",document.body.appendChild(D),N.dataTransfer.setDragImage(D,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(D));}l(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),i(N,e.id,t);},onDragLeave:N=>{let D=N.relatedTarget;P.current&&D&&P.current.contains(D)||(N.stopPropagation(),d(N,P.current),y(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),s(N);},onDragEnd:f,onMouseEnter:()=>y(true),onMouseLeave:()=>y(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:R?"transparent":b.text,cursor:F?"grabbing":C?"default":"grab",opacity:R?.35:1,backgroundColor:M,borderWidth:"1px",borderColor:L,borderStyle:R?"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 ${b.nestBorder}`:T&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!c&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:R?"hidden":"visible"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onMouseDown:()=>{k.current=true;},children:jsx(DotsSixVertical,{size:14,color:x?b.gripHover:b.gripColor})}),B&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:b.dropIndicator})}),E?jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),g(e.id);},onMouseEnter:()=>p(true),onMouseLeave:()=>p(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:R?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:S?b.chevronHover:b.chevron,style:{transition:"transform 0.2s ease",transform:m?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:R?"hidden":"visible"},children:c?c(e,{handleProps:{onMouseDown:()=>{k.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:R,depth:t,isExpanded:m,toggleExpand:()=>g(e.id),hasChildren:!!E}):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})]})})]}),v&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ca,{color:b.dropIndicator})}),E&&m&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${b.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsx(Ea,{item:N,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:g,renderItem:c,dragMode:h,tokens:b},N.id))})]})},ep=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:l,style:i})=>{let d=I(),s=Jd[d],[f,g]=useState(null),[c,h]=useState(null),b=useRef(null),x=useRef(void 0),u=useRef(void 0),T=useRef(null),y=useCallback(m=>{g(m);},[]),S=useCallback((m,R,F)=>{if(!f||f===R||Mr(e,f,R))return;x.current&&(clearTimeout(x.current),x.current=void 0);let C=m.currentTarget.getBoundingClientRect(),z=m.clientY-C.top,A=C.height,v;o&&F<n?z<A*.25?v="before":z>A*.75?v="after":v="inside":z<A*.35?v="before":z>A*.65?v="after":T.current?.targetId===R?v=T.current.position:v=z<A/2?"before":"after";let B={targetId:R,position:v},M=Hr(e,R);v==="inside"&&M?.children&&M.children.length>0&&!M.expanded?(T.current?.targetId!==R||T.current?.position!=="inside")&&(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{t(Fa(e,R,true));},600)):u.current&&(clearTimeout(u.current),u.current=void 0),T.current=B,h(B);},[f,e,o,n,t]),p=useCallback((m,R)=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{h(null),T.current=null;},60),u.current&&(clearTimeout(u.current),u.current=void 0);},[]),k=useCallback(()=>{if(x.current&&(clearTimeout(x.current),x.current=void 0),u.current&&(clearTimeout(u.current),u.current=void 0),!f||!c)return;let{targetId:m,position:R}=c;if(f===m||Mr(e,f,m))return;let[F,C]=Ra(e,f);if(!C)return;let z=Ar(F,m,R,C);t(z),g(null),h(null),T.current=null;},[f,c,e,t]),P=useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),u.current&&(clearTimeout(u.current),u.current=void 0),g(null),h(null),T.current=null;},[]),E=useCallback(m=>{t(Ta(e,m));},[e,t]);return useEffect(()=>()=>{x.current&&clearTimeout(x.current),u.current&&clearTimeout(u.current);},[]),jsxs("div",{ref:b,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Qd}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,backgroundColor:s.itemBg,borderRadius:"10px",border:`1px solid ${s.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(m=>jsx(Ea,{item:m,depth:0,allowNesting:o,maxDepth:n,draggedId:f,dropState:c,onDragStart:y,onDragOver:S,onDragLeave:p,onDrop:k,onDragEnd:P,onToggleExpand:E,renderItem:r,dragMode:a,tokens:s},m.id))]})};ep.displayName="DragList";export{_i as Accordion,Ui as AccordionItem,ab as Alert,Mc as AppSidebar,Gu as Avatar,Qu as Badge,sc as Breadcrumb,Aa as Button,Fl as Calendar,Wi as Card,sn as Checkbox,ln as CheckboxGroup,ci as ColorPicker,us as Combobox,Ic as CommandMenu,Dd as ConfirmDialog,_b as Container,$d as CopyButton,Ii as DataGrid,Il as DataList,nn as DatePicker,Cs as DatePickerGroup,Wb as Divider,ep as DragList,Jl as Drawer,vc as DropdownMenu,pl as EmptyState,vn as FileUpload,Yr as Input,pp as InputGroup,x0 as Link,Li as MobileDataCard,br as Modal,Oc as Navbar,Sd as Notification,Ja as NumberInput,Ci as OTPInput,fc as Pagination,sl as Popover,bb as ProgressBar,xb as ProgressCircle,Ho as Radio,dn as RadioGroup,bi as Rating,ti as SegmentedControl,Xr as Select,rs as SelectGroup,rc as Sheet,Wc as SidebarItem,Se as Skeleton,hn as Slider,Sb as Spinner,Fc as Spotlight,Yb as Stack,xl as Stat,Yl as StatusBadge,mc as Stepper,fn as Switch,Xi as Tab,qi as TabPanel,Di as Table,Ki as Tabs,Ju as Tag,eg as TagItem,gn as Textarea,Bl as Timeline,fa as Toast,K0 as ToasterProvider,rr as Tooltip,Ll as Tree,I as useTheme,J0 as useToast};//# sourceMappingURL=index.mjs.map
|
|
18
|
+
`,document.head.appendChild(t),Er=true;},Bd=({status:e,label:t,size:o="md",pulse:r=false,color:n,style:a,className:s})=>{let i=P(),u=Rd[i],c=Fd[o],d=n||Td[e]||"#888888";return r&&Ed(),jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:c.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${c.dot}px`,height:`${c.dot}px`,flexShrink:0},children:[r&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:d,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:d}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:400,color:u.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Bd.displayName="StatusBadge";var Id={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"}},vo=180,Pd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},zr=({open:e,onClose:t,title:o,children:r,footer:n,size:a="md",closeOnOverlay:s=true,closeOnEscape:i=true,showClose:u=true,className:c,style:d})=>{let p=P(),l=Id[p],x=Pd[a],[b,m]=useState(false),[f,C]=useState("idle"),w=useRef(null),y=useRef(null);useEffect(()=>{if(e){y.current=document.activeElement,m(true),C("opening");let D=setTimeout(()=>{C("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(D)}else if(b){C("closing");let D=setTimeout(()=>{m(false),C("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},vo);return ()=>clearTimeout(D)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!b||!i)return;let D=k=>{k.key==="Escape"&&t();};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[b,i,t]),useEffect(()=>{if(!b||!w.current)return;let D=w.current,k='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',h=F=>{if(F.key!=="Tab")return;let S=D.querySelectorAll(k);if(S.length===0){F.preventDefault();return}let I=S[0],L=S[S.length-1];F.shiftKey?document.activeElement===I&&(F.preventDefault(),L.focus()):document.activeElement===L&&(F.preventDefault(),I.focus());};return document.addEventListener("keydown",h),D.focus(),()=>document.removeEventListener("keydown",h)},[b]);let g=()=>{let D={transition:`opacity ${vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...D,opacity:0,transform:"scale(0.95)"}:f==="open"?{...D,opacity:1,transform:"scale(1)"}:{...D,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!b)return null;let v=a==="fullscreen",M=()=>{let D={transition:`opacity ${vo}ms ease`};return f==="opening"||f==="idle"?{...D,opacity:0}:f==="open"?{...D,opacity:1}:{...D,opacity:0}};return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:v?"stretch":"center",justifyContent:"center",...f==="closing"?{pointerEvents:"none"}:{}},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...M()},onClick:s?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:x.width,maxWidth:v?void 0:"calc(100vw - 32px)",maxHeight:v?"100vh":x.maxHeight,backgroundColor:l.cardBg,border:v?"none":`1px solid ${l.cardBorder}`,borderRadius:v?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...g(),...d},children:[(o||u)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:D=>{D.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:D=>{D.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:l.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:r}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:n})]})]}),document.body)};zr.displayName="Modal";var Ld={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)"}},Pr=220,Nd=({open:e,onClose:t,position:o="right",title:r,children:n,footer:a,width:s=400,showClose:i=true,closeOnOverlay:u=true,className:c,style:d})=>{let p=P(),l=Ld[p],[x,b]=useState(false),[m,f]=useState("idle"),C=useRef(null),w=typeof s=="number"?`${s}px`:s;useEffect(()=>{if(e){b(true),f("opening");let v=setTimeout(()=>{f("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(x){f("closing");let v=setTimeout(()=>{b(false),f("idle"),document.body.style.overflow="";},Pr);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!x)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[x,t]);let y=v=>{let M=o==="right"?"100%":"-100%";return v==="opening"||v==="idle"?M:v==="open"?"0%":M},g=()=>m==="open"?1:0;return x?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:g(),transition:`opacity ${Pr}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:u?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r,className:c,style:{position:"absolute",top:0,bottom:0,[o]:0,width:w,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:l.panelBg,borderLeft:o==="right"?`1px solid ${l.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${l.panelBorder}`:"none",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(m)})`,transition:`transform ${Pr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...d},children:[(r||i)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:l.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.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 ${l.divider}`},children:a})]})]}),document.body):null};Nd.displayName="Drawer";var Od={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)"}},Hr=180,Yd=({open:e,onClose:t,children:o,side:r="bottom",title:n,showClose:a=true,style:s,className:i})=>{let u=P(),c=Od[u],[d,p]=useState(false),[l,x]=useState("idle"),b=useRef(null);useEffect(()=>{if(e){p(true),x("opening");let v=setTimeout(()=>{x("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(d){x("closing");let v=setTimeout(()=>{p(false),x("idle"),document.body.style.overflow="";},Hr);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!d)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[d,t]);let C=v=>{let M={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return v==="opening"||v==="idle"?M[r]:v==="open"?"translate(0, 0)":M[r]},w=()=>l==="open"?1:0,y={};r==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):r==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):r==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):r==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let g={};return r==="bottom"?g.borderTop=`1px solid ${c.panelBorder}`:r==="top"?g.borderBottom=`1px solid ${c.panelBorder}`:r==="right"?g.borderLeft=`1px solid ${c.panelBorder}`:r==="left"&&(g.borderRight=`1px solid ${c.panelBorder}`),d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:w(),transition:`opacity ${Hr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":n,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:C(l),transition:`transform ${Hr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...g,...s},children:[r==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:c.handleBg}})}),(n||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:n}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:v=>{v.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})]})]}),document.body):null};Yd.displayName="Sheet";var Ud={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)"}},_d=({items:e,separator:t="/",className:o,style:r})=>{let n=P(),a=Ud[n];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...r},children:e.map((s,i)=>{let u=i===e.length-1;return jsxs(ur.Fragment,{children:[i>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),u?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.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: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:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]})]},i)})})};_d.displayName="Breadcrumb";var jd={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)"}},qd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Kd(e,t,o,r,n){let a=[],s=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&a.push(1),s>2&&(r&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let u=s;u<=i;u++)a.includes(u)||a.push(u);return i<t-1&&a.push("ellipsis-end"),(n||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var Jd=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:n=true,showLast:a=true,size:s="md",className:i,style:u})=>{let c=P(),d=jd[c],p=qd[s];if(t<=0)return null;let l=Kd(e,t,r,n,a),x={display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.size,height:p.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.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:i,style:{display:"flex",alignItems:"center",gap:"4px",...u},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...x,color:e<=1?d.disabledText:d.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:b=>{e>1&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:p.iconSize,color:e<=1?d.disabledText:d.text})}),l.map((b,m)=>{if(b==="ellipsis-start"||b==="ellipsis-end")return jsx("span",{style:{...x,cursor:"default",color:d.text},"aria-hidden":"true",children:"..."},b);let f=b===e;return jsx("button",{type:"button","aria-current":f?"page":void 0,"aria-label":`Str\xE1nka ${b}`,onClick:()=>o(b),style:{...x,color:f?d.activeText:d.text,backgroundColor:f?d.activeBg:"transparent",fontWeight:f?600:500},onMouseEnter:C=>{f||(C.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:C=>{f||(C.currentTarget.style.backgroundColor="transparent");},children:b},b)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...x,color:e>=t?d.disabledText:d.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:b=>{e<t&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:p.iconSize,color:e>=t?d.disabledText:d.text})})]})};Jd.displayName="Pagination";var oc={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)"}},Wr=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:n,className:a,style:s})=>{let i=P(),u=oc[i],[c,d]=useState(null),p=o==="horizontal",l=32,x=b=>!r||!n?false:r==="completed"?b<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...s},children:e.map((b,m)=>{let f=m<t,C=m===t,w=m>t,y=m===e.length-1,g=x(m),v=c===m&&g,M=f?u.completedBg:v?u.hoverBg:u.activeBg,D=f?u.completedBg:C||v?u.activeBorder:u.futureBorder,k=f?u.completedText:C||v?u.activeText:u.futureText,h=v?u.activeText:w?u.labelFuture:u.labelText,F=w?u.descFuture:u.descText,S=f?u.lineCompleted:u.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:g?"pointer":"default"},onClick:()=>g&&n?.(m),onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),children:[jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M,border:`2px solid ${D}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:f?jsx(CheckIcon,{size:14,color:u.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:k,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!y&&jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:S,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:S,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:C||v?600:500,color:h,lineHeight:"normal",transition:"color 0.2s ease"},children:b.label}),b.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:b.description})]})]},m)})})};Wr.displayName="Stepper";var ic=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}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"})]})},lc={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},dc=({steps:e,activeStep:t,onStepChange:o,orientation:r="horizontal",showNavigation:n=true,finishLabel:a="Dokon\u010Dit",nextLabel:s="Dal\u0161\xED",prevLabel:i="P\u0159edchoz\xED",style:u,className:c})=>{let d=P(),p=lc[d],[l,x]=useState(false),b=t<=0,m=t>=e.length-1,f=Math.max(0,Math.min(t,e.length-1)),C=r==="horizontal",w=e.map(h=>({label:h.label,description:h.description})),y=useCallback(async()=>{if(l)return;let h=e[f];if(h.validate){x(true);try{if(!await h.validate()){x(!1);return}}catch{x(false);return}x(false);}o(f+1);},[l,e,f,o]),g=useCallback(()=>{f>0&&o(f-1);},[f,o]),v=useCallback(h=>{h<f&&o(h);},[f,o]);if(e.length===0)return null;let M={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},D={...M,backgroundColor:l?p.buttonDisabledBg:p.buttonPrimary,color:l?p.buttonDisabledText:p.buttonPrimaryText,border:"1px solid transparent",cursor:l?"not-allowed":"pointer"},k={...M,backgroundColor:p.buttonSecondaryBg,color:p.buttonSecondaryText,border:`1px solid ${p.buttonSecondaryBorder}`};return jsxs("div",{className:c,style:{display:"flex",flexDirection:C?"column":"row",gap:C?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...u},children:[jsx("div",{style:{flexShrink:0,...C?{}:{width:"240px"}},children:jsx(Wr,{steps:w,activeStep:f,orientation:r,clickable:"completed",onStepClick:v})}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsx("div",{style:{flex:1,padding:C?"24px 0":"0"},children:e[f]?.content}),n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${p.navBorder}`,marginTop:"8px"},children:[jsx("div",{children:!b&&jsxs("button",{type:"button",style:k,onClick:g,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonSecondaryHover);},onMouseLeave:h=>{h.currentTarget.style.backgroundColor=p.buttonSecondaryBg;},children:[jsx(CaretLeft,{size:14}),i]})}),jsx("button",{type:"button",style:D,onClick:y,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimaryHover);},onMouseLeave:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimary);},children:l?jsx(ic,{size:14,color:p.buttonDisabledText}):m?jsxs(Fragment,{children:[jsx(Check,{size:14}),a]}):jsxs(Fragment,{children:[s,jsx(CaretRight,{size:14})]})})]})]})]})};dc.displayName="FormWizard";var pc={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"}},Vr=180,fc=({trigger:e,items:t,position:o="bottom-left",className:r,style:n})=>{let a=P(),s=pc[a],i=useRef(null),u=useRef(null),[c,d]=useState(false),[p,l]=useState(false),[x,b]=useState("idle"),[m,f]=useState({top:0,left:0,openAbove:false}),[C,w]=useState(-1),y=useCallback(()=>{d(true),l(true),b("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));});},[]),g=useCallback(()=>{d(false),b("closing");let k=setTimeout(()=>{l(false),b("idle");},Vr);return ()=>clearTimeout(k)},[]),v=useCallback(()=>{if(!i.current)return;let k=i.current.getBoundingClientRect(),h=u.current?.offsetHeight??200,F=u.current?.offsetWidth??200,S=window.innerHeight-k.bottom-6,I=k.top-6,L=S<h&&I>S,R;o==="bottom-right"?(R=k.right-F,R<4&&(R=4)):(R=k.left,R+F>window.innerWidth-4&&(R=window.innerWidth-F-4)),f({top:L?k.top-6:k.bottom+6,left:R,openAbove:L});},[o]);useEffect(()=>{if(p)return v(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[p,v]),useEffect(()=>{if(!c)return;let k=h=>{let F=h.target,S=i.current?.contains(F),I=u.current?.contains(F);!S&&!I&&g();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,g]),useEffect(()=>{if(!c)return;let k=t.map((F,S)=>({item:F,idx:S})).filter(({item:F})=>!F.divider&&!F.disabled),h=F=>{switch(F.key){case "Escape":F.preventDefault(),g();break;case "ArrowDown":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S<k.length-1?S+1:0;w(k[I]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S>0?S-1:k.length-1;w(k[I]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),C>=0){let S=t[C];S&&!S.divider&&!S.disabled&&(S.onClick?.(),g());}break}};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[c,C,t,g]);let M=()=>{let k=m.openAbove,h=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",S={transition:`opacity ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...S,opacity:0,transform:`${h} scale(0.97)`}:x==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},D=p?createPortal(jsx("div",{ref:u,role:"menu",style:{position:"fixed",...m.openAbove?{bottom:window.innerHeight-m.top,left:m.left}:{top:m.top,left:m.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:m.openAbove?"bottom center":"top center",...M()},children:t.map((k,h)=>{if(k.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${h>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},h);if(k.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},h);let F=k.danger,S=k.disabled,I=h===C,L=typeof k.label!="string",R=L&&!k.onClick,T=S?s.textDisabled:F?s.dangerText:s.text,E=F?s.dangerHover:s.hoverBg;return R?jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},h):jsxs("div",{role:"menuitem","aria-disabled":S,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:T,backgroundColor:I?E:"transparent",cursor:S?"not-allowed":"pointer",opacity:S?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{S||(k.onClick?.(),g());},onMouseEnter:()=>{S||w(h);},onMouseLeave:()=>w(-1),children:[k.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label}):k.label]},h)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:i,onClick:()=>{c?g():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),D]})};fc.displayName="DropdownMenu";var gc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Nb=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:n,style:a,className:s,onMouseEnter:i,onMouseLeave:u,target:c,rel:d,...p})=>{let l=P(),x=gc[l],[b,m]=useState(false),f=e==="danger"?x.danger:x.default,C={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:b?x.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:f,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},w=r&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:C,className:s,target:c,rel:d??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{m(true),i?.(y);},onMouseLeave:y=>{m(false),u?.(y);},...p,children:o==="right"?jsxs(Fragment,{children:[n,w]}):jsxs(Fragment,{children:[w,n]})})};var hc={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"}},ko=180,yc=({open:e,onClose:t,value:o,onChange:r,results:n,loading:a=false,placeholder:s="Hledat...",className:i,style:u})=>{let c=P(),d=hc[c],[p,l]=useState(false),[x,b]=useState("idle"),[m,f]=useState(-1),C=useRef(null),w=useRef(null);useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let F=document.createElement("style");F.id=h,F.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(F);},[]);let y=n;useEffect(()=>{if(e){l(true),b("opening"),f(-1);let h=setTimeout(()=>{b("open");},10);return ()=>clearTimeout(h)}else if(p){b("closing");let h=setTimeout(()=>{l(false),b("idle");},ko);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{p&&x==="open"&&C.current?.focus();},[p,x]),useEffect(()=>{f(-1);},[n]),useEffect(()=>{if(m<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${m}"]`);h&&h.scrollIntoView({block:"nearest"});},[m]);let g=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),f(F=>{let S=F+1;return S>=y.length?0:S});break}case "ArrowUp":{h.preventDefault(),f(F=>{let S=F-1;return S<0?y.length-1:S});break}case "Enter":{h.preventDefault(),m>=0&&m<y.length&&(y[m].onSelect(),t());break}}},[y,m,t]),v=[],M=new Map;y.forEach((h,F)=>{let S=M.get(h.category);S||(S=[],M.set(h.category,S),v.push({category:h.category,items:S})),S.push({...h,flatIndex:F});});let D=()=>{let h={transition:`opacity ${ko}ms ease`};return x==="opening"||x==="idle"?{...h,opacity:0}:x==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},k=()=>{let h={transition:`opacity ${ko}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ko}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:x==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,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",...D()},onKeyDown:g,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:d.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:d.cardBg,border:`1px solid ${d.cardBorder}`,borderRadius:"16px",boxShadow:d.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...k(),...u},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${d.divider}`},children:[jsx(MagnifyingGlass,{size:18,color:d.textSecondary}),jsx("input",{ref:C,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:s,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:d.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:d.kbdBg,border:`1px solid ${d.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:d.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(h=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsx(xe,{variant:"rect",width:28,height:28}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(xe,{variant:"text",width:`${50+h%3*15}%`,height:14}),jsx(xe,{variant:"text",width:`${30+h%2*20}%`,height:11})]})]},h))}):v.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):v.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:d.categoryText,userSelect:"none"},children:h.category}),h.items.map(F=>{let S=F.flatIndex===m;return jsxs("div",{role:"option","aria-selected":S,"data-spotlight-index":F.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?d.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{F.onSelect(),t();},onMouseEnter:()=>f(F.flatIndex),onMouseLeave:()=>f(-1),children:[F.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?d.activeBg:d.hoverBg,color:d.text,transition:"background-color 0.1s ease"},children:F.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:d.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:F.label}),F.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:F.description})]})]},F.id)})]},h.category))})]})]}),document.body):null};yc.displayName="Spotlight";var Cc={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"}},wo=180,wc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let s=P(),i=Cc[s],[u,c]=useState(false),[d,p]=useState("idle"),[l,x]=useState(""),[b,m]=useState(-1),f=useRef(null),C=useRef(null);useEffect(()=>{let k="sm-commandmenu-scrollbar-hide";if(document.getElementById(k))return;let h=document.createElement("style");h.id=k,h.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(h);},[]);let w=o.map(k=>({...k,items:k.items.filter(h=>h.label.toLowerCase().includes(l.toLowerCase())||h.description?.toLowerCase().includes(l.toLowerCase()))})).filter(k=>k.items.length>0),y=w.flatMap(k=>k.items);useEffect(()=>{if(e){x(""),m(-1),c(true),p("opening");let k=setTimeout(()=>{p("open");},10);return ()=>clearTimeout(k)}else if(u){p("closing");let k=setTimeout(()=>{c(false),p("idle");},wo);return ()=>clearTimeout(k)}},[e]),useEffect(()=>{u&&d==="open"&&f.current?.focus();},[u,d]),useEffect(()=>{m(-1);},[l]),useEffect(()=>{if(b<0||!C.current)return;let k=C.current.querySelector(`[data-cmd-index="${b}"]`);k&&k.scrollIntoView({block:"nearest"});},[b]);let g=useCallback(k=>{switch(k.key){case "Escape":k.preventDefault(),t();break;case "ArrowDown":{k.preventDefault(),m(h=>{let F=h+1;return F>=y.length?0:F});break}case "ArrowUp":{k.preventDefault(),m(h=>{let F=h-1;return F<0?y.length-1:F});break}case "Enter":{k.preventDefault(),b>=0&&b<y.length&&(y[b].onSelect(),t());break}}},[y,b,t]),v=()=>{let k={transition:`opacity ${wo}ms ease`};return d==="opening"||d==="idle"?{...k,opacity:0}:d==="open"?{...k,opacity:1}:{...k,opacity:0,pointerEvents:"none"}},M=()=>{let k={transition:`opacity ${wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return d==="opening"||d==="idle"?{...k,opacity:0,transform:"scale(0.95) translateY(-10px)"}:d==="open"?{...k,opacity:1,transform:"scale(1) translateY(0)"}:{...k,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},D=0;return u?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:g,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:a,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",...M(),...n},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:f,type:"text",value:l,onChange:k=>x(k.target.value),placeholder:r,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:C,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):w.map(k=>jsxs("div",{role:"group","aria-label":k.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:i.categoryText,userSelect:"none"},children:k.label}),k.items.map(h=>{let F=D++,S=F===b;return jsxs("div",{role:"option","aria-selected":S,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{h.onSelect(),t();},onMouseEnter:()=>m(F),onMouseLeave:()=>m(-1),children:[h.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:h.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:h.label}),h.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:h.description})]}),h.shortcut&&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,whiteSpace:"nowrap"},children:h.shortcut})]},h.id)})]},k.label))})]})]}),document.body):null};wc.displayName="CommandMenu";var Rc={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)"}},_r=250,Tc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:n=64,style:a,className:s})=>{let i=P(),u=Rc[i],c=t?n:r;return jsx("aside",{className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:`${c}px`,minWidth:`${c}px`,height:"100%",backgroundColor:u.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${u.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Tc.displayName="AppSidebar";var zc={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)"}},Ic=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:n,onExpandedChange:a,onClick:s,children:i,collapsed:u=false,disabled:c=false,style:d,className:p})=>{let l=P(),x=zc[l],b=ur.Children.count(i)>0,m=n!==void 0,[f,C]=useState(r),w=m?n:f,[y,g]=useState(false),v=useRef(null),[M,D]=useState(0);useEffect(()=>{v.current&&D(v.current.scrollHeight);},[i,w]);let k=useCallback(()=>{m?a?.(!n):C(L=>{let R=!L;return a?.(R),R});},[m,n,a]),h=useCallback(()=>{c||(b&&k(),s?.());},[c,b,k,s]),F=c?`${x.text}66`:o?x.textActive:y?x.textHover:x.text,S=c?`${x.icon}66`:o?x.iconActive:y?x.iconHover:x.icon,I=o?x.activeBg:y&&!c?x.hoverBg:"transparent";return u?jsx("button",{type:"button",onClick:h,disabled:c,title:e,className:p,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:S,cursor:c?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...d},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxs("div",{className:p,style:d,children:[jsxs("button",{type:"button",onClick:h,disabled:c,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:F,cursor:c?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),b&&jsx(CaretDownIcon,{size:14,color:y?x.chevronHover:x.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:w?"rotate(0deg)":"rotate(-90deg)"}})]}),b&&jsx("div",{ref:v,style:{overflow:"hidden",maxHeight:w?`${M}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:i})})]})};Ic.displayName="SidebarItem";var Pc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Mc=({logo:e,children:t,actions:o,sticky:r=true,glass:n=true,style:a,className:s})=>{let i=P(),u=Pc[i];return jsxs("header",{className:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?u.background:u.backgroundSolid,borderBottom:`1px solid ${u.border}`,boxShadow:u.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Mc.displayName="Navbar";var Wc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Zc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Ha=({variant:e="info",title:t,content:o,icon:r,onClose:n,role:a="alert",style:s,className:i})=>{let u=P(),c=Wc[u],{border:d,background:p}=c[e],l=r??Zc[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:p,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...s},className:i,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:c.iconColor},children:l}),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:c.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:c.textSecondary,lineHeight:"normal"},children:o})]})]}),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:c.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var La=3,Uc=.06,Na=12,To=320,$a=createContext(null),_c=0,Xc=()=>`sm-toast-${++_c}-${Date.now()}`,vx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:n=16,maxToasts:a=5,duration:s=4e3})=>{let[i,u]=useState([]),c=useCallback(l=>{u(x=>x.map(b=>b.id===l?{...b,lifecycle:"leaving"}:b)),setTimeout(()=>{u(x=>x.filter(b=>b.id!==l));},To+100);},[]),d=useCallback(l=>{let x=Xc(),b=l.duration??s,m={id:x,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:b,lifecycle:"entering",height:0};return u(f=>{let C=[...f,m];return C.length>a?C.slice(C.length-a):C}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u(f=>f.map(C=>C.id===x?{...C,lifecycle:"visible"}:C));});}),b>0&&setTimeout(()=>c(x),b),x},[a,c,s]),p=useCallback((l,x)=>{u(b=>b.map(m=>m.id===l&&m.height!==x?{...m,height:x}:m));},[]);return jsxs($a.Provider,{value:{toast:d,dismiss:c},children:[e,i.length>0&&jsx(jc,{toasts:i,position:t,toastWidth:o,gap:r,offset:n,onDismiss:c,onHeightMeasured:p})]})},Gc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:n,isBottom:a,appeared:s,toastWidth:i,onDismiss:u,onHeightMeasured:c})=>{let d=t.lifecycle==="leaving",p=!s||d,l=n?1:Math.max(.7,1-o*Uc),x=n?0:o*Na,b=a?-x:x,f=p?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${b}px)`,C=p?0:n?1:Math.max(.4,1-o*.18),w=!n&&o>=La,y=r-o,g=useCallback(v=>{v&&t.height===0&&c(t.id,v.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:g,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:f,opacity:w?0:C,zIndex:y,transition:[`transform ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${To}ms ease`].join(", "),pointerEvents:o===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Ha,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>u(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},jc=({toasts:e,position:t,toastWidth:o,gap:r,offset:n,onDismiss:a,onHeightMeasured:s})=>{let[i,u]=useState(false),[c,d]=useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),x=t.endsWith("center");useEffect(()=>{d(g=>{let v=new Set(g);return e.forEach(M=>{M.lifecycle==="visible"&&v.add(M.id);}),[...v].forEach(M=>{e.find(D=>D.id===M)||v.delete(M);}),v});},[e]);let f=(e[e.length-1]?.height||80)+Math.min(e.length-1,La-1)*Na,C=e.reduce((g,v)=>g+(v.height||80),0)+Math.max(0,e.length-1)*r,w=i?C:f,y=x?{left:"50%",transform:"translateX(-50%)"}:l?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${n*2}px)`,height:w,...p?{bottom:n}:{top:n},...y,transition:`height ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),"aria-live":"polite","aria-atomic":"false",children:e.map((g,v)=>{let M=e.length-1-v,D=c.has(g.id),k=g.lifecycle==="leaving",h=!D||k,F;if(i&&!h){let I=e.slice(v+1).reduce((R,T)=>R+(T.height||80)+r,0);F=`translateY(${p?-I:I}px)`;}return jsx(Gc,{item:g,depthIndex:M,stackSize:e.length,expanded:i,isBottom:p,appeared:D,toastWidth:o,onDismiss:a,onHeightMeasured:s,expandedTransformOverride:F},g.id)})})},Sx=()=>{let e=useContext($a);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 rp={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)"}},np={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"}},Ex=({variant:e="info",title:t,children:o,icon:r,closable:n=false,onClose:a,className:s,style:i})=>{let u=P(),c=rp[u],d=np[e],[p,l]=useState(true);if(!p)return null;let x=u==="light",b=x?d.borderLight:d.border,m=x?d.backgroundLight:d.background,f=x?d.iconColorLight:d.iconColor,w=r??{info:jsx(Info,{size:24,color:f}),success:jsx(CheckCircle,{size:24,color:f}),warning:jsx(Warning,{size:24,color:f}),error:jsx(XCircle,{size:24,color:f})}[e],y=()=>{l(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${b}`,borderRadius:"4px",boxSizing:"border-box",...i},className:s,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:o})]}),n&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var pp={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)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},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)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},fp={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},up={info:jsx(Info,{size:20}),success:jsx(CheckCircle,{size:20}),warning:jsx(Warning,{size:20}),error:jsx(XCircle,{size:20})},gp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,position:s="top",sticky:i=false,style:u,className:c})=>{let d=P(),p=pp[d],l=fp[e],[x,b]=useState(true);if(!x||!t&&!o)return null;let m=d==="light",f=m?l.accentLight:l.accent,C=i?p.glassBg:m?l.bgLight:l.bg,w=m?l.iconLight:l.icon,y=a??up[e],g=()=>{b(false),n?.();};return jsxs("div",{role:"alert",className:c,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:C,borderTop:s==="bottom"?`3px solid ${f}`:"none",borderBottom:s==="top"?`3px solid ${f}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...i?{position:"sticky",[s]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${p.glassBorder}`,borderRight:`1px solid ${p.glassBorder}`}:{},...u},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:w,marginTop:"1px"},children:y}),jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),r&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:g,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:p.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=p.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=p.closeColor;},children:jsx(X,{size:16})})]})};gp.displayName="Banner";var Sp={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)"}},kp={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"}},Cp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,action:s,style:i,className:u})=>{let c=P(),d=Sp[c],p=kp[e],[l,x]=useState(true);if(!l)return null;let b=c==="light",m=b?p.bgLight:p.bg,f=b?p.accentLight:p.accent,w=a??{info:jsx(Info,{size:20,color:f}),success:jsx(CheckCircle,{size:20,color:f}),warning:jsx(Warning,{size:20,color:f}),error:jsx(XCircle,{size:20,color:f})}[e],y=()=>{x(false),n?.();};return jsxs("div",{role:"status",className:u,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${d.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:d.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:d.bodyText},children:o})]}),s&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),r&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:d.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};Cp.displayName="Notification";var Va={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},wp={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Ya="sm-ui-progress-stripes",Rp=()=>{if(typeof document>"u"||document.getElementById(Ya))return;let e=document.createElement("style");e.id=Ya,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Vx=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:n,striped:a=false,animated:s=false,className:i,style:u})=>{let c=P(),d=Va[c],p=wp[t],l=Math.max(0,Math.min(100,e));a&&s&&Rp();let x=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",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...u},className:i,children:[(n||r)&&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:d.label,userSelect:"none"},children:n}),r&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:d.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsx("div",{style:{width:"100%",height:p.height,backgroundColor:d.trackBg,borderRadius:p.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${l}%`,height:"100%",backgroundColor:o,borderRadius:p.height/2,transition:"width 0.3s ease",...x}})})]})},Ux=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:n=false,label:a,className:s,style:i})=>{let u=P(),c=Va[u],d=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,x=l-d/100*l;return jsxs("div",{role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},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:p,fill:"none",stroke:c.trackBg,strokeWidth:o}),jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:x,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(d),"%"]}),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 Ep={sm:16,md:24,lg:40},qx=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:n})=>{let[a,s]=useState(0),i=useRef(void 0),u=useRef(void 0);useEffect(()=>{let p=l=>{u.current===void 0&&(u.current=l),s((l-u.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let c=typeof e=="number"?e:Ep[e]??24,d=t??"currentColor";return jsx("span",{role:"status","aria-label":o,className:r,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:d,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:d,strokeWidth:"2",strokeLinecap:"round"})]})})};var Dp={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"}},zp=({open:e,onConfirm:t,onCancel:o,title:r,description:n,confirmLabel:a="Potvrdit",cancelLabel:s="Zru\u0161it",variant:i="default",loading:u=false,style:c,className:d})=>{let p=P(),l=Dp[p],[x,b]=useState(false),[m,f]=useState(false),C=i==="danger",w=C?m?l.dangerHover:l.dangerBg:m?l.confirmHover:l.confirmBg,y=C?l.dangerText:l.confirmText;return jsx(zr,{open:e,onClose:o,title:r,size:"sm",className:d,style:c,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:x?l.cancelHover:l.cancelBg,border:`1px solid ${l.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:s}),jsx("button",{type:"button",onClick:t,disabled:u,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:w,border:"none",borderRadius:"6px",cursor:u?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:u?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:u?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:n})})};zp.displayName="ConfirmDialog";var Np={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"}},$p={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"}},Wp=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 o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},Zp=({text:e,children:t,size:o="md",variant:r="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:s,style:i,className:u})=>{let c=P(),d=Np[c],p=$p[o],[l,x]=useState(false),[b,m]=useState(false),f=useRef(null),C=useCallback(async()=>{await Wp(e)&&(x(true),s?.(),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{x(false),f.current=null;},2e3));},[e,s]),w=l?d.successColor:b?d.iconHover:d.iconColor,y=l?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:w,...i},children:t}):r==="icon"?jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:w,...i},children:jsx(y,{size:p.iconSize,color:w})}):jsxs("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:b?d.buttonHover:d.buttonBg,border:`1px solid ${d.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,color:l?d.successColor:d.buttonText,lineHeight:"normal",...i},children:[jsx(y,{size:p.iconSize,color:l?d.successColor:d.buttonText}),l?a:n]})};Zp.displayName="CopyButton";var Yp={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"}},bm=({orientation:e="horizontal",label:t,className:o,style:r})=>{let n=P(),a=Yp[n];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...r}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},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:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...r}})};var Up={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},_p={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},hm=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:n=false,fullWidth:a=false,children:s,className:i,style:u})=>jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Up[o],justifyContent:_p[r],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...u},children:s});var Gp={sm:640,md:768,lg:1024,xl:1280},Sm=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:n,style:a})=>{let s=typeof e=="number"?e:Gp[e],i=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${s}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:r})};var ef={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)"}},ja="smDragListPulse",tf=`@keyframes ${ja}{0%,100%{opacity:1}50%{opacity:0.5}}`;function en(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=en(o.children,t);if(r)return r}}return null}function Jr(e,t,o){let r=en(e,t);if(!r||!r.children)return false;for(let n of r.children)if(n.id===o||Jr([n],n.id,o))return true;return false}function qa(e,t){let o=null;return [e.reduce((n,a)=>{if(a.id===t)return o=a,n;if(a.children){let[s,i]=qa(a.children,t);i&&(o=i),n.push({...a,children:s.length>0?s:void 0});}else n.push(a);return n},[]),o]}function Qr(e,t,o,r){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],r],expanded:true}:a.children?{...a,children:Qr(a.children,t,o,r)}:a);let n=[];for(let a of e)a.id===t?o==="before"?(n.push(r),n.push(a)):(n.push(a),n.push(r)):a.children?n.push({...a,children:Qr(a.children,t,o,r)}):n.push(a);return n}function Ka(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:Ka(o.children,t)}:o)}function Ja(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Ja(r.children,t,o)}:r)}var Ga=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ja} 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}})}),Qa=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b})=>{let[m,f]=useState(false),[C,w]=useState(false),[y,g]=useState(false),v=useRef(false),M=useRef(null),D=e.children&&e.children.length>0,k=e.expanded??false,h=n===e.id,F=n!==null,S=x==="handle",I=a?.targetId===e.id,L=I&&a?.position==="before",R=I&&a?.position==="after",T=I&&a?.position==="inside",E=h?"transparent":T?b.nestHighlight:C&&!F?b.itemHoverBg:b.itemBg,N=T?b.nestBorder:h?"transparent":b.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[L&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),jsxs("div",{ref:M,draggable:true,onDragStart:W=>{if(S&&!v.current){W.preventDefault();return}if(v.current=false,W.dataTransfer.effectAllowed="move",W.dataTransfer.setData("text/plain",e.id),M.current){let z=M.current.cloneNode(true);z.style.width=`${M.current.offsetWidth}px`,z.style.opacity="0.85",z.style.transform="rotate(1.5deg) scale(1.02)",z.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",z.style.position="fixed",z.style.top="-1000px",document.body.appendChild(z),W.dataTransfer.setDragImage(z,W.nativeEvent.offsetX,W.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(z));}s(e.id);},onDragOver:W=>{W.preventDefault(),W.stopPropagation(),i(W,e.id,t);},onDragLeave:W=>{let z=W.relatedTarget;M.current&&z&&M.current.contains(z)||(W.stopPropagation(),u(W,M.current),w(false));},onDrop:W=>{W.preventDefault(),W.stopPropagation(),c(W);},onDragEnd:d,onMouseEnter:()=>w(true),onMouseLeave:()=>w(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h?"transparent":b.text,cursor:F?"grabbing":S?"default":"grab",opacity:h?.35:1,backgroundColor:E,borderWidth:"1px",borderColor:N,borderStyle:h?"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:T?`inset 0 0 0 1px ${b.nestBorder}`:C&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:T?"scale(1.01)":"scale(1)"},children:[!l&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:h?"hidden":"visible"},onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),onMouseDown:()=>{v.current=true;},children:jsx(DotsSixVertical,{size:14,color:m?b.gripHover:b.gripColor})}),T&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:b.dropIndicator})}),D?jsx("button",{type:"button",onClick:W=>{W.stopPropagation(),p(e.id);},onMouseEnter:()=>g(true),onMouseLeave:()=>g(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:h?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?b.chevronHover:b.chevron,style:{transition:"transform 0.2s ease",transform:k?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:h?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{v.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:h,depth:t,isExpanded:k,toggleExpand:()=>p(e.id),hasChildren:!!D}):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})]})})]}),R&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),D&&k&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${b.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(W=>jsx(Qa,{item:W,depth:t+1,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b},W.id))})]})},of=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:n=3,dragMode:a="full",className:s,style:i})=>{let u=P(),c=ef[u],[d,p]=useState(null),[l,x]=useState(null),b=useRef(null),m=useRef(void 0),f=useRef(void 0),C=useRef(null),w=useCallback(k=>{p(k);},[]),y=useCallback((k,h,F)=>{if(!d||d===h||Jr(e,d,h))return;m.current&&(clearTimeout(m.current),m.current=void 0);let S=k.currentTarget.getBoundingClientRect(),I=k.clientY-S.top,L=S.height,R;r&&F<n?I<L*.25?R="before":I>L*.75?R="after":R="inside":I<L*.35?R="before":I>L*.65?R="after":C.current?.targetId===h?R=C.current.position:R=I<L/2?"before":"after";let T={targetId:h,position:R},E=en(e,h);R==="inside"&&E?.children&&E.children.length>0&&!E.expanded?(C.current?.targetId!==h||C.current?.position!=="inside")&&(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{t(Ja(e,h,true));},600)):f.current&&(clearTimeout(f.current),f.current=void 0),C.current=T,x(T);},[d,e,r,n,t]),g=useCallback((k,h)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{x(null),C.current=null;},60),f.current&&(clearTimeout(f.current),f.current=void 0);},[]),v=useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),!d||!l)return;let{targetId:k,position:h}=l;if(d===k||Jr(e,d,k))return;let[F,S]=qa(e,d);if(!S)return;let I=Qr(F,k,h,S);t(I),p(null),x(null),C.current=null;},[d,l,e,t]),M=useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),p(null),x(null),C.current=null;},[]),D=useCallback(k=>{t(Ka(e,k));},[e,t]);return useEffect(()=>()=>{m.current&&clearTimeout(m.current),f.current&&clearTimeout(f.current);},[]),jsxs("div",{ref:b,className:s,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:tf}}),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(k=>jsx(Qa,{item:k,depth:0,allowNesting:r,maxDepth:n,draggedId:d,dropState:l,onDragStart:w,onDragOver:y,onDragLeave:g,onDrop:v,onDragEnd:M,onToggleExpand:D,renderItem:o,dragMode:a,tokens:c},k.id))]})};of.displayName="DragList";export{Il as Accordion,zl as AccordionItem,Ex as Alert,Tc as AppSidebar,l0 as Avatar,g0 as Badge,gp as Banner,_d as Breadcrumb,ss as Button,ud as Calendar,Tl as Card,Rn as Checkbox,Tn as CheckboxGroup,Mi as ColorPicker,Ns as Combobox,wc as CommandMenu,zp as ConfirmDialog,Sm as Container,Zp as CopyButton,hl as DataGrid,hd as DataList,Cn as DatePicker,Gs as DatePickerGroup,bm as Divider,of as DragList,Nd as Drawer,fc as DropdownMenu,Kl as EmptyState,Nn as FileUpload,dc as FormWizard,ll as ImageCropper,ln as Input,gf as InputGroup,Nb as Link,Cl as MobileDataCard,zr as Modal,Mc as Navbar,Cp as Notification,Cs as NumberInput,Gi as OTPInput,Jd as Pagination,rl as PhoneInput,_l as Popover,Vx as ProgressBar,Ux as ProgressCircle,Go as Radio,En as RadioGroup,Wi as Rating,Ti as SegmentedControl,gn as Select,Es as SelectGroup,Yd as Sheet,Ic as SidebarItem,xe as Skeleton,Hn as Slider,qx as Spinner,yc as Spotlight,hm as Stack,od as Stat,Bd as StatusBadge,Wr as Stepper,Dn as Switch,Al as Tab,Hl as TabPanel,bl as Table,Ll as Tabs,u0 as Tag,b0 as TagItem,In as Textarea,xd as Timeline,Ha as Toast,vx as ToasterProvider,yr as Tooltip,Cd as Tree,P as useTheme,Sx as useToast};//# sourceMappingURL=index.mjs.map
|
|
19
19
|
//# sourceMappingURL=index.mjs.map
|