@smworks-cz/ui-kit 1.2.1 → 1.3.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 +100 -18
- package/dist/index.d.ts +100 -18
- 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 +2 -1
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import Po,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,CaretLeftIcon,CaretRightIcon,XIcon,CheckIcon,MagnifyingGlassIcon,Warning,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var z=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let i=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return i==="dark"||i==="light"?i:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),a=i=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(i.matches?"dark":"light");};o.addEventListener("change",a);let n=new MutationObserver(i=>{i.forEach(l=>{l.attributeName==="data-theme"&&t(r());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",a),n.disconnect();}},[]),e};var ve={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},ma={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},ha=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let n=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),o.current=requestAnimationFrame(n);};return o.current=requestAnimationFrame(n),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ya=Po.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:a=false,fullWidth:n=false,children:i,style:l,className:p,...s},f)=>{let[u,c]=useState(false),g=z()==="dark",d=typeof s.href=="string",x=a||(d?false:!!s.disabled),S=i!=null&&i!=="",w=r!=null,y=(w||a)&&!S,{paddingText:b,paddingSquare:k,fontSize:D,gap:T,height:m}=ma[t],C={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:S&&(w||a)?T:void 0,padding:y?k:b,height:m,borderRadius:"8px",cursor:x?"not-allowed":"pointer",opacity:x?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:x?"none":void 0},v=(()=>{switch(e){case "primary":return {backgroundColor:u?ve.primaryHover:ve.primary,color:ve.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?g?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:g?ve.white:ve.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?g?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:g?ve.white:ve.black,border:`1px solid ${u?g?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":g?ve.borderDark:ve.borderLight}`};case "danger":return {backgroundColor:u?"#FF5252":"#EF3838",color:ve.white,border:"1px solid transparent"}}})(),R=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsx(ha,{size:parseInt(D)-1}):r}),E=a||w,P=o==="right"?jsxs(Fragment,{children:[S&&jsx("span",{children:i}),E&&R]}):jsxs(Fragment,{children:[E&&R,S&&jsx("span",{children:i})]}),F={style:{...C,...v,...l},className:p,onMouseEnter:A=>{c(true),s.onMouseEnter?.(A);},onMouseLeave:A=>{c(false),s.onMouseLeave?.(A);}};if(d){let{href:A,target:N,rel:L,...O}=s;return jsx("a",{ref:f,href:A,target:N,rel:L??(N==="_blank"?"noopener noreferrer":void 0),"aria-disabled":x||void 0,...O,...F,children:P})}let{disabled:I,type:B="button",...H}=s;return jsx("button",{ref:f,type:B,disabled:x,"aria-busy":a||void 0,...H,...F,children:P})});ya.displayName="Button";var wa=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},wr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},Ta={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Tr=Po.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:a,loading:n=false,clearable:i=false,passwordToggle:l,size:p="md",fullWidth:s=false,style:f,className:u,inputStyle:c,disabled:h,required:g,value:d,onChange:x,onFocus:S,onBlur:w,type:y,...b},k)=>{let D=z(),T=wr[D],m=useId(),C=b.id??m,[v,R]=useState(false),[E,P]=useState(false),F=y==="password",I=l??F,B=F&&E?"text":y,H=h||n,A=!!o,N=typeof o=="string"?o:void 0,L=d!=null&&d!=="",O=i&&L&&!H&&!I,W=Ta[p],q=()=>{if(!x)return;x({target:{value:""},currentTarget:{value:""}});},re=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,K=I&&!H?jsx("span",{role:"button",tabIndex:-1,"aria-label":E?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>P(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:E?jsx(EyeSlash,{color:T.placeholder,size:W.iconSize}):jsx(Eye,{color:T.placeholder,size:W.iconSize})}):null,j=n?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:jsx(wa,{size:W.iconSize,color:T.placeholder})}):K||(O?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:q,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:jsx(X,{size:W.iconSize-2,color:T.placeholder})}):r==="right"&&re?re:null),Q=r==="left"?re:null,U={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${A?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:W.fontSize,lineHeight:"normal",color:T.text,cursor:H?"not-allowed":"text",...c},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},X$1={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...f},className:u,children:[e&&jsxs("label",{htmlFor:C,style:de,children:[e,g&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:C,style:U,children:[Q,jsx("input",{ref:k,id:C,type:B,disabled:h,required:g,readOnly:n||b.readOnly,value:d,onChange:x,style:me,onFocus:G=>{R(true),S?.(G);},onBlur:G=>{R(false),w?.(G);},...b}),j]}),N&&jsx("span",{style:{...X$1,color:T.borderError},children:N}),!N&&a&&jsx("span",{style:{...X$1,color:T.helperText},children:a})]})});Tr.displayName="Input";var Ud=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i,p={display:"flex",flexDirection:"column",gap:"8px",...o},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:wr[n].label,userSelect:"none"};return jsxs("div",{style:p,className:a,children:[jsx("label",{htmlFor:l,style:s,children:e}),r??jsx(Tr,{id:l})]})};var Ma={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},Aa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},Ha=Po.forwardRef(({value:e,onChange:t,min:r,max:o,step:a=1,label:n,error:i,disabled:l=false,size:p="md",variant:s="default",prefix:f,suffix:u,style:c,className:h},g)=>{let d=z(),x=Ma[d],w=useId(),y=Aa[p],[b,k]=useState(false),[D,T]=useState(null),m=!!i,C=typeof i=="string"?i:void 0,v=useCallback(Q=>{let U=Q;return r!==void 0&&U<r&&(U=r),o!==void 0&&U>o&&(U=o),U},[r,o]),R=useCallback(()=>{t(v(e+a));},[e,a,t,v]),E=useCallback(()=>{t(v(e-a));},[e,a,t,v]),P=useRef(null),F=useRef(null),I=useCallback(Q=>{l||(Q(),F.current=setTimeout(()=>{P.current=setInterval(Q,80);},400));},[l]),B=useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),P.current&&(clearInterval(P.current),P.current=null);},[]);useEffect(()=>()=>B(),[B]);let H=Q=>{let U=Q.target.value;if(U===""||U==="-")return;let me=parseFloat(U);isNaN(me)||t(v(me));},A=()=>{k(false),t(v(e));},N=r===void 0||e>r,L=o===void 0||e<o,O={display:"flex",alignItems:"center",backgroundColor:l?x.backgroundDisabled:x.background,border:`1px solid ${m?x.borderError:b?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:y.height},W=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:D===Q&&U&&!l?x.buttonHoverBg:x.buttonBg,color:U&&!l?x.buttonText:x.placeholder,cursor:l||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),q={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:x.text,textAlign:"center",cursor:l?"not-allowed":"text",MozAppearance:"textfield"},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:x.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},j=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&U&&!l?x.buttonHoverBg:"transparent",color:U&&!l?x.buttonText:x.placeholder,cursor:l||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return s==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[n&&jsx("label",{htmlFor:w,style:re,children:n}),jsxs("div",{style:O,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[f&&jsx("span",{style:K,children:f}),jsx("input",{ref:g,id:w,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>k(true),onBlur:A,disabled:l,style:{...q,textAlign:"left"}}),u&&jsx("span",{style:K,children:u})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${m?x.borderError:b?x.borderFocus:x.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:j("up",L),onMouseDown:()=>I(R),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!N,style:j("down",N),onMouseDown:()=>I(E),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:C})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:h,children:[n&&jsx("label",{htmlFor:w,style:re,children:n}),jsxs("div",{style:O,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!N,style:W("minus",N),onMouseDown:()=>I(E),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("minus"),children:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsx("span",{style:K,children:f}),jsx("input",{ref:g,id:w,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>k(true),onBlur:A,disabled:l,style:q}),u&&jsx("span",{style:K,children:u})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:W("plus",L),onMouseDown:()=>I(R),onMouseUp:B,onMouseLeave:()=>{B(),T(null);},onMouseEnter:()=>T("plus"),children:jsx(Plus,{size:y.iconSize})})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:C})]})});Ha.displayName="NumberInput";var Wa=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ir={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},go=180,Br=({options:e,value:t,onChange:r,multiple:o=false,searchable:a=false,clearable:n=false,disabled:i=false,loading:l=false,error:p,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:u=240,style:c,className:h})=>{let g=z(),d=Ir[g],x=useId(),S=useRef(null),w=useRef(null),y=useRef(null),b=useRef(null),[k,D]=useState(false),[T,m]=useState(false),[C,v]=useState("idle"),[R,E]=useState(""),[P,F]=useState(-1),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),H=i||l,A=!!p,N=typeof p=="string"?p:void 0,L=useCallback(()=>{D(true),m(true),v("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>v("open"));});},[]),O=useCallback(()=>{D(false),v("closing"),E("");let $=setTimeout(()=>{m(false),v("idle");},go);return ()=>clearTimeout($)},[]),W=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],q=$=>W.includes($),re=R?e.filter($=>($.label??$.value).toLowerCase().includes(R.toLowerCase())):e,K=useCallback(()=>{if(!S.current)return;let $=S.current.getBoundingClientRect(),te=w.current?.offsetHeight??u+60,oe=window.innerHeight-$.bottom-6,le=$.top-6,Se=oe<te&&le>oe;B({top:Se?$.top-6:$.bottom+6,left:$.left,width:$.width,openAbove:Se});},[u]);useEffect(()=>{if(T)return K(),window.addEventListener("scroll",K,true),window.addEventListener("resize",K),()=>{window.removeEventListener("scroll",K,true),window.removeEventListener("resize",K);}},[T,K]);let j=useCallback($=>{if(r)if(o){let te=q($)?W.filter(oe=>oe!==$):[...W,$];r(te);}else r($),O();},[o,r,W,O]),Q=useCallback($=>{$.stopPropagation(),r&&(r(o?[]:null),E(""));},[o,r]),U=()=>{H||(k?O():L(),F(-1));},me=$=>{if(!H)switch($.key){case "ArrowDown":$.preventDefault(),k?F(te=>Math.min(te+1,re.length-1)):(L(),F(0));break;case "ArrowUp":$.preventDefault(),F(te=>Math.max(te-1,0));break;case "Enter":case " ":$.preventDefault(),k&&P>=0&&re[P]&&!re[P].disabled?j(re[P].value):k||(L(),F(0));break;case "Escape":O();break;case "Tab":O();break}};useEffect(()=>{P>=0&&b.current&&b.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),useEffect(()=>{if(!k)return;let $=te=>{let oe=te.target,le=S.current?.contains(oe),Se=w.current?.contains(oe);!le&&!Se&&O();};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[k,O]),useEffect(()=>{k&&a&&y.current&&y.current.focus();},[k,a]);let de=$=>e.find(oe=>oe.value===$)?.label??$,X$1=n&&W.length>0&&!H,G=()=>{let $=I.openAbove,te=$?"translateY(8px)":"translateY(-8px)",oe=$?"translateY(6px)":"translateY(-6px)",le={transition:`opacity ${go}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`};return C==="opening"||C==="idle"?{...le,opacity:0,transform:`${te} scale(0.97)`}:C==="open"?{...le,opacity:1,transform:"translateY(0) scale(1)"}:{...le,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},Pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:H?d.backgroundDisabled:d.background,border:`1px solid ${A?d.borderError:k?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"pointer",userSelect:"none",outline:"none"},Me=T?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:d.dropdownBg,border:`1px solid ${d.dropdownBorder}`,borderRadius:"12px",boxShadow:g==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...G()},children:[a&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${d.divider}`},children:jsx("input",{ref:y,type:"text",value:R,onChange:$=>{E($.target.value),F(0);},onKeyDown:me,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:b,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${x}`,style:{maxHeight:u,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
1
|
+
import _o,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,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 o=()=>{let c=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return c==="dark"||c==="light"?c:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),a=c=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(c.matches?"dark":"light");};r.addEventListener("change",a);let n=new MutationObserver(c=>{c.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",a),n.disconnect();}},[]),e};var he={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},Fa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",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"}},Ea=({size:e=14})=>{let[t,o]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let n=c=>{a.current===void 0&&(a.current=c),o((c-a.current)/800*360%360),r.current=requestAnimationFrame(n);};return r.current=requestAnimationFrame(n),()=>{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"})]})},Da=_o.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:a=false,fullWidth:n=false,children:c,style:i,className:d,...s},f)=>{let[p,l]=useState(false),u=I()==="dark",b=typeof s.href=="string",g=a||(b?false:!!s.disabled),w=c!=null&&c!=="",S=o!=null,v=(S||a)&&!w,{paddingText:x,paddingSquare:C,fontSize:B,gap:E,height:h}=Fa[t],R={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:w&&(S||a)?E:void 0,padding:v?C:x,height:h,borderRadius:"8px",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:B,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:g?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?he.primaryHover:he.primary,color:he.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:`1px solid ${p?u?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":u?he.borderDark:he.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:he.white,border:"1px solid transparent"}}})(),T=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsx(Ea,{size:parseInt(B)-1}):o}),z=a||S,M=r==="right"?jsxs(Fragment,{children:[w&&jsx("span",{children:c}),z&&T]}):jsxs(Fragment,{children:[z&&T,w&&jsx("span",{children:c})]}),y={style:{...R,...F,...i},className:d,onMouseEnter:N=>{l(true),s.onMouseEnter?.(N);},onMouseLeave:N=>{l(false),s.onMouseLeave?.(N);}};if(b){let{href:N,target:A,rel:L,...V}=s;return jsx("a",{ref:f,href:N,target:A,rel:L??(A==="_blank"?"noopener noreferrer":void 0),"aria-disabled":g||void 0,...V,...y,children:M})}let{disabled:D,type:P="button",...H}=s;return jsx("button",{ref:f,type:P,disabled:g,"aria-busy":a||void 0,...H,...y,children:M})});Da.displayName="Button";var Aa=({size:e=16,color:t})=>{let[o,r]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.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"})]})},Nr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},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"}},Ha={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"}},$r=_o.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:a,loading:n=false,clearable:c=false,passwordToggle:i,size:d="md",fullWidth:s=false,style:f,className:p,inputStyle:l,disabled:m,required:u,value:b,onChange:g,onFocus:w,onBlur:S,type:v,...x},C)=>{let B=I(),E=Nr[B],h=useId(),R=x.id??h,[F,T]=useState(false),[z,M]=useState(false),y=v==="password",D=i??y,P=y&&z?"text":v,H=m||n,N=!!r,A=typeof r=="string"?r:void 0,L=b!=null&&b!=="",V=c&&L&&!H&&!D,O=Ha[d],K=()=>{if(!g)return;g({target:{value:""},currentTarget:{value:""}});},te=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:E.placeholder},children:t}):null,U=D&&!H?jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:z?jsx(EyeSlash,{color:E.placeholder,size:O.iconSize}):jsx(Eye,{color:E.placeholder,size:O.iconSize})}):null,q=n?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:E.placeholder},children:jsx(Aa,{size:O.iconSize,color:E.placeholder})}):U||(V?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:K,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:jsx(X,{size:O.iconSize-2,color:E.placeholder})}):o==="right"&&te?te:null),X$1=o==="left"?te:null,_={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:H?E.backgroundDisabled:E.background,border:`1px solid ${N?E.borderError:F?E.borderFocus:E.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},ue={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:E.text,cursor:H?"not-allowed":"text",...l},Q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},j={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:p,children:[e&&jsxs("label",{htmlFor:R,style:Q,children:[e,u&&jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:R,style:_,children:[X$1,jsx("input",{ref:C,id:R,type:P,disabled:m,required:u,readOnly:n||x.readOnly,value:b,onChange:g,style:ue,onFocus:J=>{T(true),w?.(J);},onBlur:J=>{T(false),S?.(J);},...x}),q]}),A&&jsx("span",{style:{...j,color:E.borderError},children:A}),!A&&a&&jsx("span",{style:{...j,color:E.helperText},children:a})]})});$r.displayName="Input";var ep=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=useId(),i=t??c,d={display:"flex",flexDirection:"column",gap:"8px",...r},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Nr[n].label,userSelect:"none"};return jsxs("div",{style:d,className:a,children:[jsx("label",{htmlFor:i,style:s,children:e}),o??jsx($r,{id:i})]})};var Va={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",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"}},Ua={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"}},qa=_o.forwardRef(({value:e,onChange:t,min:o,max:r,step:a=1,label:n,error:c,disabled:i=false,size:d="md",variant:s="default",prefix:f,suffix:p,style:l,className:m},u)=>{let b=I(),g=Va[b],S=useId(),v=Ua[d],[x,C]=useState(false),[B,E]=useState(null),h=!!c,R=typeof c=="string"?c:void 0,F=useCallback(X=>{let _=X;return o!==void 0&&_<o&&(_=o),r!==void 0&&_>r&&(_=r),_},[o,r]),T=useCallback(()=>{t(F(e+a));},[e,a,t,F]),z=useCallback(()=>{t(F(e-a));},[e,a,t,F]),M=useRef(null),y=useRef(null),D=useCallback(X=>{i||(X(),y.current=setTimeout(()=>{M.current=setInterval(X,80);},400));},[i]),P=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);useEffect(()=>()=>P(),[P]);let H=X=>{let _=X.target.value;if(_===""||_==="-")return;let ue=parseFloat(_);isNaN(ue)||t(F(ue));},N=()=>{C(false),t(F(e));},A=o===void 0||e>o,L=r===void 0||e<r,V={display:"flex",alignItems:"center",backgroundColor:i?g.backgroundDisabled:g.background,border:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:v.height},O=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:v.buttonPadding,border:"none",background:B===X&&_&&!i?g.buttonHoverBg:g.buttonBg,color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:v.height,userSelect:"none"}),K={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v.fontSize,lineHeight:"normal",color:g.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:g.label,userSelect:"none"},U={fontFamily:"'Zalando Sans', sans-serif",fontSize:v.fontSize,color:g.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},q=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:B===X&&_&&!i?g.buttonHoverBg:"transparent",color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"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",...l},className:m,children:[n&&jsx("label",{htmlFor:S,style:te,children:n}),jsxs("div",{style:V,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:v.padding,minWidth:0},children:[f&&jsx("span",{style:U,children:f}),jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:{...K,textAlign:"left"}}),p&&jsx("span",{style:U,children:p})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:q("up",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),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||!A,style:q("down",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:m,children:[n&&jsx("label",{htmlFor:S,style:te,children:n}),jsxs("div",{style:V,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!A,style:O("minus",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("minus"),children:jsx(Minus,{size:v.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsx("span",{style:U,children:f}),jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:K}),p&&jsx("span",{style:U,children:p})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:O("plus",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("plus"),children:jsx(Plus,{size:v.iconSize})})]}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]})});qa.displayName="NumberInput";var Ka=({size:e=16,color:t})=>{let[o,r]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.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"})]})},Vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",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)"}},Eo=180,Ur=({options:e,value:t,onChange:o,multiple:r=false,searchable:a=false,clearable:n=false,disabled:c=false,loading:i=false,error:d,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:m})=>{let u=I(),b=Vr[u],g=useId(),w=useRef(null),S=useRef(null),v=useRef(null),x=useRef(null),[C,B]=useState(false),[E,h]=useState(false),[R,F]=useState("idle"),[T,z]=useState(""),[M,y]=useState(-1),[D,P]=useState({top:0,left:0,width:0,openAbove:false}),H=c||i,N=!!d,A=typeof d=="string"?d:void 0,L=useCallback(()=>{B(true),h(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),V=useCallback(()=>{B(false),F("closing"),z("");let W=setTimeout(()=>{h(false),F("idle");},Eo);return ()=>clearTimeout(W)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],K=W=>O.includes(W),te=T?e.filter(W=>(W.label??W.value).toLowerCase().includes(T.toLowerCase())):e,U=useCallback(()=>{if(!w.current)return;let W=w.current.getBoundingClientRect(),ne=S.current?.offsetHeight??p+60,ee=window.innerHeight-W.bottom-6,ie=W.top-6,ye=ee<ne&&ie>ee;P({top:ye?W.top-6:W.bottom+6,left:W.left,width:W.width,openAbove:ye});},[p]);useEffect(()=>{if(E)return U(),window.addEventListener("scroll",U,true),window.addEventListener("resize",U),()=>{window.removeEventListener("scroll",U,true),window.removeEventListener("resize",U);}},[E,U]);let q=useCallback(W=>{if(o)if(r){let ne=K(W)?O.filter(ee=>ee!==W):[...O,W];o(ne);}else o(W),V();},[r,o,O,V]),X$1=useCallback(W=>{W.stopPropagation(),o&&(o(r?[]:null),z(""));},[r,o]),_=()=>{H||(C?V():L(),y(-1));},ue=W=>{if(!H)switch(W.key){case "ArrowDown":W.preventDefault(),C?y(ne=>Math.min(ne+1,te.length-1)):(L(),y(0));break;case "ArrowUp":W.preventDefault(),y(ne=>Math.max(ne-1,0));break;case "Enter":case " ":W.preventDefault(),C&&M>=0&&te[M]&&!te[M].disabled?q(te[M].value):C||(L(),y(0));break;case "Escape":V();break;case "Tab":V();break}};useEffect(()=>{M>=0&&x.current&&x.current.children[M]?.scrollIntoView({block:"nearest"});},[M]),useEffect(()=>{if(!C)return;let W=ne=>{let ee=ne.target,ie=w.current?.contains(ee),ye=S.current?.contains(ee);!ie&&!ye&&V();};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[C,V]),useEffect(()=>{C&&a&&v.current&&v.current.focus();},[C,a]);let Q=W=>e.find(ee=>ee.value===W)?.label??W,j=n&&O.length>0&&!H,J=()=>{let W=D.openAbove,ne=W?"translateY(8px)":"translateY(-8px)",ee=W?"translateY(6px)":"translateY(-6px)",ie={transition:`opacity ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...ie,opacity:0,transform:`${ne} scale(0.97)`}:R==="open"?{...ie,opacity:1,transform:"translateY(0) scale(1)"}:{...ie,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},ge={display:"flex",alignItems:"center",gap:"10px",backgroundColor:H?b.backgroundDisabled:b.background,border:`1px solid ${N?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"pointer",userSelect:"none",outline:"none"},Re=E?createPortal(jsxs("div",{ref:S,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:u==="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:D.openAbove?"bottom center":"top center",...J()},children:[a&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${b.divider}`},children:jsx("input",{ref:v,type:"text",value:T,onChange:W=>{z(W.target.value),y(0);},onKeyDown:ue,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:x,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${g}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
+
.sm-select-list-${g}::-webkit-scrollbar {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${g}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${g}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${b.scrollbarThumb};
|
|
10
10
|
border-radius: 3px;
|
|
11
11
|
}
|
|
12
|
-
`}),re.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),re.map(($,te)=>{let oe=q($.value),le=te===P;return jsxs("div",{role:"option","aria-selected":oe,"aria-disabled":$.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:oe?500:400,lineHeight:"normal",color:oe?d.optionSelectedText:$.disabled?d.placeholder:d.text,backgroundColor:le?d.optionHover:oe?d.optionSelected:"transparent",cursor:$.disabled?"not-allowed":"pointer",opacity:$.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:te<re.length-1?"2px":0},onClick:()=>{$.disabled||j($.value);},onMouseEnter:()=>F(te),onMouseLeave:()=>F(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.label??$.value}),oe&&jsx(Check,{size:16,color:d.optionSelectedText})]},$.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...c},className:h,children:[s&&jsx("label",{htmlFor:x,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.text,userSelect:"none"},children:s}),jsxs("div",{ref:S,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox",tabIndex:H?-1:0,style:Pe,onClick:U,onKeyDown:me,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[W.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.placeholder,lineHeight:"normal"},children:f}),o?W.map($=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:d.tagBg,color:d.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de($)}),!H&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:te=>{te.stopPropagation(),j($);},children:jsx(X,{size:14,color:d.tagText})})]},$)):W.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de(W[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[X$1&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Q,children:jsx(X,{size:14,color:d.placeholder})}),l?jsx(Wa,{size:16,color:d.placeholder}):jsx(CaretDown,{size:16,color:d.placeholder,style:{transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),N&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.borderError,lineHeight:"normal"},children:N}),Me]})};Br.displayName="Select";var Za=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ir[n].label,userSelect:"none"},children:e}),r??jsx(Br,{options:[]})]})};Za.displayName="SelectGroup";var _a=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ka={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},bo=180,Xa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ja=Po.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:a="Hledat\u2026",label:n,error:i,disabled:l=false,loading:p=false,allowCustom:s=false,onCreate:f,renderOption:u,notFoundContent:c,footer:h,size:g="md",style:d,className:x},S)=>{let w=z(),y=Ka[w],k=useId(),D=Xa[g],T=useRef(null),m=useRef(null),C=useRef(null),v=useRef(null),[R,E]=useState(false),[P,F]=useState(false),[I,B]=useState("idle"),[H,A]=useState(""),[N,L]=useState(-1),[O,W]=useState(false),[q,re]=useState({top:0,left:0,width:0,openAbove:false}),K=l||p,j=!!i,Q=typeof i=="string"?i:void 0;useEffect(()=>{if(!O){let Z=e.find(ee=>ee.value===t);A(Z?Z.label??Z.value:t||"");}},[t,e,O]);let U=H?e.filter(Z=>(Z.label??Z.value).toLowerCase().includes(H.toLowerCase())):e,me=useCallback(()=>{E(true),F(true),B("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>B("open"));});},[]),de=useCallback(()=>{E(false),B("closing");let Z=setTimeout(()=>{F(false),B("idle");},bo);return ()=>clearTimeout(Z)},[]),X=useCallback(()=>{if(!T.current)return;let Z=T.current.getBoundingClientRect(),ee=C.current?.offsetHeight??240,ue=window.innerHeight-Z.bottom-6,ye=Z.top-6,je=ue<ee&&ye>ue;re({top:je?Z.top-6:Z.bottom+6,left:Z.left,width:Z.width,openAbove:je});},[]);useEffect(()=>{if(P)return X(),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[P,X]),useEffect(()=>{if(!R)return;let Z=ee=>{let ue=ee.target;if(!T.current?.contains(ue)&&!C.current?.contains(ue)){de();let ye=e.find(je=>je.value===t);s||A(ye?ye.label??ye.value:"");}};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[R,de,t,e,s]),useEffect(()=>{N>=0&&v.current&&v.current.children[N]?.scrollIntoView({block:"nearest"});},[N]);let G=Z=>{let ee=Z.target.value;A(ee),o?.(ee),L(0),R||me();},Pe=useCallback(Z=>{r(Z);let ee=e.find(ue=>ue.value===Z);A(ee?ee.label??ee.value:Z),de();},[r,e,de]),Me=Z=>{if(!K)switch(Z.key){case "ArrowDown":Z.preventDefault(),R?L(ee=>Math.min(ee+1,U.length-1)):(me(),L(0));break;case "ArrowUp":Z.preventDefault(),L(ee=>Math.max(ee-1,0));break;case "Enter":Z.preventDefault(),R&&N>=0&&U[N]?Pe(U[N].value):s&&H&&(r(H),f?.(H),de());break;case "Escape":de();break;case "Tab":R&&de();break}},$=()=>{W(true),!R&&!K&&me();},te=()=>{W(false),s&&H&&r(H);},oe=()=>{let Z=q.openAbove,ee=Z?"translateY(8px)":"translateY(-8px)",ue=Z?"translateY(6px)":"translateY(-6px)",ye={transition:`opacity ${bo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${bo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return I==="opening"||I==="idle"?{...ye,opacity:0,transform:`${ee} scale(0.97)`}:I==="open"?{...ye,opacity:1,transform:"translateY(0) scale(1)"}:{...ye,opacity:0,transform:`${ue} scale(0.98)`,pointerEvents:"none"}},le={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:K?y.backgroundDisabled:y.background,border:`1px solid ${j?y.borderError:O?y.borderFocus:y.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:K?.6:1,cursor:K?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D.fontSize,lineHeight:"normal",color:y.text,cursor:K?"not-allowed":"text"},io={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},bt=P?createPortal(jsxs("div",{ref:C,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:y.dropdownBg,border:`1px solid ${y.dropdownBorder}`,borderRadius:"12px",boxShadow:w==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...oe()},children:[jsxs("div",{ref:v,role:"listbox",style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[U.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:y.placeholder,textAlign:"center"},children:s&&H?"Stiskn\u011Bte Enter pro potvrzen\xED":c??"\u017D\xE1dn\xE9 v\xFDsledky"}),U.map((Z,ee)=>{let ue=Z.value===t,ye=ee===N;return jsx("div",{role:"option","aria-selected":ue,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ue?500:400,lineHeight:"normal",color:ue?y.optionSelectedText:y.text,backgroundColor:ye?y.optionHover:ue?y.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<U.length-1?"2px":0},onClick:()=>Pe(Z.value),onMouseEnter:()=>L(ee),onMouseLeave:()=>L(-1),children:u?u(Z,ye):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Z.label??Z.value}),ue&&jsx(Check,{size:16,color:y.optionSelectedText})]})},Z.value)})]}),h&&jsx("div",{style:{borderTop:`1px solid ${y.divider}`,padding:"8px 6px"},children:h})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},className:x,children:[n&&jsx("label",{htmlFor:k,style:io,children:n}),jsxs("div",{ref:T,style:le,onClick:()=>m.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:y.placeholder},children:p?jsx(_a,{size:D.iconSize,color:y.placeholder}):jsx(MagnifyingGlass,{size:D.iconSize,color:y.placeholder})}),jsx("input",{ref:Z=>{m.current=Z,typeof S=="function"?S(Z):S&&(S.current=Z);},id:k,type:"text",value:H,onChange:G,onFocus:$,onBlur:te,onKeyDown:Me,placeholder:a,disabled:l,readOnly:p,style:Se}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:jsx(CaretDown,{size:D.iconSize,color:y.placeholder,style:{transition:"transform 0.2s ease",transform:R?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:y.borderError,lineHeight:"normal"},children:Q}),bt]})});ja.displayName="Combobox";var os=({size:e=16,color:t})=>{let[r,o]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let i=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(i);};return a.current=requestAnimationFrame(i),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},$r={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},xo=180,rs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ns=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Ar=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function as(e,t,r){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-r,a<0&&(a+=7);let n=new Date(e,t,1-a),i=[];for(let l=0;l<42;l++){let p=new Date(n);p.setDate(n.getDate()+l),i.push(p);}return i}function ho(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function Hr(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${ho(e)} ${t}:${r}`}function Ne(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Lr(e,t,r){let o=e.getTime(),a=Math.min(t.getTime(),r.getTime()),n=Math.max(t.getTime(),r.getTime());return o>=a&&o<=n}function ss(e){return Ne(e,new Date)}var Wr=({mode:e="single",showTime:t=false,value:r,onChange:o,label:a,placeholder:n,error:i,helperText:l,disabled:p=false,loading:s=false,clearable:f=false,size:u="md",fullWidth:c=false,required:h,minDate:g,maxDate:d,firstDayOfWeek:x=1,style:S,className:w})=>{let y=z(),b=$r[y],k=useId(),D=rs[u],T=useRef(null),m=useRef(null),[C,v]=useState(false),[R,E]=useState(false),[P,F]=useState("idle"),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),[H,A]=useState(null),N=new Date,[L,O]=useState(N.getFullYear()),[W,q]=useState(N.getMonth()),[re,K]=useState("days"),[j,Q]=useState(0),U=p||s,me=!!i,de=typeof i=="string"?i:void 0,X$1=e==="single"&&r instanceof Date?r:null,G=e==="range"&&Array.isArray(r)?r:[null,null],Pe=e==="single"?X$1!==null:G[0]!==null||G[1]!==null,Me=f&&Pe&&!U,$=(()=>{if(e==="single")return X$1?t?Hr(X$1):ho(X$1):"";let[M,J]=G;if(!M&&!J)return "";let _=t?Hr:ho;return `${M?_(M):"\u2026"} \u2013 ${J?_(J):"\u2026"}`})(),te=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),oe=useCallback(()=>{let M=e==="single"?X$1:G[0];M&&(O(M.getFullYear()),q(M.getMonth())),K("days"),v(true),E(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[e,X$1,G]),le=useCallback(()=>{v(false),F("closing");let M=setTimeout(()=>{E(false),F("idle");},xo);return ()=>clearTimeout(M)},[]),Se=useCallback(()=>{if(!T.current)return;let M=T.current.getBoundingClientRect(),J=m.current?.offsetHeight??380,_=window.innerHeight-M.bottom-6,V=M.top-6,se=_<J&&V>_;B({top:se?M.top-6:M.bottom+6,left:M.left,width:Math.max(M.width,300),openAbove:se});},[]);useEffect(()=>{if(R)return Se(),window.addEventListener("scroll",Se,true),window.addEventListener("resize",Se),()=>{window.removeEventListener("scroll",Se,true),window.removeEventListener("resize",Se);}},[R,Se]),useEffect(()=>{if(!C)return;let M=J=>{let _=J.target,V=T.current?.contains(_),se=m.current?.contains(_);!V&&!se&&le();};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[C,le]);let io=M=>{U||(M.key==="Escape"&&C&&(M.preventDefault(),le()),(M.key==="Enter"||M.key===" ")&&!C&&(M.preventDefault(),oe()));},bt=useCallback(M=>{if(g){let J=new Date(g.getFullYear(),g.getMonth(),g.getDate());if(M<J)return true}if(d){let J=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(M>J)return true}return false},[g,d]),Z=useCallback(M=>{if(!bt(M)&&o)if(e==="single")t&&X$1&&M.setHours(X$1.getHours(),X$1.getMinutes()),o(new Date(M)),t||le();else if(j===0)t&&G[0]&&M.setHours(G[0].getHours(),G[0].getMinutes()),o([new Date(M),null]),Q(1);else {let J=G[0];t&&G[1]&&M.setHours(G[1].getHours(),G[1].getMinutes());let[_,V]=M>=J?[J,new Date(M)]:[new Date(M),J];o([_,V]),Q(0),t||le();}},[e,t,X$1,G,j,o,le,bt]),ee=useCallback((M,J,_)=>{if(!o)return;let V=parseInt(J,10);if(isNaN(V)&&(V=0),M==="hour"&&(V=Math.max(0,Math.min(23,V))),M==="minute"&&(V=Math.max(0,Math.min(59,V))),e==="single"){let se=X$1?new Date(X$1):new Date;M==="hour"?se.setHours(V):se.setMinutes(V),o(se);}else {let se=_??0,be=[G[0]?new Date(G[0]):null,G[1]?new Date(G[1]):null],Ye=be[se]??new Date;M==="hour"?Ye.setHours(V):Ye.setMinutes(V),be[se]=Ye,o(be);}},[e,X$1,G,o]),ue=()=>{W===0?(q(11),O(M=>M-1)):q(M=>M-1);},ye=()=>{W===11?(q(0),O(M=>M+1)):q(M=>M+1);},je=M=>{M.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},sa=()=>{let M=I.openAbove,J=M?"translateY(8px)":"translateY(-8px)",_=M?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${xo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${xo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return P==="opening"||P==="idle"?{...V,opacity:0,transform:`${J} scale(0.97)`}:P==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},ia=as(L,W,x),lo=(M,J)=>{let _=M?M.getHours():0,V=M?M.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${b.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:be=>ee("hour",be.target.value,J),style:se,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:b.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(V).padStart(2,"0"),onChange:be=>ee("minute",be.target.value,J),style:se,maxLength:2,"aria-label":"Minuty"})]})},la=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Ar.map((M,J)=>{let _=J===W;return jsx("button",{type:"button",onClick:()=>{q(J),K("days");},style:{background:_?b.daySelected:"transparent",color:_?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:V=>{_||(V.target.style.backgroundColor=b.dayHover);},onMouseLeave:V=>{_||(V.target.style.backgroundColor="transparent");},children:M},J)})}),ca=()=>{let M=Math.floor(L/12)*12,J=Array.from({length:12},(_,V)=>M+V);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>O(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text},children:[M," \u2013 ",M+11]}),jsx("button",{type:"button",onClick:()=>O(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:J.map(_=>{let V=_===L;return jsx("button",{type:"button",onClick:()=>{O(_),K("months");},style:{background:V?b.daySelected:"transparent",color:V?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:se=>{V||(se.target.style.backgroundColor=b.dayHover);},onMouseLeave:se=>{V||(se.target.style.backgroundColor="transparent");},children:_},_)})})]})},da=R?createPortal(jsx("div",{ref:m,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...sa()},children:re==="years"?ca():re==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),la()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:ue,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>K("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:Ar[W]}),jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsx("button",{type:"button",onClick:ye,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:ns.map(M=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:b.placeholder,padding:"4px 0",userSelect:"none"},children:M},M))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:ia.map((M,J)=>{let _=M.getMonth()!==W,V=bt(M),se=ss(M),be=false,Ye=false,co=false,Ht=false;if(e==="single"&&X$1)be=Ne(M,X$1);else if(e==="range"){let[Ae,Nt]=G;Ae&&Ne(M,Ae)&&(Ye=true,be=true),Nt&&Ne(M,Nt)&&(co=true,be=true),Ae&&Nt&&Lr(M,Ae,Nt)&&!Ye&&!co&&(Ht=true),j===1&&Ae&&H&&!V&&(Ne(M,H)&&!Ne(M,Ae)&&(be=true),Lr(M,Ae,H)&&!Ne(M,Ae)&&!Ne(M,H)&&(Ht=true));}let po="transparent",Lt=b.text;return be?(po=b.daySelected,Lt=b.daySelectedText):Ht&&(po=b.dayRangeMiddle),_&&(Lt=be?b.daySelectedText:b.dayOutside),V&&(Lt=b.dayDisabled),jsx("button",{type:"button",disabled:V,onClick:()=>Z(M),onMouseEnter:()=>{V||A(M);},onMouseLeave:()=>A(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:po,color:Lt,border:"none",borderRadius:Ye?"6px 0 0 6px":co?"0 6px 6px 0":Ht?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:be?600:400,cursor:V?"not-allowed":"pointer",opacity:V?.4:1,transition:"background-color 0.1s ease",outline:se&&!be?`1.5px solid ${b.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:M.getDate()},J)})}),t&&jsx("div",{style:{borderTop:`1px solid ${b.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"\u010Cas:"}),lo(X$1)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Od:"}),lo(G[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Do:"}),lo(G[1],1)]})]})})]})}),document.body):null,pa={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:U?b.backgroundDisabled:b.background,border:`1px solid ${me?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},fa={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},yr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...S},className:w,children:[a&&jsxs("label",{htmlFor:k,style:fa,children:[a,h&&jsx("span",{style:{color:b.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:T,role:"button",tabIndex:U?-1:0,style:pa,onClick:()=>{U||(C?le():oe());},onKeyDown:io,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.text,lineHeight:"normal"},children:$}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.placeholder,lineHeight:"normal"},children:te})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Me&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:je,children:jsx(X,{size:D.iconSize-2,color:b.placeholder})}),s?jsx(os,{size:D.iconSize,color:b.placeholder}):jsx(CalendarBlank,{size:D.iconSize,color:b.placeholder})]})]}),de&&jsx("span",{style:{...yr,color:b.borderError},children:de}),!de&&l&&jsx("span",{style:{...yr,color:b.helperText},children:l}),da]})};Wr.displayName="DatePicker";var is=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=z(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:$r[n].label,userSelect:"none"},children:e}),r??jsx(Wr,{})]})};is.displayName="DatePickerGroup";var Zr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},ps={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Or=({checked:e=false,onChange:t,label:r,disabled:o=false,error:a,size:n="md",indeterminate:i=false,className:l,style:p})=>{let s=z(),f=Zr[s],u=ps[n],c=useId(),h=useRef(null),g=!!a,d=typeof a=="string"?a:void 0;useEffect(()=>{h.current&&(h.current.indeterminate=i);},[i]);let x=()=>{o||t?.(!e);},S=g?f.borderError:e||i?f.checkBg:f.border,w=e||i?f.checkBg:o?f.backgroundDisabled:f.background,y={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${S}`,backgroundColor:w,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},k={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...p},className:l,children:[jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:o?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),x();},children:[jsx("input",{ref:h,id:c,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":g||void 0}),jsxs("span",{style:y,children:[e&&!i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:b,children:r})]}),d&&jsx("span",{style:{...k,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:d})]})};Or.displayName="Checkbox";var Yr=({label:e,children:t,error:r,className:o,style:a})=>{let n=z(),i=Zr[n],l=typeof r=="string"?r:void 0,p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:o,children:[e&&jsx("span",{style:p,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),l&&jsx("span",{style:{...s,color:i.borderError},children:l})]})};Yr.displayName="CheckboxGroup";var Vr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},us={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},yo=({value:e,checked:t=false,onChange:r,label:o,disabled:a=false,size:n="md",className:i,style:l})=>{let p=z(),s=Vr[p],f=us[n],u=useId(),c=()=>{a||r?.(e);},h=t?s.dotRing:s.border,g=a?s.backgroundDisabled:s.background,d={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${h}`,backgroundColor:g,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...l},className:i,children:jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),c();},children:[jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:a,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:d,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:x,children:o})]})})};yo.displayName="Radio";var Ur=({value:e,onChange:t,label:r,options:o,direction:a="vertical",error:n,helperText:i,size:l="md",className:p,style:s})=>{let f=z(),u=Vr[f],c=!!n,h=typeof n=="string"?n:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":c||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...s},className:p,children:[r&&jsx("span",{style:g,children:r}),jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:o.map(x=>jsx(yo,{value:x.value,label:x.label,checked:e===x.value,onChange:t,disabled:x.disabled,size:l},x.value))}),h&&jsx("span",{style:{...d,color:u.borderError},children:h}),!h&&i&&jsx("span",{style:{...d,color:u.helperText},children:i})]})};Ur.displayName="RadioGroup";var bs={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},xs={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Gr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:a="md",className:n,style:i})=>{let l=z(),p=bs[l],s=xs[a],f=useId(),u=()=>{o||t?.(!e);},c=1.5,h=2,d=s.trackW-c*2-s.thumb-h,x=e?d:0,S={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?p.trackOn:p.trackOff,border:`${c}px solid ${e?p.trackOnBorder:p.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},w={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:h,transform:`translateY(-50%) translateX(${x}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...i},className:n,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:o?"not-allowed":"pointer"},onClick:b=>{b.preventDefault(),u();},children:[jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:S,children:jsx("span",{style:w})}),r&&jsx("span",{style:y,children:r})]})})};Gr.displayName="Switch";var Cs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Rs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Kr=Po.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:a=false,size:n="md",fullWidth:i=false,required:l,rows:p=4,maxLength:s,resize:f="vertical",autoHeight:u=false,minRows:c,maxRows:h,className:g,style:d,value:x,onChange:S,onFocus:w,onBlur:y,...b},k)=>{let D=z(),T=Cs[D],m=Rs[n],C=useId(),v=b.id??C,[R,E]=useState(false),P=useRef(null),F=useCallback(()=>{let j=P.current;if(!j||!u)return;j.style.height="auto";let Q=getComputedStyle(j),U=parseFloat(Q.lineHeight)||parseFloat(Q.fontSize)*1.5,me=parseFloat(Q.paddingTop)||0,de=parseFloat(Q.paddingBottom)||0,X=me+de,Pe=U*(c??1)+X,Me=h?U*h+X:1/0,$=Math.min(Math.max(j.scrollHeight,Pe),Me);j.style.height=`${$}px`,j.style.overflowY=j.scrollHeight>Me?"auto":"hidden";},[u,c,h]);useEffect(()=>{F();},[x,F]);let I=useCallback(j=>{P.current=j,typeof k=="function"?k(j):k&&(k.current=j);},[k]),B=u?"none":f,H=u?c??1:p,A=o||a,N=!!t,L=typeof t=="string"?t:void 0,O=typeof x=="string"?x.length:0,W={backgroundColor:A?T.backgroundDisabled:T.background,border:`1px solid ${N?T.borderError:R?T.borderFocus:T.border}`,borderRadius:"8px",padding:m.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"1.5",color:T.text,cursor:A?"not-allowed":"text",resize:B,boxSizing:"border-box",overflow:u?"hidden":void 0},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...d},className:g,children:[e&&jsxs("label",{htmlFor:v,style:re,children:[e,l&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:W,children:jsx("textarea",{ref:I,id:v,rows:H,maxLength:s,disabled:o,required:l,readOnly:a||b.readOnly,value:x,onChange:S,style:q,onFocus:j=>{E(true),w?.(j);},onBlur:j=>{E(false),y?.(j);},...b})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[L&&jsx("span",{style:{...K,color:T.borderError},children:L}),!L&&r&&jsx("span",{style:{...K,color:T.helperText},children:r})]}),s!==void 0&&jsxs("span",{style:{...K,color:O>s?T.borderError:T.counter,flexShrink:0},children:[O,"/",s]})]})]})});Kr.displayName="Textarea";var Ts={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},Fs={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Jr(e,t,r){return Math.min(Math.max(e,t),r)}function Es(e,t,r){return Math.round((e-t)/r)*r+t}var Qr=({value:e,onChange:t,min:r=0,max:o=100,step:a=1,label:n,disabled:i=false,showValue:l=false,range:p=false,size:s="md",className:f,style:u})=>{let c=z(),h=Ts[c],g=Fs[s],d=useId(),x=useRef(null),S=useRef(null),w=p?e:[r,e],y=R=>(R-r)/(o-r)*100,b=y(w[0]),k=y(w[1]),D=useCallback(R=>{let E=x.current;if(!E)return r;let P=E.getBoundingClientRect(),F=Jr((R-P.left)/P.width,0,1),I=r+F*(o-r);return Jr(Es(I,r,a),r,o)},[r,o,a]),T=useCallback(R=>{if(i)return;R.preventDefault();let E=D(R.clientX);if(p){let I=e,B=Math.abs(E-I[0]),H=Math.abs(E-I[1]),A=B<=H?"start":"end";S.current=A;let N=A==="start"?[Math.min(E,I[1]),I[1]]:[I[0],Math.max(E,I[0])];t?.(N);}else S.current="end",t?.(E);let P=I=>{let B=D(I.clientX);if(p){let H=e;S.current==="start"?t?.([Math.min(B,H[1]),H[1]]):t?.([H[0],Math.max(B,H[0])]);}else t?.(B);},F=()=>{S.current=null,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",P),document.addEventListener("mouseup",F);},[i,D,t,p,e]),m={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:h.label,userSelect:"none"},C=p?`${w[0]} \u2013 ${w[1]}`:`${e}`,v={width:g.thumb,height:g.thumb,borderRadius:"50%",backgroundColor:h.thumb,border:`2px solid ${h.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:i?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:i?.5:1,...u},className:f,children:[(n||l)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("label",{htmlFor:d,style:m,children:n}),l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:h.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:x,role:"slider",id:d,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":i||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:g.thumb,cursor:i?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:h.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${p?b:0}%`,width:`${k-(p?b:0)}%`,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:h.trackFill}}),p&&jsx("span",{style:{...v,left:`${b}%`}}),jsx("span",{style:{...v,left:`${k}%`}})]})]})};Qr.displayName="Slider";var Ps={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Ro(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Ms=0,tn=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:a,disabled:n=false,label:i,helperText:l,error:p,buttonStyle:s="default",showFileList:f=true,buttonLabel:u,className:c,style:h})=>{let g=z(),d=Ps[g],x=useId(),S=useRef(null),[w,y]=useState(false),[b,k]=useState([]),[D,T]=useState(null),m=!!p||!!D,C=typeof p=="string"?p:D??void 0,v=useCallback(B=>{let H=Array.from(B);if(T(null),a){let L=H.find(O=>O.size>a);if(L){T(`Soubor \u201E${L.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ro(a)}.`);return}}let A=H.map(L=>({file:L,id:`file-${++Ms}`})),N=o?[...b,...A]:A;k(N),t?.(N.map(L=>L.file));},[b,a,o,t]),R=useCallback(B=>{B.preventDefault(),y(false),!n&&B.dataTransfer.files.length>0&&v(B.dataTransfer.files);},[n,v]),E=useCallback(B=>{let H=b.filter(A=>A.id!==B);k(H),t?.(H.map(A=>A.file));},[b,t]),P={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},F={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${m?d.borderError:w?d.borderDrag:d.border}`,borderRadius:"8px",backgroundColor:w?d.backgroundDrag:n?d.backgroundDisabled:d.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},I={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...h},className:c,children:[i&&jsx("span",{style:P,children:i}),jsx("input",{ref:S,id:x,type:"file",accept:r,multiple:o,disabled:n,onChange:B=>{B.target.files&&B.target.files.length>0&&v(B.target.files),B.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:F,onClick:()=>!n&&S.current?.click(),onDragOver:B=>{B.preventDefault(),n||y(true);},onDragLeave:()=>y(false),onDrop:R,children:[jsx(UploadSimple,{size:32,color:d.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):s==="primary"?jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&S.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:B=>{n||(B.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:B=>{B.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u||(b.length===0?"Nahr\xE1t soubor":b.length===1?b[0].file.name:`${b.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!n&&S.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${m?d.borderError:d.border}`,backgroundColor:n?d.backgroundDisabled:d.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:B=>{n||(B.currentTarget.style.borderColor=m?d.borderError:g==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:B=>{B.currentTarget.style.borderColor=m?d.borderError:d.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:b.length>0?jsx(FileText,{size:18,color:d.textSecondary}):jsx(UploadSimple,{size:18,color:d.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.length>0?d.text:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u||(b.length===0?"Vyberte soubor...":b.length===1?b[0].file.name:`${b.length} soubor\u016F`)}),b.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(b[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:jsx(Folder,{size:16,color:d.textSecondary})})]}),f&&b.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:b.map(B=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:d.fileBg},children:[jsx(FileText,{size:24,color:d.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(B.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${B.file.name}`,onClick:H=>{H.stopPropagation(),E(B.id);},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&E(B.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:d.removeColor})})]},B.id))}),C&&jsx("span",{style:{...I,color:d.borderError},children:C}),!C&&l&&jsx("span",{style:{...I,color:d.helperText},children:l})]})};tn.displayName="FileUpload";var Ls={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ns={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},$s=({data:e,value:t,onChange:r,size:o="md",fullWidth:a=false,orientation:n="horizontal",disabled:i=false,className:l,style:p})=>{let s=z(),f=Ls[s],u=Ns[o],c=n==="vertical",h=e.map(b=>typeof b=="string"?{value:b,label:b}:b),g=h.findIndex(b=>b.value===t),d=useRef(null),x=useRef([]),[S,w]=useState({offset:0,size:0}),y=useCallback(()=>{let b=d.current,k=x.current[g];if(!b||!k||g<0)return;let D=b.getBoundingClientRect(),T=k.getBoundingClientRect();w(c?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[g,c]);return useEffect(()=>{y();},[y,t,e,o]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:d,role:"radiogroup",className:l,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:c?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:i?.5:1,cursor:i?"not-allowed":void 0,...p},children:[g>=0&&S.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...c?{left:u.padding,right:u.padding,top:S.offset,height:S.size}:{top:u.padding,bottom:u.padding,left:S.offset,width:S.size}}}),h.map((b,k)=>{let D=b.value===t,T=i||b.disabled;return jsxs("button",{ref:m=>{x.current[k]=m;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(b.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:a?1:void 0,padding:u.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:u.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:D?500:400,color:T?f.textDisabled:D?f.textActive:f.text,cursor:T?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:m=>{!T&&!D&&(m.currentTarget.style.color=f.textHover);},onMouseLeave:m=>{!T&&!D&&(m.currentTarget.style.color=f.text);},children:[b.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:b.icon}),(b.label||!b.icon&&b.value)&&jsx("span",{children:b.label??b.value})]},b.value)})]})};$s.displayName="SegmentedControl";var Ys={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},Eo=180,Vs=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Do=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Us=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},qs=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+a*114)/1e3>150},Gs=({value:e,onChange:t,presets:r=Vs,label:o,disabled:a=false,style:n,className:i})=>{let l=z(),p=Ys[l],f=useId(),u=useRef(null),c=useRef(null),[h,g]=useState(false),[d,x]=useState(false),[S,w]=useState("idle"),[y,b]=useState(e),[k,D]=useState(false),[T,m]=useState({top:0,left:0,openAbove:false});useEffect(()=>{k||b(e);},[e,k]);let C=useCallback(()=>{a||(g(true),x(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[a]),v=useCallback(()=>{g(false),w("closing");let L=setTimeout(()=>{x(false),w("idle");},Eo);return ()=>clearTimeout(L)},[]),R=useCallback(()=>{if(!u.current)return;let L=u.current.getBoundingClientRect(),O=220,W=window.innerHeight-L.bottom-8,q=W<O&&L.top>W;m({top:q?L.top-8:L.bottom+8,left:L.left,openAbove:q});},[]);useEffect(()=>{if(d)return R(),window.addEventListener("scroll",R,true),window.addEventListener("resize",R),()=>{window.removeEventListener("scroll",R,true),window.removeEventListener("resize",R);}},[d,R]),useEffect(()=>{if(!h)return;let L=O=>{let W=O.target;!u.current?.contains(W)&&!c.current?.contains(W)&&v();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[h,v]);let E=L=>{let O=Us(L.target.value);b(O),Do(O)&&t(O);},P=()=>{D(false),Do(y)?t(y):b(e);},F=L=>{t(L),b(L),v();},I=()=>{let L=T.openAbove,O=L?"translateY(8px)":"translateY(-8px)",W=L?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...q,opacity:0,transform:`${O} scale(0.97)`}:S==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},B={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?p.backgroundDisabled:p.background,border:`1px solid ${k?p.borderFocus:p.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Do(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},A={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},N=d?createPortal(jsx("div",{ref:c,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},backgroundColor:p.popoverBg,border:`1px solid ${p.popoverBorder}`,borderRadius:"12px",boxShadow:l==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom left":"top left",...I()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((L,O)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>F(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${p.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:W=>{W.currentTarget.style.transform="scale(1.1)";},onMouseLeave:W=>{W.currentTarget.style.transform="scale(1)";}},`${L}-${O}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:i,children:[o&&jsx("label",{htmlFor:f,style:A,children:o}),jsxs("div",{ref:u,style:B,children:[jsx("div",{style:H,onClick:()=>{a||(h?v():C());}}),jsx("input",{id:f,type:"text",value:y,onChange:E,onFocus:()=>D(true),onBlur:P,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:p.text,cursor:a?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(h?v():C());},children:jsx(Eyedropper,{size:16,color:(qs(e)&&l==="light",p.placeholder)})})]}),N]})};Gs.displayName="ColorPicker";var js={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},Js={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Qs=({value:e,onChange:t,max:r=5,size:o="md",readOnly:a=false,label:n,style:i,className:l})=>{let p=z(),s=js[p],f=useId(),u=Js[o],[c,h]=useState(null),g=!a&&!!t,d=useCallback(b=>{g&&t(b+1);},[g,t]),x=useCallback(b=>{g&&h(b);},[g]),S=useCallback(()=>{h(null);},[]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},y=Array.from({length:r},(b,k)=>{let D=c!==null?c+1:e,T=k<D,m=c!==null&&k<=c;return jsx("span",{role:g?"button":void 0,tabIndex:g?0:void 0,"aria-label":g?`Hodnocen\xED ${k+1} z ${r}`:void 0,onClick:()=>d(k),onMouseEnter:()=>x(k),onMouseLeave:S,onKeyDown:C=>{g&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),d(k));},style:{display:"inline-flex",cursor:g?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:m?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:u.starSize,weight:T?"fill":"regular",color:T?m?s.starHover:s.starFilled:s.starEmpty})},k)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:l,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsx("label",{htmlFor:f,style:w,children:n}),jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:S,children:y})]})};Qs.displayName="Rating";var si={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},ii=({length:e=6,value:t,onChange:r,error:o,disabled:a=false,autoFocus:n=false,label:i,separatorAfter:l,separator:p="-",style:s,className:f})=>{let u=z(),c=si[u],h=useId(),g=useRef([]),[d,x]=useState(null),S=!!o,w=typeof o=="string"?o:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{n&&g.current[0]&&g.current[0].focus();},[n]);let b=useCallback(F=>{F>=0&&F<e&&g.current[F]?.focus();},[e]),k=useCallback(F=>{let I=F.join("").replace(/[^0-9]/g,"");r(I);},[r]),D=useCallback((F,I)=>{if(!/^[0-9]$/.test(I))return;let B=[...y];B[F]=I,k(B),F<e-1&&b(F+1);},[y,e,k,b]),T=useCallback((F,I)=>{switch(I.key){case "Backspace":if(I.preventDefault(),y[F]){let B=[...y];B[F]="",k(B);}else if(F>0){let B=[...y];B[F-1]="",k(B),b(F-1);}break;case "Delete":I.preventDefault();{let B=[...y];B[F]="",k(B);}break;case "ArrowLeft":I.preventDefault(),F>0&&b(F-1);break;case "ArrowRight":I.preventDefault(),F<e-1&&b(F+1);break}},[y,e,k,b]),m=useCallback((F,I)=>{let H=I.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&D(F,H);},[D]),C=useCallback(F=>{F.preventDefault();let I=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!I)return;let B=[...y];for(let A=0;A<I.length;A++)B[A]=I[A];k(B);let H=Math.min(I.length,e-1);b(H);},[y,e,k,b]),v=useCallback(F=>{x(F),g.current[F]?.select();},[]),R=useCallback(()=>{x(null);},[]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},P=F=>{let I=d===F,B=!!y[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:c.text,textAlign:"center",backgroundColor:a?c.backgroundDisabled:B?c.backgroundFilled:c.background,border:`1px solid ${S?c.borderError:I?c.borderFocus:B?c.borderFilled:c.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:c.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[i&&jsx("label",{htmlFor:`${h}-0`,style:E,children:i}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:C,children:Array.from({length:e},(F,I)=>jsxs(Po.Fragment,{children:[l&&I>0&&I%l===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:c.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:p}),jsx("input",{ref:B=>{g.current[I]=B;},id:`${h}-${I}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[I]||"",onChange:B=>m(I,B),onKeyDown:B=>T(I,B),onFocus:()=>v(I),onBlur:R,disabled:a,"aria-label":`\u010C\xEDslice ${I+1} z ${e}`,style:P(I)})]},I))}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:c.borderError,lineHeight:"normal"},children:w})]})};ii.displayName="OTPInput";var li={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},dn="smSkeletonShimmer",ci=`@keyframes ${dn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,nt=({variant:e="text",width:t,height:r,lines:o=1,animate:a=true,className:n,style:i})=>{let l=z(),p=li[l],s=t??(e==="circle"?40:"100%"),f=r??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:p.base,backgroundImage:a?`linear-gradient(90deg, ${p.base} 25%, ${p.shimmer} 50%, ${p.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${dn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof s=="number"?`${s}px`:s,height:typeof f=="number"?`${f}px`:f},c=a?jsx("style",{dangerouslySetInnerHTML:{__html:ci}}):null;return e==="text"&&o>1?jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...i},children:[c,Array.from({length:o}).map((h,g)=>jsx("div",{style:{...u,width:g===o-1?"75%":u.width}},g))]}):jsxs(Fragment,{children:[c,jsx("div",{className:n,style:{...u,...i}})]})};nt.displayName="Skeleton";var fi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ui=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:i,striped:l=false,hoverable:p=true,className:s,style:f})=>{let u=z(),c=fi[u],h=w=>{if(!w.sortable||!a)return;let y=n===w.key&&i==="asc"?"desc":"asc";a(w.key,y);},g={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",overflow:"hidden",...f},d=w=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",cursor:w.sortable?"pointer":"default",userSelect:"none",width:w.width!=null?typeof w.width=="number"?`${w.width}px`:w.width:void 0}),x={padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal"};return jsxs("table",{className:s,style:g,children:[jsx("thead",{children:jsx("tr",{children:e.map(w=>jsx("th",{style:d(w),onClick:()=>h(w),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsx(CaretUpDownIcon,{size:14,color:n===w.key?c.sortActive:c.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((w,y)=>jsx("tr",{children:e.map(b=>jsx("td",{style:x,children:jsx(nt,{variant:"text",width:"80%"})},b.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...x,textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:o})}):t.map((w,y)=>jsx("tr",{style:{backgroundColor:l&&y%2===1?c.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:b=>{p&&(b.currentTarget.style.backgroundColor=c.rowHover);},onMouseLeave:b=>{p&&(b.currentTarget.style.backgroundColor=l&&y%2===1?c.stripedBg:"transparent");},children:e.map(b=>jsx("td",{style:{...x,borderBottom:y===t.length-1?"none":x.borderBottom},children:b.render?b.render(w[b.key],w,y):w[b.key]},b.key))},y))})]})};ui.displayName="Table";var bi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},gn=({checked:e,indeterminate:t,onChange:r,t:o})=>{let a=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),r();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:a?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},xi=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:a=false,rowKey:n="id",onRowClick:i,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let u=z(),c=bi[u],[h,g]=useState(new Set),[d,x]=useState(null),S=useMemo(()=>t.map(E=>String(E[n])),[t,n]),w=S.length>0&&S.every(E=>h.has(E)),y=S.some(E=>h.has(E))&&!w,b=useCallback(()=>{let E=w?new Set:new Set(S);g(E),o?.(Array.from(E));},[w,S,o]),k=useCallback(E=>{g(P=>{let F=new Set(P);return F.has(E)?F.delete(E):F.add(E),o?.(Array.from(F)),F});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background},T=E=>({padding:"12px 16px",textAlign:E.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",userSelect:"none",width:E.width!=null?typeof E.width=="number"?`${E.width}px`:E.width:void 0,minWidth:E.minWidth!=null?`${E.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),m=E=>({padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal",textAlign:E.align||"left"}),C={padding:"12px 12px 12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,width:"40px",...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},v={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${c.border}`,width:"40px"};return jsx("div",{className:f,style:{overflow:l?"auto":"hidden",borderRadius:"12px",border:`1px solid ${c.border}`,...s},children:jsxs("table",{style:D,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:C,children:jsx(gn,{checked:w,indeterminate:y,onChange:b,t:c})}),e.map(E=>jsx("th",{style:T(E),children:E.header},E.key))]})}),jsx("tbody",{children:a?Array.from({length:5}).map((E,P)=>jsxs("tr",{children:[r&&jsx("td",{style:v,children:jsx(nt,{variant:"rect",width:16,height:16})}),e.map(F=>jsx("td",{style:m(F),children:jsx(nt,{variant:"text",width:"80%"})},F.key))]},`skel-${P}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(r?1:0),style:{textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:p})}):t.map((E,P)=>{let F=String(E[n]),I=h.has(F),B=d===F,H=P===t.length-1,A="transparent";return I?A=c.selectedRowBg:B&&(A=c.rowHover),jsxs("tr",{style:{backgroundColor:A,cursor:i?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>x(F),onMouseLeave:()=>x(null),onClick:()=>i?.(E),children:[r&&jsx("td",{style:{...v,borderBottom:H?"none":v.borderBottom},children:jsx(gn,{checked:I,onChange:()=>k(F),t:c})}),e.map(N=>jsx("td",{style:{...m(N),borderBottom:H?"none":m(N).borderBottom},children:N.render?N.render(E[N.key],E,P):E[N.key]},N.key))]},F)})})]})})};xi.displayName="DataGrid";var mi={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},hi={none:"0",sm:"12px",md:"20px",lg:"28px"},yi=({title:e,subtitle:t,header:r,footer:o,children:a,hoverable:n=false,bordered:i=true,padding:l="md",className:p,style:s})=>{let f=z(),u=mi[f],c=hi[l],h={backgroundColor:u.background,border:i?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:n?"pointer":void 0,...s},g=r??(e||t?jsxs("div",{style:{padding:c,paddingBottom:a||o?"0":c},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:u.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:p,style:h,onMouseEnter:d=>{n&&(d.currentTarget.style.borderColor=u.borderHover,d.currentTarget.style.transform="translateY(-2px)",d.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:d=>{n&&(d.currentTarget.style.borderColor=i?u.border:"transparent",d.currentTarget.style.transform="translateY(0)",d.currentTarget.style.boxShadow="none");},children:[g,a&&jsx("div",{style:{padding:c},children:a}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsx("div",{style:{padding:c},children:o})]})]})};yi.displayName="Card";var mn={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},Ri=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:a,_open:n,_onToggle:i})=>{let l=z(),p=mn[l],[s,f]=useState(r),u=a?!!n:s,c=useRef(null),[h,g]=useState(0);useEffect(()=>{c.current&&g(c.current.scrollHeight);},[t,u]);let d=useCallback(()=>{o||(a&&i?i():f(x=>!x));},[o,a,i]);return jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:d,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?p.textDisabled:p.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:x=>{o||(x.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?p.chevronDisabled:p.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:c,style:{overflow:"hidden",maxHeight:u?`${h}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:p.textSecondary},children:t})})]})};Ri.displayName="AccordionItem";var wi=({children:e,multiple:t=false,className:r,style:o})=>{let a=z(),n=mn[a],i=Po.Children.toArray(e).filter(f=>Po.isValidElement(f)),[l,p]=useState(()=>{let f=new Set;return i.forEach((u,c)=>{u.props.defaultOpen&&f.add(c);}),f}),s=useCallback(f=>{p(u=>{let c=new Set(u);return c.has(f)?c.delete(f):(t||c.clear(),c.add(f)),c});},[t]);return jsx("div",{className:r,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...o},children:i.map((f,u)=>Po.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>s(u)}))})};wi.displayName="Accordion";var Ti={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Fi={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ei=()=>null;Ei.displayName="Tab";var Di=()=>null;Di.displayName="TabPanel";var zi=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:a=false,size:n="md",className:i,style:l})=>{let p=z(),s=Ti[p],f=Fi[n],u=Po.Children.toArray(r),c=u.filter(d=>Po.isValidElement(d)&&d.type?.displayName==="Tab"),g=u.filter(d=>Po.isValidElement(d)&&d.type?.displayName==="TabPanel").find(d=>d.props.value===e);return jsxs("div",{className:i,style:l,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${s.border}`:"none"},children:c.map(d=>{let x=d.props.value===e,S=d.props.disabled,w=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:x?500:400,color:S?s.textDisabled:x?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${x?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:x?500:400,color:S?s.textDisabled:x?s.pillText:s.textInactive,backgroundColor:x?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:S?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:S,style:w,onClick:()=>{S||t(d.props.value);},onMouseEnter:y=>{!S&&!x&&(y.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:y=>{S||(y.currentTarget.style.backgroundColor=o==="pills"&&x?s.pillBg:"transparent");},children:[d.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:d.props.icon}),d.props.label]},d.props.value)})}),g&&jsx("div",{style:{paddingTop:"16px"},children:g.props.children})]})};zi.displayName="Tabs";var Pi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Mi=({content:e,children:t,position:r="top",delay:o=200,className:a,style:n})=>{let i=z(),l=Pi[i],[p,s]=useState(false),[f,u]=useState({top:0,left:0}),c=useRef(null),h=useRef(null),g=useRef(void 0),d=6,x=8,S=useCallback(()=>{let D=c.current,T=h.current;if(!D||!T)return;let m=D.getBoundingClientRect(),C=T.getBoundingClientRect(),v=0,R=0;switch(r){case "top":v=m.top-C.height-x,R=m.left+m.width/2-C.width/2;break;case "bottom":v=m.bottom+x,R=m.left+m.width/2-C.width/2;break;case "left":v=m.top+m.height/2-C.height/2,R=m.left-C.width-x;break;case "right":v=m.top+m.height/2-C.height/2,R=m.right+x;break}u({top:v,left:R});},[r]);useEffect(()=>{p&&requestAnimationFrame(S);},[p,S]);let w=useCallback(()=>{g.current=setTimeout(()=>s(true),o);},[o]),y=useCallback(()=>{g.current&&clearTimeout(g.current),s(false);},[]);useEffect(()=>()=>{g.current&&clearTimeout(g.current);},[]);let b=(()=>{let D={position:"absolute",width:0,height:0,border:`${d}px solid transparent`};switch(r){case "top":return {...D,bottom:-d,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-d,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-d,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-d,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),k=p?createPortal(jsxs("div",{ref:h,className:a,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:l.background,color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...n},children:[e,jsx("div",{style:b})]}),document.body):null;return jsxs(Fragment,{children:[Po.cloneElement(t,{ref:c,onMouseEnter:D=>{w(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{y(),t.props.onMouseLeave?.(D);}}),k]})};Mi.displayName="Tooltip";var $i={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Wo=180,qt=8,Wi=({content:e,children:t,position:r="bottom",trigger:o="click",className:a,style:n})=>{let i=z(),l=$i[i],[p,s]=useState(false),[f,u]=useState(false),[c,h]=useState("idle"),[g,d]=useState({top:0,left:0}),x=useRef(null),S=useRef(null),w=useRef(void 0),y=useCallback(()=>{s(true),u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});},[]),b=useCallback(()=>{s(false),h("closing");let R=setTimeout(()=>{u(false),h("idle");},Wo);return ()=>clearTimeout(R)},[]),k=useCallback(()=>{let R=x.current,E=S.current;if(!R||!E)return;let P=R.getBoundingClientRect(),F=E.getBoundingClientRect(),I=0,B=0;switch(r){case "top":I=P.top-F.height-qt,B=P.left+P.width/2-F.width/2;break;case "bottom":I=P.bottom+qt,B=P.left+P.width/2-F.width/2;break;case "left":I=P.top+P.height/2-F.height/2,B=P.left-F.width-qt;break;case "right":I=P.top+P.height/2-F.height/2,B=P.right+qt;break}d({top:I,left:B});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(k),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[f,k]),useEffect(()=>{if(!p)return;let R=E=>{let P=E.target;!x.current?.contains(P)&&!S.current?.contains(P)&&b();};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[p,b]),useEffect(()=>{if(!p)return;let R=E=>{E.key==="Escape"&&b();};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[p,b]);let D=()=>{let R={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`},E={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},P=r==="top"||r==="bottom"?"Y":"X";return c==="opening"||c==="idle"?{...R,opacity:0,transform:`translate${P}(${E[r]}) scale(0.97)`}:c==="open"?{...R,opacity:1,transform:"translateY(0) scale(1)"}:{...R,opacity:0,transform:`translate${P}(${E[r]}) scale(0.98)`,pointerEvents:"none"}},T=useCallback(()=>{o==="click"&&(p?b():y());},[o,p,b,y]),m=useCallback(()=>{o==="hover"&&(w.current&&clearTimeout(w.current),p||y());},[o,p,y]),C=useCallback(()=>{o==="hover"&&(w.current=setTimeout(()=>{b();},150));},[o,b]);useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let v=f?createPortal(jsx("div",{ref:S,className:a,onMouseEnter:()=>{o==="hover"&&w.current&&clearTimeout(w.current);},onMouseLeave:C,style:{position:"fixed",top:g.top,left:g.left,zIndex:99999,padding:"16px",backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...n},children:e}),document.body):null;return jsxs(Fragment,{children:[Po.cloneElement(t,{ref:x,onClick:R=>{T(),t.props.onClick?.(R);},onMouseEnter:R=>{m(),t.props.onMouseEnter?.(R);},onMouseLeave:R=>{C(),t.props.onMouseLeave?.(R);}}),v]})};Wi.displayName="Popover";var Vi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Ui=({icon:e,title:t,description:r,action:o,className:a,style:n})=>{let i=z(),l=Vi[i];return jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color:l.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:l.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:l.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};Ui.displayName="EmptyState";var Ki={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},Xi=({label:e,value:t,change:r,changeLabel:o,icon:a,trend:n="neutral",className:i,style:l})=>{let p=z(),s=Ki[p],f=n==="up"?s.trendUp:n==="down"?s.trendDown:s.trendNeutral,u=c=>`${c>0?"+":""}${c.toFixed(1)} %`;return jsxs("div",{className:i,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...l},children:[a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:a}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[n==="up"&&jsx(TrendUpIcon,{size:14,color:f}),n==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:u(r)}),o&&jsx("span",{style:{color:s.label,marginLeft:"2px"},children:o})]})]})]})};Xi.displayName="Stat";var ji=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],yu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:a,"aria-label":n})=>{let i=ji(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:i,height:i,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(i*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:l,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:p,children:e.toUpperCase()})})};var Cn={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Oo=({onClick:e,title:t,color:r,children:o})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),Ru=({label:e,onRemove:t,style:r,className:o})=>{let a=Cn[z()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},wu=({label:e,style:t,className:r})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:r,children:e}),Tu=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:a=true,style:n,className:i})=>{let l=Cn[z()],p=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:l.itemBg,border:`1px solid ${l.itemBorder}`,borderRadius:"8px",...n},className:i,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:l.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),a&&p&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Oo,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(Oo,{onClick:r,title:"Upravit",color:l.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(Oo,{onClick:o,title:"Smazat",color:l.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var rl={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)"}},nl=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Kt=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],Vo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),qo=e=>{let t=new Date(e),r=t.getDay(),o=(r===0?-6:1)-r;return t.setDate(t.getDate()+o),t.setHours(0,0,0,0),t},al=(e,t)=>{let r=new Date(e,t,1),o=qo(r),a=[],n=new Date(o);for(let i=0;i<42;i++)a.push(new Date(n)),n.setDate(n.getDate()+1);return a},sl=e=>{let t=qo(e),r=[];for(let o=0;o<7;o++){let a=new Date(t);a.setDate(t.getDate()+o),r.push(a);}return r},il=(e,t,r)=>{if(t){let o=new Date(t);if(o.setHours(0,0,0,0),e<o)return true}if(r){let o=new Date(r);if(o.setHours(23,59,59,999),e>o)return true}return false},ll=({value:e,onChange:t,view:r="month",events:o=[],minDate:a,maxDate:n,style:i,className:l})=>{let p=z(),s=rl[p],f=useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,c]=useState(()=>e?e.getMonth():f.getMonth()),[h,g]=useState(()=>e?e.getFullYear():f.getFullYear()),[d,x]=useState(()=>qo(e||f)),[S,w]=useState(null),y=useMemo(()=>r==="week"?sl(d):al(h,u),[r,h,u,d]),b=useCallback(()=>{r==="week"?x(v=>{let R=new Date(v);return R.setDate(R.getDate()-7),R}):c(v=>v===0?(g(R=>R-1),11):v-1);},[r]),k=useCallback(()=>{r==="week"?x(v=>{let R=new Date(v);return R.setDate(R.getDate()+7),R}):c(v=>v===11?(g(R=>R+1),0):v+1);},[r]),D=v=>o.filter(R=>Vo(R.date,v)),T=r==="week"?(()=>{let v=new Date(d);return v.setDate(v.getDate()+6),d.getMonth()===v.getMonth()?`${d.getDate()}. \u2013 ${v.getDate()}. ${Kt[v.getMonth()]} ${v.getFullYear()}`:`${d.getDate()}. ${Kt[d.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${Kt[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${Kt[u]} ${h}`,m={backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,overflow:"hidden",userSelect:"none",...i},C={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:s.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:l,style:m,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`},children:[jsx("button",{style:C,onClick:b,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=s.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeftIcon,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsx("button",{style:C,onClick:k,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=s.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRightIcon,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:nl.map(v=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:y.map((v,R)=>{let E=Vo(v,f),P=e?Vo(v,e):false,F=r==="month"&&v.getMonth()!==u,I=il(v,a,n),B=v.toISOString(),H=S===B,A=D(v),N="transparent",L=F?s.outsideText:s.text,O="2px solid transparent";return P?(N=s.selectedBg,L=s.selectedText):E?(N=s.todayBg,O=`2px solid ${s.todayBorder}`):H&&!I&&(N=s.hover),I&&(L=s.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:O,background:N,color:L,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:I?"default":"pointer",opacity:I?.4:1,transition:"background-color 0.12s ease"},disabled:I,onClick:()=>{!I&&t&&t(v);},onMouseEnter:()=>!I&&w(B),onMouseLeave:()=>w(null),children:v.getDate()}),A.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:A.slice(0,3).map((W,q)=>jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||s.eventDot}},q))})]},R)})})]})};ll.displayName="Calendar";var cl={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},dl=({items:e,orientation:t="vertical",style:r,className:o})=>{let a=z(),n=cl[a];return t==="horizontal"?jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...r},children:e.map((i,l)=>{let p=l===e.length-1,s=i.color||n.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:p?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[l>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),l===0&&jsx("div",{style:{flex:1}}),i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0}}),!p&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),p&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:i.date}),i.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:i.description})]})]},l)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...r},children:e.map((i,l)=>{let p=l===e.length-1,s=i.color||n.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:i.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!p&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:i.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:i.title}),i.date&&jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:i.date})]}),i.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:i.description})]})]},l)})})};dl.displayName="Timeline";var pl={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},fl=({items:e,columns:t=1,striped:r=false,style:o,className:a})=>{let n=z(),i=pl[n],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},s=h=>l<=1?h:Math.floor(h/l),f=h=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${i.border}`,backgroundColor:r&&s(h)%2===1?i.stripedBg:i.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:i.textMuted,flexShrink:0,letterSpacing:"0.01em"},c={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:a,style:p,children:e.map((h,g)=>jsxs("div",{style:f(g),children:[jsx("span",{style:u,children:h.label}),jsx("span",{style:c,children:h.value})]},g))})};fl.displayName="DataList";var xl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Fn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:i})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),s=o===e.id,[f,u]=useState(false),c="transparent";return s?c=i.selectedBg:f&&(c=i.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:c,borderLeft:s?`2px solid ${i.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>n?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:h=>{h.stopPropagation(),l&&a(e.id);},children:l&&jsx(CaretRightIcon,{size:14,color:p?i.iconExpanded:i.iconColor,style:{transform:p?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:s?i.selectedBorder:i.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?i.selectedText:i.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),l&&p&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:i.line}}),e.children.map(h=>jsx(Fn,{node:h,depth:t+1,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:i},h.id))]})]})},ml=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:a,className:n})=>{let i=z(),l=xl[i],[p,s]=useState(()=>new Set(o)),f=useCallback(c=>{s(h=>{let g=new Set(h);return g.has(c)?g.delete(c):g.add(c),g});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,...a};return jsx("div",{className:n,style:u,role:"tree",children:e.map(c=>jsx(Fn,{node:c,depth:0,expanded:p,selectedId:r,onToggle:f,onSelect:t,t:l},c.id))})};ml.displayName="Tree";var yl={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},vl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Sl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Ko=false,kl=()=>{if(Ko||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Ko=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
12
|
+
`}),te.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((W,ne)=>{let ee=K(W.value),ie=ne===M;return jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":W.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?b.optionSelectedText:W.disabled?b.placeholder:b.text,backgroundColor:ie?b.optionHover:ee?b.optionSelected:"transparent",cursor:W.disabled?"not-allowed":"pointer",opacity:W.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ne<te.length-1?"2px":0},onClick:()=>{W.disabled||q(W.value);},onMouseEnter:()=>y(ne),onMouseLeave:()=>y(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.label??W.value}),ee&&jsx(Check,{size:16,color:b.optionSelectedText})]},W.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:m,children:[s&&jsx("label",{htmlFor:g,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.text,userSelect:"none"},children:s}),jsxs("div",{ref:w,role:"combobox","aria-expanded":C,"aria-haspopup":"listbox",tabIndex:H?-1:0,style:ge,onClick:_,onKeyDown:ue,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:b.placeholder,lineHeight:"normal"},children:f}),r?O.map(W=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:b.tagBg,color:b.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(W)}),!H&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ne=>{ne.stopPropagation(),q(W);},children:jsx(X,{size:14,color:b.tagText})})]},W)):O.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:b.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q(O[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:X$1,children:jsx(X,{size:14,color:b.placeholder})}),i?jsx(Ka,{size:16,color:b.placeholder}):jsx(CaretDown,{size:16,color:b.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),A&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:A}),Re]})};Ur.displayName="Select";var ja=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=useId(),i=t??c;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[n].label,userSelect:"none"},children:e}),o??jsx(Ur,{options:[]})]})};ja.displayName="SelectGroup";var ns=({size:e=16,color:t})=>{let[o,r]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.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"})]})},as={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"}},Do=180,ss={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"}},is=_o.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:a="Hledat\u2026",label:n,error:c,disabled:i=false,loading:d=false,multiple:s=false,clearable:f=false,onOpenChange:p,onSelect:l,onDeselect:m,onClear:u,onFocus:b,onBlur:g,allowCustom:w=false,onCreate:S,renderOption:v,notFoundContent:x,footer:C,size:B="md",style:E,className:h},R)=>{let F=I(),T=as[F],M=useId(),y=ss[B],D=useRef(null),P=useRef(null),H=useRef(null),N=useRef(null),[A,L]=useState(false),[V,O]=useState(false),[K,te]=useState("idle"),[U,q]=useState(""),[X$1,_]=useState(-1),[ue,Q]=useState(false),[j,J]=useState({top:0,left:0,width:0,openAbove:false}),ge=i||d,Re=!!c,W=typeof c=="string"?c:void 0,ne=f&&!ge,ee=s?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ie=k=>ee.includes(k),ye=k=>{let $=e.find(Y=>Y.value===k);return $?$.label??$.value:k};useEffect(()=>{if(!s&&!ue){let k=e.find($=>$.value===t);q(k?k.label??k.value:(typeof t=="string"?t:"")||"");}},[t,e,ue,s]);let He=U?e.filter(k=>(k.label??k.value).toLowerCase().includes(U.toLowerCase())):e,Ue=useCallback(()=>{L(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Se=useCallback(()=>{L(false),te("closing"),p?.(false);let k=setTimeout(()=>{O(false),te("idle");},Do);return ()=>clearTimeout(k)},[p]),Pe=useCallback(()=>{if(!D.current)return;let k=D.current.getBoundingClientRect(),$=H.current?.offsetHeight??240,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;J({top:re?k.top-6:k.bottom+6,left:k.left,width:k.width,openAbove:re});},[]);useEffect(()=>{if(V)return Pe(),window.addEventListener("scroll",Pe,true),window.addEventListener("resize",Pe),()=>{window.removeEventListener("scroll",Pe,true),window.removeEventListener("resize",Pe);}},[V,Pe]),useEffect(()=>{if(!A)return;let k=$=>{let Y=$.target;if(!D.current?.contains(Y)&&!H.current?.contains(Y))if(Se(),s)q("");else {let Z=e.find(re=>re.value===t);w||q(Z?Z.label??Z.value:"");}};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[A,Se,t,e,w,s]),useEffect(()=>{X$1>=0&&N.current&&N.current.children[X$1]?.scrollIntoView({block:"nearest"});},[X$1]);let bo=k=>{let $=k.target.value;q($),r?.($),_(0),A||Ue();},Zt=useCallback(k=>{let $=e.find(Y=>Y.value===k)||{value:k};if(s){if(ie(k)){let Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);}else {let Y=[...ee,k];o(Y),l?.(k,$);}q("");}else o(k),l?.(k,$),q($.label??$.value),Se();},[o,e,Se,s,ee,l,m]),xo=useCallback(k=>{if(!s)return;let $=e.find(Z=>Z.value===k)||{value:k},Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);},[s,ee,o,e,m]),mo=useCallback(k=>{k.stopPropagation(),o(s?[]:""),q(""),u?.();},[s,o,u]),ho=k=>{if(!ge)switch(k.key){case "ArrowDown":k.preventDefault(),A?_($=>Math.min($+1,He.length-1)):(Ue(),_(0));break;case "ArrowUp":k.preventDefault(),_($=>Math.max($-1,0));break;case "Enter":k.preventDefault(),A&&X$1>=0&&He[X$1]?Zt(He[X$1].value):w&&U&&(s?(o([...ee,U]),S?.(U),q("")):(o(U),S?.(U),Se()));break;case "Backspace":if(s&&U===""&&ee.length>0){let $=ee.slice(0,-1);o($);}break;case "Escape":Se();break;case "Tab":A&&Se();break}},vt=k=>{Q(true),b?.(k),!A&&!ge&&Ue();},yo=k=>{let $=k.relatedTarget;$&&(H.current?.contains($)||D.current?.contains($))||(Q(false),g?.(k),!s&&w&&U&&o(U),s&&q(""));},vo=()=>{let k=j.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${Do}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Do}ms cubic-bezier(0.16, 1, 0.3, 1)`};return K==="opening"||K==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:K==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},So={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:ge?T.backgroundDisabled:T.background,border:`1px solid ${Re?T.borderError:ue?T.borderFocus:T.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:ge?.6:1,cursor:ge?"not-allowed":"text",flexWrap:"nowrap"},ko={flex:1,minWidth:s?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:T.text,cursor:ge?"not-allowed":"text"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},Yt=V?createPortal(jsxs("div",{ref:H,style:{position:"fixed",...j.openAbove?{bottom:window.innerHeight-j.top,left:j.left}:{top:j.top,left:j.left},width:j.width,backgroundColor:T.dropdownBg,border:`1px solid ${T.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:j.openAbove?"bottom center":"top center",...vo()},onMouseDown:k=>{k.preventDefault();},children:[jsxs("div",{ref:N,role:"listbox","aria-multiselectable":s,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[He.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:T.placeholder,textAlign:"center"},children:w&&U?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof x=="function"?x(Se):x??"\u017D\xE1dn\xE9 v\xFDsledky"}),He.map((k,$)=>{let Y=ie(k.value),Z=$===X$1;return jsx("div",{role:"option","aria-selected":Y,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Y?500:400,lineHeight:"normal",color:Y?T.optionSelectedText:T.text,backgroundColor:Z?T.optionHover:Y?T.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:$<He.length-1?"2px":0},onClick:()=>Zt(k.value),onMouseEnter:()=>_($),onMouseLeave:()=>_(-1),children:v?v(k,Z):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label??k.value}),Y&&jsx(Check,{size:16,color:T.optionSelectedText})]})},k.value)})]}),C&&jsx("div",{style:{borderTop:`1px solid ${T.divider}`,padding:"8px 6px"},children:typeof C=="function"?C(Se):C})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...E},className:h,children:[n&&jsx("label",{htmlFor:M,style:Co,children:n}),jsxs("div",{ref:D,style:So,onClick:()=>P.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:d?jsx(ns,{size:y.iconSize,color:T.placeholder}):jsx(MagnifyingGlass,{size:y.iconSize,color:T.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[s&&ee.map(k=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:T.tagBg,color:T.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:ye(k)}),!ge&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:$=>{$.stopPropagation(),xo(k);},children:jsx(X,{size:14,color:T.tagText})})]},k)),jsx("input",{ref:k=>{P.current=k,typeof R=="function"?R(k):R&&(R.current=k);},id:M,type:"text",value:U,onChange:bo,onFocus:vt,onBlur:yo,onKeyDown:ho,placeholder:s&&ee.length>0?"":a,disabled:i,readOnly:d,style:ko})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ne&&ee.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:mo,children:jsx(X,{size:14,color:T.placeholder})}),jsx(CaretDown,{size:y.iconSize,color:T.placeholder,style:{transition:"transform 0.2s ease",transform:A?"rotate(180deg)":"rotate(0deg)"}})]})]}),W&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:T.borderError,lineHeight:"normal"},children:W}),Yt]})});is.displayName="Combobox";var fs=({size:e=16,color:t})=>{let[o,r]=useState(0),a=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.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"})]})},Qr={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)"}},zo=180,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"}},gs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Xr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function bs(e,t,o){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-o,a<0&&(a+=7);let n=new Date(e,t,1-a),c=[];for(let i=0;i<42;i++){let d=new Date(n);d.setDate(n.getDate()+i),c.push(d);}return c}function Bo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Kr(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Bo(e)} ${t}:${o}`}function We(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jr(e,t,o){let r=e.getTime(),a=Math.min(t.getTime(),o.getTime()),n=Math.max(t.getTime(),o.getTime());return r>=a&&r<=n}function xs(e){return We(e,new Date)}var en=({mode:e="single",showTime:t=false,value:o,onChange:r,label:a,placeholder:n,error:c,helperText:i,disabled:d=false,loading:s=false,clearable:f=false,size:p="md",fullWidth:l=false,required:m,minDate:u,maxDate:b,firstDayOfWeek:g=1,style:w,className:S})=>{let v=I(),x=Qr[v],C=useId(),B=us[p],E=useRef(null),h=useRef(null),[R,F]=useState(false),[T,z]=useState(false),[M,y]=useState("idle"),[D,P]=useState({top:0,left:0,width:0,openAbove:false}),[H,N]=useState(null),A=new Date,[L,V]=useState(A.getFullYear()),[O,K]=useState(A.getMonth()),[te,U]=useState("days"),[q,X$1]=useState(0),_=d||s,ue=!!c,Q=typeof c=="string"?c:void 0,j=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],ge=e==="single"?j!==null:J[0]!==null||J[1]!==null,Re=f&&ge&&!_,W=(()=>{if(e==="single")return j?t?Kr(j):Bo(j):"";let[k,$]=J;if(!k&&!$)return "";let Y=t?Kr:Bo;return `${k?Y(k):"\u2026"} \u2013 ${$?Y($):"\u2026"}`})(),ne=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),ee=useCallback(()=>{let k=e==="single"?j:J[0];k&&(V(k.getFullYear()),K(k.getMonth())),U("days"),F(true),z(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[e,j,J]),ie=useCallback(()=>{F(false),y("closing");let k=setTimeout(()=>{z(false),y("idle");},zo);return ()=>clearTimeout(k)},[]),ye=useCallback(()=>{if(!E.current)return;let k=E.current.getBoundingClientRect(),$=h.current?.offsetHeight??380,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;P({top:re?k.top-6:k.bottom+6,left:k.left,width:Math.max(k.width,300),openAbove:re});},[]);useEffect(()=>{if(T)return ye(),window.addEventListener("scroll",ye,true),window.addEventListener("resize",ye),()=>{window.removeEventListener("scroll",ye,true),window.removeEventListener("resize",ye);}},[T,ye]),useEffect(()=>{if(!R)return;let k=$=>{let Y=$.target,Z=E.current?.contains(Y),re=h.current?.contains(Y);!Z&&!re&&ie();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[R,ie]);let He=k=>{_||(k.key==="Escape"&&R&&(k.preventDefault(),ie()),(k.key==="Enter"||k.key===" ")&&!R&&(k.preventDefault(),ee()));},Ue=useCallback(k=>{if(u){let $=new Date(u.getFullYear(),u.getMonth(),u.getDate());if(k<$)return true}if(b){let $=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(k>$)return true}return false},[u,b]),Se=useCallback(k=>{if(!Ue(k)&&r)if(e==="single")t&&j&&k.setHours(j.getHours(),j.getMinutes()),r(new Date(k)),t||ie();else if(q===0)t&&J[0]&&k.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(k),null]),X$1(1);else {let $=J[0];t&&J[1]&&k.setHours(J[1].getHours(),J[1].getMinutes());let[Y,Z]=k>=$?[$,new Date(k)]:[new Date(k),$];r([Y,Z]),X$1(0),t||ie();}},[e,t,j,J,q,r,ie,Ue]),Pe=useCallback((k,$,Y)=>{if(!r)return;let Z=parseInt($,10);if(isNaN(Z)&&(Z=0),k==="hour"&&(Z=Math.max(0,Math.min(23,Z))),k==="minute"&&(Z=Math.max(0,Math.min(59,Z))),e==="single"){let re=j?new Date(j):new Date;k==="hour"?re.setHours(Z):re.setMinutes(Z),r(re);}else {let re=Y??0,xe=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],qe=xe[re]??new Date;k==="hour"?qe.setHours(Z):qe.setMinutes(Z),xe[re]=qe,r(xe);}},[e,j,J,r]),bo=()=>{O===0?(K(11),V(k=>k-1)):K(k=>k-1);},Zt=()=>{O===11?(K(0),V(k=>k+1)):K(k=>k+1);},xo=k=>{k.stopPropagation(),r&&(r(e==="single"?null:[null,null]),X$1(0));},mo=()=>{let k=D.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return M==="opening"||M==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:M==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},ho=bs(L,O,g),vt=(k,$)=>{let Y=k?k.getHours():0,Z=k?k.getMinutes():0,re={width:"42px",background:"transparent",border:`1px solid ${x.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(Y).padStart(2,"0"),onChange:xe=>Pe("hour",xe.target.value,$),style:re,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:x.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(Z).padStart(2,"0"),onChange:xe=>Pe("minute",xe.target.value,$),style:re,maxLength:2,"aria-label":"Minuty"})]})},yo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Xr.map((k,$)=>{let Y=$===O;return jsx("button",{type:"button",onClick:()=>{K($),U("days");},style:{background:Y?x.daySelected:"transparent",color:Y?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:Z=>{Y||(Z.target.style.backgroundColor=x.dayHover);},onMouseLeave:Z=>{Y||(Z.target.style.backgroundColor="transparent");},children:k},$)})}),vo=()=>{let k=Math.floor(L/12)*12,$=Array.from({length:12},(Y,Z)=>k+Z);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>V(Y=>Y-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:x.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text},children:[k," \u2013 ",k+11]}),jsx("button",{type:"button",onClick:()=>V(Y=>Y+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:x.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:$.map(Y=>{let Z=Y===L;return jsx("button",{type:"button",onClick:()=>{V(Y),U("months");},style:{background:Z?x.daySelected:"transparent",color:Z?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:re=>{Z||(re.target.style.backgroundColor=x.dayHover);},onMouseLeave:re=>{Z||(re.target.style.backgroundColor="transparent");},children:Y},Y)})})]})},So=T?createPortal(jsx("div",{ref:h,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:v==="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:D.openAbove?"bottom center":"top center",...mo()},children:te==="years"?vo():te==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),yo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:bo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:x.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>U("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:Xr[O]}),jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsx("button",{type:"button",onClick:Zt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:x.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:gs.map(k=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:x.placeholder,padding:"4px 0",userSelect:"none"},children:k},k))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:ho.map((k,$)=>{let Y=k.getMonth()!==O,Z=Ue(k),re=xs(k),xe=false,qe=false,wo=false,Vt=false;if(e==="single"&&j)xe=We(k,j);else if(e==="range"){let[Le,qt]=J;Le&&We(k,Le)&&(qe=true,xe=true),qt&&We(k,qt)&&(wo=true,xe=true),Le&&qt&&jr(k,Le,qt)&&!qe&&!wo&&(Vt=true),q===1&&Le&&H&&!Z&&(We(k,H)&&!We(k,Le)&&(xe=true),jr(k,Le,H)&&!We(k,Le)&&!We(k,H)&&(Vt=true));}let Ro="transparent",Ut=x.text;return xe?(Ro=x.daySelected,Ut=x.daySelectedText):Vt&&(Ro=x.dayRangeMiddle),Y&&(Ut=xe?x.daySelectedText:x.dayOutside),Z&&(Ut=x.dayDisabled),jsx("button",{type:"button",disabled:Z,onClick:()=>Se(k),onMouseEnter:()=>{Z||N(k);},onMouseLeave:()=>N(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Ro,color:Ut,border:"none",borderRadius:qe?"6px 0 0 6px":wo?"0 6px 6px 0":Vt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:xe?600:400,cursor:Z?"not-allowed":"pointer",opacity:Z?.4:1,transition:"background-color 0.1s ease",outline:re&&!xe?`1.5px solid ${x.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:k.getDate()},$)})}),t&&jsx("div",{style:{borderTop:`1px solid ${x.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"\u010Cas:"}),vt(j)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Od:"}),vt(J[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Do:"}),vt(J[1],1)]})]})})]})}),document.body):null,ko={display:"flex",alignItems:"center",gap:B.gap,backgroundColor:_?x.backgroundDisabled:x.background,border:`1px solid ${ue?x.borderError:R?x.borderFocus:x.border}`,borderRadius:"8px",padding:B.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:_?.6:1,cursor:_?"not-allowed":"pointer",userSelect:"none",outline:"none"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},Yt={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,...w},className:S,children:[a&&jsxs("label",{htmlFor:C,style:Co,children:[a,m&&jsx("span",{style:{color:x.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:E,role:"button",tabIndex:_?-1:0,style:ko,onClick:()=>{_||(R?ie():ee());},onKeyDown:He,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.text,lineHeight:"normal"},children:W}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.placeholder,lineHeight:"normal"},children:ne})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Re&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:xo,children:jsx(X,{size:B.iconSize-2,color:x.placeholder})}),s?jsx(fs,{size:B.iconSize,color:x.placeholder}):jsx(CalendarBlank,{size:B.iconSize,color:x.placeholder})]})]}),Q&&jsx("span",{style:{...Yt,color:x.borderError},children:Q}),!Q&&i&&jsx("span",{style:{...Yt,color:x.helperText},children:i}),So]})};en.displayName="DatePicker";var ms=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=useId(),i=t??c;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Qr[n].label,userSelect:"none"},children:e}),o??jsx(en,{})]})};ms.displayName="DatePickerGroup";var tn={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Ss={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},on=({checked:e=false,onChange:t,label:o,disabled:r=false,error:a,size:n="md",indeterminate:c=false,className:i,style:d})=>{let s=I(),f=tn[s],p=Ss[n],l=useId(),m=useRef(null),u=!!a,b=typeof a=="string"?a:void 0;useEffect(()=>{m.current&&(m.current.indeterminate=c);},[c]);let g=()=>{r||t?.(!e);},w=u?f.borderError:e||c?f.checkBg:f.border,S=e||c?f.checkBg:r?f.backgroundDisabled:f.background,v={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${w}`,backgroundColor:S,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},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:f.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},C={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:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:B=>{B.preventDefault(),g();},children:[jsx("input",{ref:m,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":u||void 0}),jsxs("span",{style:v,children:[e&&!c&&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:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),c&&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:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:x,children:o})]}),b&&jsx("span",{style:{...C,color:f.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:b})]})};on.displayName="Checkbox";var rn=({label:e,children:t,error:o,className:r,style:a})=>{let n=I(),c=tn[n],i=typeof o=="string"?o:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:r,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:c.borderError},children:i})]})};rn.displayName="CheckboxGroup";var nn={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"}},Cs={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"}},Po=({value:e,checked:t=false,onChange:o,label:r,disabled:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=nn[d],f=Cs[n],p=useId(),l=()=>{a||o?.(e);},m=t?s.dotRing:s.border,u=a?s.backgroundDisabled:s.background,b={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${m}`,backgroundColor:u,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...i},className:c,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:w=>{w.preventDefault(),l();},children:[jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:a,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:b,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),r&&jsx("span",{style:g,children:r})]})})};Po.displayName="Radio";var an=({value:e,onChange:t,label:o,options:r,direction:a="vertical",error:n,helperText:c,size:i="md",className:d,style:s})=>{let f=I(),p=nn[f],l=!!n,m=typeof n=="string"?n:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},b={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",...s},className:d,children:[o&&jsx("span",{style:u,children:o}),jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:r.map(g=>jsx(Po,{value:g.value,label:g.label,checked:e===g.value,onChange:t,disabled:g.disabled,size:i},g.value))}),m&&jsx("span",{style:{...b,color:p.borderError},children:m}),!m&&c&&jsx("span",{style:{...b,color:p.helperText},children:c})]})};an.displayName="RadioGroup";var Rs={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"}},Ts={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"}},ln=({checked:e=false,onChange:t,label:o,disabled:r=false,size:a="md",className:n,style:c})=>{let i=I(),d=Rs[i],s=Ts[a],f=useId(),p=()=>{r||t?.(!e);},l=1.5,m=2,b=s.trackW-l*2-s.thumb-m,g=e?b:0,w={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${l}px solid ${e?d.trackOnBorder:d.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"},S={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:m,transform:`translateY(-50%) translateX(${g}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...c},className:n,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:r?"not-allowed":"pointer"},onClick:x=>{x.preventDefault(),p();},children:[jsx("input",{id:f,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:w,children:jsx("span",{style:S})}),o&&jsx("span",{style:v,children:o})]})})};ln.displayName="Switch";var 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",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"}},Ms={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},dn=_o.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:a=false,size:n="md",fullWidth:c=false,required:i,rows:d=4,maxLength:s,resize:f="vertical",autoHeight:p=false,minRows:l,maxRows:m,className:u,style:b,value:g,onChange:w,onFocus:S,onBlur:v,...x},C)=>{let B=I(),E=Ps[B],h=Ms[n],R=useId(),F=x.id??R,[T,z]=useState(false),M=useRef(null),y=useCallback(()=>{let q=M.current;if(!q||!p)return;q.style.height="auto";let X=getComputedStyle(q),_=parseFloat(X.lineHeight)||parseFloat(X.fontSize)*1.5,ue=parseFloat(X.paddingTop)||0,Q=parseFloat(X.paddingBottom)||0,j=ue+Q,ge=_*(l??1)+j,Re=m?_*m+j:1/0,W=Math.min(Math.max(q.scrollHeight,ge),Re);q.style.height=`${W}px`,q.style.overflowY=q.scrollHeight>Re?"auto":"hidden";},[p,l,m]);useEffect(()=>{y();},[g,y]);let D=useCallback(q=>{M.current=q,typeof C=="function"?C(q):C&&(C.current=q);},[C]),P=p?"none":f,H=p?l??1:d,N=r||a,A=!!t,L=typeof t=="string"?t:void 0,V=typeof g=="string"?g.length:0,O={backgroundColor:N?E.backgroundDisabled:E.background,border:`1px solid ${A?E.borderError:T?E.borderFocus:E.border}`,borderRadius:"8px",padding:h.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},K={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"1.5",color:E.text,cursor:N?"not-allowed":"text",resize:P,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:E.label,userSelect:"none"},U={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,...b},className:u,children:[e&&jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:O,children:jsx("textarea",{ref:D,id:F,rows:H,maxLength:s,disabled:r,required:i,readOnly:a||x.readOnly,value:g,onChange:w,style:K,onFocus:q=>{z(true),S?.(q);},onBlur:q=>{z(false),v?.(q);},...x})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[L&&jsx("span",{style:{...U,color:E.borderError},children:L}),!L&&o&&jsx("span",{style:{...U,color:E.helperText},children:o})]}),s!==void 0&&jsxs("span",{style:{...U,color:V>s?E.borderError:E.counter,flexShrink:0},children:[V,"/",s]})]})]})});dn.displayName="Textarea";var Hs={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)"}},Ls={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function un(e,t,o){return Math.min(Math.max(e,t),o)}function Ns(e,t,o){return Math.round((e-t)/o)*o+t}var gn=({value:e,onChange:t,min:o=0,max:r=100,step:a=1,label:n,disabled:c=false,showValue:i=false,range:d=false,size:s="md",className:f,style:p})=>{let l=I(),m=Hs[l],u=Ls[s],b=useId(),g=useRef(null),w=useRef(null),S=d?e:[o,e],v=T=>(T-o)/(r-o)*100,x=v(S[0]),C=v(S[1]),B=useCallback(T=>{let z=g.current;if(!z)return o;let M=z.getBoundingClientRect(),y=un((T-M.left)/M.width,0,1),D=o+y*(r-o);return un(Ns(D,o,a),o,r)},[o,r,a]),E=useCallback(T=>{if(c)return;T.preventDefault();let z=B(T.clientX);if(d){let D=e,P=Math.abs(z-D[0]),H=Math.abs(z-D[1]),N=P<=H?"start":"end";w.current=N;let A=N==="start"?[Math.min(z,D[1]),D[1]]:[D[0],Math.max(z,D[0])];t?.(A);}else w.current="end",t?.(z);let M=D=>{let P=B(D.clientX);if(d){let H=e;w.current==="start"?t?.([Math.min(P,H[1]),H[1]]):t?.([H[0],Math.max(P,H[0])]);}else t?.(P);},y=()=>{w.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",y);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",y);},[c,B,t,d,e]),h={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.label,userSelect:"none"},R=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,F={width:u.thumb,height:u.thumb,borderRadius:"50%",backgroundColor:m.thumb,border:`2px solid ${m.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:c?"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:c?.5:1,...p},className:f,children:[(n||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("label",{htmlFor:b,style:h,children:n}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:m.text,userSelect:"none"},children:R})]}),jsxs("div",{ref:g,role:"slider",id:b,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":d?void 0:e,"aria-disabled":c||void 0,onMouseDown:E,style:{position:"relative",width:"100%",height:u.thumb,cursor:c?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${d?x:0}%`,width:`${C-(d?x:0)}%`,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackFill}}),d&&jsx("span",{style:{...F,left:`${x}%`}}),jsx("span",{style:{...F,left:`${C}%`}})]})]})};gn.displayName="Slider";var Ys={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 No(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Vs=0,xn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:a,disabled:n=false,label:c,helperText:i,error:d,value:s,buttonStyle:f="default",showFileList:p=true,buttonLabel:l,className:m,style:u})=>{let b=I(),g=Ys[b],w=useId(),S=useRef(null),[v,x]=useState(false),[C,B]=useState([]),[E,h]=useState(null),R=s!==void 0,F=R?s.map((A,L)=>({file:A,id:`controlled-${L}`})):C,T=!!d||!!E,z=typeof d=="string"?d:E??void 0,M=useCallback(A=>{let L=Array.from(A);if(h(null),a){let V=L.find(O=>O.size>a);if(V){h(`Soubor \u201E${V.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${No(a)}.`);return}}if(R){let O=r?[...s||[],...L]:L;t?.(O);}else {let V=L.map(K=>({file:K,id:`file-${++Vs}`})),O=r?[...C,...V]:V;B(O),t?.(O.map(K=>K.file));}},[R,s,C,a,r,t]),y=useCallback(A=>{A.preventDefault(),x(false),!n&&A.dataTransfer.files.length>0&&M(A.dataTransfer.files);},[n,M]),D=useCallback(A=>{if(R){let L=(s||[]).filter((V,O)=>`controlled-${O}`!==A);t?.(L);}else {let L=C.filter(V=>V.id!==A);B(L),t?.(L.map(V=>V.file));}},[R,s,C,t]),P={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},H={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${T?g.borderError:v?g.borderDrag:g.border}`,borderRadius:"8px",backgroundColor:v?g.backgroundDrag:n?g.backgroundDisabled:g.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...u},className:m,children:[c&&jsx("span",{style:P,children:c}),jsx("input",{ref:S,id:w,type:"file",accept:o,multiple:r,disabled:n,onChange:A=>{A.target.files&&A.target.files.length>0&&M(A.target.files),A.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:H,onClick:()=>!n&&S.current?.click(),onDragOver:A=>{A.preventDefault(),n||x(true);},onDragLeave:()=>x(false),onDrop:y,children:[jsx(UploadSimple,{size:32,color:g.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):f==="primary"?jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&S.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:A=>{n||(A.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:A=>{A.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:()=>!n&&S.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${T?g.borderError:g.border}`,backgroundColor:n?g.backgroundDisabled:g.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:A=>{n||(A.currentTarget.style.borderColor=T?g.borderError:b==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:A=>{A.currentTarget.style.borderColor=T?g.borderError:g.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:F.length>0?jsx(FileText,{size:18,color:g.textSecondary}):jsx(UploadSimple,{size:18,color:g.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?g.text:g.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:g.textSecondary,flexShrink:0},children:No(F[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:jsx(Folder,{size:16,color:g.textSecondary})})]}),p&&F.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(A=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:g.fileBg},children:[jsx(FileText,{size:24,color:g.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.textSecondary,flexShrink:0},children:No(A.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${A.file.name}`,onClick:L=>{L.stopPropagation(),D(A.id);},onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&D(A.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:g.removeColor})})]},A.id))}),z&&jsx("span",{style:{...N,color:g.borderError},children:z}),!z&&i&&jsx("span",{style:{...N,color:g.helperText},children:i})]})};xn.displayName="FileUpload";var _s={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)"}},Gs={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"}},Xs=({data:e,value:t,onChange:o,size:r="md",fullWidth:a=false,orientation:n="horizontal",disabled:c=false,className:i,style:d})=>{let s=I(),f=_s[s],p=Gs[r],l=n==="vertical",m=e.map(x=>typeof x=="string"?{value:x,label:x}:x),u=m.findIndex(x=>x.value===t),b=useRef(null),g=useRef([]),[w,S]=useState({offset:0,size:0}),v=useCallback(()=>{let x=b.current,C=g.current[u];if(!x||!C||u<0)return;let B=x.getBoundingClientRect(),E=C.getBoundingClientRect();S(l?{offset:E.top-B.top,size:E.height}:{offset:E.left-B.left,size:E.width});},[u,l]);return useEffect(()=>{v();},[v,t,e,r]),useEffect(()=>(window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)),[v]),jsxs("div",{ref:b,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:c?.5:1,cursor:c?"not-allowed":void 0,...d},children:[u>=0&&w.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.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,...l?{left:p.padding,right:p.padding,top:w.offset,height:w.size}:{top:p.padding,bottom:p.padding,left:w.offset,width:w.size}}}),m.map((x,C)=>{let B=x.value===t,E=c||x.disabled;return jsxs("button",{ref:h=>{g.current[C]=h;},type:"button",role:"radio","aria-checked":B,disabled:E,onClick:()=>{E||o(x.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:a?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:B?500:400,color:E?f.textDisabled:B?f.textActive:f.text,cursor:E?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:h=>{!E&&!B&&(h.currentTarget.style.color=f.textHover);},onMouseLeave:h=>{!E&&!B&&(h.currentTarget.style.color=f.text);},children:[x.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:x.icon}),(x.label||!x.icon&&x.value)&&jsx("span",{children:x.label??x.value})]},x.value)})]})};Xs.displayName="SegmentedControl";var Qs={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)"}},Zo=180,ei=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Yo=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),ti=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},oi=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),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+a*114)/1e3>150},ri=({value:e,onChange:t,presets:o=ei,label:r,disabled:a=false,style:n,className:c})=>{let i=I(),d=Qs[i],f=useId(),p=useRef(null),l=useRef(null),[m,u]=useState(false),[b,g]=useState(false),[w,S]=useState("idle"),[v,x]=useState(e),[C,B]=useState(false),[E,h]=useState({top:0,left:0,openAbove:false});useEffect(()=>{C||x(e);},[e,C]);let R=useCallback(()=>{a||(u(true),g(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}));},[a]),F=useCallback(()=>{u(false),S("closing");let L=setTimeout(()=>{g(false),S("idle");},Zo);return ()=>clearTimeout(L)},[]),T=useCallback(()=>{if(!p.current)return;let L=p.current.getBoundingClientRect(),V=220,O=window.innerHeight-L.bottom-8,K=O<V&&L.top>O;h({top:K?L.top-8:L.bottom+8,left:L.left,openAbove:K});},[]);useEffect(()=>{if(b)return T(),window.addEventListener("scroll",T,true),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",T,true),window.removeEventListener("resize",T);}},[b,T]),useEffect(()=>{if(!m)return;let L=V=>{let O=V.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[m,F]);let z=L=>{let V=ti(L.target.value);x(V),Yo(V)&&t(V);},M=()=>{B(false),Yo(v)?t(v):x(e);},y=L=>{t(L),x(L),F();},D=()=>{let L=E.openAbove,V=L?"translateY(8px)":"translateY(-8px)",O=L?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...K,opacity:0,transform:`${V} scale(0.97)`}:w==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},P={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?d.backgroundDisabled:d.background,border:`1px solid ${C?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Yo(e)?e:"#cccccc",border:`1px solid ${d.swatchBorder}`,flexShrink:0,cursor:a?"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"},A=b?createPortal(jsx("div",{ref:l,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",...D()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((L,V)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>y(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===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:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${L}-${V}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:c,children:[r&&jsx("label",{htmlFor:f,style:N,children:r}),jsxs("div",{ref:p,style:P,children:[jsx("div",{style:H,onClick:()=>{a||(m?F():R());}}),jsx("input",{id:f,type:"text",value:v,onChange:z,onFocus:()=>B(true),onBlur:M,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:d.text,cursor:a?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(m?F():R());},children:jsx(Eyedropper,{size:16,color:(oi(e)&&i==="light",d.placeholder)})})]}),A]})};ri.displayName="ColorPicker";var ii={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"}},li={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},ci=({value:e,onChange:t,max:o=5,size:r="md",readOnly:a=false,label:n,style:c,className:i})=>{let d=I(),s=ii[d],f=useId(),p=li[r],[l,m]=useState(null),u=!a&&!!t,b=useCallback(x=>{u&&t(x+1);},[u,t]),g=useCallback(x=>{u&&m(x);},[u]),w=useCallback(()=>{m(null);},[]),S={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},v=Array.from({length:o},(x,C)=>{let B=l!==null?l+1:e,E=C<B,h=l!==null&&C<=l;return jsx("span",{role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?`Hodnocen\xED ${C+1} z ${o}`:void 0,onClick:()=>b(C),onMouseEnter:()=>g(C),onMouseLeave:w,onKeyDown:R=>{u&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),b(C));},style:{display:"inline-flex",cursor:u?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:h?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:p.starSize,weight:E?"fill":"regular",color:E?h?s.starHover:s.starFilled:s.starEmpty})},C)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:i,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsx("label",{htmlFor:f,style:S,children:n}),jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:w,children:v})]})};ci.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"}},mi=({length:e=6,value:t,onChange:o,error:r,disabled:a=false,autoFocus:n=false,label:c,separatorAfter:i,separator:d="-",style:s,className:f})=>{let p=I(),l=xi[p],m=useId(),u=useRef([]),[b,g]=useState(null),w=!!r,S=typeof r=="string"?r:void 0,v=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{n&&u.current[0]&&u.current[0].focus();},[n]);let x=useCallback(y=>{y>=0&&y<e&&u.current[y]?.focus();},[e]),C=useCallback(y=>{let D=y.join("").replace(/[^0-9]/g,"");o(D);},[o]),B=useCallback((y,D)=>{if(!/^[0-9]$/.test(D))return;let P=[...v];P[y]=D,C(P),y<e-1&&x(y+1);},[v,e,C,x]),E=useCallback((y,D)=>{switch(D.key){case "Backspace":if(D.preventDefault(),v[y]){let P=[...v];P[y]="",C(P);}else if(y>0){let P=[...v];P[y-1]="",C(P),x(y-1);}break;case "Delete":D.preventDefault();{let P=[...v];P[y]="",C(P);}break;case "ArrowLeft":D.preventDefault(),y>0&&x(y-1);break;case "ArrowRight":D.preventDefault(),y<e-1&&x(y+1);break}},[v,e,C,x]),h=useCallback((y,D)=>{let H=D.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&B(y,H);},[B]),R=useCallback(y=>{y.preventDefault();let D=y.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!D)return;let P=[...v];for(let N=0;N<D.length;N++)P[N]=D[N];C(P);let H=Math.min(D.length,e-1);x(H);},[v,e,C,x]),F=useCallback(y=>{g(y),u.current[y]?.select();},[]),T=useCallback(()=>{g(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},M=y=>{let D=b===y,P=!!v[y];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:a?l.backgroundDisabled:P?l.backgroundFilled:l.background,border:`1px solid ${w?l.borderError:D?l.borderFocus:P?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:l.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[c&&jsx("label",{htmlFor:`${m}-0`,style:z,children:c}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:R,children:Array.from({length:e},(y,D)=>jsxs(_o.Fragment,{children:[i&&D>0&&D%i===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:d}),jsx("input",{ref:P=>{u.current[D]=P;},id:`${m}-${D}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:v[D]||"",onChange:P=>h(D,P),onKeyDown:P=>E(D,P),onFocus:()=>F(D),onBlur:T,disabled:a,"aria-label":`\u010C\xEDslice ${D+1} z ${e}`,style:M(D)})]},D))}),S&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:S})]})};mi.displayName="OTPInput";var hi={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)"}},wn="smSkeletonShimmer",yi=`@keyframes ${wn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,lt=({variant:e="text",width:t,height:o,lines:r=1,animate:a=true,className:n,style:c})=>{let i=I(),d=hi[i],s=t??(e==="circle"?40:"100%"),f=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:d.base,backgroundImage:a?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${wn} 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},l=a?jsx("style",{dangerouslySetInnerHTML:{__html:yi}}):null;return e==="text"&&r>1?jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...c},children:[l,Array.from({length:r}).map((m,u)=>jsx("div",{style:{...p,width:u===r-1?"75%":p.width}},u))]}):jsxs(Fragment,{children:[l,jsx("div",{className:n,style:{...p,...c}})]})};lt.displayName="Skeleton";var ki={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},Ci=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:c,striped:i=false,hoverable:d=true,className:s,style:f})=>{let p=I(),l=ki[p],m=S=>{if(!S.sortable||!a)return;let v=n===S.key&&c==="asc"?"desc":"asc";a(S.key,v);},u={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",...f},b=S=>({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:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),g={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxs("table",{className:s,style:u,children:[jsx("thead",{children:jsx("tr",{children:e.map(S=>jsx("th",{style:b(S),onClick:()=>m(S),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsx(CaretUpDownIcon,{size:14,color:n===S.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsx("tbody",{children:o?Array.from({length:5}).map((S,v)=>jsx("tr",{children:e.map(x=>jsx("td",{style:g,children:jsx(lt,{variant:"text",width:"80%"})},x.key))},`skel-${v}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...g,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((S,v)=>jsx("tr",{style:{backgroundColor:i&&v%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:x=>{d&&(x.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:x=>{d&&(x.currentTarget.style.backgroundColor=i&&v%2===1?l.stripedBg:"transparent");},children:e.map(x=>jsx("td",{style:{...g,borderBottom:v===t.length-1?"none":g.borderBottom},children:x.render?x.render(S[x.key],S,v):S[x.key]},x.key))},v))})]})};Ci.displayName="Table";var Ri={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"}},En=({checked:e,indeterminate:t,onChange:o,t:r})=>{let a=e||t;return 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(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:a?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"})})]})},Ti=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:a=false,rowKey:n="id",onRowClick:c,stickyHeader:i=false,emptyText:d="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let p=I(),l=Ri[p],[m,u]=useState(new Set),[b,g]=useState(null),w=useMemo(()=>t.map(z=>String(z[n])),[t,n]),S=w.length>0&&w.every(z=>m.has(z)),v=w.some(z=>m.has(z))&&!S,x=useCallback(()=>{let z=S?new Set:new Set(w);u(z),r?.(Array.from(z));},[S,w,r]),C=useCallback(z=>{u(M=>{let y=new Set(M);return y.has(z)?y.delete(z):y.add(z),r?.(Array.from(y)),y});},[r]),B={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.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:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.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)"}:{}}),h=z=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:z.align||"left"}),R={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:f,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...s},children:jsxs("table",{style:B,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:R,children:jsx(En,{checked:S,indeterminate:v,onChange:x,t:l})}),e.map(z=>jsx("th",{style:E(z),children:z.header},z.key))]})}),jsx("tbody",{children:a?Array.from({length:5}).map((z,M)=>jsxs("tr",{children:[o&&jsx("td",{style:F,children:jsx(lt,{variant:"rect",width:16,height:16})}),e.map(y=>jsx("td",{style:h(y),children:jsx(lt,{variant:"text",width:"80%"})},y.key))]},`skel-${M}`)):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:d})}):t.map((z,M)=>{let y=String(z[n]),D=m.has(y),P=b===y,H=M===t.length-1,N="transparent";return D?N=l.selectedRowBg:P&&(N=l.rowHover),jsxs("tr",{style:{backgroundColor:N,cursor:c?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>g(y),onMouseLeave:()=>g(null),onClick:()=>c?.(z),children:[o&&jsx("td",{style:{...F,borderBottom:H?"none":F.borderBottom},children:jsx(En,{checked:D,onChange:()=>C(y),t:l})}),e.map(A=>jsx("td",{style:{...h(A),borderBottom:H?"none":h(A).borderBottom},children:A.render?A.render(z[A.key],z,M):z[A.key]},A.key))]},y)})})]})})};Ti.displayName="DataGrid";var Fi={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)"}},Ei={none:"0",sm:"12px",md:"20px",lg:"28px"},Di=({title:e,subtitle:t,header:o,footer:r,children:a,hoverable:n=false,bordered:c=true,padding:i="md",className:d,style:s})=>{let f=I(),p=Fi[f],l=Ei[i],m={backgroundColor:p.background,border:c?`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:n?"pointer":void 0,...s},u=o??(e||t?jsxs("div",{style:{padding:l,paddingBottom:a||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:d,style:m,onMouseEnter:b=>{n&&(b.currentTarget.style.borderColor=p.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{n&&(b.currentTarget.style.borderColor=c?p.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[u,a&&jsx("div",{style:{padding:l},children:a}),r&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsx("div",{style:{padding:l},children:r})]})]})};Di.displayName="Card";var In={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)"}},Mi=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:a,_open:n,_onToggle:c})=>{let i=I(),d=In[i],[s,f]=useState(o),p=a?!!n:s,l=useRef(null),[m,u]=useState(0);useEffect(()=>{l.current&&u(l.current.scrollHeight);},[t,p]);let b=useCallback(()=>{r||(a&&c?c():f(g=>!g));},[r,a,c]);return jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxs("button",{type:"button",disabled:r,onClick:b,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?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:g=>{r||(g.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:r?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${m}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})})]})};Mi.displayName="AccordionItem";var Ai=({children:e,multiple:t=false,className:o,style:r})=>{let a=I(),n=In[a],c=_o.Children.toArray(e).filter(f=>_o.isValidElement(f)),[i,d]=useState(()=>{let f=new Set;return c.forEach((p,l)=>{p.props.defaultOpen&&f.add(l);}),f}),s=useCallback(f=>{d(p=>{let l=new Set(p);return l.has(f)?l.delete(f):(t||l.clear(),l.add(f)),l});},[t]);return jsx("div",{className:o,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...r},children:c.map((f,p)=>_o.cloneElement(f,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>s(p)}))})};Ai.displayName="Accordion";var Hi={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)"}},Li={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ni=()=>null;Ni.displayName="Tab";var $i=()=>null;$i.displayName="TabPanel";var Wi=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=Hi[d],f=Li[n],p=_o.Children.toArray(o),l=p.filter(b=>_o.isValidElement(b)&&b.type?.displayName==="Tab"),u=p.filter(b=>_o.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxs("div",{className:c,style:i,children:[jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${s.border}`:"none"},children:l.map(b=>{let g=b.props.value===e,w=b.props.disabled,S=r==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${g?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.pillText:s.textInactive,backgroundColor:g?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:w,style:S,onClick:()=>{w||t(b.props.value);},onMouseEnter:v=>{!w&&!g&&(v.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:v=>{w||(v.currentTarget.style.backgroundColor=r==="pills"&&g?s.pillBg:"transparent");},children:[b.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),u&&jsx("div",{style:{paddingTop:"16px"},children:u.props.children})]})};Wi.displayName="Tabs";var Yi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Qo=({content:e,children:t,position:o="top",delay:r=200,className:a,style:n})=>{let c=I(),i=Yi[c],[d,s]=useState(false),[f,p]=useState({top:0,left:0}),l=useRef(null),m=useRef(null),u=useRef(void 0),b=6,g=8,w=useCallback(()=>{let B=l.current,E=m.current;if(!B||!E)return;let h=B.getBoundingClientRect(),R=E.getBoundingClientRect(),F=0,T=0;switch(o){case "top":F=h.top-R.height-g,T=h.left+h.width/2-R.width/2;break;case "bottom":F=h.bottom+g,T=h.left+h.width/2-R.width/2;break;case "left":F=h.top+h.height/2-R.height/2,T=h.left-R.width-g;break;case "right":F=h.top+h.height/2-R.height/2,T=h.right+g;break}p({top:F,left:T});},[o]);useEffect(()=>{d&&requestAnimationFrame(w);},[d,w]);let S=useCallback(()=>{u.current=setTimeout(()=>s(true),r);},[r]),v=useCallback(()=>{u.current&&clearTimeout(u.current),s(false);},[]);useEffect(()=>()=>{u.current&&clearTimeout(u.current);},[]);let x=(()=>{let B={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(o){case "top":return {...B,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...B,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...B,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...B,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),C=d?createPortal(jsxs("div",{ref:m,className:a,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",...n},children:[e,jsx("div",{style:x})]}),document.body):null;return jsxs(Fragment,{children:[_o.cloneElement(t,{ref:l,onMouseEnter:B=>{S(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{v(),t.props.onMouseLeave?.(B);}}),C]})};Qo.displayName="Tooltip";var Gi={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"}},tr=180,Qt=8,Xi=({content:e,children:t,position:o="bottom",trigger:r="click",className:a,style:n})=>{let c=I(),i=Gi[c],[d,s]=useState(false),[f,p]=useState(false),[l,m]=useState("idle"),[u,b]=useState({top:0,left:0}),g=useRef(null),w=useRef(null),S=useRef(void 0),v=useCallback(()=>{s(true),p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),x=useCallback(()=>{s(false),m("closing");let T=setTimeout(()=>{p(false),m("idle");},tr);return ()=>clearTimeout(T)},[]),C=useCallback(()=>{let T=g.current,z=w.current;if(!T||!z)return;let M=T.getBoundingClientRect(),y=z.getBoundingClientRect(),D=0,P=0;switch(o){case "top":D=M.top-y.height-Qt,P=M.left+M.width/2-y.width/2;break;case "bottom":D=M.bottom+Qt,P=M.left+M.width/2-y.width/2;break;case "left":D=M.top+M.height/2-y.height/2,P=M.left-y.width-Qt;break;case "right":D=M.top+M.height/2-y.height/2,P=M.right+Qt;break}b({top:D,left:P});},[o]);useEffect(()=>{if(f)return requestAnimationFrame(C),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[f,C]),useEffect(()=>{if(!d)return;let T=z=>{let M=z.target;!g.current?.contains(M)&&!w.current?.contains(M)&&x();};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[d,x]),useEffect(()=>{if(!d)return;let T=z=>{z.key==="Escape"&&x();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,x]);let B=()=>{let T={transition:`opacity ${tr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${tr}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.97)`}:l==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.98)`,pointerEvents:"none"}},E=useCallback(()=>{r==="click"&&(d?x():v());},[r,d,x,v]),h=useCallback(()=>{r==="hover"&&(S.current&&clearTimeout(S.current),d||v());},[r,d,v]),R=useCallback(()=>{r==="hover"&&(S.current=setTimeout(()=>{x();},150));},[r,x]);useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let F=f?createPortal(jsx("div",{ref:w,className:a,onMouseEnter:()=>{r==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:R,style:{position:"fixed",top:u.top,left:u.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",...B(),...n},children:e}),document.body):null;return jsxs(Fragment,{children:[_o.cloneElement(t,{ref:g,onClick:T=>{E(),t.props.onClick?.(T);},onMouseEnter:T=>{h(),t.props.onMouseEnter?.(T);},onMouseLeave:T=>{R(),t.props.onMouseLeave?.(T);}}),F]})};Xi.displayName="Popover";var Qi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},el=({icon:e,title:t,description:o,action:r,className:a,style:n})=>{let c=I(),i=Qi[c];return jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color: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})]})};el.displayName="EmptyState";var nl={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)"}},al=({label:e,value:t,change:o,changeLabel:r,icon:a,trend:n="neutral",className:c,style:i})=>{let d=I(),s=nl[d],f=n==="up"?s.trendUp:n==="down"?s.trendDown:s.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxs("div",{className:c,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:a}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),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:f},children:[n==="up"&&jsx(TrendUpIcon,{size:14,color:f}),n==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:p(o)}),r&&jsx("span",{style:{color:s.label,marginLeft:"2px"},children:r})]})]})]})};al.displayName="Stat";var sl=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],Eu=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:a,"aria-label":n})=>{let c=sl(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,height:c,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(c*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:i,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:d,children:e.toUpperCase()})})};var Ln={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)"}},rr=({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}),Pu=({label:e,onRemove:t,style:o,className:r})=>{let a=Ln[I()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...o},className:r,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Mu=({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}),Au=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:a=true,style:n,className:c})=>{let i=Ln[I()],d=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",...n},className:c,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}),a&&d&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(rr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(rr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),r&&jsx(rr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var dl={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"}},Wn={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"]}},je=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),pl=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,ze=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},ar=(e,t=1)=>{let o=new Date(e),r=o.getDay(),a=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+a),o.setHours(0,0,0,0),o},On=(e,t,o=1)=>{let r=new Date(e,t,1),a=ar(r,o),n=[],c=new Date(a);for(let i=0;i<42;i++)n.push(new Date(c)),c.setDate(c.getDate()+1);return n},fl=(e,t=1)=>{let o=ar(e,t),r=[];for(let a=0;a<7;a++){let n=new Date(o);n.setDate(o.getDate()+a),r.push(n);}return r},Zn=(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 ul(e,t){let o=[],r=new Map,a=ze(e[0]),n=ze(e[6]),c=t.filter(i=>{let d=ze(i.date);return (i.endDate?ze(i.endDate):d)>=a&&d<=n}).sort((i,d)=>{let s=ze(i.date).getTime(),f=ze(d.date).getTime();if(s!==f)return s-f;let p=i.endDate?ze(i.endDate).getTime():s;return (d.endDate?ze(d.endDate).getTime():f)-f-(p-s)});for(let i of c){let d=ze(i.date),s=i.endDate?ze(i.endDate):d,f=d<a?a:d,p=s>n?n:s,l=e.findIndex(S=>je(S,f)),m=e.findIndex(S=>je(S,p));if(l===-1||m===-1)continue;let u=m-l+1,b=d>=a,g=0;for(;;){r.has(g)||r.set(g,new Set);let S=r.get(g),v=true;for(let x=l;x<=m;x++)if(S.has(x)){v=false;break}if(v)break;g++;}let w=r.get(g);for(let S=l;S<=m;S++)w.add(S);o.push({event:i,row:g,startCol:l,span:u,isStart:b});}return o}var gl=({value:e,onChange:t,view:o="month",events:r=[],minDate:a,maxDate:n,style:c,className:i,firstDay:d=1,locale:s="cs",initialDate:f,t:p,today:l})=>{let m=Wn[s],u=f||e||l,[b,g]=useState(()=>u.getMonth()),[w,S]=useState(()=>u.getFullYear()),[v,x]=useState(()=>ar(u,d)),[C,B]=useState(null),E=useMemo(()=>o==="week"?fl(v,d):On(w,b,d),[o,w,b,v,d]),h=useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()-7),D}):g(y=>y===0?(S(D=>D-1),11):y-1);},[o]),R=useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()+7),D}):g(y=>y===11?(S(D=>D+1),0):y+1);},[o]),F=y=>r.filter(D=>je(D.date,y)),T=o==="week"?(()=>{let y=new Date(v);return y.setDate(y.getDate()+6),v.getMonth()===y.getMonth()?`${v.getDate()}. \u2013 ${y.getDate()}. ${m.months[y.getMonth()]} ${y.getFullYear()}`:`${v.getDate()}. ${m.months[v.getMonth()].slice(0,3)} \u2013 ${y.getDate()}. ${m.months[y.getMonth()].slice(0,3)} ${y.getFullYear()}`})():`${m.months[b]} ${w}`,z={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...c},M={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:z,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:M,onClick:h,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.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:T}),jsx("button",{style:M,onClick:R,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.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:m.daysFull.map(y=>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:y},y))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:E.map((y,D)=>{let P=je(y,l),H=e?je(y,e):false,N=o==="month"&&y.getMonth()!==b,A=Zn(y,a,n),L=y.toISOString(),V=C===L,O=F(y),K="transparent",te=N?p.outsideText:p.text,U="2px solid transparent";return H?(K=p.selectedBg,te=p.selectedText):P?(K=p.todayBg,U=`2px solid ${p.todayBorder}`):V&&!A&&(K=p.hover),A&&(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:U,background:K,color:te,fontSize:"13px",fontWeight:P?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:A?"default":"pointer",opacity:A?.4:1,transition:"background-color 0.12s ease"},disabled:A,onClick:()=>{!A&&t&&t(y);},onMouseEnter:()=>!A&&B(L),onMouseLeave:()=>B(null),children:y.getDate()}),O.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map((q,X)=>jsx("div",{title:q.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:q.color||p.eventDot}},X))})]},D)})})]})},to=24,dt=2,bl=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:a=true,onNavigate:n,minDate:c,maxDate:i,style:d,className:s,firstDay:f=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:m,t:u,today:b})=>{let g=Wn[p],w=m||e||b,[S,v]=useState(()=>w.getMonth()),[x,C]=useState(()=>w.getFullYear()),[B,E]=useState(null),h=useMemo(()=>On(x,S,f),[x,S,f]),R=useMemo(()=>{let P=[];for(let H=0;H<h.length;H+=7)P.push(h.slice(H,H+7));return P},[h]),F=useMemo(()=>{let P=R[R.length-1];return P&&P.every(H=>H.getMonth()!==S)?R.slice(0,-1):R},[R,S]),T=useCallback(()=>{let P=S-1,H=x;P<0&&(P=11,H--),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),z=useCallback(()=>{let P=S+1,H=x;P>11&&(P=0,H++),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),M=`${g.months[S]} ${x}`,D={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:u.text,userSelect:"none",...d},children:[a&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:D,onClick:T,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.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:M}),jsx("button",{style:D,onClick:z,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.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 ${u.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:u.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${u.cellBorder}`},children:g.days.map((P,H)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:u.text,padding:"10px 0",borderRight:H<6?`1px solid ${u.cellBorder}`:"none"},children:P},P))}),F.map((P,H)=>{let N=ul(P,o),A=N.length>0?Math.max(...N.map(U=>U.row))+1:0,L=P.map((U,q)=>{let X=N.filter(_=>q>=_.startCol&&q<_.startCol+_.span);return Math.max(0,X.filter(_=>_.row>=l).length)}),O=Math.min(A,l)*(to+dt)+dt,te=L.some(U=>U>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:H<F.length-1?`1px solid ${u.cellBorder}`:"none"},children:P.map((U,q)=>{let X=je(U,b),_=U.getMonth()!==S,ue=e?je(U,e):false;return jsxs("div",{style:{borderRight:q<6?`1px solid ${u.cellBorder}`:"none",backgroundColor:X?u.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Zn(U,c,i)&&t(U);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:X?700:400,color:_?u.outsideText:X?"#FC4F00":u.text},children:ue?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[U.getDate(),"."]}):jsxs(Fragment,{children:[U.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${O}px`},children:N.filter(Q=>Q.startCol===q&&Q.row<l).map((Q,j)=>{let J=Q.event.id||`${pl(Q.event.date)}-${Q.event.title}`,ge=B===J,Re=Q.event.color||u.eventBarDefault,W=jsxs("div",{style:{position:"absolute",top:`${dt+Q.row*(to+dt)}px`,left:"2px",width:Q.span>1?`calc(${Q.span*100}% - 4px)`:"calc(100% - 4px)",height:`${to}px`,backgroundColor:Re,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:ge?2:1,opacity:ge?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:Q.event.tooltip?void 0:Q.event.title,onClick:ne=>{ne.stopPropagation(),r&&r(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||u.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Q.event.title})]},j);return Q.event.tooltip?jsx(Qo,{content:Q.event.tooltip,children:W},j):W})}),L[q]>0&&jsxs("div",{style:{fontSize:"10px",color:u.moreText,textAlign:"center",padding:"2px 0"},children:["+",L[q]]})]},q)})},H)})]})]})},xl=e=>{let t=I(),o=dl[t],r=useMemo(()=>{let a=new Date;return a.setHours(0,0,0,0),a},[]);return e.fullSize?jsx(bl,{...e,t:o,today:r}):jsx(gl,{...e,t:o,today:r})};xl.displayName="Calendar";var hl={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)"}},yl=({items:e,orientation:t="vertical",style:o,className:r})=>{let a=I(),n=hl[a];return t==="horizontal"?jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.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:n.line}}),i===0&&jsx("div",{style:{flex:1}}),c.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0}}),!d&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.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:c.title}),c.date&&jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:c.date}),c.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:c.description})]})]},i)})}):jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:d?0:"4px",minHeight:c.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[c.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!d&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:c.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:c.title}),c.date&&jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:c.date})]}),c.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:c.description})]})]},i)})})};yl.displayName="Timeline";var vl={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)"}},Sl=({items:e,columns:t=1,striped:o=false,style:r,className:a})=>{let n=I(),c=vl[n],i=Math.max(1,Math.round(t)),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},s=m=>i<=1?m:Math.floor(m/i),f=m=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${c.border}`,backgroundColor:o&&s(m)%2===1?c.stripedBg:c.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:c.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:a,style:d,children:e.map((m,u)=>jsxs("div",{style:f(u),children:[jsx("span",{style:p,children:m.label}),jsx("span",{style:l,children:m.value})]},u))})};Sl.displayName="DataList";var Rl={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"}},Vn=({node:e,depth:t,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c})=>{let i=e.children&&e.children.length>0,d=o.has(e.id),s=r===e.id,[f,p]=useState(false),l="transparent";return s?l=c.selectedBg:f&&(l=c.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:s?`2px solid ${c.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>n?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:m=>{m.stopPropagation(),i&&a(e.id);},children:i&&jsx(CaretRightIcon,{size:14,color:d?c.iconExpanded:c.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?c.selectedBorder:c.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?c.selectedText:c.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:c.line}}),e.children.map(m=>jsx(Vn,{node:m,depth:t+1,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c},m.id))]})]})},Tl=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:a,className:n})=>{let c=I(),i=Rl[c],[d,s]=useState(()=>new Set(r)),f=useCallback(l=>{s(m=>{let u=new Set(m);return u.has(l)?u.delete(l):u.add(l),u});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...a};return jsx("div",{className:n,style:p,role:"tree",children:e.map(l=>jsx(Vn,{node:l,depth:0,expanded:d,selectedId:o,onToggle:f,onSelect:t,t:i},l.id))})};Tl.displayName="Tree";var El={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Dl={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"}},lr=false,Il=()=>{if(lr||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){lr=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),Ko=true;},Cl=({status:e,label:t,size:r="md",pulse:o=false,color:a,style:n,className:i})=>{let l=z(),p=yl[l],s=Sl[r],f=a||vl[e]||"#888888";return o&&kl(),jsxs("span",{className:i,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...n},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[o&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,fontWeight:400,color:p.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Cl.displayName="StatusBadge";var Tl={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},jt=180,Fl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Jo=({open:e,onClose:t,title:r,children:o,footer:a,size:n="md",closeOnOverlay:i=true,closeOnEscape:l=true,showClose:p=true,className:s,style:f})=>{let u=z(),c=Tl[u],h=Fl[n],[g,d]=useState(false),[x,S]=useState("idle"),w=useRef(null),y=useRef(null);useEffect(()=>{if(e)y.current=document.activeElement,d(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}),document.body.style.overflow="hidden";else if(g){S("closing");let T=setTimeout(()=>{d(false),S("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},jt);return ()=>clearTimeout(T)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!g||!l)return;let T=m=>{m.key==="Escape"&&t();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[g,l,t]),useEffect(()=>{if(!g||!w.current)return;let T=w.current,m='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=v=>{if(v.key!=="Tab")return;let R=T.querySelectorAll(m);if(R.length===0){v.preventDefault();return}let E=R[0],P=R[R.length-1];v.shiftKey?document.activeElement===E&&(v.preventDefault(),P.focus()):document.activeElement===P&&(v.preventDefault(),E.focus());};return document.addEventListener("keydown",C),T.focus(),()=>document.removeEventListener("keydown",C)},[g]);let b=()=>{let T={transition:`opacity ${jt}ms ease`};return x==="opening"||x==="idle"?{...T,opacity:0}:x==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},k=()=>{let T={transition:`opacity ${jt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${jt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:x==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!g)return null;let D=n==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...b()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:i?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:h.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":h.maxHeight,backgroundColor:c.cardBg,border:D?"none":`1px solid ${c.cardBorder}`,borderRadius:D?0:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...k(),...f},children:[(r||p)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:r}),p&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:T=>{T.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:o}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:a})]})]}),document.body)};Jo.displayName="Modal";var Il={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},er=220,Bl=({open:e,onClose:t,position:r="right",title:o,children:a,footer:n,width:i=400,showClose:l=true,closeOnOverlay:p=true,className:s,style:f})=>{let u=z(),c=Il[u],[h,g]=useState(false),[d,x]=useState("idle"),S=useRef(null),w=typeof i=="number"?`${i}px`:i;useEffect(()=>{if(e)g(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));}),document.body.style.overflow="hidden";else if(h){x("closing");let k=setTimeout(()=>{g(false),x("idle"),document.body.style.overflow="";},er);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h)return;let k=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,t]);let y=k=>{let D=r==="right"?"100%":"-100%";return k==="opening"||k==="idle"?D:k==="open"?"0%":D},b=()=>d==="open"?1:0;return h?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:b(),transition:`opacity ${er}ms ease`,...d==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,className:s,style:{position:"absolute",top:0,bottom:0,[r]:0,width:w,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,borderLeft:r==="right"?`1px solid ${c.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${c.panelBorder}`:"none",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(d)})`,transition:`transform ${er}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||l)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:o}),l&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:a}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:n})]})]}),document.body):null};Bl.displayName="Drawer";var Hl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},rr=180,Ll=({open:e,onClose:t,children:r,side:o="bottom",title:a,showClose:n=true,style:i,className:l})=>{let p=z(),s=Hl[p],[f,u]=useState(false),[c,h]=useState("idle"),g=useRef(null);useEffect(()=>{if(e)u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(f){h("closing");let k=setTimeout(()=>{u(false),h("idle"),document.body.style.overflow="";},rr);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let k=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[f,t]);let S=k=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return k==="opening"||k==="idle"?D[o]:k==="open"?"translate(0, 0)":D[o]},w=()=>c==="open"?1:0,y={};o==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):o==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):o==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):o==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let b={};return o==="bottom"?b.borderTop=`1px solid ${s.panelBorder}`:o==="top"?b.borderBottom=`1px solid ${s.panelBorder}`:o==="right"?b.borderLeft=`1px solid ${s.panelBorder}`:o==="left"&&(b.borderRight=`1px solid ${s.panelBorder}`),f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:w(),transition:`opacity ${rr}ms ease`,...c==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":a,className:l,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:S(c),transition:`transform ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...b,...i},children:[o==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:s.handleBg}})}),(a||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:o==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[a&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:a}),n&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:r})]})]}),document.body):null};Ll.displayName="Sheet";var $l={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Wl=({items:e,separator:t="/",className:r,style:o})=>{let a=z(),n=$l[a];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((i,l)=>{let p=l===e.length-1;return jsxs(Po.Fragment,{children:[l>0&&jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),p?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]}):jsxs("a",{href:i.href??"#",onClick:i.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:s=>{s.currentTarget.style.color=n.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=n.text;},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]})]},l)})})};Wl.displayName="Breadcrumb";var Yl={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Vl={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Ul(e,t,r,o,a){let n=[],i=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&n.push(1),i>2&&(o&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let p=i;p<=l;p++)n.includes(p)||n.push(p);return l<t-1&&n.push("ellipsis-end"),(a||e+r>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var ql=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:a=true,showLast:n=true,size:i="md",className:l,style:p})=>{let s=z(),f=Yl[s],u=Vl[i];if(t<=0)return null;let c=Ul(e,t,o,a,n),h={display:"inline-flex",alignItems:"center",justifyContent:"center",width:u.size,height:u.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...p},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...h,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:g=>{e>1&&(g.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:u.iconSize,color:e<=1?f.disabledText:f.text})}),c.map((g,d)=>{if(g==="ellipsis-start"||g==="ellipsis-end")return jsx("span",{style:{...h,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},g);let x=g===e;return jsx("button",{type:"button","aria-current":x?"page":void 0,"aria-label":`Str\xE1nka ${g}`,onClick:()=>r(g),style:{...h,color:x?f.activeText:f.text,backgroundColor:x?f.activeBg:"transparent",fontWeight:x?600:500},onMouseEnter:S=>{x||(S.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:S=>{x||(S.currentTarget.style.backgroundColor="transparent");},children:g},g)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...h,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:g=>{e<t&&(g.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:u.iconSize,color:e>=t?f.disabledText:f.text})})]})};ql.displayName="Pagination";var Xl={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},jl=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:a,className:n,style:i})=>{let l=z(),p=Xl[l],[s,f]=useState(null),u=r==="horizontal",c=32,h=g=>!o||!a?false:o==="completed"?g<=t:true;return jsx("div",{className:n,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...i},children:e.map((g,d)=>{let x=d<t,S=d===t,w=d>t,y=d===e.length-1,b=h(d),k=s===d&&b,D=x?p.completedBg:k?p.hoverBg:p.activeBg,T=x?p.completedBg:S||k?p.activeBorder:p.futureBorder,m=x?p.completedText:S||k?p.activeText:p.futureText,C=k?p.activeText:w?p.labelFuture:p.labelText,v=w?p.descFuture:p.descText,R=x?p.lineCompleted:p.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:b?"pointer":"default"},onClick:()=>b&&a?.(d),onMouseEnter:()=>f(d),onMouseLeave:()=>f(null),children:[jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsx("div",{style:{width:c,height:c,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${T}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:x?jsx(CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:m,lineHeight:1,transition:"color 0.2s ease"},children:d+1})}),!y&&jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:R,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:R,margin:"6px 0",marginLeft:`${c/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:u?"center":"left",minHeight:u||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:S||k?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:g.label}),g.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:v,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:g.description})]})]},d)})})};jl.displayName="Stepper";var Ql={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},cr=180,ec=({trigger:e,items:t,position:r="bottom-left",className:o,style:a})=>{let n=z(),i=Ql[n],l=useRef(null),p=useRef(null),[s,f]=useState(false),[u,c]=useState(false),[h,g]=useState("idle"),[d,x]=useState({top:0,left:0,openAbove:false}),[S,w]=useState(-1),y=useCallback(()=>{f(true),c(true),g("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));});},[]),b=useCallback(()=>{f(false),g("closing");let m=setTimeout(()=>{c(false),g("idle");},cr);return ()=>clearTimeout(m)},[]),k=useCallback(()=>{if(!l.current)return;let m=l.current.getBoundingClientRect(),C=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,R=window.innerHeight-m.bottom-6,E=m.top-6,P=R<C&&E>R,F;r==="bottom-right"?(F=m.right-v,F<4&&(F=4)):(F=m.left,F+v>window.innerWidth-4&&(F=window.innerWidth-v-4)),x({top:P?m.top-6:m.bottom+6,left:F,openAbove:P});},[r]);useEffect(()=>{if(u)return k(),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[u,k]),useEffect(()=>{if(!s)return;let m=C=>{let v=C.target,R=l.current?.contains(v),E=p.current?.contains(v);!R&&!E&&b();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[s,b]),useEffect(()=>{if(!s)return;let m=t.map((v,R)=>({item:v,idx:R})).filter(({item:v})=>!v.divider&&!v.disabled),C=v=>{switch(v.key){case "Escape":v.preventDefault(),b();break;case "ArrowDown":{v.preventDefault();let R=m.findIndex(({idx:P})=>P===S),E=R<m.length-1?R+1:0;w(m[E]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let R=m.findIndex(({idx:P})=>P===S),E=R>0?R-1:m.length-1;w(m[E]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),S>=0){let R=t[S];R&&!R.divider&&!R.disabled&&(R.onClick?.(),b());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[s,S,t,b]);let D=()=>{let m=d.openAbove,C=m?"translateY(8px)":"translateY(-8px)",v=m?"translateY(6px)":"translateY(-6px)",R={transition:`opacity ${cr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${cr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...R,opacity:0,transform:`${C} scale(0.97)`}:h==="open"?{...R,opacity:1,transform:"translateY(0) scale(1)"}:{...R,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?createPortal(jsx("div",{ref:p,role:"menu",style:{position:"fixed",...d.openAbove?{bottom:window.innerHeight-d.top,left:d.left}:{top:d.top,left:d.left},minWidth:"180px",backgroundColor:i.dropdownBg,border:`1px solid ${i.dropdownBorder}`,borderRadius:"12px",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:d.openAbove?"bottom center":"top center",...D()},children:t.map((m,C)=>{if(m.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:i.divider,margin:"4px 6px"}},C);let v=m.danger,R=m.disabled,E=C===S,P=R?i.textDisabled:v?i.dangerText:i.text,F=v?i.dangerHover:i.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":R,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:P,backgroundColor:E?F:"transparent",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{R||(m.onClick?.(),b());},onMouseEnter:()=>{R||w(C);},onMouseLeave:()=>w(-1),children:[m.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:m.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:l,onClick:()=>{s?b():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),T]})};ec.displayName="DropdownMenu";var oc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Zg=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:a,style:n,className:i,onMouseEnter:l,onMouseLeave:p,target:s,rel:f,...u})=>{let c=z(),h=oc[c],[g,d]=useState(false),x=e==="danger"?h.danger:h.default,S={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:g?h.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:x,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},w=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:S,className:i,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{d(true),l?.(y);},onMouseLeave:y=>{d(false),p?.(y);},...u,children:r==="right"?jsxs(Fragment,{children:[a,w]}):jsxs(Fragment,{children:[w,a]})})};var sc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Qt=180,ic=({open:e,onClose:t,value:r,onChange:o,results:a,placeholder:n="Hledat...",className:i,style:l})=>{let p=z(),s=sc[p],[f,u]=useState(false),[c,h]=useState("idle"),[g,d]=useState(-1),x=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-spotlight-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let w=a;useEffect(()=>{if(e)u(true),h("opening"),d(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});else if(f){h("closing");let m=setTimeout(()=>{u(false),h("idle");},Qt);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{f&&c==="open"&&x.current?.focus();},[f,c]),useEffect(()=>{d(-1);},[a]),useEffect(()=>{if(g<0||!S.current)return;let m=S.current.querySelector(`[data-spotlight-index="${g}"]`);m&&m.scrollIntoView({block:"nearest"});},[g]);let y=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),d(C=>{let v=C+1;return v>=w.length?0:v});break}case "ArrowUp":{m.preventDefault(),d(C=>{let v=C-1;return v<0?w.length-1:v});break}case "Enter":{m.preventDefault(),g>=0&&g<w.length&&(w[g].onSelect(),t());break}}},[w,g,t]),b=[],k=new Map;w.forEach((m,C)=>{let v=k.get(m.category);v||(v=[],k.set(m.category,v),b.push({category:m.category,items:v})),v.push({...m,flatIndex:C});});let D=()=>{let m={transition:`opacity ${Qt}ms ease`};return c==="opening"||c==="idle"?{...m,opacity:0}:c==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},T=()=>{let m={transition:`opacity ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:y,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...T(),...l},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsx("input",{ref:x,type:"text",value:r,onChange:m=>o(m.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:b.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):b.map(m=>jsxs("div",{role:"group","aria-label":m.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:m.category}),m.items.map(C=>{let v=C.flatIndex===g;return jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>d(C.flatIndex),onMouseLeave:()=>d(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]})]},C.id)})]},m.category))})]})]}),document.body):null};ic.displayName="Spotlight";var pc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},to=180,fc=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let i=z(),l=pc[i],[p,s]=useState(false),[f,u]=useState("idle"),[c,h]=useState(""),[g,d]=useState(-1),x=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-commandmenu-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let w=r.map(m=>({...m,items:m.items.filter(C=>C.label.toLowerCase().includes(c.toLowerCase())||C.description?.toLowerCase().includes(c.toLowerCase()))})).filter(m=>m.items.length>0),y=w.flatMap(m=>m.items);useEffect(()=>{if(e)h(""),d(-1),s(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let m=setTimeout(()=>{s(false),u("idle");},to);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{p&&f==="open"&&x.current?.focus();},[p,f]),useEffect(()=>{d(-1);},[c]),useEffect(()=>{if(g<0||!S.current)return;let m=S.current.querySelector(`[data-cmd-index="${g}"]`);m&&m.scrollIntoView({block:"nearest"});},[g]);let b=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),d(C=>{let v=C+1;return v>=y.length?0:v});break}case "ArrowUp":{m.preventDefault(),d(C=>{let v=C-1;return v<0?y.length-1:v});break}case "Enter":{m.preventDefault(),g>=0&&g<y.length&&(y[g].onSelect(),t());break}}},[y,g,t]),k=()=>{let m={transition:`opacity ${to}ms ease`};return f==="opening"||f==="idle"?{...m,opacity:0}:f==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},D=()=>{let m={transition:`opacity ${to}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${to}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},T=0;return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...k()},onKeyDown:b,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:n,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:l.cardBg,border:`1px solid ${l.cardBorder}`,borderRadius:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...D(),...a},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${l.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:l.textSecondary}),jsx("input",{ref:x,type:"text",value:c,onChange:m=>h(m.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:l.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):w.map(m=>jsxs("div",{role:"group","aria-label":m.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:l.categoryText,userSelect:"none"},children:m.label}),m.items.map(C=>{let v=T++,R=v===g;return jsxs("div",{role:"option","aria-selected":R,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:R?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>d(v),onMouseLeave:()=>d(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:R?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:l.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]}),C.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:C.shortcut})]},C.id)})]},m.label))})]})]}),document.body):null};fc.displayName="CommandMenu";var uc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},gc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:a=64,style:n,className:i})=>{let l=z(),p=uc[l],s=t?a:o;return jsx("aside",{className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:`${s}px`,minWidth:`${s}px`,height:"100%",backgroundColor:p.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${p.border}`,boxSizing:"border-box",overflow:"hidden",transition:"width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1)",...n},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:"padding 180ms cubic-bezier(0.16, 1, 0.3, 1)"},children:e})})};gc.displayName="AppSidebar";var yc={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},vc=({label:e,icon:t,active:r=false,defaultExpanded:o=false,expanded:a,onExpandedChange:n,onClick:i,children:l,collapsed:p=false,disabled:s=false,style:f,className:u})=>{let c=z(),h=yc[c],g=Po.Children.count(l)>0,d=a!==void 0,[x,S]=useState(o),w=d?a:x,[y,b]=useState(false),k=useRef(null),[D,T]=useState(0);useEffect(()=>{k.current&&T(k.current.scrollHeight);},[l,w]);let m=useCallback(()=>{d?n?.(!a):S(P=>{let F=!P;return n?.(F),F});},[d,a,n]),C=useCallback(()=>{s||(g&&m(),i?.());},[s,g,m,i]),v=s?`${h.text}66`:r?h.textActive:y?h.textHover:h.text,R=s?`${h.icon}66`:r?h.iconActive:y?h.iconHover:h.icon,E=r?h.activeBg:y&&!s?h.hoverBg:"transparent";return p?jsx("button",{type:"button",onClick:C,disabled:s,title:e,className:u,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:E,color:R,cursor:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:v},children:e[0]})}):jsxs("div",{className:u,style:f,children:[jsxs("button",{type:"button",onClick:C,disabled:s,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:E,color:v,cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:r?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:R,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),g&&jsx(CaretDownIcon,{size:14,color:y?h.chevronHover:h.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:w?"rotate(0deg)":"rotate(-90deg)"}})]}),g&&jsx("div",{ref:k,style:{overflow:"hidden",maxHeight:w?`${D}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:l})})]})};vc.displayName="SidebarItem";var Sc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},kc=({logo:e,children:t,actions:r,sticky:o=true,glass:a=true,style:n,className:i})=>{let l=z(),p=Sc[l];return jsxs("header",{className:i,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?p.background:p.backgroundSolid,borderBottom:`1px solid ${p.border}`,boxShadow:p.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),r&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};kc.displayName="Navbar";var Ec={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Dc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Yn=({variant:e="info",title:t,content:r,icon:o,onClose:a,role:n="alert",style:i,className:l})=>{let p=z(),s=Ec[p],{border:f,background:u}=s[e],c=o??Dc[e];return jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:u,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...i},className:l,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.iconColor},children:c}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:s.text,lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:r})]})]}),a&&jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:s.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var Vn=3,Pc=.06,Un=12,ro=320,qn=createContext(null),Mc=0,Ac=()=>`sm-toast-${++Mc}-${Date.now()}`,k0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:a=16,maxToasts:n=5,duration:i=4e3})=>{let[l,p]=useState([]),s=useCallback(c=>{p(h=>h.map(g=>g.id===c?{...g,lifecycle:"leaving"}:g)),setTimeout(()=>{p(h=>h.filter(g=>g.id!==c));},ro+100);},[]),f=useCallback(c=>{let h=Ac(),g=c.duration??i,d={id:h,variant:c.variant??"info",title:c.title,content:c.content,icon:c.icon,duration:g,lifecycle:"entering",height:0};return p(x=>{let S=[...x,d];return S.length>n?S.slice(S.length-n):S}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(x=>x.map(S=>S.id===h?{...S,lifecycle:"visible"}:S));});}),g>0&&setTimeout(()=>s(h),g),h},[n,s,i]),u=useCallback((c,h)=>{p(g=>g.map(d=>d.id===c&&d.height!==h?{...d,height:h}:d));},[]);return jsxs(qn.Provider,{value:{toast:f,dismiss:s},children:[e,l.length>0&&jsx(Lc,{toasts:l,position:t,toastWidth:r,gap:o,offset:a,onDismiss:s,onHeightMeasured:u})]})},Hc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:a,isBottom:n,appeared:i,toastWidth:l,onDismiss:p,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",u=!i||f,c=a?1:Math.max(.7,1-r*Pc),h=a?0:r*Un,g=n?-h:h,x=u?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${c}) translateY(${g}px)`,S=u?0:a?1:Math.max(.4,1-r*.18),w=!a&&r>=Vn,y=o-r,b=useCallback(k=>{k&&t.height===0&&s(t.id,k.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:b,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:x,opacity:w?0:S,zIndex:y,transition:[`transform ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${ro}ms ease`].join(", "),pointerEvents:r===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Yn,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>p(t.id),style:{width:l,maxWidth:"100%",boxSizing:"border-box"}})})},Lc=({toasts:e,position:t,toastWidth:r,gap:o,offset:a,onDismiss:n,onHeightMeasured:i})=>{let[l,p]=useState(false),[s,f]=useState(new Set),u=t.startsWith("bottom"),c=t.endsWith("right"),h=t.endsWith("center");useEffect(()=>{f(b=>{let k=new Set(b);return e.forEach(D=>{D.lifecycle==="visible"&&k.add(D.id);}),[...k].forEach(D=>{e.find(T=>T.id===D)||k.delete(D);}),k});},[e]);let x=(e[e.length-1]?.height||80)+Math.min(e.length-1,Vn-1)*Un,S=e.reduce((b,k)=>b+(k.height||80),0)+Math.max(0,e.length-1)*o,w=l?S:x,y=h?{left:"50%",transform:"translateX(-50%)"}:c?{right:a}:{left:a};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${a*2}px)`,height:w,...u?{bottom:a}:{top:a},...y,transition:`height ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),"aria-live":"polite","aria-atomic":"false",children:e.map((b,k)=>{let D=e.length-1-k,T=s.has(b.id),m=b.lifecycle==="leaving",C=!T||m,v;if(l&&!C){let E=e.slice(k+1).reduce((F,I)=>F+(I.height||80)+o,0);v=`translateY(${u?-E:E}px)`;}return jsx(Hc,{item:b,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:n,onHeightMeasured:i,expandedTransformOverride:v},b.id)})})},C0=()=>{let e=useContext(qn);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var Uc={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},qc={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},z0=({variant:e="info",title:t,children:r,icon:o,closable:a=false,onClose:n,className:i,style:l})=>{let p=z(),s=Uc[p],f=qc[e],[u,c]=useState(true);if(!u)return null;let h=p==="light",g=h?f.borderLight:f.border,d=h?f.backgroundLight:f.background,x=h?f.iconColorLight:f.iconColor,w=o??{info:jsx(Info,{size:24,color:x}),success:jsx(CheckCircle,{size:24,color:x}),warning:jsx(Warning,{size:24,color:x}),error:jsx(XCircle,{size:24,color:x})}[e],y=()=>{c(false),n?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:d,borderLeft:`4px solid ${g}`,borderRadius:"4px",boxSizing:"border-box",...l},className:i,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:s.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:r})]}),a&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:s.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var Qc={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},ed={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},td=({variant:e="info",title:t,children:r,closable:o=false,onClose:a,icon:n,action:i,style:l,className:p})=>{let s=z(),f=Qc[s],u=ed[e],[c,h]=useState(true);if(!c)return null;let g=s==="light",d=g?u.bgLight:u.bg,x=g?u.accentLight:u.accent,w=n??{info:jsx(Info,{size:20,color:x}),success:jsx(CheckCircle,{size:20,color:x}),warning:jsx(Warning,{size:20,color:x}),error:jsx(XCircle,{size:20,color:x})}[e],y=()=>{h(false),a?.();};return jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:d,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...l},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:r})]}),i&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:i}),o&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};td.displayName="Notification";var Xn={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},od={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Kn="sm-ui-progress-stripes",rd=()=>{if(typeof document>"u"||document.getElementById(Kn))return;let e=document.createElement("style");e.id=Kn,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},W0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:a,striped:n=false,animated:i=false,className:l,style:p})=>{let s=z(),f=Xn[s],u=od[t],c=Math.max(0,Math.min(100,e));n&&i&&rd();let h=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...i?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...p},className:l,children:[(a||o)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(c),"%"]})]}),jsx("div",{style:{width:"100%",height:u.height,backgroundColor:f.trackBg,borderRadius:u.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${c}%`,height:"100%",backgroundColor:r,borderRadius:u.height/2,transition:"width 0.3s ease",...h}})})]})},Z0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:a=false,label:n,className:i,style:l})=>{let p=z(),s=Xn[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,c=2*Math.PI*u,h=c-f/100*c;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...l},className:i,children:[jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:s.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:h,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:n})]})};var sd={sm:16,md:24,lg:40},q0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:a})=>{let[n,i]=useState(0),l=useRef(void 0),p=useRef(void 0);useEffect(()=>{let u=c=>{p.current===void 0&&(p.current=c),i((c-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let s=typeof e=="number"?e:sd[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var ld={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},cd=({open:e,onConfirm:t,onCancel:r,title:o,description:a,confirmLabel:n="Potvrdit",cancelLabel:i="Zru\u0161it",variant:l="default",loading:p=false,style:s,className:f})=>{let u=z(),c=ld[u],[h,g]=useState(false),[d,x]=useState(false),S=l==="danger",w=S?d?c.dangerHover:c.dangerBg:d?c.confirmHover:c.confirmBg,y=S?c.dangerText:c.confirmText;return jsx(Jo,{open:e,onClose:r,title:o,size:"sm",className:f,style:s,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:r,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:h?c.cancelHover:c.cancelBg,border:`1px solid ${c.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:i}),jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:w,border:"none",borderRadius:"6px",cursor:p?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:p?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:p?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.descriptionText},children:a})})};cd.displayName="ConfirmDialog";var xd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},md={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},hd=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return false}},yd=({text:e,children:t,size:r="md",variant:o="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:i,style:l,className:p})=>{let s=z(),f=xd[s],u=md[r],[c,h]=useState(false),[g,d]=useState(false),x=useRef(null),S=useCallback(async()=>{await hd(e)&&(h(true),i?.(),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{h(false),x.current=null;},2e3));},[e,i]),w=c?f.successColor:g?f.iconHover:f.iconColor,y=c?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:g?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:w,...l},children:t}):o==="icon"?jsx("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:g?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:w,...l},children:jsx(y,{size:u.iconSize,color:w})}):jsxs("button",{type:"button","aria-label":c?n:a,onClick:S,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:g?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:c?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsx(y,{size:u.iconSize,color:c?f.successColor:f.buttonText}),c?n:a]})};yd.displayName="CopyButton";var Sd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},pb=({orientation:e="horizontal",label:t,className:r,style:o})=>{let a=z(),n=Sd[a];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.border,flexShrink:0,...o}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...o}})};var Cd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Rd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},gb=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:a=false,fullWidth:n=false,children:i,className:l,style:p})=>jsx("div",{className:l,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Cd[r],justifyContent:Rd[o],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...p},children:i});var Td={sm:640,md:768,lg:1024,xl:1280},mb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:a,style:n})=>{let i=typeof e=="number"?e:Td[e],l=typeof t=="number"?`${t}px`:t;return jsx("div",{className:a,style:{maxWidth:`${i}px`,width:"100%",padding:l,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:o})};var Bd={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ta="smDragListPulse",Pd=`@keyframes ${ta}{0%,100%{opacity:1}50%{opacity:0.5}}`;function hr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=hr(r.children,t);if(o)return o}}return null}function xr(e,t,r){let o=hr(e,t);if(!o||!o.children)return false;for(let a of o.children)if(a.id===r||xr([a],a.id,r))return true;return false}function oa(e,t){let r=null;return [e.reduce((a,n)=>{if(n.id===t)return r=n,a;if(n.children){let[i,l]=oa(n.children,t);l&&(r=l),a.push({...n,children:i.length>0?i:void 0});}else a.push(n);return a},[]),r]}function mr(e,t,r,o){if(r==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],o],expanded:true}:n.children?{...n,children:mr(n.children,t,r,o)}:n);let a=[];for(let n of e)n.id===t?r==="before"?(a.push(o),a.push(n)):(a.push(n),a.push(o)):n.children?a.push({...n,children:mr(n.children,t,r,o)}):a.push(n);return a}function ra(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:ra(r.children,t)}:r)}function na(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:na(o.children,t,r)}:o)}var ea=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ta} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),aa=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:s,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:h,tokens:g})=>{let[d,x]=useState(false),[S,w]=useState(false),[y,b]=useState(false),k=useRef(false),D=useRef(null),T=e.children&&e.children.length>0,m=e.expanded??false,C=a===e.id,v=a!==null,R=h==="handle",E=n?.targetId===e.id,P=E&&n?.position==="before",F=E&&n?.position==="after",I=E&&n?.position==="inside",B=C?"transparent":I?g.nestHighlight:S&&!v?g.itemHoverBg:g.itemBg,H=I?g.nestBorder:C?"transparent":g.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[P&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ea,{color:g.dropIndicator})}),jsxs("div",{ref:D,draggable:true,onDragStart:A=>{if(R&&!k.current){A.preventDefault();return}if(k.current=false,A.dataTransfer.effectAllowed="move",A.dataTransfer.setData("text/plain",e.id),D.current){let N=D.current.cloneNode(true);N.style.width=`${D.current.offsetWidth}px`,N.style.opacity="0.85",N.style.transform="rotate(1.5deg) scale(1.02)",N.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",N.style.position="fixed",N.style.top="-1000px",document.body.appendChild(N),A.dataTransfer.setDragImage(N,A.nativeEvent.offsetX,A.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(N));}i(e.id);},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),l(A,e.id,t);},onDragLeave:A=>{let N=A.relatedTarget;D.current&&N&&D.current.contains(N)||(A.stopPropagation(),p(A,D.current),w(false));},onDrop:A=>{A.preventDefault(),A.stopPropagation(),s(A);},onDragEnd:f,onMouseEnter:()=>w(true),onMouseLeave:()=>w(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":g.text,cursor:v?"grabbing":R?"default":"grab",opacity:C?.35:1,backgroundColor:B,borderWidth:"1px",borderColor:H,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:I?`inset 0 0 0 1px ${g.nestBorder}`:S&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:I?"scale(1.01)":"scale(1)"},children:[!c&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:v?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),onMouseDown:()=>{k.current=true;},children:jsx(DotsSixVertical,{size:14,color:d?g.gripHover:g.gripColor})}),I&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:g.dropIndicator})}),T?jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),u(e.id);},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?g.chevronHover:g.chevron,style:{transition:"transform 0.2s ease",transform:m?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:c?c(e,{handleProps:{onMouseDown:()=>{k.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:m,toggleExpand:()=>u(e.id),hasChildren:!!T}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),F&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ea,{color:g.dropIndicator})}),T&&m&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${g.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(A=>jsx(aa,{item:A,depth:t+1,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:s,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:h,tokens:g},A.id))})]})},Md=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:a=3,dragMode:n="full",className:i,style:l})=>{let p=z(),s=Bd[p],[f,u]=useState(null),[c,h]=useState(null),g=useRef(null),d=useRef(void 0),x=useRef(void 0),S=useRef(null),w=useCallback(m=>{u(m);},[]),y=useCallback((m,C,v)=>{if(!f||f===C||xr(e,f,C))return;d.current&&(clearTimeout(d.current),d.current=void 0);let R=m.currentTarget.getBoundingClientRect(),E=m.clientY-R.top,P=R.height,F;o&&v<a?E<P*.25?F="before":E>P*.75?F="after":F="inside":E<P*.35?F="before":E>P*.65?F="after":S.current?.targetId===C?F=S.current.position:F=E<P/2?"before":"after";let I={targetId:C,position:F},B=hr(e,C);F==="inside"&&B?.children&&B.children.length>0&&!B.expanded?(S.current?.targetId!==C||S.current?.position!=="inside")&&(x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{t(na(e,C,true));},600)):x.current&&(clearTimeout(x.current),x.current=void 0),S.current=I,h(I);},[f,e,o,a,t]),b=useCallback((m,C)=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{h(null),S.current=null;},60),x.current&&(clearTimeout(x.current),x.current=void 0);},[]),k=useCallback(()=>{if(d.current&&(clearTimeout(d.current),d.current=void 0),x.current&&(clearTimeout(x.current),x.current=void 0),!f||!c)return;let{targetId:m,position:C}=c;if(f===m||xr(e,f,m))return;let[v,R]=oa(e,f);if(!R)return;let E=mr(v,m,C,R);t(E),u(null),h(null),S.current=null;},[f,c,e,t]),D=useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=void 0),x.current&&(clearTimeout(x.current),x.current=void 0),u(null),h(null),S.current=null;},[]),T=useCallback(m=>{t(ra(e,m));},[e,t]);return useEffect(()=>()=>{d.current&&clearTimeout(d.current),x.current&&clearTimeout(x.current);},[]),jsxs("div",{ref:g,className:i,style:{display:"flex",flexDirection:"column",gap:"6px",...l},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Pd}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,backgroundColor:s.itemBg,borderRadius:"10px",border:`1px solid ${s.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(m=>jsx(aa,{item:m,depth:0,allowNesting:o,maxDepth:a,draggedId:f,dropState:c,onDragStart:w,onDragOver:y,onDragLeave:b,onDrop:k,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:n,tokens:s},m.id))]})};Md.displayName="DragList";export{wi as Accordion,Ri as AccordionItem,z0 as Alert,gc as AppSidebar,yu as Avatar,wu as Badge,Wl as Breadcrumb,ya as Button,ll as Calendar,yi as Card,Or as Checkbox,Yr as CheckboxGroup,Gs as ColorPicker,ja as Combobox,fc as CommandMenu,cd as ConfirmDialog,mb as Container,yd as CopyButton,xi as DataGrid,fl as DataList,Wr as DatePicker,is as DatePickerGroup,pb as Divider,Md as DragList,Bl as Drawer,ec as DropdownMenu,Ui as EmptyState,tn as FileUpload,Tr as Input,Ud as InputGroup,Zg as Link,Jo as Modal,kc as Navbar,td as Notification,Ha as NumberInput,ii as OTPInput,ql as Pagination,Wi as Popover,W0 as ProgressBar,Z0 as ProgressCircle,yo as Radio,Ur as RadioGroup,Qs as Rating,$s as SegmentedControl,Br as Select,Za as SelectGroup,Ll as Sheet,vc as SidebarItem,nt as Skeleton,Qr as Slider,q0 as Spinner,ic as Spotlight,gb as Stack,Xi as Stat,Cl as StatusBadge,jl as Stepper,Gr as Switch,Ei as Tab,Di as TabPanel,ui as Table,zi as Tabs,Ru as Tag,Tu as TagItem,Kr as Textarea,dl as Timeline,Yn as Toast,k0 as ToasterProvider,Mi as Tooltip,ml as Tree,z as useTheme,C0 as useToast};//# sourceMappingURL=index.mjs.map
|
|
18
|
+
`,document.head.appendChild(t),lr=true;},Bl=({status:e,label:t,size:o="md",pulse:r=false,color:a,style:n,className:c})=>{let i=I(),d=El[i],s=zl[o],f=a||Dl[e]||"#888888";return r&&Il(),jsxs("span",{className:c,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...n},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[r&&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})]})};Bl.displayName="StatusBadge";var Al={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"}},no=180,Hl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},pr=({open:e,onClose:t,title:o,children:r,footer:a,size:n="md",closeOnOverlay:c=true,closeOnEscape:i=true,showClose:d=true,className:s,style:f})=>{let p=I(),l=Al[p],m=Hl[n],[u,b]=useState(false),[g,w]=useState("idle"),S=useRef(null),v=useRef(null);useEffect(()=>{if(e)v.current=document.activeElement,b(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}),document.body.style.overflow="hidden";else if(u){w("closing");let E=setTimeout(()=>{b(false),w("idle"),document.body.style.overflow="",v.current instanceof HTMLElement&&v.current.focus();},no);return ()=>clearTimeout(E)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!u||!i)return;let E=h=>{h.key==="Escape"&&t();};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[u,i,t]),useEffect(()=>{if(!u||!S.current)return;let E=S.current,h='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',R=F=>{if(F.key!=="Tab")return;let T=E.querySelectorAll(h);if(T.length===0){F.preventDefault();return}let z=T[0],M=T[T.length-1];F.shiftKey?document.activeElement===z&&(F.preventDefault(),M.focus()):document.activeElement===M&&(F.preventDefault(),z.focus());};return document.addEventListener("keydown",R),E.focus(),()=>document.removeEventListener("keydown",R)},[u]);let x=()=>{let E={transition:`opacity ${no}ms ease`};return g==="opening"||g==="idle"?{...E,opacity:0}:g==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},C=()=>{let E={transition:`opacity ${no}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${no}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...E,opacity:0,transform:"scale(0.95)"}:g==="open"?{...E,opacity:1,transform:"scale(1)"}:{...E,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!u)return null;let B=n==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:B?"stretch":"center",justifyContent:"center",...x()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:c?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:m.width,maxWidth:B?void 0:"calc(100vw - 32px)",maxHeight:B?"100vh":m.maxHeight,backgroundColor:l.cardBg,border:B?"none":`1px solid ${l.cardBorder}`,borderRadius:B?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...C(),...f},children:[(o||d)&&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}),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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:E=>{E.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}),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)};pr.displayName="Modal";var Wl={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)"}},ur=220,Ol=({open:e,onClose:t,position:o="right",title:r,children:a,footer:n,width:c=400,showClose:i=true,closeOnOverlay:d=true,className:s,style:f})=>{let p=I(),l=Wl[p],[m,u]=useState(false),[b,g]=useState("idle"),w=useRef(null),S=typeof c=="number"?`${c}px`:c;useEffect(()=>{if(e)u(true),g("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));}),document.body.style.overflow="hidden";else if(m){g("closing");let C=setTimeout(()=>{u(false),g("idle"),document.body.style.overflow="";},ur);return ()=>clearTimeout(C)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!m)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[m,t]);let v=C=>{let B=o==="right"?"100%":"-100%";return C==="opening"||C==="idle"?B:C==="open"?"0%":B},x=()=>b==="open"?1:0;return m?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:x(),transition:`opacity ${ur}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",top:0,bottom:0,[o]:0,width:S,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(${v(b)})`,transition:`transform ${ur}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},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:C=>{C.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:C=>{C.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:a}),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):null};Ol.displayName="Drawer";var Ul={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)"}},xr=180,ql=({open:e,onClose:t,children:o,side:r="bottom",title:a,showClose:n=true,style:c,className:i})=>{let d=I(),s=Ul[d],[f,p]=useState(false),[l,m]=useState("idle"),u=useRef(null);useEffect(()=>{if(e)p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(f){m("closing");let C=setTimeout(()=>{p(false),m("idle"),document.body.style.overflow="";},xr);return ()=>clearTimeout(C)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[f,t]);let w=C=>{let B={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return C==="opening"||C==="idle"?B[r]:C==="open"?"translate(0, 0)":B[r]},S=()=>l==="open"?1:0,v={};r==="bottom"?(v.bottom=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderTopLeftRadius="16px",v.borderTopRightRadius="16px"):r==="top"?(v.top=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderBottomLeftRadius="16px",v.borderBottomRightRadius="16px"):r==="right"?(v.top=0,v.bottom=0,v.right=0,v.width="400px",v.maxWidth="100vw"):r==="left"&&(v.top=0,v.bottom=0,v.left=0,v.width="400px",v.maxWidth="100vw");let x={};return r==="bottom"?x.borderTop=`1px solid ${s.panelBorder}`:r==="top"?x.borderBottom=`1px solid ${s.panelBorder}`:r==="right"?x.borderLeft=`1px solid ${s.panelBorder}`:r==="left"&&(x.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:S(),transition:`opacity ${xr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":a,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:w(l),transition:`transform ${xr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...v,...x,...c},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:s.handleBg}})}),(a||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[a&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:a}),n&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:C=>{C.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:o})]})]}),document.body):null};ql.displayName="Sheet";var Gl={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)"}},Xl=({items:e,separator:t="/",className:o,style:r})=>{let a=I(),n=Gl[a];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((c,i)=>{let d=i===e.length-1;return jsxs(_o.Fragment,{children:[i>0&&jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),d?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[c.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]}):jsxs("a",{href:c.href??"#",onClick:c.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:s=>{s.currentTarget.style.color=n.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=n.text;},children:[c.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]})]},i)})})};Xl.displayName="Breadcrumb";var Jl={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)"}},Ql={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ec(e,t,o,r,a){let n=[],c=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&n.push(1),c>2&&(r&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let d=c;d<=i;d++)n.includes(d)||n.push(d);return i<t-1&&n.push("ellipsis-end"),(a||e+o>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var tc=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:a=true,showLast:n=true,size:c="md",className:i,style:d})=>{let s=I(),f=Jl[s],p=Ql[c];if(t<=0)return null;let l=ec(e,t,r,a,n),m={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",...d},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...m,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:u=>{e>1&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:p.iconSize,color:e<=1?f.disabledText:f.text})}),l.map((u,b)=>{if(u==="ellipsis-start"||u==="ellipsis-end")return jsx("span",{style:{...m,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},u);let g=u===e;return jsx("button",{type:"button","aria-current":g?"page":void 0,"aria-label":`Str\xE1nka ${u}`,onClick:()=>o(u),style:{...m,color:g?f.activeText:f.text,backgroundColor:g?f.activeBg:"transparent",fontWeight:g?600:500},onMouseEnter:w=>{g||(w.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:w=>{g||(w.currentTarget.style.backgroundColor="transparent");},children:u},u)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...m,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:u=>{e<t&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:p.iconSize,color:e>=t?f.disabledText:f.text})})]})};tc.displayName="Pagination";var ac={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)"}},sc=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:a,className:n,style:c})=>{let i=I(),d=ac[i],[s,f]=useState(null),p=o==="horizontal",l=32,m=u=>!r||!a?false:r==="completed"?u<=t:true;return jsx("div",{className:n,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...c},children:e.map((u,b)=>{let g=b<t,w=b===t,S=b>t,v=b===e.length-1,x=m(b),C=s===b&&x,B=g?d.completedBg:C?d.hoverBg:d.activeBg,E=g?d.completedBg:w||C?d.activeBorder:d.futureBorder,h=g?d.completedText:w||C?d.activeText:d.futureText,R=C?d.activeText:S?d.labelFuture:d.labelText,F=S?d.descFuture:d.descText,T=g?d.lineCompleted:d.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:v?"0 0 auto":"1 1 0",minWidth:0,cursor:x?"pointer":"default"},onClick:()=>x&&a?.(b),onMouseEnter:()=>f(b),onMouseLeave:()=>f(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:B,border:`2px solid ${E}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:g?jsx(CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:h,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!v&&jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:T,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:T,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||v?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:w||C?600:500,color:R,lineHeight:"normal",transition:"color 0.2s ease"},children:u.label}),u.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:u.description})]})]},b)})})};sc.displayName="Stepper";var lc={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"}},kr=180,cc=({trigger:e,items:t,position:o="bottom-left",className:r,style:a})=>{let n=I(),c=lc[n],i=useRef(null),d=useRef(null),[s,f]=useState(false),[p,l]=useState(false),[m,u]=useState("idle"),[b,g]=useState({top:0,left:0,openAbove:false}),[w,S]=useState(-1),v=useCallback(()=>{f(true),l(true),u("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),x=useCallback(()=>{f(false),u("closing");let h=setTimeout(()=>{l(false),u("idle");},kr);return ()=>clearTimeout(h)},[]),C=useCallback(()=>{if(!i.current)return;let h=i.current.getBoundingClientRect(),R=d.current?.offsetHeight??200,F=d.current?.offsetWidth??200,T=window.innerHeight-h.bottom-6,z=h.top-6,M=T<R&&z>T,y;o==="bottom-right"?(y=h.right-F,y<4&&(y=4)):(y=h.left,y+F>window.innerWidth-4&&(y=window.innerWidth-F-4)),g({top:M?h.top-6:h.bottom+6,left:y,openAbove:M});},[o]);useEffect(()=>{if(p)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[p,C]),useEffect(()=>{if(!s)return;let h=R=>{let F=R.target,T=i.current?.contains(F),z=d.current?.contains(F);!T&&!z&&x();};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,x]),useEffect(()=>{if(!s)return;let h=t.map((F,T)=>({item:F,idx:T})).filter(({item:F})=>!F.divider&&!F.disabled),R=F=>{switch(F.key){case "Escape":F.preventDefault(),x();break;case "ArrowDown":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T<h.length-1?T+1:0;S(h[z]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T>0?T-1:h.length-1;S(h[z]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),w>=0){let T=t[w];T&&!T.divider&&!T.disabled&&(T.onClick?.(),x());}break}};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[s,w,t,x]);let B=()=>{let h=b.openAbove,R=h?"translateY(8px)":"translateY(-8px)",F=h?"translateY(6px)":"translateY(-6px)",T={transition:`opacity ${kr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${kr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...T,opacity:0,transform:`${R} scale(0.97)`}:m==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},E=p?createPortal(jsx("div",{ref:d,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:c.dropdownBg,border:`1px solid ${c.dropdownBorder}`,borderRadius:"12px",boxShadow:c.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...B()},children:t.map((h,R)=>{if(h.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:c.divider,margin:"4px 6px"}},R);let F=h.danger,T=h.disabled,z=R===w,M=T?c.textDisabled:F?c.dangerText:c.text,y=F?c.dangerHover:c.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":T,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:M,backgroundColor:z?y:"transparent",cursor:T?"not-allowed":"pointer",opacity:T?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{T||(h.onClick?.(),x());},onMouseEnter:()=>{T||S(R);},onMouseLeave:()=>S(-1),children:[h.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:h.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label})]},R)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:i,onClick:()=>{s?x():v();},style:{display:"inline-flex",cursor:"pointer"},children:e}),E]})};cc.displayName="DropdownMenu";var pc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},jg=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:a,style:n,className:c,onMouseEnter:i,onMouseLeave:d,target:s,rel:f,...p})=>{let l=I(),m=pc[l],[u,b]=useState(false),g=e==="danger"?m.danger:m.default,w={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:u?m.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:g,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},S=r&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:w,className:c,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:v=>{b(true),i?.(v);},onMouseLeave:v=>{b(false),d?.(v);},...p,children:o==="right"?jsxs(Fragment,{children:[a,S]}):jsxs(Fragment,{children:[S,a]})})};var bc={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"}},so=180,xc=({open:e,onClose:t,value:o,onChange:r,results:a,placeholder:n="Hledat...",className:c,style:i})=>{let d=I(),s=bc[d],[f,p]=useState(false),[l,m]=useState("idle"),[u,b]=useState(-1),g=useRef(null),w=useRef(null);useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=a;useEffect(()=>{if(e)p(true),m("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});else if(f){m("closing");let h=setTimeout(()=>{p(false),m("idle");},so);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{f&&l==="open"&&g.current?.focus();},[f,l]),useEffect(()=>{b(-1);},[a]),useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let v=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=S.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?S.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<S.length&&(S[u].onSelect(),t());break}}},[S,u,t]),x=[],C=new Map;S.forEach((h,R)=>{let F=C.get(h.category);F||(F=[],C.set(h.category,F),x.push({category:h.category,items:F})),F.push({...h,flatIndex:R});});let B=()=>{let h={transition:`opacity ${so}ms ease`};return l==="opening"||l==="idle"?{...h,opacity:0}:l==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},E=()=>{let h={transition:`opacity ${so}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${so}ms cubic-bezier(0.16, 1, 0.3, 1)`};return l==="opening"||l==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:l==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...B()},onKeyDown:v,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:c,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:g,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color: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:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:x.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(h=>jsxs("div",{role:"group","aria-label":h.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:h.category}),h.items.map(R=>{let F=R.flatIndex===u;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:()=>b(R.flatIndex),onMouseLeave:()=>b(-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)})]},h.category))})]})]}),document.body):null};xc.displayName="Spotlight";var vc={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"}},lo=180,Sc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let c=I(),i=vc[c],[d,s]=useState(false),[f,p]=useState("idle"),[l,m]=useState(""),[u,b]=useState(-1),g=useRef(null),w=useRef(null);useEffect(()=>{let h="sm-commandmenu-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=o.map(h=>({...h,items:h.items.filter(R=>R.label.toLowerCase().includes(l.toLowerCase())||R.description?.toLowerCase().includes(l.toLowerCase()))})).filter(h=>h.items.length>0),v=S.flatMap(h=>h.items);useEffect(()=>{if(e)m(""),b(-1),s(true),p("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>p("open"));});else if(d){p("closing");let h=setTimeout(()=>{s(false),p("idle");},lo);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{d&&f==="open"&&g.current?.focus();},[d,f]),useEffect(()=>{b(-1);},[l]),useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-cmd-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let x=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=v.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?v.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<v.length&&(v[u].onSelect(),t());break}}},[v,u,t]),C=()=>{let h={transition:`opacity ${lo}ms ease`};return f==="opening"||f==="idle"?{...h,opacity:0}:f==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},B=()=>{let h={transition:`opacity ${lo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${lo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},E=0;return d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...C()},onKeyDown:x,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:n,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",...B(),...a},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:g,type:"text",value:l,onChange:h=>m(h.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:w,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:S.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"}):S.map(h=>jsxs("div",{role:"group","aria-label":h.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.categoryText,userSelect:"none"},children:h.label}),h.items.map(R=>{let F=E++,T=F===u;return jsxs("div",{role:"option","aria-selected":T,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(F),onMouseLeave:()=>b(-1),children:[R.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?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)})]},h.label))})]})]}),document.body):null};Sc.displayName="CommandMenu";var kc={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)"}},wr=250,Cc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:a=64,style:n,className:c})=>{let i=I(),d=kc[i],s=t?a:r;return jsx("aside",{className:c,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 ${wr}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`,...n},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cc.displayName="AppSidebar";var Ec={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)"}},Dc=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:a,onExpandedChange:n,onClick:c,children:i,collapsed:d=false,disabled:s=false,style:f,className:p})=>{let l=I(),m=Ec[l],u=_o.Children.count(i)>0,b=a!==void 0,[g,w]=useState(r),S=b?a:g,[v,x]=useState(false),C=useRef(null),[B,E]=useState(0);useEffect(()=>{C.current&&E(C.current.scrollHeight);},[i,S]);let h=useCallback(()=>{b?n?.(!a):w(M=>{let y=!M;return n?.(y),y});},[b,a,n]),R=useCallback(()=>{s||(u&&h(),c?.());},[s,u,h,c]),F=s?`${m.text}66`:o?m.textActive:v?m.textHover:m.text,T=s?`${m.icon}66`:o?m.iconActive:v?m.iconHover:m.icon,z=o?m.activeBg:v&&!s?m.hoverBg:"transparent";return d?jsx("button",{type:"button",onClick:R,disabled:s,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:z,color:T,cursor:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxs("div",{className:p,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:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),u&&jsx(CaretDownIcon,{size:14,color:v?m.chevronHover:m.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:S?"rotate(0deg)":"rotate(-90deg)"}})]}),u&&jsx("div",{ref:C,style:{overflow:"hidden",maxHeight:S?`${B}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})})]})};Dc.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)"}},Ic=({logo:e,children:t,actions:o,sticky:r=true,glass:a=true,style:n,className:c})=>{let i=I(),d=zc[i];return jsxs("header",{className:c,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?d.background:d.backgroundSolid,borderBottom:`1px solid ${d.border}`,boxShadow:d.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Ic.displayName="Navbar";var Lc={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"}},Nc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},sa=({variant:e="info",title:t,content:o,icon:r,onClose:a,role:n="alert",style:c,className:i})=>{let d=I(),s=Lc[d],{border:f,background:p}=s[e],l=r??Nc[e];return jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:p,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...c},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: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:s.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:o})]})]}),a&&jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:s.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var ia=3,Zc=.06,la=12,po=320,ca=createContext(null),Yc=0,Vc=()=>`sm-toast-${++Yc}-${Date.now()}`,B0=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:a=16,maxToasts:n=5,duration:c=4e3})=>{let[i,d]=useState([]),s=useCallback(l=>{d(m=>m.map(u=>u.id===l?{...u,lifecycle:"leaving"}:u)),setTimeout(()=>{d(m=>m.filter(u=>u.id!==l));},po+100);},[]),f=useCallback(l=>{let m=Vc(),u=l.duration??c,b={id:m,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:u,lifecycle:"entering",height:0};return d(g=>{let w=[...g,b];return w.length>n?w.slice(w.length-n):w}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(g=>g.map(w=>w.id===m?{...w,lifecycle:"visible"}:w));});}),u>0&&setTimeout(()=>s(m),u),m},[n,s,c]),p=useCallback((l,m)=>{d(u=>u.map(b=>b.id===l&&b.height!==m?{...b,height:m}:b));},[]);return jsxs(ca.Provider,{value:{toast:f,dismiss:s},children:[e,i.length>0&&jsx(qc,{toasts:i,position:t,toastWidth:o,gap:r,offset:a,onDismiss:s,onHeightMeasured:p})]})},Uc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:a,isBottom:n,appeared:c,toastWidth:i,onDismiss:d,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",p=!c||f,l=a?1:Math.max(.7,1-o*Zc),m=a?0:o*la,u=n?-m:m,g=p?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${u}px)`,w=p?0:a?1:Math.max(.4,1-o*.18),S=!a&&o>=ia,v=r-o,x=useCallback(C=>{C&&t.height===0&&s(t.id,C.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:x,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:g,opacity:S?0:w,zIndex:v,transition:[`transform ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${po}ms ease`].join(", "),pointerEvents:o===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(sa,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},qc=({toasts:e,position:t,toastWidth:o,gap:r,offset:a,onDismiss:n,onHeightMeasured:c})=>{let[i,d]=useState(false),[s,f]=useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),m=t.endsWith("center");useEffect(()=>{f(x=>{let C=new Set(x);return e.forEach(B=>{B.lifecycle==="visible"&&C.add(B.id);}),[...C].forEach(B=>{e.find(E=>E.id===B)||C.delete(B);}),C});},[e]);let g=(e[e.length-1]?.height||80)+Math.min(e.length-1,ia-1)*la,w=e.reduce((x,C)=>x+(C.height||80),0)+Math.max(0,e.length-1)*r,S=i?w:g,v=m?{left:"50%",transform:"translateX(-50%)"}:l?{right:a}:{left:a};return jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${a*2}px)`,height:S,...p?{bottom:a}:{top:a},...v,transition:`height ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((x,C)=>{let B=e.length-1-C,E=s.has(x.id),h=x.lifecycle==="leaving",R=!E||h,F;if(i&&!R){let z=e.slice(C+1).reduce((y,D)=>y+(D.height||80)+r,0);F=`translateY(${p?-z:z}px)`;}return jsx(Uc,{item:x,depthIndex:B,stackSize:e.length,expanded:i,isBottom:p,appeared:E,toastWidth:o,onDismiss:n,onHeightMeasured:c,expandedTransformOverride:F},x.id)})})},P0=()=>{let e=useContext(ca);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 ed={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)"}},td={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"}},W0=({variant:e="info",title:t,children:o,icon:r,closable:a=false,onClose:n,className:c,style:i})=>{let d=I(),s=ed[d],f=td[e],[p,l]=useState(true);if(!p)return null;let m=d==="light",u=m?f.borderLight:f.border,b=m?f.backgroundLight:f.background,g=m?f.iconColorLight:f.iconColor,S=r??{info:jsx(Info,{size:24,color:g}),success:jsx(CheckCircle,{size:24,color:g}),warning:jsx(Warning,{size:24,color:g}),error:jsx(XCircle,{size:24,color:g})}[e],v=()=>{l(false),n?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${u}`,borderRadius:"4px",boxSizing:"border-box",...i},className:c,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:s.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:o})]}),a&&jsx("button",{type:"button",onClick:v,"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 ld={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)"}},cd={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"}},dd=({variant:e="info",title:t,children:o,closable:r=false,onClose:a,icon:n,action:c,style:i,className:d})=>{let s=I(),f=ld[s],p=cd[e],[l,m]=useState(true);if(!l)return null;let u=s==="light",b=u?p.bgLight:p.bg,g=u?p.accentLight:p.accent,S=n??{info:jsx(Info,{size:20,color:g}),success:jsx(CheckCircle,{size:20,color:g}),warning:jsx(Warning,{size:20,color:g}),error:jsx(XCircle,{size:20,color:g})}[e],v=()=>{m(false),a?.();};return jsxs("div",{role:"status",className:d,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:b,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:o})]}),c&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:c}),r&&jsx("button",{type:"button",onClick:v,"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"})})]})};dd.displayName="Notification";var ua={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},pd={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},fa="sm-ui-progress-stripes",fd=()=>{if(typeof document>"u"||document.getElementById(fa))return;let e=document.createElement("style");e.id=fa,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},K0=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:a,striped:n=false,animated:c=false,className:i,style:d})=>{let s=I(),f=ua[s],p=pd[t],l=Math.max(0,Math.min(100,e));n&&c&&fd();let m=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...c?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:i,children:[(a||r)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),r&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsx("div",{style:{width:"100%",height:p.height,backgroundColor:f.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",...m}})})]})},j0=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:a=false,label:n,className:c,style:i})=>{let d=I(),s=ua[d],f=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,m=l-f/100*l;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},className:c,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:s.trackBg,strokeWidth:o}),jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:m,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:n})]})};var bd={sm:16,md:24,lg:40},ob=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:a})=>{let[n,c]=useState(0),i=useRef(void 0),d=useRef(void 0);useEffect(()=>{let p=l=>{d.current===void 0&&(d.current=l),c((l-d.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let s=typeof e=="number"?e:bd[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":o,className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var md={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"}},hd=({open:e,onConfirm:t,onCancel:o,title:r,description:a,confirmLabel:n="Potvrdit",cancelLabel:c="Zru\u0161it",variant:i="default",loading:d=false,style:s,className:f})=>{let p=I(),l=md[p],[m,u]=useState(false),[b,g]=useState(false),w=i==="danger",S=w?b?l.dangerHover:l.dangerBg:b?l.confirmHover:l.confirmBg,v=w?l.dangerText:l.confirmText;return jsx(pr,{open:e,onClose:o,title:r,size:"sm",className:f,style:s,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:m?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:c}),jsx("button",{type:"button",onClick:t,disabled:d,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:S,border:"none",borderRadius:"6px",cursor:d?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:v,lineHeight:"normal",opacity:d?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:d?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:a})})};hd.displayName="ConfirmDialog";var Rd={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"}},Td={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"}},Fd=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}},Ed=({text:e,children:t,size:o="md",variant:r="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:c,style:i,className:d})=>{let s=I(),f=Rd[s],p=Td[o],[l,m]=useState(false),[u,b]=useState(false),g=useRef(null),w=useCallback(async()=>{await Fd(e)&&(m(true),c?.(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(false),g.current=null;},2e3));},[e,c]),S=l?f.successColor:u?f.iconHover:f.iconColor,v=l?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:S,...i},children:t}):r==="icon"?jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:S,...i},children:jsx(v,{size:p.iconSize,color:S})}):jsxs("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:u?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:p.fontSize,fontWeight:500,color:l?f.successColor:f.buttonText,lineHeight:"normal",...i},children:[jsx(v,{size:p.iconSize,color:l?f.successColor:f.buttonText}),l?n:a]})};Ed.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"}},Sb=({orientation:e="horizontal",label:t,className:o,style:r})=>{let a=I(),n=zd[a];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.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:n.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...r}})};var Bd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Pd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},wb=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:a=false,fullWidth:n=false,children:c,className:i,style:d})=>jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Bd[o],justifyContent:Pd[r],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...d},children:c});var Ad={sm:640,md:768,lg:1024,xl:1280},Fb=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:a,style:n})=>{let c=typeof e=="number"?e:Ad[e],i=typeof t=="number"?`${t}px`:t;return jsx("div",{className:a,style:{maxWidth:`${c}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:r})};var Od={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)"}},ha="smDragListPulse",Zd=`@keyframes ${ha}{0%,100%{opacity:1}50%{opacity:0.5}}`;function Br(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=Br(o.children,t);if(r)return r}}return null}function zr(e,t,o){let r=Br(e,t);if(!r||!r.children)return false;for(let a of r.children)if(a.id===o||zr([a],a.id,o))return true;return false}function ya(e,t){let o=null;return [e.reduce((a,n)=>{if(n.id===t)return o=n,a;if(n.children){let[c,i]=ya(n.children,t);i&&(o=i),a.push({...n,children:c.length>0?c:void 0});}else a.push(n);return a},[]),o]}function Ir(e,t,o,r){if(o==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],r],expanded:true}:n.children?{...n,children:Ir(n.children,t,o,r)}:n);let a=[];for(let n of e)n.id===t?o==="before"?(a.push(r),a.push(n)):(a.push(n),a.push(r)):n.children?a.push({...n,children:Ir(n.children,t,o,r)}):a.push(n);return a}function va(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:va(o.children,t)}:o)}function Sa(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Sa(r.children,t,o)}:r)}var ma=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ha} 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}})}),ka=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u})=>{let[b,g]=useState(false),[w,S]=useState(false),[v,x]=useState(false),C=useRef(false),B=useRef(null),E=e.children&&e.children.length>0,h=e.expanded??false,R=a===e.id,F=a!==null,T=m==="handle",z=n?.targetId===e.id,M=z&&n?.position==="before",y=z&&n?.position==="after",D=z&&n?.position==="inside",P=R?"transparent":D?u.nestHighlight:w&&!F?u.itemHoverBg:u.itemBg,H=D?u.nestBorder:R?"transparent":u.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ma,{color:u.dropIndicator})}),jsxs("div",{ref:B,draggable:true,onDragStart:N=>{if(T&&!C.current){N.preventDefault();return}if(C.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),B.current){let A=B.current.cloneNode(true);A.style.width=`${B.current.offsetWidth}px`,A.style.opacity="0.85",A.style.transform="rotate(1.5deg) scale(1.02)",A.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",A.style.position="fixed",A.style.top="-1000px",document.body.appendChild(A),N.dataTransfer.setDragImage(A,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(A));}c(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),i(N,e.id,t);},onDragLeave:N=>{let A=N.relatedTarget;B.current&&A&&B.current.contains(A)||(N.stopPropagation(),d(N,B.current),S(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),s(N);},onDragEnd:f,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:R?"transparent":u.text,cursor:F?"grabbing":T?"default":"grab",opacity:R?.35:1,backgroundColor:P,borderWidth:"1px",borderColor:H,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:D?`inset 0 0 0 1px ${u.nestBorder}`:w&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:D?"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:R?"hidden":"visible"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onMouseDown:()=>{C.current=true;},children:jsx(DotsSixVertical,{size:14,color:b?u.gripHover:u.gripColor})}),D&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:u.dropIndicator})}),E?jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),p(e.id);},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:R?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:v?u.chevronHover:u.chevron,style:{transition:"transform 0.2s ease",transform:h?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:R?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{C.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:R,depth:t,isExpanded:h,toggleExpand:()=>p(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})]})})]}),y&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ma,{color:u.dropIndicator})}),E&&h&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${u.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsx(ka,{item:N,depth:t+1,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u},N.id))})]})},Yd=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:a=3,dragMode:n="full",className:c,style:i})=>{let d=I(),s=Od[d],[f,p]=useState(null),[l,m]=useState(null),u=useRef(null),b=useRef(void 0),g=useRef(void 0),w=useRef(null),S=useCallback(h=>{p(h);},[]),v=useCallback((h,R,F)=>{if(!f||f===R||zr(e,f,R))return;b.current&&(clearTimeout(b.current),b.current=void 0);let T=h.currentTarget.getBoundingClientRect(),z=h.clientY-T.top,M=T.height,y;r&&F<a?z<M*.25?y="before":z>M*.75?y="after":y="inside":z<M*.35?y="before":z>M*.65?y="after":w.current?.targetId===R?y=w.current.position:y=z<M/2?"before":"after";let D={targetId:R,position:y},P=Br(e,R);y==="inside"&&P?.children&&P.children.length>0&&!P.expanded?(w.current?.targetId!==R||w.current?.position!=="inside")&&(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t(Sa(e,R,true));},600)):g.current&&(clearTimeout(g.current),g.current=void 0),w.current=D,m(D);},[f,e,r,a,t]),x=useCallback((h,R)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{m(null),w.current=null;},60),g.current&&(clearTimeout(g.current),g.current=void 0);},[]),C=useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),!f||!l)return;let{targetId:h,position:R}=l;if(f===h||zr(e,f,h))return;let[F,T]=ya(e,f);if(!T)return;let z=Ir(F,h,R,T);t(z),p(null),m(null),w.current=null;},[f,l,e,t]),B=useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),p(null),m(null),w.current=null;},[]),E=useCallback(h=>{t(va(e,h));},[e,t]);return useEffect(()=>()=>{b.current&&clearTimeout(b.current),g.current&&clearTimeout(g.current);},[]),jsxs("div",{ref:u,className:c,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Zd}}),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(h=>jsx(ka,{item:h,depth:0,allowNesting:r,maxDepth:a,draggedId:f,dropState:l,onDragStart:S,onDragOver:v,onDragLeave:x,onDrop:C,onDragEnd:B,onToggleExpand:E,renderItem:o,dragMode:n,tokens:s},h.id))]})};Yd.displayName="DragList";export{Ai as Accordion,Mi as AccordionItem,W0 as Alert,Cc as AppSidebar,Eu as Avatar,Mu as Badge,Xl as Breadcrumb,Da as Button,xl as Calendar,Di as Card,on as Checkbox,rn as CheckboxGroup,ri as ColorPicker,is as Combobox,Sc as CommandMenu,hd as ConfirmDialog,Fb as Container,Ed as CopyButton,Ti as DataGrid,Sl as DataList,en as DatePicker,ms as DatePickerGroup,Sb as Divider,Yd as DragList,Ol as Drawer,cc as DropdownMenu,el as EmptyState,xn as FileUpload,$r as Input,ep as InputGroup,jg as Link,pr as Modal,Ic as Navbar,dd as Notification,qa as NumberInput,mi as OTPInput,tc as Pagination,Xi as Popover,K0 as ProgressBar,j0 as ProgressCircle,Po as Radio,an as RadioGroup,ci as Rating,Xs as SegmentedControl,Ur as Select,ja as SelectGroup,ql as Sheet,Dc as SidebarItem,lt as Skeleton,gn as Slider,ob as Spinner,xc as Spotlight,wb as Stack,al as Stat,Bl as StatusBadge,sc as Stepper,ln as Switch,Ni as Tab,$i as TabPanel,Ci as Table,Wi as Tabs,Pu as Tag,Au as TagItem,dn as Textarea,yl as Timeline,sa as Toast,B0 as ToasterProvider,Qo as Tooltip,Tl as Tree,I as useTheme,P0 as useToast};//# sourceMappingURL=index.mjs.map
|
|
19
19
|
//# sourceMappingURL=index.mjs.map
|