@smworks-cz/ui-kit 1.5.1 → 1.6.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.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict';var zn=require('react'),jsxRuntime=require('react/jsx-runtime'),reactDom=require('react-dom'),react=require('@phosphor-icons/react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var zn__default=/*#__PURE__*/_interopDefault(zn);var A=()=>{let[e,t]=zn.useState("light");return zn.useEffect(()=>{if(typeof window>"u")return;let o=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let n=window.matchMedia("(prefers-color-scheme: dark)"),r=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};n.addEventListener("change",r);let a=new MutationObserver(l=>{l.forEach(s=>{s.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{n.removeEventListener("change",r),a.disconnect();}},[]),e};var Ie={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"},Ii={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"}},Pi=({size:e=14})=>{let[t,o]=zn.useState(0),n=zn.useRef(void 0),r=zn.useRef(void 0);return zn.useEffect(()=>{let a=l=>{r.current===void 0&&(r.current=l),o((l-r.current)/800*360%360),n.current=requestAnimationFrame(a);};return n.current=requestAnimationFrame(a),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Mi=zn__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:n="left",loading:r=false,loadingPosition:a="replace",fullWidth:l=false,children:s,style:g,className:b,...c},d)=>{let[i,u]=zn.useState(false),m=A()==="dark",p=typeof c.href=="string",R=r||(p?false:!!c.disabled),z=s!=null&&s!=="",h=o!=null,S=(h||r)&&!z,{paddingText:x,paddingSquare:I,fontSize:v,gap:E,height:y}=Ii[t],D={display:l?"flex":"inline-flex",width:l?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:z&&(h||r)?E:void 0,padding:S?I:x,height:y,borderRadius:"8px",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:R?"none":void 0},B=(()=>{switch(e){case "primary":return {backgroundColor:i?Ie.primaryHover:Ie.primary,color:Ie.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:"1px solid transparent"};case "outline":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:`1px solid ${i?m?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":m?Ie.borderDark:Ie.borderLight}`};case "danger":return {backgroundColor:i?"#FF5252":"#EF3838",color:Ie.white,border:"1px solid transparent"}}})(),k=a==="after-text",M=jsxRuntime.jsx(Pi,{size:parseInt(v)-1}),F=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:r&&!k?M:o}),w=r&&k?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:M}):null,T=r&&!k||h,L=n==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z&&jsxRuntime.jsx("span",{children:s}),w,T&&F]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T&&F,z&&jsxRuntime.jsx("span",{children:s}),w]}),N={style:{...D,...B,...g},className:b,onMouseEnter:W=>{u(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{u(false),c.onMouseLeave?.(W);}};if(p){let{href:W,target:V,rel:q,...Z}=c;return jsxRuntime.jsx("a",{ref:d,href:W,target:V,rel:q??(V==="_blank"?"noopener noreferrer":void 0),"aria-disabled":R||void 0,...Z,...N,children:L})}let{disabled:C,type:P="button",...H}=c;return jsxRuntime.jsx("button",{ref:d,type:P,disabled:R,"aria-busy":r||void 0,...H,...N,children:L})});Mi.displayName="Button";var Li={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ht=({content:e,children:t,position:o="top",mode:n="anchor",autoFlip:r=true,offset:a=[0,0],delay:l=0,openDelay:s,closeDelay:g=0,className:b,style:c})=>{let d=A(),i=Li[d],[u,f]=zn.useState(false),[m,p]=zn.useState({top:0,left:0}),[R,z]=zn.useState(o),h=zn.useRef(null),S=zn.useRef(null),x=zn.useRef(void 0),I=zn.useRef(void 0),v=zn.useRef({x:0,y:0}),E=6,y=8,D=s??l,B=zn.useCallback((C,P,H)=>{if(!r)return C;let W=window.innerWidth,V=window.innerHeight;switch(C){case "top":if(P.top-H.height-y<0)return "bottom";break;case "bottom":if(P.bottom+H.height+y>V)return "top";break;case "left":if(P.left-H.width-y<0)return "right";break;case "right":if(P.right+H.width+y>W)return "left";break}return C},[r]),k=zn.useCallback(()=>{let C=h.current,P=S.current;if(!C||!P)return;let H=C.getBoundingClientRect(),W=P.getBoundingClientRect(),V=B(o,H,W);z(V);let q=0,Z=0,[$,G]=a;switch(V){case "top":q=H.top-W.height-y+G,Z=H.left+H.width/2-W.width/2+$;break;case "bottom":q=H.bottom+y+G,Z=H.left+H.width/2-W.width/2+$;break;case "left":q=H.top+H.height/2-W.height/2+G,Z=H.left-W.width-y+$;break;case "right":q=H.top+H.height/2-W.height/2+G,Z=H.right+y+$;break}let X=window.innerWidth,ee=window.innerHeight;Z=Math.max(4,Math.min(Z,X-W.width-4)),q=Math.max(4,Math.min(q,ee-W.height-4)),p({top:q,left:Z});},[o,a,B]),M=zn.useCallback(()=>{let C=S.current;if(!C)return;let P=C.getBoundingClientRect(),[H,W]=a,V=v.current.x,q=v.current.y,Z=0,$=0;switch(o){case "top":Z=q-P.height-y+W,$=V-P.width/2+H;break;case "bottom":Z=q+y+16+W,$=V-P.width/2+H;break;case "left":Z=q-P.height/2+W,$=V-P.width-y+H;break;case "right":Z=q-P.height/2+W,$=V+y+H;break}let G=window.innerWidth,X=window.innerHeight;$=Math.max(4,Math.min($,G-P.width-4)),Z=Math.max(4,Math.min(Z,X-P.height-4)),p({top:Z,left:$}),z(o);},[o,a]);zn.useEffect(()=>{u&&requestAnimationFrame(()=>{n==="cursor"?M():k();});},[u,n,k,M]);let F=zn.useCallback(C=>{v.current={x:C.clientX,y:C.clientY},n==="cursor"&&u&&M();},[n,u,M]),w=zn.useCallback(C=>{v.current={x:C.clientX,y:C.clientY},I.current&&(clearTimeout(I.current),I.current=void 0),x.current=setTimeout(()=>f(true),D);},[D]),T=zn.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g>0?I.current=setTimeout(()=>f(false),g):f(false);},[g]);zn.useEffect(()=>()=>{x.current&&clearTimeout(x.current),I.current&&clearTimeout(I.current);},[]);let L=(()=>{if(n==="cursor")return {display:"none"};let C={position:"absolute",width:0,height:0,border:`${E}px solid transparent`};switch(R){case "top":return {...C,bottom:-E,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...C,top:-E,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...C,right:-E,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...C,left:-E,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),N=u?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:S,className:b,style:{position:"fixed",top:m.top,left:m.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",...c},children:[e,jsxRuntime.jsx("div",{style:L})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[zn__default.default.cloneElement(t,{ref:h,onMouseEnter:C=>{w(C),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{T(),t.props.onMouseLeave?.(C);},onMouseMove:C=>{F(C),t.props.onMouseMove?.(C);}}),N]})};ht.displayName="Tooltip";var Oi=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Zi={dark:{defaultBg:"transparent",defaultHover:"rgba(255,255,255,0.08)",defaultColor:"#ffffff",ghostBg:"transparent",ghostHover:"rgba(255,255,255,0.06)",ghostColor:"#ACACAC",outlineBg:"transparent",outlineHover:"rgba(255,255,255,0.06)",outlineColor:"#ffffff",outlineBorder:"rgba(255,255,255,0.3)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.12)",dangerColor:"#EF3838"},light:{defaultBg:"transparent",defaultHover:"rgba(0,0,0,0.06)",defaultColor:"#1a1a1a",ghostBg:"transparent",ghostHover:"rgba(0,0,0,0.04)",ghostColor:"#888888",outlineBg:"transparent",outlineHover:"rgba(0,0,0,0.04)",outlineColor:"#1a1a1a",outlineBorder:"rgba(0,0,0,0.2)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.08)",dangerColor:"#EF3838"}},Yi={xs:{size:24,iconSize:12,radius:"4px"},sm:{size:28,iconSize:14,radius:"6px"},md:{size:36,iconSize:16,radius:"8px"},lg:{size:44,iconSize:20,radius:"8px"}},Vi=({icon:e,onClick:t,label:o,variant:n="default",size:r="md",disabled:a=false,loading:l=false,tooltip:s,style:g,className:b})=>{let c=A(),d=Zi[c],i=Yi[r],[u,f]=zn.useState(false),m={default:{bg:u?d.defaultHover:d.defaultBg,color:d.defaultColor,border:"none"},ghost:{bg:u?d.ghostHover:d.ghostBg,color:d.ghostColor,border:"none"},outline:{bg:u?d.outlineHover:d.outlineBg,color:d.outlineColor,border:`1px solid ${d.outlineBorder}`},danger:{bg:u?d.dangerHover:d.dangerBg,color:d.dangerColor,border:"none"}}[n],p=jsxRuntime.jsx("button",{type:"button","aria-label":o,disabled:a||l,onClick:t,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),className:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:i.size,height:i.size,borderRadius:i.radius,backgroundColor:m.bg,color:m.color,border:m.border,cursor:a||l?"not-allowed":"pointer",opacity:a?.4:1,transition:"background-color 0.12s ease",outline:"none",padding:0,flexShrink:0,boxSizing:"border-box",...g},children:l?jsxRuntime.jsx(Oi,{size:i.iconSize}):e});return s?jsxRuntime.jsx(ht,{content:s,children:p}):p};Vi.displayName="IconButton";var Gi={dark:{label:"#ffffff",helperText:"#ACACAC",errorText:"#EF3838",required:"#EF3838"},light:{label:"#1a1a1a",helperText:"#888888",errorText:"#EF3838",required:"#EF3838"}},_i=({label:e,required:t=false,helperText:o,error:n,children:r,inline:a=false,labelWidth:l="120px",style:s,className:g})=>{let b=A(),c=Gi[b],d=zn.useId(),i=typeof l=="number"?`${l}px`:l,u=e?jsxRuntime.jsxs("label",{htmlFor:d,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none",display:"flex",alignItems:"center",gap:"2px",...a?{width:i,flexShrink:0,paddingTop:"10px"}:{}},children:[e,t&&jsxRuntime.jsx("span",{style:{color:c.required,marginLeft:"2px"},children:"*"})]}):null,f=n||o;return jsxRuntime.jsxs("div",{className:g,style:{display:"flex",flexDirection:a?"row":"column",gap:a?"12px":"6px",...s},children:[u,jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px",minWidth:0},children:[r,f&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:n?c.errorText:c.helperText},children:n||o})]})]})};_i.displayName="FormField";var es=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Er={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"}},ts={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"}},zr=zn__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:n,helperText:r,loading:a=false,clearable:l=false,passwordToggle:s,size:g="md",fullWidth:b=false,style:c,className:d,inputStyle:i,disabled:u,required:f,value:m,onChange:p,onFocus:R,onBlur:z,type:h,...S},x)=>{let I=A(),v=Er[I],E=zn.useId(),y=S.id??E,[D,B]=zn.useState(false),[k,M]=zn.useState(false),F=h==="password",w=s??F,T=F&&k?"text":h,L=u||a,N=!!n,C=typeof n=="string"?n:void 0,P=m!=null&&m!=="",H=l&&P&&!L&&!w,W=ts[g],V=()=>{if(!p)return;p({target:{value:""},currentTarget:{value:""}});},q=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,Z=w&&!L?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":k?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(re=>!re),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:k?jsxRuntime.jsx(react.EyeSlash,{color:v.placeholder,size:W.iconSize}):jsxRuntime.jsx(react.Eye,{color:v.placeholder,size:W.iconSize})}):null,$=a?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsxRuntime.jsx(es,{size:W.iconSize,color:v.placeholder})}):Z||(H?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:V,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:W.iconSize-2,color:v.placeholder})}):o==="right"&&q?q:null),G=o==="left"?q:null,X={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:L?v.backgroundDisabled:v.background,border:`1px solid ${N?v.borderError:D?v.borderFocus:v.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},ee={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:v.text,cursor:L?"not-allowed":"text",...i},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},te={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:b?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:b?"100%":void 0,...c},className:d,children:[e&&jsxRuntime.jsxs("label",{htmlFor:y,style:J,children:[e,f&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:y,style:X,children:[G,jsxRuntime.jsx("input",{ref:x,id:y,type:T,disabled:u,required:f,readOnly:a||S.readOnly,value:m,onChange:p,style:ee,onFocus:re=>{B(true),R?.(re);},onBlur:re=>{B(false),z?.(re);},...S}),$]}),C&&jsxRuntime.jsx("span",{style:{...te,color:v.borderError},children:C}),!C&&r&&jsxRuntime.jsx("span",{style:{...te,color:v.helperText},children:r})]})});zr.displayName="Input";var Hf=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l,g={display:"flex",flexDirection:"column",gap:"8px",...n},b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Er[a].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:g,className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:b,children:e}),o??jsxRuntime.jsx(zr,{id:s})]})};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",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"}},ds={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"}},ps=zn__default.default.forwardRef(({value:e,onChange:t,min:o,max:n,step:r=1,label:a,error:l,disabled:s=false,size:g="md",variant:b="default",prefix:c,suffix:d,style:i,className:u},f)=>{let m=A(),p=cs[m],z=zn.useId(),h=ds[g],[S,x]=zn.useState(false),[I,v]=zn.useState(null),E=!!l,y=typeof l=="string"?l:void 0,D=zn.useCallback(G=>{let X=G;return o!==void 0&&X<o&&(X=o),n!==void 0&&X>n&&(X=n),X},[o,n]),B=zn.useCallback(()=>{t(D(e+r));},[e,r,t,D]),k=zn.useCallback(()=>{t(D(e-r));},[e,r,t,D]),M=zn.useRef(null),F=zn.useRef(null),w=zn.useCallback(G=>{s||(G(),F.current=setTimeout(()=>{M.current=setInterval(G,80);},400));},[s]),T=zn.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);zn.useEffect(()=>()=>T(),[T]);let L=G=>{let X=G.target.value;if(X===""||X==="-")return;let ee=parseFloat(X);isNaN(ee)||t(D(ee));},N=()=>{x(false),t(D(e));},C=o===void 0||e>o,P=n===void 0||e<n,H={display:"flex",alignItems:"center",backgroundColor:s?p.backgroundDisabled:p.background,border:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden",height:h.height},W=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:h.buttonPadding,border:"none",background:I===G&&X&&!s?p.buttonHoverBg:p.buttonBg,color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:h.height,userSelect:"none"}),V={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"normal",color:p.text,textAlign:"center",cursor:s?"not-allowed":"text",MozAppearance:"textfield"},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:h.fontSize,color:p.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:I===G&&X&&!s?p.buttonHoverBg:"transparent",color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return b==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsxRuntime.jsx("label",{htmlFor:z,style:q,children:a}),jsxRuntime.jsxs("div",{style:H,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:h.padding,minWidth:0},children:[c&&jsxRuntime.jsx("span",{style:Z,children:c}),jsxRuntime.jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:{...V,textAlign:"left"}}),d&&jsxRuntime.jsx("span",{style:Z,children:d})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:$("up",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:$("down",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsxRuntime.jsx("label",{htmlFor:z,style:q,children:a}),jsxRuntime.jsxs("div",{style:H,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:W("minus",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("minus"),children:jsxRuntime.jsx(react.Minus,{size:h.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[c&&jsxRuntime.jsx("span",{style:Z,children:c}),jsxRuntime.jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:V}),d&&jsxRuntime.jsx("span",{style:Z,children:d})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:W("plus",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("plus"),children:jsxRuntime.jsx(react.Plus,{size:h.iconSize})})]}),y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]})});ps.displayName="NumberInput";var Pr=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ar={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",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)"}},rn=180,Hr=({options:e,value:t,onChange:o,multiple:n=false,searchable:r=false,clearable:a=false,disabled:l=false,loading:s=false,error:g,onSearch:b,creatable:c=false,onCreateOption:d,chipDisplay:i="inline",renderOption:u,renderValue:f,label:m,placeholder:p="Vyberte\u2026",maxDropdownHeight:R=240,style:z,className:h})=>{let S=A(),x=Ar[S],I=zn.useId(),v=zn.useRef(null),E=zn.useRef(null),y=zn.useRef(null),D=zn.useRef(null),[B,k]=zn.useState(false),[M,F]=zn.useState(false),[w,T]=zn.useState("idle"),[L,N]=zn.useState(""),[C,P]=zn.useState(-1),[H,W]=zn.useState({top:0,left:0,width:0,openAbove:false}),V=l||s,q=!!g,Z=typeof g=="string"?g:void 0,$=zn.useCallback(()=>{k(true),F(true),T("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>T("open"));});},[]),G=zn.useCallback(()=>{k(false),T("closing"),N("");let _=setTimeout(()=>{F(false),T("idle");},rn);return ()=>clearTimeout(_)},[]),X=n?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],ee=_=>X.includes(_),[J,te]=zn.useState(null),[re,be]=zn.useState(false),we=zn.useRef(void 0);zn.useEffect(()=>{if(!b||!L){te(null);return}return be(true),we.current&&clearTimeout(we.current),we.current=setTimeout(()=>{b(L).then(_=>{te(_),be(false);}).catch(()=>{te([]),be(false);});},300),()=>{we.current&&clearTimeout(we.current);}},[L,b]);let Y=b?J??e:L?e.filter(_=>(_.label??_.value).toLowerCase().includes(L.toLowerCase())):e,j=zn.useCallback(()=>{if(!v.current)return;let _=v.current.getBoundingClientRect(),se=E.current?.offsetHeight??R+60,le=window.innerHeight-_.bottom-6,Ae=_.top-6,st=le<se&&Ae>le;W({top:st?_.top-6:_.bottom+6,left:_.left,width:_.width,openAbove:st});},[R]);zn.useEffect(()=>{if(M)return j(),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[M,j]);let ie=zn.useCallback(_=>{if(o)if(n){let se=ee(_)?X.filter(le=>le!==_):[...X,_];o(se);}else o(_),G();},[n,o,X,G]),Me=zn.useCallback(_=>{_.stopPropagation(),o&&(o(n?[]:null),N(""));},[n,o]),Je=()=>{V||(B?G():$(),P(-1));},We=_=>{if(!V)switch(_.key){case "ArrowDown":_.preventDefault(),B?P(se=>Math.min(se+1,Y.length-1)):($(),P(0));break;case "ArrowUp":_.preventDefault(),P(se=>Math.max(se-1,0));break;case "Enter":case " ":_.preventDefault(),B&&C>=0&&Y[C]&&!Y[C].disabled?ie(Y[C].value):B||($(),P(0));break;case "Escape":G();break;case "Tab":G();break}};zn.useEffect(()=>{C>=0&&D.current&&D.current.children[C]?.scrollIntoView({block:"nearest"});},[C]),zn.useEffect(()=>{if(!B)return;let _=se=>{let le=se.target,Ae=v.current?.contains(le),st=E.current?.contains(le);!Ae&&!st&&G();};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[B,G]),zn.useEffect(()=>{B&&r&&y.current&&y.current.focus();},[B,r]);let Qe=_=>e.find(le=>le.value===_)?.label??_,he=a&&X.length>0&&!V,ze=()=>{let _=H.openAbove,se=_?"translateY(8px)":"translateY(-8px)",le=_?"translateY(6px)":"translateY(-6px)",Ae={transition:`opacity ${rn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...Ae,opacity:0,transform:`${se} scale(0.97)`}:w==="open"?{...Ae,opacity:1,transform:"translateY(0) scale(1)"}:{...Ae,opacity:0,transform:`${le} scale(0.98)`,pointerEvents:"none"}},Ut={display:"flex",alignItems:"center",gap:"10px",backgroundColor:V?x.backgroundDisabled:x.background,border:`1px solid ${q?x.borderError:B?x.borderFocus:x.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},it=M?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:E,style:{position:"fixed",...H.openAbove?{bottom:window.innerHeight-H.top,left:H.left}:{top:H.top,left:H.left},width:H.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:S==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:H.openAbove?"bottom center":"top center",...ze()},children:[r&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${x.divider}`},children:jsxRuntime.jsx("input",{ref:y,type:"text",value:L,onChange:_=>{N(_.target.value),P(0);},onKeyDown:We,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:D,role:"listbox","aria-multiselectable":n,className:`sm-select-list-${I}`,style:{maxHeight:R,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
1
+ 'use strict';var rr=require('react'),jsxRuntime=require('react/jsx-runtime'),reactDom=require('react-dom'),react=require('@phosphor-icons/react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var rr__default=/*#__PURE__*/_interopDefault(rr);var H=()=>{let[e,t]=rr.useState("light");return rr.useEffect(()=>{if(typeof window>"u")return;let o=()=>{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(o());let n=window.matchMedia("(prefers-color-scheme: dark)"),r=i=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(i.matches?"dark":"light");};n.addEventListener("change",r);let a=new MutationObserver(i=>{i.forEach(s=>{s.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{n.removeEventListener("change",r),a.disconnect();}},[]),e};var Ye={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},zs={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"}},Bs=({size:e=14})=>{let[t,o]=rr.useState(0),n=rr.useRef(void 0),r=rr.useRef(void 0);return rr.useEffect(()=>{let a=i=>{r.current===void 0&&(r.current=i),o((i-r.current)/800*360%360),n.current=requestAnimationFrame(a);};return n.current=requestAnimationFrame(a),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ds=rr__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:n="left",loading:r=false,loadingPosition:a="replace",fullWidth:i=false,children:s,style:c,className:f,...d},u)=>{let[l,p]=rr.useState(false),m=H()==="dark",b=typeof d.href=="string",x=r||(b?false:!!d.disabled),E=s!=null&&s!=="",S=o!=null,v=(S||r)&&!E,{paddingText:z,paddingSquare:D,fontSize:I,gap:F,height:h}=zs[t],R={display:i?"flex":"inline-flex",width:i?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:E&&(S||r)?F:void 0,padding:v?D:z,height:h,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:I,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},B=(()=>{switch(e){case "primary":return {backgroundColor:l?Ye.primaryHover:Ye.primary,color:Ye.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:l?m?Ye.secondaryHoverDark:Ye.secondaryHoverLight:"transparent",color:m?Ye.white:Ye.black,border:"1px solid transparent"};case "outline":return {backgroundColor:l?m?Ye.secondaryHoverDark:Ye.secondaryHoverLight:"transparent",color:m?Ye.white:Ye.black,border:`1px solid ${l?m?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":m?Ye.borderDark:Ye.borderLight}`};case "danger":return {backgroundColor:l?"#FF5252":"#EF3838",color:Ye.white,border:"1px solid transparent"};case "danger-outline":return {backgroundColor:l?"rgba(239,56,56,0.08)":"transparent",color:"#EF3838",border:`1px solid ${l?"#EF3838":"rgba(239,56,56,0.5)"}`}}})(),C=a==="after-text",M=jsxRuntime.jsx(Bs,{size:parseInt(I)-1}),T=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:r&&!C?M:o}),k=r&&C?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:M}):null,w=r&&!C||S,L=n==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E&&jsxRuntime.jsx("span",{children:s}),k,w&&T]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&T,E&&jsxRuntime.jsx("span",{children:s}),k]}),A={style:{...R,...B,...c},className:f,onMouseEnter:$=>{p(true),d.onMouseEnter?.($);},onMouseLeave:$=>{p(false),d.onMouseLeave?.($);}};if(b){let{href:$,target:O,rel:U,...Z}=d;return jsxRuntime.jsx("a",{ref:u,href:$,target:O,rel:U??(O==="_blank"?"noopener noreferrer":void 0),"aria-disabled":x||void 0,...Z,...A,children:L})}let{disabled:y,type:P="button",...N}=d;return jsxRuntime.jsx("button",{ref:u,type:P,disabled:x,"aria-busy":r||void 0,...N,...A,children:L})});Ds.displayName="Button";var Ps={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Mt=({content:e,children:t,position:o="top",mode:n="anchor",autoFlip:r=true,offset:a=[0,0],delay:i=0,openDelay:s,closeDelay:c=0,className:f,style:d})=>{let u=H(),l=Ps[u],[p,g]=rr.useState(false),[m,b]=rr.useState({top:0,left:0}),[x,E]=rr.useState(o),S=rr.useRef(null),v=rr.useRef(null),z=rr.useRef(void 0),D=rr.useRef(void 0),I=rr.useRef({x:0,y:0}),F=6,h=8,R=s??i,B=rr.useCallback((y,P,N)=>{if(!r)return y;let $=window.innerWidth,O=window.innerHeight;switch(y){case "top":if(P.top-N.height-h<0)return "bottom";break;case "bottom":if(P.bottom+N.height+h>O)return "top";break;case "left":if(P.left-N.width-h<0)return "right";break;case "right":if(P.right+N.width+h>$)return "left";break}return y},[r]),C=rr.useCallback(()=>{let y=S.current,P=v.current;if(!y||!P)return;let N=y.getBoundingClientRect(),$=P.getBoundingClientRect(),O=B(o,N,$);E(O);let U=0,Z=0,[W,K]=a;switch(O){case "top":U=N.top-$.height-h+K,Z=N.left+N.width/2-$.width/2+W;break;case "bottom":U=N.bottom+h+K,Z=N.left+N.width/2-$.width/2+W;break;case "left":U=N.top+N.height/2-$.height/2+K,Z=N.left-$.width-h+W;break;case "right":U=N.top+N.height/2-$.height/2+K,Z=N.right+h+W;break}let G=window.innerWidth,j=window.innerHeight;Z=Math.max(4,Math.min(Z,G-$.width-4)),U=Math.max(4,Math.min(U,j-$.height-4)),b({top:U,left:Z});},[o,a,B]),M=rr.useCallback(()=>{let y=v.current;if(!y)return;let P=y.getBoundingClientRect(),[N,$]=a,O=I.current.x,U=I.current.y,Z=0,W=0;switch(o){case "top":Z=U-P.height-h+$,W=O-P.width/2+N;break;case "bottom":Z=U+h+16+$,W=O-P.width/2+N;break;case "left":Z=U-P.height/2+$,W=O-P.width-h+N;break;case "right":Z=U-P.height/2+$,W=O+h+N;break}let K=window.innerWidth,G=window.innerHeight;W=Math.max(4,Math.min(W,K-P.width-4)),Z=Math.max(4,Math.min(Z,G-P.height-4)),b({top:Z,left:W}),E(o);},[o,a]);rr.useEffect(()=>{p&&requestAnimationFrame(()=>{n==="cursor"?M():C();});},[p,n,C,M]);let T=rr.useCallback(y=>{I.current={x:y.clientX,y:y.clientY},n==="cursor"&&p&&M();},[n,p,M]),k=rr.useCallback(y=>{I.current={x:y.clientX,y:y.clientY},D.current&&(clearTimeout(D.current),D.current=void 0),z.current=setTimeout(()=>g(true),R);},[R]),w=rr.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=void 0),c>0?D.current=setTimeout(()=>g(false),c):g(false);},[c]);rr.useEffect(()=>()=>{z.current&&clearTimeout(z.current),D.current&&clearTimeout(D.current);},[]);let L=(()=>{if(n==="cursor")return {display:"none"};let y={position:"absolute",width:0,height:0,border:`${F}px solid transparent`};switch(x){case "top":return {...y,bottom:-F,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...y,top:-F,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...y,right:-F,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...y,left:-F,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),A=p?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:v,className:f,style:{position:"fixed",top:m.top,left:m.left,zIndex:"var(--sm-ui-z-popover, 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",...d},children:[e,jsxRuntime.jsx("div",{style:L})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[rr__default.default.cloneElement(t,{ref:S,onMouseEnter:y=>{k(y),t.props.onMouseEnter?.(y);},onMouseLeave:y=>{w(),t.props.onMouseLeave?.(y);},onMouseMove:y=>{T(y),t.props.onMouseMove?.(y);}}),A]})};Mt.displayName="Tooltip";var Ns=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},$s={dark:{defaultBg:"transparent",defaultHover:"rgba(255,255,255,0.08)",defaultColor:"#ffffff",ghostBg:"transparent",ghostHover:"rgba(255,255,255,0.06)",ghostColor:"#ACACAC",outlineBg:"transparent",outlineHover:"rgba(255,255,255,0.06)",outlineColor:"#ffffff",outlineBorder:"rgba(255,255,255,0.3)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.12)",dangerColor:"#EF3838"},light:{defaultBg:"transparent",defaultHover:"rgba(0,0,0,0.06)",defaultColor:"#1a1a1a",ghostBg:"transparent",ghostHover:"rgba(0,0,0,0.04)",ghostColor:"#888888",outlineBg:"transparent",outlineHover:"rgba(0,0,0,0.04)",outlineColor:"#1a1a1a",outlineBorder:"rgba(0,0,0,0.2)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.08)",dangerColor:"#EF3838"}},Ws={xs:{size:24,iconSize:12,radius:"4px"},sm:{size:28,iconSize:14,radius:"6px"},md:{size:36,iconSize:16,radius:"8px"},lg:{size:44,iconSize:20,radius:"8px"}},Os=({icon:e,onClick:t,label:o,variant:n="default",size:r="md",disabled:a=false,loading:i=false,tooltip:s,style:c,className:f})=>{let d=H(),u=$s[d],l=Ws[r],[p,g]=rr.useState(false),m={default:{bg:p?u.defaultHover:u.defaultBg,color:u.defaultColor,border:"none"},ghost:{bg:p?u.ghostHover:u.ghostBg,color:u.ghostColor,border:"none"},outline:{bg:p?u.outlineHover:u.outlineBg,color:u.outlineColor,border:`1px solid ${u.outlineBorder}`},danger:{bg:p?u.dangerHover:u.dangerBg,color:u.dangerColor,border:"none"}}[n],b=jsxRuntime.jsx("button",{type:"button","aria-label":o,disabled:a||i,onClick:t,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),className:f,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:l.size,height:l.size,borderRadius:l.radius,backgroundColor:m.bg,color:m.color,border:m.border,cursor:a||i?"not-allowed":"pointer",opacity:a?.4:1,transition:"background-color 0.12s ease",outline:"none",padding:0,flexShrink:0,boxSizing:"border-box",...c},children:i?jsxRuntime.jsx(Ns,{size:l.iconSize}):e});return s?jsxRuntime.jsx(Mt,{content:s,children:b}):b};Os.displayName="IconButton";var Vs={dark:{label:"#ffffff",helperText:"#ACACAC",errorText:"#EF3838",required:"#EF3838"},light:{label:"#1a1a1a",helperText:"#888888",errorText:"#EF3838",required:"#EF3838"}},Us=({label:e,required:t=false,helperText:o,error:n,children:r,inline:a=false,labelWidth:i="120px",style:s,className:c})=>{let f=H(),d=Vs[f],u=rr.useId(),l=typeof i=="number"?`${i}px`:i,p=e?jsxRuntime.jsxs("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none",display:"flex",alignItems:"center",gap:"2px",...a?{width:l,flexShrink:0,paddingTop:"10px"}:{}},children:[e,t&&jsxRuntime.jsx("span",{style:{color:d.required,marginLeft:"2px"},children:"*"})]}):null,g=n||o;return jsxRuntime.jsxs("div",{className:c,style:{display:"flex",flexDirection:a?"row":"column",gap:a?"12px":"6px",...s},children:[p,jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px",minWidth:0},children:[r,g&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:n?d.errorText:d.helperText},children:n||o})]})]})};Us.displayName="FormField";var Ks=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ia={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"}},Js={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"}},sa=rr__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:n,helperText:r,loading:a=false,clearable:i=false,passwordToggle:s,size:c="md",fullWidth:f=false,style:d,className:u,inputStyle:l,disabled:p,required:g,value:m,onChange:b,onFocus:x,onBlur:E,type:S,...v},z)=>{let D=H(),I=ia[D],F=rr.useId(),h=v.id??F,[R,B]=rr.useState(false),[C,M]=rr.useState(false),T=S==="password",k=s??T,w=T&&C?"text":S,L=p||a,A=!!n,y=typeof n=="string"?n:void 0,P=m!=null&&m!=="",N=i&&P&&!L&&!k,$=Js[c],O=()=>{if(!b)return;b({target:{value:""},currentTarget:{value:""}});},U=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:I.placeholder},children:t}):null,Z=k&&!L?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":C?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(ne=>!ne),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:I.placeholder,padding:"2px"},children:C?jsxRuntime.jsx(react.EyeSlash,{color:I.placeholder,size:$.iconSize}):jsxRuntime.jsx(react.Eye,{color:I.placeholder,size:$.iconSize})}):null,W=a?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:I.placeholder},children:jsxRuntime.jsx(Ks,{size:$.iconSize,color:I.placeholder})}):Z||(N?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:O,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:I.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:$.iconSize-2,color:I.placeholder})}):o==="right"&&U?U:null),K=o==="left"?U:null,G={display:"flex",alignItems:"center",gap:$.gap,backgroundColor:L?I.backgroundDisabled:I.background,border:`1px solid ${A?I.borderError:R?I.borderFocus:I.border}`,borderRadius:"8px",padding:$.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},j={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:$.fontSize,lineHeight:"normal",color:I.text,cursor:L?"not-allowed":"text",...l},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:I.label,userSelect:"none"},oe={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:f?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:f?"100%":void 0,...d},className:u,children:[e&&jsxRuntime.jsxs("label",{htmlFor:h,style:J,children:[e,g&&jsxRuntime.jsx("span",{style:{color:I.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:h,style:G,children:[K,jsxRuntime.jsx("input",{ref:z,id:h,type:w,disabled:p,required:g,readOnly:a||v.readOnly,value:m,onChange:b,style:j,onFocus:ne=>{B(true),x?.(ne);},onBlur:ne=>{B(false),E?.(ne);},...v}),W]}),y&&jsxRuntime.jsx("span",{style:{...oe,color:I.borderError},children:y}),!y&&r&&jsxRuntime.jsx("span",{style:{...oe,color:I.helperText},children:r})]})});sa.displayName="Input";var Xg=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=H(),i=rr.useId(),s=t??i,c={display:"flex",flexDirection:"column",gap:"8px",...n},f={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:ia[a].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:c,className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:f,children:e}),o??jsxRuntime.jsx(sa,{id:s})]})};var il={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"}},sl={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"}},ll=rr__default.default.forwardRef(({value:e,onChange:t,min:o,max:n,step:r=1,label:a,error:i,disabled:s=false,size:c="md",variant:f="default",fullWidth:d=false,prefix:u,suffix:l,style:p,className:g},m)=>{let b=H(),x=il[b],S=rr.useId(),v=sl[c],[z,D]=rr.useState(false),[I,F]=rr.useState(null),h=!!i,R=typeof i=="string"?i:void 0,B=rr.useCallback(G=>{let j=G;return o!==void 0&&j<o&&(j=o),n!==void 0&&j>n&&(j=n),j},[o,n]),C=rr.useCallback(()=>{t(B(e+r));},[e,r,t,B]),M=rr.useCallback(()=>{t(B(e-r));},[e,r,t,B]),T=rr.useRef(null),k=rr.useRef(null),w=rr.useCallback(G=>{s||(G(),k.current=setTimeout(()=>{T.current=setInterval(G,80);},400));},[s]),L=rr.useCallback(()=>{k.current&&(clearTimeout(k.current),k.current=null),T.current&&(clearInterval(T.current),T.current=null);},[]);rr.useEffect(()=>()=>L(),[L]);let A=G=>{let j=G.target.value;if(j===""||j==="-")return;let J=parseFloat(j);isNaN(J)||t(B(J));},y=()=>{D(false),t(B(e));},P=o===void 0||e>o,N=n===void 0||e<n,$={display:"flex",alignItems:"center",backgroundColor:s?x.backgroundDisabled:x.background,border:`1px solid ${h?x.borderError:z?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden",height:v.height},O=(G,j)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:v.buttonPadding,border:"none",background:I===G&&j&&!s?x.buttonHoverBg:x.buttonBg,color:j&&!s?x.buttonText:x.placeholder,cursor:s||!j?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:v.height,userSelect:"none"}),U={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:x.text,textAlign:"center",cursor:s?"not-allowed":"text",MozAppearance:"textfield"},Z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},W={fontFamily:"'Zalando Sans', sans-serif",fontSize:v.fontSize,color:x.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},K=(G,j)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:I===G&&j&&!s?x.buttonHoverBg:"transparent",color:j&&!s?x.buttonText:x.placeholder,cursor:s||!j?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return f==="compact"?jsxRuntime.jsxs("div",{style:{display:d?"flex":"inline-flex",width:d?"100%":void 0,flexDirection:"column",gap:"6px",...p},className:g,children:[a&&jsxRuntime.jsx("label",{htmlFor:S,style:Z,children:a}),jsxRuntime.jsxs("div",{style:$,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:v.padding,minWidth:0},children:[u&&jsxRuntime.jsx("span",{style:W,children:u}),jsxRuntime.jsx("input",{ref:m,id:S,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>D(true),onBlur:y,disabled:s,style:{...U,textAlign:"left"}}),l&&jsxRuntime.jsx("span",{style:W,children:l})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${h?x.borderError:z?x.borderFocus:x.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!N,style:K("up",N),onMouseDown:()=>w(C),onMouseUp:L,onMouseLeave:()=>{L(),F(null);},onMouseEnter:()=>F("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!P,style:K("down",P),onMouseDown:()=>w(M),onMouseUp:L,onMouseLeave:()=>{L(),F(null);},onMouseEnter:()=>F("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:R})]}):jsxRuntime.jsxs("div",{style:{display:d?"flex":"inline-flex",width:d?"100%":void 0,flexDirection:"column",gap:"6px",...p},className:g,children:[a&&jsxRuntime.jsx("label",{htmlFor:S,style:Z,children:a}),jsxRuntime.jsxs("div",{style:$,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!P,style:O("minus",P),onMouseDown:()=>w(M),onMouseUp:L,onMouseLeave:()=>{L(),F(null);},onMouseEnter:()=>F("minus"),children:jsxRuntime.jsx(react.Minus,{size:v.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[u&&jsxRuntime.jsx("span",{style:W,children:u}),jsxRuntime.jsx("input",{ref:m,id:S,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>D(true),onBlur:y,disabled:s,style:U}),l&&jsxRuntime.jsx("span",{style:W,children:l})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!N,style:O("plus",N),onMouseDown:()=>w(C),onMouseUp:L,onMouseLeave:()=>{L(),F(null);},onMouseEnter:()=>F("plus"),children:jsxRuntime.jsx(react.Plus,{size:v.iconSize})})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:R})]})});ll.displayName="NumberInput";var pa=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},An={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)"}},Pn=180,fa=({options:e,value:t,onChange:o,multiple:n=false,searchable:r=false,clearable:a=false,disabled:i=false,loading:s=false,error:c,onSearch:f,creatable:d=false,onCreateOption:u,chipDisplay:l="inline",renderOption:p,renderValue:g,label:m,required:b,placeholder:x="Vyberte\u2026",maxDropdownHeight:E=240,style:S,className:v})=>{let z=H(),D=An[z],I=rr.useId(),F=rr.useRef(null),h=rr.useRef(null),R=rr.useRef(null),B=rr.useRef(null),[C,M]=rr.useState(false),[T,k]=rr.useState(false),[w,L]=rr.useState("idle"),[A,y]=rr.useState(""),[P,N]=rr.useState(-1),[$,O]=rr.useState({top:0,left:0,width:0,openAbove:false}),U=i||s,Z=!!c,W=typeof c=="string"?c:void 0,K=rr.useCallback(()=>{M(true),k(true),L("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>L("open"));});},[]),G=rr.useCallback(()=>{M(false),L("closing"),y("");let X=setTimeout(()=>{k(false),L("idle");},Pn);return ()=>clearTimeout(X)},[]),j=n?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],J=X=>j.includes(X),[oe,ne]=rr.useState(null),[fe,ee]=rr.useState(false),Y=rr.useRef(void 0);rr.useEffect(()=>{if(!f||!A){ne(null);return}return ee(true),Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{f(A).then(X=>{ne(X),ee(false);}).catch(()=>{ne([]),ee(false);});},300),()=>{Y.current&&clearTimeout(Y.current);}},[A,f]);let q=f?oe??e:A?e.filter(X=>(X.label??X.value).toLowerCase().includes(A.toLowerCase())):e,te=rr.useCallback(()=>{if(!F.current)return;let X=F.current.getBoundingClientRect(),ue=h.current?.offsetHeight??E+60,pe=window.innerHeight-X.bottom-6,Ae=X.top-6,Oe=pe<ue&&Ae>pe;O({top:Oe?X.top-6:X.bottom+6,left:X.left,width:X.width,openAbove:Oe});},[E]);rr.useEffect(()=>{if(T)return te(),window.addEventListener("scroll",te,true),window.addEventListener("resize",te),()=>{window.removeEventListener("scroll",te,true),window.removeEventListener("resize",te);}},[T,te]);let ge=rr.useCallback(X=>{if(o)if(n){let ue=J(X)?j.filter(pe=>pe!==X):[...j,X];o(ue);}else o(X),G();},[n,o,j,G]),Ke=rr.useCallback(X=>{X.stopPropagation(),o&&(o(n?[]:null),y(""));},[n,o]),We=()=>{U||(C?G():K(),N(-1));},me=X=>{if(!U)switch(X.key){case "ArrowDown":X.preventDefault(),C?N(ue=>Math.min(ue+1,q.length-1)):(K(),N(0));break;case "ArrowUp":X.preventDefault(),N(ue=>Math.max(ue-1,0));break;case "Enter":case " ":X.preventDefault(),C&&P>=0&&q[P]&&!q[P].disabled?ge(q[P].value):C||(K(),N(0));break;case "Escape":G();break;case "Tab":G();break}};rr.useEffect(()=>{P>=0&&B.current&&B.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),rr.useEffect(()=>{if(!C)return;let X=ue=>{let pe=ue.target,Ae=F.current?.contains(pe),Oe=h.current?.contains(pe);!Ae&&!Oe&&G();};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[C,G]),rr.useEffect(()=>{C&&r&&R.current&&R.current.focus();},[C,r]);let se=X=>e.find(pe=>pe.value===X)?.label??X,Q=a&&j.length>0&&!U,ie=()=>{let X=$.openAbove,ue=X?"translateY(8px)":"translateY(-8px)",pe=X?"translateY(6px)":"translateY(-6px)",Ae={transition:`opacity ${Pn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Pn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...Ae,opacity:0,transform:`${ue} scale(0.97)`}:w==="open"?{...Ae,opacity:1,transform:"translateY(0) scale(1)"}:{...Ae,opacity:0,transform:`${pe} scale(0.98)`,pointerEvents:"none"}},nt={display:"flex",alignItems:"center",gap:"10px",backgroundColor:U?D.backgroundDisabled:D.background,border:`1px solid ${Z?D.borderError:C?D.borderFocus:D.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},ht=T?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:h,style:{position:"fixed",...$.openAbove?{bottom:window.innerHeight-$.top,left:$.left}:{top:$.top,left:$.left},width:$.width,backgroundColor:D.dropdownBg,border:`1px solid ${D.dropdownBorder}`,borderRadius:"12px",boxShadow:z==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",overflow:"hidden",boxSizing:"border-box",transformOrigin:$.openAbove?"bottom center":"top center",...ie()},children:[r&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${D.divider}`},children:jsxRuntime.jsx("input",{ref:R,type:"text",value:A,onChange:X=>{y(X.target.value),N(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}})}),jsxRuntime.jsxs("div",{ref:B,role:"listbox","aria-multiselectable":n,className:`sm-select-list-${I}`,style:{maxHeight:E,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
2
2
  .sm-select-list-${I}::-webkit-scrollbar {
3
3
  width: 6px;
4
4
  }
@@ -6,14 +6,14 @@
6
6
  background: transparent;
7
7
  }
8
8
  .sm-select-list-${I}::-webkit-scrollbar-thumb {
9
- background: ${x.scrollbarThumb};
9
+ background: ${D.scrollbarThumb};
10
10
  border-radius: 3px;
11
11
  }
12
- `}),re&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center"},children:jsxRuntime.jsx(Pr,{size:16,color:x.placeholder})}),!re&&Y.length===0&&!c&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),!re&&Y.length===0&&c&&L&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.optionSelectedText,cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{d?.(L),n||(o?.(L),G()),N("");},onMouseEnter:_=>{_.currentTarget.style.backgroundColor=x.optionHover;},onMouseLeave:_=>{_.currentTarget.style.backgroundColor="transparent";},children:['Vytvo\u0159it "',L,'"']}),!re&&Y.map((_,se)=>{let le=ee(_.value),Ae=se===C;return jsxRuntime.jsx("div",{role:"option","aria-selected":le,"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:le?500:400,lineHeight:"normal",color:le?x.optionSelectedText:_.disabled?x.placeholder:x.text,backgroundColor:Ae?x.optionHover:le?x.optionSelected:"transparent",cursor:_.disabled?"not-allowed":"pointer",opacity:_.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:se<Y.length-1?"2px":0},onClick:()=>{_.disabled||ie(_.value);},onMouseEnter:()=>P(se),onMouseLeave:()=>P(-1),children:u?u(_,le):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.label??_.value}),le&&jsxRuntime.jsx(react.Check,{size:16,color:x.optionSelectedText})]})},_.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...z},className:h,children:[m&&jsxRuntime.jsx("label",{htmlFor:I,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.text,userSelect:"none"},children:m}),jsxRuntime.jsxs("div",{ref:v,role:"combobox","aria-expanded":B,"aria-haspopup":"listbox",tabIndex:V?-1:0,style:Ut,onClick:Je,onKeyDown:We,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[X.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.placeholder,lineHeight:"normal"},children:p}),n?i==="count"&&X.length>0?jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,lineHeight:"normal"},children:[X.length," vybr\xE1no"]}):X.map(_=>{let se=e.find(le=>le.value===_);return jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:x.tagBg,color:x.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&se?f(se):Qe(_)}),!V&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:le=>{le.stopPropagation(),ie(_);},children:jsxRuntime.jsx(react.X,{size:14,color:x.tagText})})]},_)}):X.length>0&&(()=>{let _=e.find(se=>se.value===X[0]);return jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&_?f(_):Qe(X[0])})})()]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[he&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Me,children:jsxRuntime.jsx(react.X,{size:14,color:x.placeholder})}),s?jsxRuntime.jsx(Pr,{size:16,color:x.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:B?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),Z&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:Z}),it]})};Hr.displayName="Select";var bs=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ar[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Hr,{options:[]})]})};bs.displayName="SelectGroup";var Cs=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ws={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"}},an=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"}},Ts=zn__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:n,placeholder:r="Hledat\u2026",label:a,error:l,disabled:s=false,loading:g=false,multiple:b=false,clearable:c=false,onOpenChange:d,onSelect:i,onDeselect:u,onClear:f,onFocus:m,onBlur:p,allowCustom:R=false,onCreate:z,renderOption:h,notFoundContent:S,footer:x,size:I="md",style:v,className:E},y)=>{let D=A(),B=ws[D],M=zn.useId(),F=Rs[I],w=zn.useRef(null),T=zn.useRef(null),L=zn.useRef(null),N=zn.useRef(null),[C,P]=zn.useState(false),[H,W]=zn.useState(false),[V,q]=zn.useState("idle"),[Z,$]=zn.useState(""),[G,X]=zn.useState(-1),[ee,J]=zn.useState(false),[te,re]=zn.useState({top:0,left:0,width:0,openAbove:false}),be=s||g,we=!!l,Y=typeof l=="string"?l:void 0,j=c&&!be,ie=b?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],Me=U=>ie.includes(U),Je=U=>{let oe=e.find(de=>de.value===U);return oe?oe.label??oe.value:U};zn.useEffect(()=>{if(!b&&!ee){let U=e.find(oe=>oe.value===t);$(U?U.label??U.value:(typeof t=="string"?t:"")||"");}},[t,e,ee,b]);let We=Z?e.filter(U=>(U.label??U.value).toLowerCase().includes(Z.toLowerCase())):e,Qe=zn.useCallback(()=>{P(true),W(true),q("opening"),d?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>q("open"));});},[d]),he=zn.useCallback(()=>{P(false),q("closing"),d?.(false);let U=setTimeout(()=>{W(false),q("idle");},an);return ()=>clearTimeout(U)},[d]),ze=zn.useCallback(()=>{if(!w.current)return;let U=w.current.getBoundingClientRect(),oe=L.current?.offsetHeight??240,de=window.innerHeight-U.bottom-6,me=U.top-6,O=de<oe&&me>de;re({top:O?U.top-6:U.bottom+6,left:U.left,width:U.width,openAbove:O});},[]);zn.useEffect(()=>{if(H)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[H,ze]),zn.useEffect(()=>{if(!C)return;let U=oe=>{let de=oe.target;if(!w.current?.contains(de)&&!L.current?.contains(de))if(he(),b)$("");else {let me=e.find(O=>O.value===t);R||$(me?me.label??me.value:"");}};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[C,he,t,e,R,b]),zn.useEffect(()=>{G>=0&&N.current&&N.current.children[G]?.scrollIntoView({block:"nearest"});},[G]);let Ut=U=>{let oe=U.target.value;$(oe),n?.(oe),X(0),C||Qe();},it=zn.useCallback(U=>{let oe=e.find(de=>de.value===U)||{value:U};if(b){if(Me(U)){let de=ie.filter(me=>me!==U);o(de),u?.(U,oe);}else {let de=[...ie,U];o(de),i?.(U,oe);}$("");}else o(U),i?.(U,oe),$(oe.label??oe.value),he();},[o,e,he,b,ie,i,u]),_=zn.useCallback(U=>{if(!b)return;let oe=e.find(me=>me.value===U)||{value:U},de=ie.filter(me=>me!==U);o(de),u?.(U,oe);},[b,ie,o,e,u]),se=zn.useCallback(U=>{U.stopPropagation(),o(b?[]:""),$(""),f?.();},[b,o,f]),le=U=>{if(!be)switch(U.key){case "ArrowDown":U.preventDefault(),C?X(oe=>Math.min(oe+1,We.length-1)):(Qe(),X(0));break;case "ArrowUp":U.preventDefault(),X(oe=>Math.max(oe-1,0));break;case "Enter":U.preventDefault(),C&&G>=0&&We[G]?it(We[G].value):R&&Z&&(b?(o([...ie,Z]),z?.(Z),$("")):(o(Z),z?.(Z),he()));break;case "Backspace":if(b&&Z===""&&ie.length>0){let oe=ie.slice(0,-1);o(oe);}break;case "Escape":he();break;case "Tab":C&&he();break}},Ae=U=>{J(true),m?.(U),!C&&!be&&Qe();},st=U=>{let oe=U.relatedTarget;oe&&(L.current?.contains(oe)||w.current?.contains(oe))||(J(false),p?.(U),!b&&R&&Z&&o(Z),b&&$(""));},qo=()=>{let U=te.openAbove,oe=U?"translateY(8px)":"translateY(-8px)",de=U?"translateY(6px)":"translateY(-6px)",me={transition:`opacity ${an}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${an}ms cubic-bezier(0.16, 1, 0.3, 1)`};return V==="opening"||V==="idle"?{...me,opacity:0,transform:`${oe} scale(0.97)`}:V==="open"?{...me,opacity:1,transform:"translateY(0) scale(1)"}:{...me,opacity:0,transform:`${de} scale(0.98)`,pointerEvents:"none"}},jo={display:"flex",alignItems:"center",gap:F.gap,backgroundColor:be?B.backgroundDisabled:B.background,border:`1px solid ${we?B.borderError:ee?B.borderFocus:B.border}`,borderRadius:"8px",padding:F.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:be?.6:1,cursor:be?"not-allowed":"text",flexWrap:"nowrap"},Xt={flex:1,minWidth:b?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:F.fontSize,lineHeight:"normal",color:B.text,cursor:be?"not-allowed":"text"},Ko={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:B.label,userSelect:"none"},Jo=H?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:L,style:{position:"fixed",...te.openAbove?{bottom:window.innerHeight-te.top,left:te.left}:{top:te.top,left:te.left},width:te.width,backgroundColor:B.dropdownBg,border:`1px solid ${B.dropdownBorder}`,borderRadius:"12px",boxShadow:D==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:te.openAbove?"bottom center":"top center",...qo()},onMouseDown:U=>{U.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:N,role:"listbox","aria-multiselectable":b,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[We.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:B.placeholder,textAlign:"center"},children:R&&Z?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof S=="function"?S(he):S??"\u017D\xE1dn\xE9 v\xFDsledky"}),We.map((U,oe)=>{let de=Me(U.value),me=oe===G;return jsxRuntime.jsx("div",{role:"option","aria-selected":de,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:de?500:400,lineHeight:"normal",color:de?B.optionSelectedText:B.text,backgroundColor:me?B.optionHover:de?B.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:oe<We.length-1?"2px":0},onClick:()=>it(U.value),onMouseEnter:()=>X(oe),onMouseLeave:()=>X(-1),children:h?h(U,me):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:U.label??U.value}),de&&jsxRuntime.jsx(react.Check,{size:16,color:B.optionSelectedText})]})},U.value)})]}),x&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${B.divider}`,padding:"8px 6px"},children:typeof x=="function"?x(he):x})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...v},className:E,children:[a&&jsxRuntime.jsx("label",{htmlFor:M,style:Ko,children:a}),jsxRuntime.jsxs("div",{ref:w,style:jo,onClick:()=>T.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B.placeholder},children:g?jsxRuntime.jsx(Cs,{size:F.iconSize,color:B.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:F.iconSize,color:B.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[b&&ie.map(U=>jsxRuntime.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:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je(U)}),!be&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:oe=>{oe.stopPropagation(),_(U);},children:jsxRuntime.jsx(react.X,{size:14,color:B.tagText})})]},U)),jsxRuntime.jsx("input",{ref:U=>{T.current=U,typeof y=="function"?y(U):y&&(y.current=U);},id:M,type:"text",value:Z,onChange:Ut,onFocus:Ae,onBlur:st,onKeyDown:le,placeholder:b&&ie.length>0?"":r,disabled:s,readOnly:g,style:Xt})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&ie.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:se,children:jsxRuntime.jsx(react.X,{size:14,color:B.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:F.iconSize,color:B.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:B.borderError,lineHeight:"normal"},children:Y}),Jo]})});Ts.displayName="Combobox";var Ds=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",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)"}},sn=180,Is={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"}},Ps={sm:{width:280,headerPadding:"8px 10px",gridPadding:"0 10px 6px",monthYearGridPadding:"6px 10px",headerFontSize:"13px",weekdayFontSize:"10px",dayFontSize:"12px",timePadding:"8px 10px",timeLabelFontSize:"11px"},md:{width:320,headerPadding:"10px 12px",gridPadding:"0 12px 8px",monthYearGridPadding:"8px 12px",headerFontSize:"14px",weekdayFontSize:"11px",dayFontSize:"13px",timePadding:"10px 12px",timeLabelFontSize:"12px"},lg:{width:380,headerPadding:"12px 14px",gridPadding:"0 14px 10px",monthYearGridPadding:"10px 14px",headerFontSize:"16px",weekdayFontSize:"12px",dayFontSize:"14px",timePadding:"12px 14px",timeLabelFontSize:"13px"}},Ms=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Wr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function As(e,t,o){let r=new Date(e,t,1).getDay();r=(r===0?7:r)-o,r<0&&(r+=7);let a=new Date(e,t,1-r),l=[];for(let s=0;s<42;s++){let g=new Date(a);g.setDate(a.getDate()+s),l.push(g);}return l}function cn(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Or(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${cn(e)} ${t}:${o}`}function dt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Zr(e,t,o){let n=e.getTime(),r=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return n>=r&&n<=a}function Hs(e){return dt(e,new Date)}var Ur=({mode:e="single",showTime:t=false,value:o,onChange:n,label:r,placeholder:a,error:l,helperText:s,disabled:g=false,loading:b=false,clearable:c=false,size:d="md",fullWidth:i=false,required:u,minDate:f,maxDate:m,presets:p,presetsLabel:R="Rychl\xFD v\xFDb\u011Br",disabledDates:z,firstDayOfWeek:h=1,style:S,className:x})=>{let I=A(),v=Vr[I],E=zn.useId(),y=Is[d],D=Ps[d],B=zn.useRef(null),k=zn.useRef(null),[M,F]=zn.useState(false),[w,T]=zn.useState(false),[L,N]=zn.useState("idle"),[C,P]=zn.useState({top:0,left:0,width:0,openAbove:false}),[H,W]=zn.useState(null),V=new Date,[q,Z]=zn.useState(V.getFullYear()),[$,G]=zn.useState(V.getMonth()),[X,ee]=zn.useState("days"),[J,te]=zn.useState(0),re=g||b,be=!!l,we=typeof l=="string"?l:void 0,Y=e==="single"&&o instanceof Date?o:null,j=e==="range"&&Array.isArray(o)?o:[null,null],ie=e==="single"?Y!==null:j[0]!==null||j[1]!==null,Me=c&&ie&&!re,Je=(()=>{if(e==="single")return Y?t?Or(Y):cn(Y):"";let[O,ae]=j;if(!O&&!ae)return "";let ne=t?Or:cn;return `${O?ne(O):"\u2026"} \u2013 ${ae?ne(ae):"\u2026"}`})(),We=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),Qe=zn.useCallback(()=>{let O=e==="single"?Y:j[0];O&&(Z(O.getFullYear()),G(O.getMonth())),ee("days"),F(true),T(true),N("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>N("open"));});},[e,Y,j]),he=zn.useCallback(()=>{F(false),N("closing");let O=setTimeout(()=>{T(false),N("idle");},sn);return ()=>clearTimeout(O)},[]),ze=zn.useCallback(()=>{if(!B.current)return;let O=B.current.getBoundingClientRect(),ae=k.current?.offsetHeight??380,ne=window.innerHeight-O.bottom-6,K=O.top-6,pe=ne<ae&&K>ne,fe=D.width+(p&&p.length>0?140:0),De=Math.max(8,window.innerWidth-fe-8),Gt=Math.min(O.left,De);P({top:pe?O.top-6:O.bottom+6,left:Gt,width:fe,openAbove:pe});},[D.width,p]);zn.useEffect(()=>{if(w)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[w,ze]),zn.useEffect(()=>{if(!M)return;let O=ae=>{let ne=ae.target,K=B.current?.contains(ne),pe=k.current?.contains(ne);!K&&!pe&&he();};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[M,he]);let Ut=O=>{re||(O.key==="Escape"&&M&&(O.preventDefault(),he()),(O.key==="Enter"||O.key===" ")&&!M&&(O.preventDefault(),Qe()));},it=zn.useCallback(O=>{if(f){let ae=new Date(f.getFullYear(),f.getMonth(),f.getDate());if(O<ae)return true}if(m){let ae=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(O>ae)return true}return !!(z&&z(O))},[f,m,z]),_=zn.useCallback(O=>{if(!it(O)&&n)if(e==="single")t&&Y&&O.setHours(Y.getHours(),Y.getMinutes()),n(new Date(O)),t||he();else if(J===0)t&&j[0]&&O.setHours(j[0].getHours(),j[0].getMinutes()),n([new Date(O),null]),te(1);else {let ae=j[0];t&&j[1]&&O.setHours(j[1].getHours(),j[1].getMinutes());let[ne,K]=O>=ae?[ae,new Date(O)]:[new Date(O),ae];n([ne,K]),te(0),t||he();}},[e,t,Y,j,J,n,he,it]),se=zn.useCallback((O,ae,ne)=>{if(!n)return;let K=parseInt(ae,10);if(isNaN(K)&&(K=0),O==="hour"&&(K=Math.max(0,Math.min(23,K))),O==="minute"&&(K=Math.max(0,Math.min(59,K))),e==="single"){let pe=Y?new Date(Y):new Date;O==="hour"?pe.setHours(K):pe.setMinutes(K),n(pe);}else {let pe=ne??0,fe=[j[0]?new Date(j[0]):null,j[1]?new Date(j[1]):null],De=fe[pe]??new Date;O==="hour"?De.setHours(K):De.setMinutes(K),fe[pe]=De,n(fe);}},[e,Y,j,n]),le=()=>{$===0?(G(11),Z(O=>O-1)):G(O=>O-1);},Ae=()=>{$===11?(G(0),Z(O=>O+1)):G(O=>O+1);},st=O=>{O.stopPropagation(),n&&(n(e==="single"?null:[null,null]),te(0));},qo=()=>{let O=C.openAbove,ae=O?"translateY(8px)":"translateY(-8px)",ne=O?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${sn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${sn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{...K,opacity:0,transform:`${ae} scale(0.97)`}:L==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${ne} scale(0.98)`,pointerEvents:"none"}},jo=As(q,$,h),Xt=(O,ae)=>{let ne=O?O.getHours():0,K=O?O.getMinutes():0,pe={width:"42px",background:"transparent",border:`1px solid ${v.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:v.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(ne).padStart(2,"0"),onChange:fe=>se("hour",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:v.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(K).padStart(2,"0"),onChange:fe=>se("minute",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Minuty"})]})},Ko=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:Wr.map((O,ae)=>{let ne=ae===$;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{G(ae),ee("days");},style:{background:ne?v.daySelected:"transparent",color:ne?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:K=>{ne||(K.target.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.target.style.backgroundColor="transparent");},children:O},ae)})}),Jo=()=>{let O=Math.floor(q/12)*12,ae=Array.from({length:12},(ne,K)=>O+K);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.monthYearGridPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>Z(ne=>ne-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:v.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.headerFontSize,color:v.text},children:[O," \u2013 ",O+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Z(ne=>ne+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:ae.map(ne=>{let K=ne===q;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{Z(ne),ee("months");},style:{background:K?v.daySelected:"transparent",color:K?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:pe=>{K||(pe.target.style.backgroundColor=v.dayHover);},onMouseLeave:pe=>{K||(pe.target.style.backgroundColor="transparent");},children:ne},ne)})})]})},U=w?reactDom.createPortal(jsxRuntime.jsx("div",{ref:k,style:{position:"fixed",...C.openAbove?{bottom:window.innerHeight-C.top,left:C.left}:{top:C.top,left:C.left},width:C.width,backgroundColor:v.dropdownBg,border:`1px solid ${v.dropdownBorder}`,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,overflow:"hidden",boxSizing:"border-box",transformOrigin:C.openAbove?"bottom center":"top center",...qo()},children:jsxRuntime.jsxs("div",{style:{display:"flex"},children:[p&&p.length>0&&jsxRuntime.jsxs("div",{style:{width:"140px",flexShrink:0,borderRight:`1px solid ${v.dropdownBorder}`,padding:"8px",overflowY:"auto",maxHeight:"320px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"9px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em",color:v.dayOutside,padding:"4px 6px 8px",userSelect:"none"},children:R}),p.map((O,ae)=>{let ne=(()=>{if(e==="range"&&Array.isArray(O.value)){let[K,pe]=j,[fe,De]=O.value;return K&&pe&&fe&&De&&K.getFullYear()===fe.getFullYear()&&K.getMonth()===fe.getMonth()&&K.getDate()===fe.getDate()&&pe.getFullYear()===De.getFullYear()&&pe.getMonth()===De.getMonth()&&pe.getDate()===De.getDate()}return !Array.isArray(O.value)&&Y?Y.getFullYear()===O.value.getFullYear()&&Y.getMonth()===O.value.getMonth()&&Y.getDate()===O.value.getDate():false})();return jsxRuntime.jsx("div",{style:{padding:"7px 8px",borderRadius:"6px",fontSize:"13px",fontFamily:"'Zalando Sans', sans-serif",color:ne?v.daySelected:v.text,fontWeight:ne?600:400,backgroundColor:ne?`${v.daySelected}18`:"transparent",cursor:"pointer",userSelect:"none",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>{n?.(O.value),he();},onMouseEnter:K=>{ne||(K.currentTarget.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.currentTarget.style.backgroundColor="transparent");},children:O.label},ae)})]}),jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:X==="years"?Jo():X==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:D.headerPadding},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})}),Ko()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.headerPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:le,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:v.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:Wr[$]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})]}),jsxRuntime.jsx("button",{type:"button",onClick:Ae,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding.replace(/(\d+px)$/,"4px"),gap:"0"},children:Ms.map(O=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.weekdayFontSize,fontWeight:400,color:v.placeholder,padding:"4px 0",userSelect:"none"},children:O},O))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding,gap:"2px"},children:jo.map((O,ae)=>{let ne=O.getMonth()!==$,K=it(O),pe=Hs(O),fe=false,De=false,Gt=false,ho=false;if(e==="single"&&Y)fe=dt(O,Y);else if(e==="range"){let[lt,vo]=j;lt&&dt(O,lt)&&(De=true,fe=true),vo&&dt(O,vo)&&(Gt=true,fe=true),lt&&vo&&Zr(O,lt,vo)&&!De&&!Gt&&(ho=true),J===1&&lt&&H&&!K&&(dt(O,H)&&!dt(O,lt)&&(fe=true),Zr(O,lt,H)&&!dt(O,lt)&&!dt(O,H)&&(ho=true));}let Qo="transparent",yo=v.text;return fe?(Qo=v.daySelected,yo=v.daySelectedText):ho&&(Qo=v.dayRangeMiddle),ne&&(yo=fe?v.daySelectedText:v.dayOutside),K&&(yo=v.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:K,onClick:()=>_(O),onMouseEnter:()=>{K||W(O);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Qo,color:yo,border:"none",borderRadius:De?"6px 0 0 6px":Gt?"0 6px 6px 0":ho?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,fontWeight:fe?600:400,cursor:K?"not-allowed":"pointer",opacity:K?.4:1,transition:"background-color 0.1s ease",outline:pe&&!fe?`1.5px solid ${v.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:O.getDate()},ae)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${v.divider}`,padding:D.timePadding,display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"\u010Cas:"}),Xt(Y)]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Od:"}),Xt(j[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Do:"}),Xt(j[1],1)]})]})})]})})]})}),document.body):null,oe={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:re?v.backgroundDisabled:v.background,border:`1px solid ${be?v.borderError:M?v.borderFocus:v.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:re?.6:1,cursor:re?"not-allowed":"pointer",userSelect:"none",outline:"none"},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},me={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...S},className:x,children:[r&&jsxRuntime.jsxs("label",{htmlFor:E,style:de,children:[r,u&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:B,role:"button",tabIndex:re?-1:0,style:oe,onClick:()=>{re||(M?he():Qe());},onKeyDown:Ut,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.text,lineHeight:"normal"},children:Je}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.placeholder,lineHeight:"normal"},children:We})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Me&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:st,children:jsxRuntime.jsx(react.X,{size:y.iconSize-2,color:v.placeholder})}),b?jsxRuntime.jsx(Ds,{size:y.iconSize,color:v.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:y.iconSize,color:v.placeholder})]})]}),we&&jsxRuntime.jsx("span",{style:{...me,color:v.borderError},children:we}),!we&&s&&jsxRuntime.jsx("span",{style:{...me,color:v.helperText},children:s}),U]})};Ur.displayName="DatePicker";var Ls=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Ur,{})]})};Ls.displayName="DatePickerGroup";var Xr={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"}},Os={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}},Gr=({checked:e=false,onChange:t,label:o,disabled:n=false,error:r,size:a="md",indeterminate:l=false,className:s,style:g})=>{let b=A(),c=Xr[b],d=Os[a],i=zn.useId(),u=zn.useRef(null),f=!!r,m=typeof r=="string"?r:void 0;zn.useEffect(()=>{u.current&&(u.current.indeterminate=l);},[l]);let p=()=>{n||t?.(!e);},R=f?c.borderError:e||l?c.checkBg:c.border,z=e||l?c.checkBg:n?c.backgroundDisabled:c.background,h={width:d.box,height:d.box,borderRadius:d.radius,border:`1.5px solid ${R}`,backgroundColor:z,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:n?.5:1},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...g},className:s,children:[jsxRuntime.jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:I=>{I.preventDefault(),p();},children:[jsxRuntime.jsx("input",{ref:u,id:i,type:"checkbox",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":f||void 0}),jsxRuntime.jsxs("span",{style:h,children:[e&&!l&&jsxRuntime.jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsxRuntime.jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:S,children:o})]}),m&&jsxRuntime.jsx("span",{style:{...x,color:c.borderError,marginLeft:`${d.box+parseInt(d.gap)}px`},children:m})]})};Gr.displayName="Checkbox";var _r=({label:e,children:t,error:o,className:n,style:r})=>{let a=A(),l=Xr[a],s=typeof o=="string"?o:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[e&&jsxRuntime.jsx("span",{style:g,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),s&&jsxRuntime.jsx("span",{style:{...b,color:l.borderError},children:s})]})};_r.displayName="CheckboxGroup";var qr={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"}},Ys={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"}},dn=({value:e,checked:t=false,onChange:o,label:n,disabled:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=qr[g],c=Ys[a],d=zn.useId(),i=()=>{r||o?.(e);},u=t?b.dotRing:b.border,f=r?b.backgroundDisabled:b.background,m={width:c.box,height:c.box,borderRadius:"50%",border:`1.5px solid ${u}`,backgroundColor:f,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:r?.5:1},p={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:b.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...s},className:l,children:jsxRuntime.jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:R=>{R.preventDefault(),i();},children:[jsxRuntime.jsx("input",{id:d,type:"radio",value:e,checked:t,disabled:r,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:m,children:t&&jsxRuntime.jsx("span",{style:{width:c.dot,height:c.dot,borderRadius:"50%",backgroundColor:b.dot,transition:"transform 0.15s ease"}})}),n&&jsxRuntime.jsx("span",{style:p,children:n})]})})};dn.displayName="Radio";var jr=({value:e,onChange:t,label:o,options:n,direction:r="vertical",error:a,helperText:l,size:s="md",className:g,style:b})=>{let c=A(),d=qr[c],i=!!a,u=typeof a=="string"?a:void 0,f={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...b},className:g,children:[o&&jsxRuntime.jsx("span",{style:f,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:r==="horizontal"?"16px":"6px"},children:n.map(p=>jsxRuntime.jsx(dn,{value:p.value,label:p.label,checked:e===p.value,onChange:t,disabled:p.disabled,size:s},p.value))}),u&&jsxRuntime.jsx("span",{style:{...m,color:d.borderError},children:u}),!u&&l&&jsxRuntime.jsx("span",{style:{...m,color:d.helperText},children:l})]})};jr.displayName="RadioGroup";var Us={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"}},Jr=({checked:e=false,onChange:t,label:o,disabled:n=false,size:r="md",className:a,style:l})=>{let s=A(),g=Us[s],b=Xs[r],c=zn.useId(),d=()=>{n||t?.(!e);},i=1.5,u=2,m=b.trackW-i*2-b.thumb-u,p=e?m:0,R={width:b.trackW,height:b.trackH,borderRadius:b.trackH/2,backgroundColor:e?g.trackOn:g.trackOff,border:`${i}px solid ${e?g.trackOnBorder:g.trackOffBorder}`,position:"relative",cursor:n?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:n?.5:1,boxSizing:"border-box"},z={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:g.thumb,position:"absolute",top:"50%",left:u,transform:`translateY(-50%) translateX(${p}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},h={fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:g.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:`${b.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxRuntime.jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:b.gap,cursor:n?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),d();},children:[jsxRuntime.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:R,children:jsxRuntime.jsx("span",{style:z})}),o&&jsxRuntime.jsx("span",{style:h,children:o})]})})};Jr.displayName="Switch";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)",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"}},el={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},ea=zn__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:n,loading:r=false,size:a="md",fullWidth:l=false,required:s,rows:g=4,maxLength:b,resize:c="vertical",autoHeight:d=false,minRows:i,maxRows:u,className:f,style:m,value:p,onChange:R,onFocus:z,onBlur:h,...S},x)=>{let I=A(),v=Qs[I],E=el[a],y=zn.useId(),D=S.id??y,[B,k]=zn.useState(false),M=zn.useRef(null),F=zn.useCallback(()=>{let $=M.current;if(!$||!d)return;$.style.height="auto";let G=getComputedStyle($),X=parseFloat(G.lineHeight)||parseFloat(G.fontSize)*1.5,ee=parseFloat(G.paddingTop)||0,J=parseFloat(G.paddingBottom)||0,te=ee+J,be=X*(i??1)+te,we=u?X*u+te:1/0,Y=Math.min(Math.max($.scrollHeight,be),we);$.style.height=`${Y}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[d,i,u]);zn.useEffect(()=>{F();},[p,F]);let w=zn.useCallback($=>{M.current=$,typeof x=="function"?x($):x&&(x.current=$);},[x]),T=d?"none":c,L=d?i??1:g,N=n||r,C=!!t,P=typeof t=="string"?t:void 0,H=typeof p=="string"?p.length:0,W={backgroundColor:N?v.backgroundDisabled:v.background,border:`1px solid ${C?v.borderError:B?v.borderFocus:v.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},V={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E.fontSize,lineHeight:"1.5",color:v.text,cursor:N?"not-allowed":"text",resize:T,boxSizing:"border-box",overflow:d?"hidden":void 0},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...m},className:f,children:[e&&jsxRuntime.jsxs("label",{htmlFor:D,style:q,children:[e,s&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:W,children:jsxRuntime.jsx("textarea",{ref:w,id:D,rows:L,maxLength:b,disabled:n,required:s,readOnly:r||S.readOnly,value:p,onChange:R,style:V,onFocus:$=>{k(true),z?.($);},onBlur:$=>{k(false),h?.($);},...S})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[P&&jsxRuntime.jsx("span",{style:{...Z,color:v.borderError},children:P}),!P&&o&&jsxRuntime.jsx("span",{style:{...Z,color:v.helperText},children:o})]}),b!==void 0&&jsxRuntime.jsxs("span",{style:{...Z,color:H>b?v.borderError:v.counter,flexShrink:0},children:[H,"/",b]})]})]})});ea.displayName="Textarea";var ol={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)"}},nl={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function na(e,t,o){return Math.min(Math.max(e,t),o)}function rl(e,t,o){return Math.round((e-t)/o)*o+t}var ra=({value:e,onChange:t,min:o=0,max:n=100,step:r=1,label:a,disabled:l=false,showValue:s=false,range:g=false,size:b="md",className:c,style:d})=>{let i=A(),u=ol[i],f=nl[b],m=zn.useId(),p=zn.useRef(null),R=zn.useRef(null),z=g?e:[o,e],h=B=>(B-o)/(n-o)*100,S=h(z[0]),x=h(z[1]),I=zn.useCallback(B=>{let k=p.current;if(!k)return o;let M=k.getBoundingClientRect(),F=na((B-M.left)/M.width,0,1),w=o+F*(n-o);return na(rl(w,o,r),o,n)},[o,n,r]),v=zn.useCallback(B=>{if(l)return;B.preventDefault();let k=I(B.clientX);if(g){let w=e,T=Math.abs(k-w[0]),L=Math.abs(k-w[1]),N=T<=L?"start":"end";R.current=N;let C=N==="start"?[Math.min(k,w[1]),w[1]]:[w[0],Math.max(k,w[0])];t?.(C);}else R.current="end",t?.(k);let M=w=>{let T=I(w.clientX);if(g){let L=e;R.current==="start"?t?.([Math.min(T,L[1]),L[1]]):t?.([L[0],Math.max(T,L[0])]);}else t?.(T);},F=()=>{R.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",F);},[l,I,t,g,e]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},y=g?`${z[0]} \u2013 ${z[1]}`:`${e}`,D={width:f.thumb,height:f.thumb,borderRadius:"50%",backgroundColor:u.thumb,border:`2px solid ${u.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...d},className:c,children:[(a||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("label",{htmlFor:m,style:E,children:a}),s&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,userSelect:"none"},children:y})]}),jsxRuntime.jsxs("div",{ref:p,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":g?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:f.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${g?S:0}%`,width:`${x-(g?S:0)}%`,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackFill}}),g&&jsxRuntime.jsx("span",{style:{...D,left:`${S}%`}}),jsxRuntime.jsx("span",{style:{...D,left:`${x}%`}})]})]})};ra.displayName="Slider";var cl={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 bn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var dl=0,ia=({variant:e="dropzone",onFiles:t,accept:o,multiple:n=false,maxSize:r,disabled:a=false,label:l,helperText:s,error:g,value:b,buttonStyle:c="default",showFileList:d=true,buttonLabel:i,className:u,style:f})=>{let m=A(),p=cl[m],R=zn.useId(),z=zn.useRef(null),[h,S]=zn.useState(false),[x,I]=zn.useState([]),[v,E]=zn.useState(null),y=b!==void 0,D=y?b.map((C,P)=>({file:C,id:`controlled-${P}`})):x,B=!!g||!!v,k=typeof g=="string"?g:v??void 0,M=zn.useCallback(C=>{let P=Array.from(C);if(E(null),r){let H=P.find(W=>W.size>r);if(H){E(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${bn(r)}.`);return}}if(y){let W=n?[...b||[],...P]:P;t?.(W);}else {let H=P.map(V=>({file:V,id:`file-${++dl}`})),W=n?[...x,...H]:H;I(W),t?.(W.map(V=>V.file));}},[y,b,x,r,n,t]),F=zn.useCallback(C=>{C.preventDefault(),S(false),!a&&C.dataTransfer.files.length>0&&M(C.dataTransfer.files);},[a,M]),w=zn.useCallback(C=>{if(y){let P=(b||[]).filter((H,W)=>`controlled-${W}`!==C);t?.(P);}else {let P=x.filter(H=>H.id!==C);I(P),t?.(P.map(H=>H.file));}},[y,b,x,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${B?p.borderError:h?p.borderDrag:p.border}`,borderRadius:"8px",backgroundColor:h?p.backgroundDrag:a?p.backgroundDisabled:p.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:u,children:[l&&jsxRuntime.jsx("span",{style:T,children:l}),jsxRuntime.jsx("input",{ref:z,id:R,type:"file",accept:o,multiple:n,disabled:a,onChange:C=>{C.target.files&&C.target.files.length>0&&M(C.target.files),C.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:L,onClick:()=>!a&&z.current?.click(),onDragOver:C=>{C.preventDefault(),a||S(true);},onDragLeave:()=>S(false),onDrop:F,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:p.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):c==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&z.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:C=>{a||(C.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Nahr\xE1t soubor":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!a&&z.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${B?p.borderError:p.border}`,backgroundColor:a?p.backgroundDisabled:p.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:C=>{a||(C.currentTarget.style.borderColor=B?p.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:C=>{C.currentTarget.style.borderColor=B?p.borderError:p.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:D.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:p.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:p.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.length>0?p.text:p.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Vyberte soubor...":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)}),D.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(D[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:p.textSecondary})})]}),d&&D.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:D.map(C=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:p.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:p.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(C.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${C.file.name}`,onClick:P=>{P.stopPropagation(),w(C.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&w(C.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:p.removeColor})})]},C.id))}),k&&jsxRuntime.jsx("span",{style:{...N,color:p.borderError},children:k}),!k&&s&&jsxRuntime.jsx("span",{style:{...N,color:p.helperText},children:s})]})};ia.displayName="FileUpload";var fl={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)"}},gl={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"}},bl=({data:e,value:t,onChange:o,size:n="md",fullWidth:r=false,orientation:a="horizontal",disabled:l=false,className:s,style:g})=>{let b=A(),c=fl[b],d=gl[n],i=a==="vertical",u=e.map(S=>typeof S=="string"?{value:S,label:S}:S),f=u.findIndex(S=>S.value===t),m=zn.useRef(null),p=zn.useRef([]),[R,z]=zn.useState({offset:0,size:0}),h=zn.useCallback(()=>{let S=m.current,x=p.current[f];if(!S||!x||f<0)return;let I=S.getBoundingClientRect(),v=x.getBoundingClientRect();z(i?{offset:v.top-I.top,size:v.height}:{offset:v.left-I.left,size:v.width});},[f,i]);return zn.useEffect(()=>{h();},[h,t,e,n]),zn.useEffect(()=>(window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h]),jsxRuntime.jsxs("div",{ref:m,role:"radiogroup",className:s,style:{position:"relative",display:"inline-flex",width:r?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:c.bg,border:`1px solid ${c.border}`,borderRadius:d.borderRadius,padding:d.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...g},children:[f>=0&&R.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:d.itemRadius,backgroundColor:c.indicator,border:`1px solid ${c.indicatorBorder}`,boxShadow:c.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:d.padding,right:d.padding,top:R.offset,height:R.size}:{top:d.padding,bottom:d.padding,left:R.offset,width:R.size}}}),u.map((S,x)=>{let I=S.value===t,v=l||S.disabled;return jsxRuntime.jsxs("button",{ref:E=>{p.current[x]=E;},type:"button",role:"radio","aria-checked":I,disabled:v,onClick:()=>{v||o(S.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:r?1:void 0,padding:d.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:d.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:I?500:400,color:v?c.textDisabled:I?c.textActive:c.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:E=>{!v&&!I&&(E.currentTarget.style.color=c.textHover);},onMouseLeave:E=>{!v&&!I&&(E.currentTarget.style.color=c.text);},children:[S.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:S.icon}),(S.label||!S.icon&&S.value)&&jsxRuntime.jsx("span",{children:S.label??S.value})]},S.value)})]})};bl.displayName="SegmentedControl";var yl={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)"}},yn=180,vl=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],vn=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Sl=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},kl=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),n=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),r=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+n*587+r*114)/1e3>150},Cl=({value:e,onChange:t,presets:o=vl,label:n,disabled:r=false,style:a,className:l})=>{let s=A(),g=yl[s],c=zn.useId(),d=zn.useRef(null),i=zn.useRef(null),[u,f]=zn.useState(false),[m,p]=zn.useState(false),[R,z]=zn.useState("idle"),[h,S]=zn.useState(e),[x,I]=zn.useState(false),[v,E]=zn.useState({top:0,left:0,openAbove:false});zn.useEffect(()=>{x||S(e);},[e,x]);let y=zn.useCallback(()=>{r||(f(true),p(true),z("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>z("open"));}));},[r]),D=zn.useCallback(()=>{f(false),z("closing");let P=setTimeout(()=>{p(false),z("idle");},yn);return ()=>clearTimeout(P)},[]),B=zn.useCallback(()=>{if(!d.current)return;let P=d.current.getBoundingClientRect(),H=220,W=window.innerHeight-P.bottom-8,V=W<H&&P.top>W;E({top:V?P.top-8:P.bottom+8,left:P.left,openAbove:V});},[]);zn.useEffect(()=>{if(m)return B(),window.addEventListener("scroll",B,true),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,true),window.removeEventListener("resize",B);}},[m,B]),zn.useEffect(()=>{if(!u)return;let P=H=>{let W=H.target;!d.current?.contains(W)&&!i.current?.contains(W)&&D();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[u,D]);let k=P=>{let H=Sl(P.target.value);S(H),vn(H)&&t(H);},M=()=>{I(false),vn(h)?t(h):S(e);},F=P=>{t(P),S(P),D();},w=()=>{let P=v.openAbove,H=P?"translateY(8px)":"translateY(-8px)",W=P?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${yn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${yn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...V,opacity:0,transform:`${H} scale(0.97)`}:R==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},T={display:"flex",alignItems:"center",gap:"10px",backgroundColor:r?g.backgroundDisabled:g.background,border:`1px solid ${x?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:vn(e)?e:"#cccccc",border:`1px solid ${g.swatchBorder}`,flexShrink:0,cursor:r?"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:g.label,userSelect:"none"},C=m?reactDom.createPortal(jsxRuntime.jsx("div",{ref:i,style:{position:"fixed",...v.openAbove?{bottom:window.innerHeight-v.top,left:v.left}:{top:v.top,left:v.left},backgroundColor:g.popoverBg,border:`1px solid ${g.popoverBorder}`,borderRadius:"12px",boxShadow:s==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:v.openAbove?"bottom left":"top left",...w()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((P,H)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${P}`,onClick:()=>F(P),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:P,border:P===e?"2px solid #FC4F00":`1px solid ${g.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)";}},`${P}-${H}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:l,children:[n&&jsxRuntime.jsx("label",{htmlFor:c,style:N,children:n}),jsxRuntime.jsxs("div",{ref:d,style:T,children:[jsxRuntime.jsx("div",{style:L,onClick:()=>{r||(u?D():y());}}),jsxRuntime.jsx("input",{id:c,type:"text",value:h,onChange:k,onFocus:()=>I(true),onBlur:M,disabled:r,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:g.text,cursor:r?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.placeholder,cursor:r?"not-allowed":"pointer"},onClick:()=>{r||(u?D():y());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(kl(e)&&s==="light",g.placeholder)})})]}),C]})};Cl.displayName="ColorPicker";var Fl={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"}},El={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},zl=({value:e,onChange:t,max:o=5,size:n="md",readOnly:r=false,label:a,style:l,className:s})=>{let g=A(),b=Fl[g],c=zn.useId(),d=El[n],[i,u]=zn.useState(null),f=!r&&!!t,m=zn.useCallback(S=>{f&&t(S+1);},[f,t]),p=zn.useCallback(S=>{f&&u(S);},[f]),R=zn.useCallback(()=>{u(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},h=Array.from({length:o},(S,x)=>{let I=i!==null?i+1:e,v=x<I,E=i!==null&&x<=i;return jsxRuntime.jsx("span",{role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":f?`Hodnocen\xED ${x+1} z ${o}`:void 0,onClick:()=>m(x),onMouseEnter:()=>p(x),onMouseLeave:R,onKeyDown:y=>{f&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),m(x));},style:{display:"inline-flex",cursor:f?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:E?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:d.starSize,weight:v?"fill":"regular",color:v?E?b.starHover:b.starFilled:b.starEmpty})},x)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:s,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsxRuntime.jsx("label",{htmlFor:c,style:z,children:a}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:d.gap},onMouseLeave:R,children:h})]})};zl.displayName="Rating";var Hl={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"}},Ll=({length:e=6,value:t,onChange:o,error:n,disabled:r=false,autoFocus:a=false,label:l,separatorAfter:s,separator:g="-",style:b,className:c})=>{let d=A(),i=Hl[d],u=zn.useId(),f=zn.useRef([]),[m,p]=zn.useState(null),R=!!n,z=typeof n=="string"?n:void 0,h=t.padEnd(e,"").slice(0,e).split("");zn.useEffect(()=>{a&&f.current[0]&&f.current[0].focus();},[a]);let S=zn.useCallback(F=>{F>=0&&F<e&&f.current[F]?.focus();},[e]),x=zn.useCallback(F=>{let w=F.join("").replace(/[^0-9]/g,"");o(w);},[o]),I=zn.useCallback((F,w)=>{if(!/^[0-9]$/.test(w))return;let T=[...h];T[F]=w,x(T),F<e-1&&S(F+1);},[h,e,x,S]),v=zn.useCallback((F,w)=>{switch(w.key){case "Backspace":if(w.preventDefault(),h[F]){let T=[...h];T[F]="",x(T);}else if(F>0){let T=[...h];T[F-1]="",x(T),S(F-1);}break;case "Delete":w.preventDefault();{let T=[...h];T[F]="",x(T);}break;case "ArrowLeft":w.preventDefault(),F>0&&S(F-1);break;case "ArrowRight":w.preventDefault(),F<e-1&&S(F+1);break}},[h,e,x,S]),E=zn.useCallback((F,w)=>{let L=w.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&I(F,L);},[I]),y=zn.useCallback(F=>{F.preventDefault();let w=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!w)return;let T=[...h];for(let N=0;N<w.length;N++)T[N]=w[N];x(T);let L=Math.min(w.length,e-1);S(L);},[h,e,x,S]),D=zn.useCallback(F=>{p(F),f.current[F]?.select();},[]),B=zn.useCallback(()=>{p(null);},[]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},M=F=>{let w=m===F,T=!!h[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:i.text,textAlign:"center",backgroundColor:r?i.backgroundDisabled:T?i.backgroundFilled:i.background,border:`1px solid ${R?i.borderError:w?i.borderFocus:T?i.borderFilled:i.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"text",caretColor:i.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...b},className:c,children:[l&&jsxRuntime.jsx("label",{htmlFor:`${u}-0`,style:k,children:l}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:y,children:Array.from({length:e},(F,w)=>jsxRuntime.jsxs(zn__default.default.Fragment,{children:[s&&w>0&&w%s===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:i.text,userSelect:"none",lineHeight:"normal",opacity:r?.6:.5,padding:"0 2px"},children:g}),jsxRuntime.jsx("input",{ref:T=>{f.current[w]=T;},id:`${u}-${w}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:h[w]||"",onChange:T=>E(w,T),onKeyDown:T=>v(w,T),onFocus:()=>D(w),onBlur:B,disabled:r,"aria-label":`\u010C\xEDslice ${w+1} z ${e}`,style:M(w)})]},w))}),z&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.borderError,lineHeight:"normal"},children:z})]})};Ll.displayName="OTPInput";var Zl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Cn=180,Yl={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},Vl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function Ul(e,t){return [...t].sort((n,r)=>r.dialCode.length-n.dialCode.length).find(n=>e.startsWith(n.dialCode))}var Xl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:n,label:r,error:a,helperText:l,disabled:s=false,size:g="md",placeholder:b="123 456 789",style:c,className:d})=>{let i=A(),u=Zl[i],f=Yl[g],m=zn.useId(),p=n||Vl,R=zn.useRef(null),z=zn.useRef(null),h=zn.useRef(null),S=zn.useRef(null),[x,I]=zn.useState(false),[v,E]=zn.useState(false),[y,D]=zn.useState(false),[B,k]=zn.useState("idle"),[M,F]=zn.useState(""),[w,T]=zn.useState(-1),[L,N]=zn.useState({top:0,left:0,width:0,openAbove:false}),C=!!a,P=typeof a=="string"?a:void 0,H=zn.useMemo(()=>{if(e){let Y=Ul(e,p);if(Y)return Y}return p.find(Y=>Y.code===o)||p[0]},[e,p,o]),W=zn.useMemo(()=>!e||!H?"":e.startsWith(H.dialCode)?e.slice(H.dialCode.length):e.replace(/^\+\d+/,""),[e,H]),V=zn.useMemo(()=>{if(!M)return p;let Y=M.toLowerCase();return p.filter(j=>j.name.toLowerCase().includes(Y)||j.dialCode.includes(Y)||j.code.toLowerCase().includes(Y))},[p,M]),q=zn.useCallback(()=>{E(true),D(true),k("opening"),F(""),T(-1);let Y=setTimeout(()=>{k("open"),S.current?.focus();},10);return ()=>clearTimeout(Y)},[]),Z=zn.useCallback(()=>{E(false),k("closing");let Y=setTimeout(()=>{D(false),k("idle");},Cn);return ()=>clearTimeout(Y)},[]),$=zn.useCallback(()=>{if(!R.current)return;let Y=R.current.getBoundingClientRect(),j=z.current?.offsetHeight??300,ie=window.innerHeight-Y.bottom-6,Me=Y.top-6,Je=ie<j&&Me>ie;N({top:Je?Y.top-6:Y.bottom+6,left:Y.left,width:Math.max(Y.width,280),openAbove:Je});},[]);zn.useEffect(()=>{if(y)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[y,$]),zn.useEffect(()=>{if(!v)return;let Y=j=>{let ie=j.target;!R.current?.contains(ie)&&!z.current?.contains(ie)&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[v,Z]);let G=zn.useCallback(Y=>{let j=Y.dialCode+W;t?.(j),Z(),h.current?.focus();},[W,t,Z]),X=Y=>{let j=Y.target.value.replace(/[^0-9\s]/g,"");t?.(H.dialCode+j);},ee=Y=>{let j=Y.clipboardData.getData("text").trim();j.startsWith("+")&&(Y.preventDefault(),t?.(j.replace(/[^0-9+]/g,"")));},J=Y=>{switch(Y.key){case "ArrowDown":Y.preventDefault(),T(j=>Math.min(j+1,V.length-1));break;case "ArrowUp":Y.preventDefault(),T(j=>Math.max(j-1,0));break;case "Enter":Y.preventDefault(),w>=0&&V[w]&&G(V[w]);break;case "Escape":Y.preventDefault(),Z(),h.current?.focus();break}},te=()=>{let Y=L.openAbove,j=Y?"translateY(8px)":"translateY(-8px)",ie=Y?"translateY(6px)":"translateY(-6px)",Me={transition:`opacity ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...Me,opacity:0,transform:`${j} scale(0.97)`}:B==="open"?{...Me,opacity:1,transform:"translateY(0) scale(1)"}:{...Me,opacity:0,transform:`${ie} scale(0.98)`,pointerEvents:"none"}},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},be={display:"flex",alignItems:"center",backgroundColor:s?u.backgroundDisabled:u.background,border:`1px solid ${C?u.borderError:x?u.borderFocus:u.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden"},we=y?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:z,style:{position:"fixed",...L.openAbove?{bottom:window.innerHeight-L.top,left:L.left}:{top:L.top,left:L.left},width:L.width,backgroundColor:u.dropdownBg,border:`1px solid ${u.dropdownBorder}`,borderRadius:"12px",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:L.openAbove?"bottom center":"top center",...te()},onKeyDown:J,children:[jsxRuntime.jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${u.divider}`},children:jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:14,color:u.placeholder}),jsxRuntime.jsx("input",{ref:S,type:"text",value:M,onChange:Y=>{F(Y.target.value),T(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.text}})]})}),jsxRuntime.jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[V.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:u.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((Y,j)=>{let ie=Y.code===H.code;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:j===w?u.optionHover:ie?u.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>G(Y),onMouseEnter:()=>T(j),onMouseLeave:()=>T(-1),children:[jsxRuntime.jsx("span",{style:{fontSize:"18px",flexShrink:0},children:Y.flag}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ie?u.optionSelectedText:u.text,fontWeight:ie?500:400},children:Y.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.placeholder,flexShrink:0},children:Y.dialCode})]},Y.code)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{className:d,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},children:[r&&jsxRuntime.jsx("label",{htmlFor:m,style:re,children:r}),jsxRuntime.jsxs("div",{ref:R,style:be,children:[jsxRuntime.jsxs("button",{type:"button",disabled:s,onClick:()=>{s||(v?Z():q());},style:{display:"flex",alignItems:"center",gap:"4px",padding:f.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,flexShrink:0,outline:"none"},children:[jsxRuntime.jsx("span",{style:{fontSize:g==="sm"?"14px":"18px"},children:H.flag}),jsxRuntime.jsx("span",{style:{fontSize:"13px",color:u.placeholder},children:H.dialCode}),jsxRuntime.jsx(react.CaretDown,{size:12,color:u.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}),jsxRuntime.jsx("div",{style:{width:"1px",height:"60%",backgroundColor:u.divider,flexShrink:0}}),jsxRuntime.jsx("input",{ref:h,id:m,type:"tel",value:W,onChange:X,onPaste:ee,onFocus:()=>I(true),onBlur:()=>I(false),placeholder:b,disabled:s,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,padding:f.padding,paddingLeft:"8px"}})]}),P&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:P}),!P&&l&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.helperText,lineHeight:"normal"},children:l}),we]})};Xl.displayName="PhoneInput";var jl={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},Rn=10;function Fo(e,t,o){return Math.max(t,Math.min(o,e))}var Kl=({src:e,onCrop:t,onCancel:o,aspectRatio:n,minWidth:r=50,minHeight:a=50,shape:l="rect",style:s,className:g})=>{let b=A(),c=jl[b],d=zn.useRef(null),i=zn.useRef(null),[u,f]=zn.useState(""),[m,p]=zn.useState(false),[R,z]=zn.useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[h,S]=zn.useState({x:0,y:0,width:0,height:0}),[x,I]=zn.useState(null),v=l==="circle"?1:n;zn.useEffect(()=>{if(e instanceof File){let w=URL.createObjectURL(e);return f(w),()=>URL.revokeObjectURL(w)}else f(e);},[e]);let E=zn.useCallback(()=>{let w=d.current,T=i.current;if(!w||!T||!T.naturalWidth)return;let L=w.clientWidth,N=w.clientHeight,C=T.naturalWidth,P=T.naturalHeight,H=Math.min(L/C,N/P),W=C*H,V=P*H,q=(L-W)/2,Z=(N-V)/2;z({natural:{w:C,h:P},display:{w:W,h:V},offset:{x:q,y:Z}});let $=W*.8,G=V*.8,X,ee;v?$/v<=G?(X=$,ee=$/v):(ee=G,X=G*v):(X=$,ee=G),X=Math.max(X,r),ee=Math.max(ee,a),S({x:q+(W-X)/2,y:Z+(V-ee)/2,width:X,height:ee});},[v,r,a]),y=()=>{p(true),E();};zn.useEffect(()=>(window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)),[E]);let D=w=>"touches"in w?{x:w.touches[0].clientX,y:w.touches[0].clientY}:{x:w.clientX,y:w.clientY};zn.useEffect(()=>{if(!x)return;let{display:{w,h:T},offset:{x:L,y:N}}=R,C=H=>{H.preventDefault();let W=D(H);if(!d.current?.getBoundingClientRect())return;let q=W.x-x.startX,Z=W.y-x.startY,$=x.startCrop,G={...$};if(x.type==="move")G.x=Fo($.x+q,L,L+w-$.width),G.y=Fo($.y+Z,N,N+T-$.height);else {let X=$.x,ee=$.y,J=$.width,te=$.height,re=x.type;re.includes("e")&&(J=Math.max(r,$.width+q)),re.includes("w")&&(J=Math.max(r,$.width-q),X=$.x+$.width-J),re.includes("s")&&(te=Math.max(a,$.height+Z)),re.includes("n")&&(te=Math.max(a,$.height-Z),ee=$.y+$.height-te),v&&(re==="n"||re==="s"?(J=te*v,X=$.x+($.width-J)/2):re==="e"||re==="w"?(te=J/v,ee=$.y+($.height-te)/2):(te=J/v,re.includes("n")&&(ee=$.y+$.height-te))),X=Fo(X,L,L+w-J),ee=Fo(ee,N,N+T-te),J=Math.min(J,L+w-X),te=Math.min(te,N+T-ee),G={x:X,y:ee,width:J,height:te};}S(G);},P=()=>I(null);return document.addEventListener("mousemove",C),document.addEventListener("mouseup",P),document.addEventListener("touchmove",C,{passive:false}),document.addEventListener("touchend",P),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",P);}},[x,R,v,r,a]);let B=(w,T)=>{T.preventDefault(),T.stopPropagation();let L="touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};I({type:w,startX:L.x,startY:L.y,startCrop:{...h}});},k=zn.useCallback(()=>{let w=i.current;if(!w||!R.display.w)return;let T=R.natural.w/R.display.w,L=(h.x-R.offset.x)*T,N=(h.y-R.offset.y)*T,C=h.width*T,P=h.height*T,H=document.createElement("canvas");H.width=C,H.height=P;let W=H.getContext("2d");W&&(l==="circle"&&(W.beginPath(),W.arc(C/2,P/2,C/2,0,Math.PI*2),W.clip()),W.drawImage(w,L,N,C,P,0,0,C,P),H.toBlob(V=>{V&&t(V);},"image/png"));},[h,R,l,t]),M=zn.useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),F={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxRuntime.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",backgroundColor:c.containerBg,border:`1px solid ${c.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...s},children:[jsxRuntime.jsxs("div",{ref:d,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:x?x.type==="move"?"grabbing":`${x.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[u&&jsxRuntime.jsx("img",{ref:i,src:u,crossOrigin:"anonymous",onLoad:y,style:{position:"absolute",top:R.offset.y,left:R.offset.x,width:R.display.w||"100%",height:R.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:h.y,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y+h.height,left:0,right:0,bottom:0,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y,left:0,width:h.x,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y,left:h.x+h.width,right:0,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsxs("div",{style:{position:"absolute",left:h.x,top:h.y,width:h.width,height:h.height,border:`2px dashed ${c.cropBorder}`,borderRadius:l==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:w=>B("move",w),onTouchStart:w=>B("move",w),children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),M.map(w=>jsxRuntime.jsx("div",{style:{position:"absolute",width:Rn,height:Rn,backgroundColor:c.handleBg,border:`1px solid ${c.handleBorder}`,borderRadius:"2px",cursor:w.cursor,zIndex:2,...w.style},onMouseDown:T=>B(w.type,T),onTouchStart:T=>B(w.type,T)},w.type))]})]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:c.actionBarBg,borderTop:`1px solid ${c.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxRuntime.jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonSecondaryBg,color:c.buttonSecondaryText,border:`1px solid ${c.buttonSecondaryBorder}`},onClick:o,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.X,{size:14}),"Zru\u0161it"]}),jsxRuntime.jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonPrimary,color:c.buttonPrimaryText,border:"1px solid transparent"},onClick:k,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimary;},children:[jsxRuntime.jsx(react.Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};Kl.displayName="ImageCropper";var Ql={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)"}},xa="smSkeletonShimmer",ec=`@keyframes ${xa}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,ve=({variant:e="text",width:t,height:o,lines:n=1,animate:r=true,className:a,style:l})=>{let s=A(),g=Ql[s],b=t??(e==="circle"?40:"100%"),c=o??(e==="circle"?40:e==="text"?"1em":100),d={backgroundColor:g.base,backgroundImage:r?`linear-gradient(90deg, ${g.base} 25%, ${g.shimmer} 50%, ${g.base} 75%)`:void 0,backgroundSize:r?"200% 100%":void 0,animation:r?`${xa} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof b=="number"?`${b}px`:b,height:typeof c=="number"?`${c}px`:c},i=r?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:ec}}):null;return e==="text"&&n>1?jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:n}).map((u,f)=>jsxRuntime.jsx("div",{style:{...d,width:f===n-1?"75%":d.width}},f))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,jsxRuntime.jsx("div",{className:a,style:{...d,...l}})]})};ve.displayName="Skeleton";var nc={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)"}},rc=({columns:e,data:t,loading:o=false,emptyText:n="\u017D\xE1dn\xE1 data",onSort:r,sortKey:a,sortDirection:l,striped:s=false,hoverable:g=true,onRowClick:b,rowActions:c,className:d,style:i})=>{let u=A(),f=nc[u],m=S=>{if(!S.sortable||!r)return;let x=a===S.key&&l==="asc"?"desc":"asc";r(S.key,x);},p={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,backgroundColor:f.background,border:`1px solid ${f.border}`,borderRadius:"12px",overflow:"hidden",...i},R=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:f.textSecondary,backgroundColor:f.headerBg,borderBottom:`1px solid ${f.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}),z={padding:"10px 16px",borderBottom:`1px solid ${f.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:d,style:p,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[e.map(S=>jsxRuntime.jsx("th",{style:R(S),onClick:()=>m(S),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:a===S.key?f.sortActive:f.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key)),c&&jsxRuntime.jsx("th",{style:{...R({sortable:false}),width:"auto"}})]})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((S,x)=>jsxRuntime.jsx("tr",{children:e.map(I=>jsxRuntime.jsx("td",{style:z,children:jsxRuntime.jsx(ve,{variant:"text",width:"80%"})},I.key))},`skel-${x}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...z,textAlign:"center",padding:"32px 16px",color:f.textSecondary,borderBottom:"none"},children:n})}):t.map((S,x)=>jsxRuntime.jsxs("tr",{style:{backgroundColor:s&&x%2===1?f.stripedBg:"transparent",transition:"background-color 0.12s ease",cursor:b?"pointer":"default"},onClick:I=>{b&&!I.target.closest("[data-no-row-click]")&&b(S,x);},onMouseEnter:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=f.rowHover);},onMouseLeave:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=s&&x%2===1?f.stripedBg:"transparent");},children:[e.map(I=>jsxRuntime.jsx("td",{style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom},children:I.render?I.render(S[I.key],S,x):S[I.key]},I.key)),c&&jsxRuntime.jsx("td",{"data-no-row-click":true,style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom,textAlign:"right",whiteSpace:"nowrap"},onClick:I=>I.stopPropagation(),children:c(S)})]},x))})]})};rc.displayName="Table";var ic={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"}},va=({checked:e,indeterminate:t,onChange:o,t:n})=>{let r=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${r?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:r?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},sc=({columns:e,data:t,selectable:o=false,onSelectionChange:n,loading:r=false,rowKey:a="id",onRowClick:l,stickyHeader:s=false,emptyText:g="\u017D\xE1dn\xE1 data",style:b,className:c})=>{let d=A(),i=ic[d],[u,f]=zn.useState(new Set),[m,p]=zn.useState(null),R=zn.useMemo(()=>t.map(k=>String(k[a])),[t,a]),z=R.length>0&&R.every(k=>u.has(k)),h=R.some(k=>u.has(k))&&!z,S=zn.useCallback(()=>{let k=z?new Set:new Set(R);f(k),n?.(Array.from(k));},[z,R,n]),x=zn.useCallback(k=>{f(M=>{let F=new Set(M);return F.has(k)?F.delete(k):F.add(k),n?.(Array.from(F)),F});},[n]),I={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background},v=k=>({padding:"12px 16px",textAlign:k.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",userSelect:"none",width:k.width!=null?typeof k.width=="number"?`${k.width}px`:k.width:void 0,minWidth:k.minWidth!=null?`${k.minWidth}px`:void 0,...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),E=k=>({padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal",textAlign:k.align||"left"}),y={padding:"12px 12px 12px 16px",backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,width:"40px",...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},D={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${i.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:c,style:{overflow:s?"auto":"hidden",borderRadius:"12px",border:`1px solid ${i.border}`,...b},children:jsxRuntime.jsxs("table",{style:I,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:y,children:jsxRuntime.jsx(va,{checked:z,indeterminate:h,onChange:S,t:i})}),e.map(k=>jsxRuntime.jsx("th",{style:v(k),children:k.header},k.key))]})}),jsxRuntime.jsx("tbody",{children:r?Array.from({length:5}).map((k,M)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:D,children:jsxRuntime.jsx(ve,{variant:"rect",width:16,height:16})}),e.map(F=>jsxRuntime.jsx("td",{style:E(F),children:jsxRuntime.jsx(ve,{variant:"text",width:"80%"})},F.key))]},`skel-${M}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:g})}):t.map((k,M)=>{let F=String(k[a]),w=u.has(F),T=m===F,L=M===t.length-1,N="transparent";return w?N=i.selectedRowBg:T&&(N=i.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:N,cursor:l?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>p(F),onMouseLeave:()=>p(null),onClick:()=>l?.(k),children:[o&&jsxRuntime.jsx("td",{style:{...D,borderBottom:L?"none":D.borderBottom},children:jsxRuntime.jsx(va,{checked:w,onChange:()=>x(F),t:i})}),e.map(C=>jsxRuntime.jsx("td",{style:{...E(C),borderBottom:L?"none":E(C).borderBottom},children:C.render?C.render(k[C.key],k,M):k[C.key]},C.key))]},F)})})]})})};sc.displayName="DataGrid";var pc={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ka=({checked:e,indeterminate:t,onChange:o,t:n})=>jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:r=>{r.stopPropagation(),o();},onKeyDown:r=>{(r.key===" "||r.key==="Enter")&&(r.preventDefault(),r.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:e||t?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M3 6H9",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),uc=({columns:e,data:t,primaryKey:o,rowKey:n="id",selectable:r=false,selectedIds:a,onSelectionChange:l,onCardClick:s,onSort:g,sortKey:b,sortDirection:c,loading:d=false,skeletonCount:i=3,emptyText:u="\u017D\xE1dn\xE1 data",emptyContent:f,gap:m=12,cardActions:p,style:R,className:z})=>{let h=A(),S=pc[h],[x,I]=zn.useState(new Set),[v,E]=zn.useState(null),y=a!==void 0,D=zn.useMemo(()=>y?new Set(a):x,[y,a,x]),B=zn.useMemo(()=>e.find(C=>C.primary)||(o?e.find(C=>C.key===o):void 0),[e,o]),k=zn.useMemo(()=>e.filter(C=>!C.hidden&&C!==B),[e,B]),M=zn.useMemo(()=>e.filter(C=>C.sortable),[e]),F=zn.useCallback(C=>{let P=new Set(D);P.has(C)?P.delete(C):P.add(C),y||I(P),l?.(Array.from(P));},[D,y,l]),w=zn.useCallback(()=>{let C=t.map(W=>String(W[n])),H=C.every(W=>D.has(W))?new Set:new Set(C);y||I(H),l?.(Array.from(H));},[t,n,D,y,l]),T=t.length>0&&t.every(C=>D.has(String(C[n]))),L=t.some(C=>D.has(String(C[n])))&&!T,N=zn.useCallback(C=>{if(!g)return;g(C,b===C&&c==="asc"?"desc":"asc");},[g,b,c]);if(d){let C=k.length>0?k.length:3;return jsxRuntime.jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:Array.from({length:i}).map((P,H)=>jsxRuntime.jsxs("div",{style:{backgroundColor:S.cardBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(B||r)&&jsxRuntime.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${S.divider}`,backgroundColor:S.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[r&&jsxRuntime.jsx(ve,{variant:"rect",width:18,height:18}),jsxRuntime.jsx(ve,{variant:"text",width:"45%",height:18})]}),Array.from({length:C}).map((W,V)=>jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:V<C-1?`1px solid ${S.divider}`:"none"},children:[jsxRuntime.jsx(ve,{variant:"text",width:70,height:12}),jsxRuntime.jsx(ve,{variant:"text",width:100,height:14})]},V)),p&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},children:[jsxRuntime.jsx(ve,{variant:"rect",width:64,height:30}),jsxRuntime.jsx(ve,{variant:"rect",width:64,height:30})]})]},H))})}return t.length===0?jsxRuntime.jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:jsxRuntime.jsx("div",{style:{backgroundColor:S.emptyBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:S.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:f??u})}):jsxRuntime.jsxs("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...R},children:[(r||M.length>0)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsxRuntime.jsx(ka,{checked:T,indeterminate:L,onChange:w,t:S}),jsxRuntime.jsx("span",{style:{fontSize:"12px",color:S.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:D.size>0?`${D.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),M.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:r?"auto":0},children:M.map(C=>{let P=b===C.key;return jsxRuntime.jsxs("button",{onClick:()=>N(C.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:P?S.sortChipActiveBg:S.sortChipBg,color:P?S.sortActive:S.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:P?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[C.header,P?c==="asc"?jsxRuntime.jsx(react.CaretUp,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretDown,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretUpDown,{size:12})]},C.key)})})]}),t.map((C,P)=>{let H=String(C[n]),W=D.has(H),V=v===H,q=B?B.render?B.render(C[B.key],C,P):C[B.key]:null;return jsxRuntime.jsxs("div",{style:{backgroundColor:W?S.selectedBg:V?S.hover:S.cardBg,border:`1px solid ${W?S.selectedBorder:S.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:s?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>s?.(C),onMouseEnter:()=>E(H),onMouseLeave:()=>E(null),children:[(q!==null||r)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:S.headerBg,borderBottom:`1px solid ${S.divider}`},children:[r&&jsxRuntime.jsx(ka,{checked:W,onChange:()=>F(H),t:S}),q!==null&&jsxRuntime.jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:S.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q})]}),jsxRuntime.jsx("div",{children:k.map((Z,$)=>{let G=Z.render?Z.render(C[Z.key],C,P):C[Z.key];return jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<k.length-1?`1px solid ${S.divider}`:"none"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:S.textSecondary,flexShrink:0,paddingTop:"2px"},children:Z.header}),jsxRuntime.jsx("span",{style:{fontSize:"14px",color:S.text,textAlign:"right",wordBreak:"break-word"},children:G??"\u2014"})]},Z.key)})}),p&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},onClick:Z=>Z.stopPropagation(),children:p(C,P)})]},H??P)})]})};uc.displayName="MobileDataCard";var fc={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)"}},gc={none:"0",sm:"12px",md:"20px",lg:"28px"},bc=({title:e,subtitle:t,header:o,footer:n,children:r,hoverable:a=false,bordered:l=true,padding:s="md",className:g,style:b})=>{let c=A(),d=fc[c],i=gc[s],u={backgroundColor:d.background,border:l?`1px solid ${d.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...b},f=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:i,paddingBottom:r||n?"0":i},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:d.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:g,style:u,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=d.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=c==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=l?d.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[f,r&&jsxRuntime.jsx("div",{style:{padding:i},children:r}),n&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${d.divider}`}}),jsxRuntime.jsx("div",{style:{padding:i},children:n})]})]})};bc.displayName="Card";var Ra={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)"}},vc=({title:e,children:t,defaultOpen:o=false,disabled:n=false,_controlled:r,_open:a,_onToggle:l})=>{let s=A(),g=Ra[s],[b,c]=zn.useState(o),d=r?!!a:b,i=zn.useRef(null),[u,f]=zn.useState(0);zn.useEffect(()=>{i.current&&f(i.current.scrollHeight);},[t,d]);let m=zn.useCallback(()=>{n||(r&&l?l():c(p=>!p));},[n,r,l]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${g.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:n?g.textDisabled:g.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:p=>{n||(p.currentTarget.style.backgroundColor=g.hoverBg);},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:n?g.chevronDisabled:g.chevron,style:{transition:"transform 0.25s ease",transform:d?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:d?`${u}px`:"0px",transition:"max-height 0.25s ease"},children:jsxRuntime.jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:g.textSecondary},children:t})})]})};vc.displayName="AccordionItem";var Sc=({children:e,multiple:t=false,className:o,style:n})=>{let r=A(),a=Ra[r],l=zn__default.default.Children.toArray(e).filter(c=>zn__default.default.isValidElement(c)),[s,g]=zn.useState(()=>{let c=new Set;return l.forEach((d,i)=>{d.props.defaultOpen&&c.add(i);}),c}),b=zn.useCallback(c=>{g(d=>{let i=new Set(d);return i.has(c)?i.delete(c):(t||i.clear(),i.add(c)),i});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...n},children:l.map((c,d)=>zn__default.default.cloneElement(c,{key:d,_controlled:true,_open:s.has(d),_onToggle:()=>b(d)}))})};Sc.displayName="Accordion";var kc={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)"}},Cc={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},wc=()=>null;wc.displayName="Tab";var Rc=()=>null;Rc.displayName="TabPanel";var Tc=({value:e,onChange:t,children:o,variant:n="underline",fullWidth:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=kc[g],c=Cc[a],d=zn__default.default.Children.toArray(o),i=d.filter(m=>zn__default.default.isValidElement(m)&&m.type?.displayName==="Tab"),f=d.filter(m=>zn__default.default.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxRuntime.jsxs("div",{className:l,style:s,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:n==="pills"?"4px":"0",borderBottom:n==="underline"?`1px solid ${b.border}`:"none"},children:i.map(m=>{let p=m.props.value===e,R=m.props.disabled,z=n==="underline"?{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.text:b.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${p?b.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.pillText:b.textInactive,backgroundColor:p?b.pillBg:b.pillInactiveBg,border:"none",borderRadius:"8px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:R,style:z,onClick:()=>{R||t(m.props.value);},onMouseEnter:h=>{!R&&!p&&(h.currentTarget.style.backgroundColor=b.hoverBg);},onMouseLeave:h=>{R||(h.currentTarget.style.backgroundColor=n==="pills"&&p?b.pillBg:"transparent");},children:[m.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),f&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:f.props.children})]})};Tc.displayName="Tabs";var zc={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"}},Mn=180,Io=8,Bc=({content:e,children:t,position:o="bottom",trigger:n="click",className:r,style:a})=>{let l=A(),s=zc[l],[g,b]=zn.useState(false),[c,d]=zn.useState(false),[i,u]=zn.useState("idle"),[f,m]=zn.useState({top:0,left:0}),p=zn.useRef(null),R=zn.useRef(null),z=zn.useRef(void 0),h=zn.useCallback(()=>{b(true),d(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),S=zn.useCallback(()=>{b(false),u("closing");let B=setTimeout(()=>{d(false),u("idle");},Mn);return ()=>clearTimeout(B)},[]),x=zn.useCallback(()=>{let B=p.current,k=R.current;if(!B||!k)return;let M=B.getBoundingClientRect(),F=k.getBoundingClientRect(),w=0,T=0;switch(o){case "top":w=M.top-F.height-Io,T=M.left+M.width/2-F.width/2;break;case "bottom":w=M.bottom+Io,T=M.left+M.width/2-F.width/2;break;case "left":w=M.top+M.height/2-F.height/2,T=M.left-F.width-Io;break;case "right":w=M.top+M.height/2-F.height/2,T=M.right+Io;break}m({top:w,left:T});},[o]);zn.useEffect(()=>{if(c)return requestAnimationFrame(x),window.addEventListener("scroll",x,true),window.addEventListener("resize",x),()=>{window.removeEventListener("scroll",x,true),window.removeEventListener("resize",x);}},[c,x]),zn.useEffect(()=>{if(!g)return;let B=k=>{let M=k.target;!p.current?.contains(M)&&!R.current?.contains(M)&&S();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[g,S]),zn.useEffect(()=>{if(!g)return;let B=k=>{k.key==="Escape"&&S();};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[g,S]);let I=()=>{let B={transition:`opacity ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1)`},k={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.97)`}:i==="open"?{...B,opacity:1,transform:"translateY(0) scale(1)"}:{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.98)`,pointerEvents:"none"}},v=zn.useCallback(()=>{n==="click"&&(g?S():h());},[n,g,S,h]),E=zn.useCallback(()=>{n==="hover"&&(z.current&&clearTimeout(z.current),g||h());},[n,g,h]),y=zn.useCallback(()=>{n==="hover"&&(z.current=setTimeout(()=>{S();},150));},[n,S]);zn.useEffect(()=>()=>{z.current&&clearTimeout(z.current);},[]);let D=c?reactDom.createPortal(jsxRuntime.jsx("div",{ref:R,className:r,onMouseEnter:()=>{n==="hover"&&z.current&&clearTimeout(z.current);},onMouseLeave:y,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"16px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",color:s.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...I(),...a},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[zn__default.default.cloneElement(t,{ref:p,onClick:B=>{v(),t.props.onClick?.(B);},onMouseEnter:B=>{E(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{y(),t.props.onMouseLeave?.(B);}}),D]})};Bc.displayName="Popover";var $c={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Wc={"no-data":{icon:jsxRuntime.jsx(react.Tray,{size:48}),title:"\u017D\xE1dn\xE1 data",description:"Zat\xEDm zde nejsou \u017E\xE1dn\xE9 z\xE1znamy."},"no-results":{icon:jsxRuntime.jsx(react.MagnifyingGlass,{size:48}),title:"\u017D\xE1dn\xE9 v\xFDsledky",description:"Zkuste upravit filtr nebo hledan\xFD v\xFDraz."},"no-permission":{icon:jsxRuntime.jsx(react.Lock,{size:48}),title:"Nem\xE1te opr\xE1vn\u011Bn\xED",description:"Pro p\u0159\xEDstup kontaktujte administr\xE1tora."},error:{icon:jsxRuntime.jsx(react.WarningCircle,{size:48}),title:"N\u011Bco se pokazilo",description:"Nepoda\u0159ilo se na\u010D\xEDst data. Zkuste to znovu."},"coming-soon":{icon:jsxRuntime.jsx(react.Rocket,{size:48}),title:"Ji\u017E brzy",description:"Tato funkce je ve v\xFDvoji."}},Oc={sm:{padding:"24px 16px",iconSize:32,titleSize:"14px",descSize:"12px",maxWidth:"280px"},md:{padding:"48px 24px",iconSize:48,titleSize:"18px",descSize:"14px",maxWidth:"360px"},lg:{padding:"64px 32px",iconSize:64,titleSize:"22px",descSize:"15px",maxWidth:"440px"}},Zc=({icon:e,title:t,description:o,action:n,preset:r,size:a="md",className:l,style:s})=>{let g=A(),b=$c[g],c=Oc[a],d=r?Wc[r]:void 0,i=e??d?.icon,u=t??d?.title??"",f=o??d?.description;return jsxRuntime.jsxs("div",{className:l,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:c.padding,gap:"12px",...s},children:[i&&jsxRuntime.jsx("div",{style:{lineHeight:1,color:b.iconColor,marginBottom:"4px"},children:i}),u&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:c.titleSize,lineHeight:"normal",color:b.text},children:u}),f&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.descSize,lineHeight:"1.5",color:b.textSecondary,maxWidth:c.maxWidth},children:f}),n&&jsxRuntime.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px",alignItems:"center"},children:n})]})};Zc.displayName="EmptyState";var Gc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",helper:"#888888",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)",hoverBg:"rgba(255,255,255,0.04)",hoverShadow:"0 4px 16px rgba(0,0,0,0.3)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",helper:"#999999",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)",hoverBg:"rgba(0,0,0,0.02)",hoverShadow:"0 4px 16px rgba(0,0,0,0.08)"}},_c=({label:e,value:t,change:o,changeLabel:n,icon:r,trend:a="neutral",loading:l=false,onClick:s,helper:g,className:b,style:c})=>{let d=A(),i=Gc[d],[u,f]=zn.useState(false),m=!!s,p=a==="up"?i.trendUp:a==="down"?i.trendDown:i.trendNeutral,R=h=>`${h>0?"+":""}${h.toFixed(1)} %`;return jsxRuntime.jsxs(m?"button":"div",{className:b,onClick:m?s:void 0,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),type:m?"button":void 0,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:u&&m?i.hoverBg:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",padding:"16px 20px",cursor:m?"pointer":"default",transition:"transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease",transform:u&&m?"translateY(-2px)":"translateY(0)",boxShadow:u&&m?i.hoverShadow:"none",outline:"none",textAlign:"left",width:"100%",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...c},children:[r&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:i.iconColor,flexShrink:0,color:i.text},children:r}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.label,lineHeight:"normal",marginBottom:"4px"},children:e}),l?jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"2px"},children:[jsxRuntime.jsx(ve,{variant:"text",width:"60%",height:24}),o!==void 0&&jsxRuntime.jsx(ve,{variant:"text",width:"40%",height:14})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:i.text},children:t}),g&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:i.helper,marginTop:"2px"},children:g}),o!==void 0&&jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p},children:[a==="up"&&jsxRuntime.jsx(react.TrendUp,{size:14,color:p}),a==="down"&&jsxRuntime.jsx(react.TrendDown,{size:14,color:p}),jsxRuntime.jsx("span",{children:R(o)}),n&&jsxRuntime.jsx("span",{style:{color:i.label,marginLeft:"2px"},children:n})]})]})]})]})};_c.displayName="Stat";var jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],zb=({initials:e,size:t="md",borderRadius:o="8px",style:n,className:r,"aria-label":a})=>{let l=jc(t),s={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...n},g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:s,className:r,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:g,children:e.toUpperCase()})})};var Kc={dark:{overflowBg:"rgba(60,60,60,0.95)",overflowText:"#ffffff",overflowBorder:"rgba(3,3,3,1)",ringColor:"rgba(3,3,3,1)"},light:{overflowBg:"rgba(220,220,220,0.95)",overflowText:"#1a1a1a",overflowBorder:"rgba(255,255,255,1)",ringColor:"rgba(255,255,255,1)"}},Jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Qc={tight:-0.4,normal:-0.3,loose:-0.15},ed=({children:e,max:t=3,size:o="sm",spacing:n="normal",direction:r="ltr",overflowTooltip:a,style:l,className:s})=>{let g=A(),b=Kc[g],c=Jc(o),d=Math.round(c*Qc[n]),i=Math.max(2,Math.round(c*.06)),u=zn__default.default.Children.toArray(e),f=u.slice(0,t),m=Math.max(0,u.length-t),p=m>0?jsxRuntime.jsxs("div",{style:{width:c,height:c,borderRadius:"50%",backgroundColor:b.overflowBg,border:`${i}px solid ${b.overflowBorder}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:Math.max(9,Math.round(c*.3)),color:b.overflowText,flexShrink:0,boxSizing:"border-box",marginLeft:f.length>0?d:0,zIndex:r==="ltr"?0:u.length+1,position:"relative",userSelect:"none"},children:["+",m]}):null,R=p&&a?jsxRuntime.jsx(ht,{content:typeof a=="function"?a(m):a,children:p}):p;return jsxRuntime.jsxs("div",{className:s,style:{display:"inline-flex",alignItems:"center",flexDirection:r==="rtl"?"row-reverse":"row",...l},children:[f.map((z,h)=>{let S=zn__default.default.isValidElement(z),x=r==="ltr"?f.length-h:h+1,I=S?zn__default.default.cloneElement(z,{size:o,borderRadius:"50%",style:{...z.props.style||{},border:`${i}px solid ${b.ringColor}`,boxSizing:"border-box"}}):z;return jsxRuntime.jsx("div",{style:{position:"relative",zIndex:x,marginLeft:h>0?d:0,flexShrink:0,lineHeight:0},children:I},h)}),R]})};ed.displayName="AvatarStack";var Ba={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)"}},Hn=({onClick:e,title:t,color:o,children:n})=>jsxRuntime.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:n}),$b=({label:e,onRemove:t,style:o,className:n})=>{let r=Ba[A()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:r.tagBg,border:`1px solid ${r.tagBorder}`,borderRadius:"4px",...o},className:n,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:r.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsxRuntime.jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Wb=({label:e,style:t,className:o})=>jsxRuntime.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}),Ob=({label:e,onFilter:t,onEdit:o,onDelete:n,showActions:r=true,style:a,className:l})=>{let s=Ba[A()],g=t||o||n;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:s.itemBg,border:`1px solid ${s.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:s.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),r&&g&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(Hn,{onClick:t,title:"Filtrovat",color:s.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(Hn,{onClick:o,title:"Upravit",color:s.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),n&&jsxRuntime.jsx(Hn,{onClick:n,title:"Smazat",color:s.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var rd={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"}},Pa={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"]}},Rt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ad=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,qe=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Nn=(e,t=1)=>{let o=new Date(e),n=o.getDay(),r=t===1?(n===0?-6:1)-n:-n;return o.setDate(o.getDate()+r),o.setHours(0,0,0,0),o},Ma=(e,t,o=1)=>{let n=new Date(e,t,1),r=Nn(n,o),a=[],l=new Date(r);for(let s=0;s<42;s++)a.push(new Date(l)),l.setDate(l.getDate()+1);return a},id=(e,t=1)=>{let o=Nn(e,t),n=[];for(let r=0;r<7;r++){let a=new Date(o);a.setDate(o.getDate()+r),n.push(a);}return n},Aa=(e,t,o)=>{if(t){let n=new Date(t);if(n.setHours(0,0,0,0),e<n)return true}if(o){let n=new Date(o);if(n.setHours(23,59,59,999),e>n)return true}return false};function sd(e,t){let o=[],n=new Map,r=qe(e[0]),a=qe(e[6]),l=t.filter(s=>{let g=qe(s.date);return (s.endDate?qe(s.endDate):g)>=r&&g<=a}).sort((s,g)=>{let b=qe(s.date).getTime(),c=qe(g.date).getTime();if(b!==c)return b-c;let d=s.endDate?qe(s.endDate).getTime():b;return (g.endDate?qe(g.endDate).getTime():c)-c-(d-b)});for(let s of l){let g=qe(s.date),b=s.endDate?qe(s.endDate):g,c=g<r?r:g,d=b>a?a:b,i=e.findIndex(z=>Rt(z,c)),u=e.findIndex(z=>Rt(z,d));if(i===-1||u===-1)continue;let f=u-i+1,m=g>=r,p=0;for(;;){n.has(p)||n.set(p,new Set);let z=n.get(p),h=true;for(let S=i;S<=u;S++)if(z.has(S)){h=false;break}if(h)break;p++;}let R=n.get(p);for(let z=i;z<=u;z++)R.add(z);o.push({event:s,row:p,startCol:i,span:f,isStart:m});}return o}var ld=({value:e,onChange:t,view:o="month",events:n=[],minDate:r,maxDate:a,style:l,className:s,firstDay:g=1,locale:b="cs",initialDate:c,t:d,today:i})=>{let u=Pa[b],f=c||e||i,[m,p]=zn.useState(()=>f.getMonth()),[R,z]=zn.useState(()=>f.getFullYear()),[h,S]=zn.useState(()=>Nn(f,g)),[x,I]=zn.useState(null),v=zn.useMemo(()=>o==="week"?id(h,g):Ma(R,m,g),[o,R,m,h,g]),E=zn.useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()-7),w}):p(F=>F===0?(z(w=>w-1),11):F-1);},[o]),y=zn.useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()+7),w}):p(F=>F===11?(z(w=>w+1),0):F+1);},[o]),D=F=>n.filter(w=>Rt(w.date,F)),B=o==="week"?(()=>{let F=new Date(h);return F.setDate(F.getDate()+6),h.getMonth()===F.getMonth()?`${h.getDate()}. \u2013 ${F.getDate()}. ${u.months[F.getMonth()]} ${F.getFullYear()}`:`${h.getDate()}. ${u.months[h.getMonth()].slice(0,3)} \u2013 ${F.getDate()}. ${u.months[F.getMonth()].slice(0,3)} ${F.getFullYear()}`})():`${u.months[m]} ${R}`,k={backgroundColor:d.background,border:`1px solid ${d.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,overflow:"hidden",userSelect:"none",...l},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:d.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:s,style:k,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:d.headerBg,borderBottom:`1px solid ${d.border}`},children:[jsxRuntime.jsx("button",{style:M,onClick:E,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:B}),jsxRuntime.jsx("button",{style:M,onClick:y,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:u.daysFull.map(F=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.textMuted,padding:"6px 0 8px"},children:F},F))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:v.map((F,w)=>{let T=Rt(F,i),L=e?Rt(F,e):false,N=o==="month"&&F.getMonth()!==m,C=Aa(F,r,a),P=F.toISOString(),H=x===P,W=D(F),V="transparent",q=N?d.outsideText:d.text,Z="2px solid transparent";return L?(V=d.selectedBg,q=d.selectedText):T?(V=d.todayBg,Z=`2px solid ${d.todayBorder}`):H&&!C&&(V=d.hover),C&&(q=d.textMuted),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsxRuntime.jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:V,color:q,fontSize:"13px",fontWeight:T?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:C?"default":"pointer",opacity:C?.4:1,transition:"background-color 0.12s ease"},disabled:C,onClick:()=>{!C&&t&&t(F);},onMouseEnter:()=>!C&&I(P),onMouseLeave:()=>I(null),children:F.getDate()}),W.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:W.slice(0,3).map(($,G)=>jsxRuntime.jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||d.eventDot}},G))})]},w)})})]})},Po=24,$t=2,cd=({value:e,onChange:t,events:o=[],onEventClick:n,showHeader:r=true,onNavigate:a,minDate:l,maxDate:s,style:g,className:b,firstDay:c=1,locale:d="cs",maxEventsPerDay:i=3,initialDate:u,t:f,today:m})=>{let p=Pa[d],R=u||e||m,[z,h]=zn.useState(()=>R.getMonth()),[S,x]=zn.useState(()=>R.getFullYear()),[I,v]=zn.useState(null),E=zn.useMemo(()=>Ma(S,z,c),[S,z,c]),y=zn.useMemo(()=>{let T=[];for(let L=0;L<E.length;L+=7)T.push(E.slice(L,L+7));return T},[E]),D=zn.useMemo(()=>{let T=y[y.length-1];return T&&T.every(L=>L.getMonth()!==z)?y.slice(0,-1):y},[y,z]),B=zn.useCallback(()=>{let T=z-1,L=S;T<0&&(T=11,L--),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),k=zn.useCallback(()=>{let T=z+1,L=S;T>11&&(T=0,L++),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),M=`${p.months[z]} ${S}`,w={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 jsxRuntime.jsxs("div",{className:b,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,userSelect:"none",...g},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:w,onClick:B,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16,weight:"bold"})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:M}),jsxRuntime.jsx("button",{style:w,onClick:k,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16,weight:"bold"})})]}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${f.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:f.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${f.cellBorder}`},children:p.days.map((T,L)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:f.text,padding:"10px 0",borderRight:L<6?`1px solid ${f.cellBorder}`:"none"},children:T},T))}),D.map((T,L)=>{let N=sd(T,o),C=N.length>0?Math.max(...N.map(Z=>Z.row))+1:0,P=T.map((Z,$)=>{let G=N.filter(X=>$>=X.startCol&&$<X.startCol+X.span);return Math.max(0,G.filter(X=>X.row>=i).length)}),W=Math.min(C,i)*(Po+$t)+$t,q=P.some(Z=>Z>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<D.length-1?`1px solid ${f.cellBorder}`:"none"},children:T.map((Z,$)=>{let G=Rt(Z,m),X=Z.getMonth()!==z,ee=e?Rt(Z,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:$<6?`1px solid ${f.cellBorder}`:"none",backgroundColor:G?f.todayCellBg:"transparent",minHeight:`${30+W+q}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Aa(Z,l,s)&&t(Z);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:G?700:400,color:X?f.outsideText:G?"#FC4F00":f.text},children:ee?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Z.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Z.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${W}px`},children:N.filter(J=>J.startCol===$&&J.row<i).map((J,te)=>{let re=J.event.id||`${ad(J.event.date)}-${J.event.title}`,be=I===re,we=J.event.color||f.eventBarDefault,Y=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${$t+J.row*(Po+$t)}px`,left:"2px",width:J.span>1?`calc(${J.span*100}% - 4px)`:"calc(100% - 4px)",height:`${Po}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:n?"pointer":"default",zIndex:be?2:1,opacity:be?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:J.event.tooltip?void 0:J.event.title,onClick:j=>{j.stopPropagation(),n&&n(J.event);},onMouseEnter:()=>v(re),onMouseLeave:()=>v(null),children:[J.isStart&&J.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:J.event.emoji}),J.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:J.event.textColor||f.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:J.event.title})]},te);return J.event.tooltip?jsxRuntime.jsx(ht,{content:J.event.tooltip,children:Y},te):Y})}),P[$]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:f.moreText,textAlign:"center",padding:"2px 0"},children:["+",P[$]]})]},$)})},L)})]})]})},dd=e=>{let t=A(),o=rd[t],n=zn.useMemo(()=>{let r=new Date;return r.setHours(0,0,0,0),r},[]);return e.fullSize?jsxRuntime.jsx(cd,{...e,t:o,today:n}):jsxRuntime.jsx(ld,{...e,t:o,today:n})};dd.displayName="Calendar";var ud={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)"}},fd=({items:e,orientation:t="vertical",style:o,className:n})=>{let r=A(),a=ud[r];return t==="horizontal"?jsxRuntime.jsx("div",{className:n,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:g?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[s>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),s===0&&jsxRuntime.jsx("div",{style:{flex:1}}),l.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0}}),!g&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),g&&jsxRuntime.jsx("div",{style:{flex:1}})]}),jsxRuntime.jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:l.title}),l.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:l.date}),l.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:l.description})]})]},s)})}):jsxRuntime.jsx("div",{className:n,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:g?0:"4px",minHeight:l.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[l.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!g&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:l.icon?"5px":0},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:l.title}),l.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:l.date})]}),l.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:l.description})]})]},s)})})};fd.displayName="Timeline";var gd={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)"}},bd=({items:e,columns:t=1,striped:o=false,style:n,className:r})=>{let a=A(),l=gd[a],s=Math.max(1,Math.round(t)),g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,display:s>1?"grid":"block",gridTemplateColumns:s>1?`repeat(${s}, 1fr)`:void 0,gap:s>1?"0 24px":void 0,...n},b=u=>s<=1?u:Math.floor(u/s),c=u=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${l.border}`,backgroundColor:o&&b(u)%2===1?l.stripedBg:l.background}),d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:l.textMuted,flexShrink:0,letterSpacing:"0.01em"},i={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:r,style:g,children:e.map((u,f)=>jsxRuntime.jsxs("div",{style:c(f),children:[jsxRuntime.jsx("span",{style:d,children:u.label}),jsxRuntime.jsx("span",{style:i,children:u.value})]},f))})};bd.displayName="DataList";var yd={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"}},La=({node:e,depth:t,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l})=>{let s=e.children&&e.children.length>0,g=o.has(e.id),b=n===e.id,[c,d]=zn.useState(false),i="transparent";return b?i=l.selectedBg:c&&(i=l.hover),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:i,borderLeft:b?`2px solid ${l.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),onClick:()=>a?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:u=>{u.stopPropagation(),s&&r(e.id);},children:s&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:g?l.iconExpanded:l.iconColor,style:{transform:g?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:b?l.selectedBorder:l.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:b?500:400,color:b?l.selectedText:l.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),s&&g&&jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:l.line}}),e.children.map(u=>jsxRuntime.jsx(La,{node:u,depth:t+1,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l},u.id))]})]})},vd=({data:e,onSelect:t,selectedId:o,defaultExpanded:n=[],style:r,className:a})=>{let l=A(),s=yd[l],[g,b]=zn.useState(()=>new Set(n)),c=zn.useCallback(i=>{b(u=>{let f=new Set(u);return f.has(i)?f.delete(i):f.add(i),f});},[]),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,...r};return jsxRuntime.jsx("div",{className:a,style:d,role:"tree",children:e.map(i=>jsxRuntime.jsx(La,{node:i,depth:0,expanded:g,selectedId:o,onToggle:c,onSelect:t,t:s},i.id))})};vd.displayName="Tree";var kd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Cd={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},wd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},On=false,Rd=()=>{if(On||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){On=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
12
+ `}),fe&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center"},children:jsxRuntime.jsx(pa,{size:16,color:D.placeholder})}),!fe&&q.length===0&&!d&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:D.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),!fe&&q.length===0&&d&&A&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.optionSelectedText,cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{u?.(A),n||(o?.(A),G()),y("");},onMouseEnter:X=>{X.currentTarget.style.backgroundColor=D.optionHover;},onMouseLeave:X=>{X.currentTarget.style.backgroundColor="transparent";},children:['Vytvo\u0159it "',A,'"']}),!fe&&q.map((X,ue)=>{let pe=J(X.value),Ae=ue===P;return jsxRuntime.jsx("div",{role:"option","aria-selected":pe,"aria-disabled":X.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:pe?500:400,lineHeight:"normal",color:pe?D.optionSelectedText:X.disabled?D.placeholder:D.text,backgroundColor:Ae?D.optionHover:pe?D.optionSelected:"transparent",cursor:X.disabled?"not-allowed":"pointer",opacity:X.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ue<q.length-1?"2px":0},onClick:()=>{X.disabled||ge(X.value);},onMouseEnter:()=>N(ue),onMouseLeave:()=>N(-1),children:p?p(X,pe):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:X.label??X.value}),pe&&jsxRuntime.jsx(react.Check,{size:16,color:D.optionSelectedText})]})},X.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...S},className:v,children:[m&&jsxRuntime.jsxs("label",{htmlFor:I,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.text,userSelect:"none"},children:[m,b&&jsxRuntime.jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:F,role:"combobox","aria-expanded":C,"aria-haspopup":"listbox",tabIndex:U?-1:0,style:nt,onClick:We,onKeyDown:me,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[j.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:D.placeholder,lineHeight:"normal"},children:x}),n?l==="count"&&j.length>0?jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.text,lineHeight:"normal"},children:[j.length," vybr\xE1no"]}):j.map(X=>{let ue=e.find(pe=>pe.value===X);return jsxRuntime.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:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g&&ue?g(ue):se(X)}),!U&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:pe=>{pe.stopPropagation(),ge(X);},children:jsxRuntime.jsx(react.X,{size:14,color:D.tagText})})]},X)}):j.length>0&&(()=>{let X=e.find(ue=>ue.value===j[0]);return jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:D.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:g&&X?g(X):se(j[0])})})()]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Q&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Ke,children:jsxRuntime.jsx(react.X,{size:14,color:D.placeholder})}),s?jsxRuntime.jsx(pa,{size:16,color:D.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:D.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),W&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:D.borderError,lineHeight:"normal"},children:W}),ht]})};fa.displayName="Select";var ul=({label:e,required:t,htmlFor:o,children:n,style:r,className:a})=>{let i=H(),s=rr.useId(),c=o??s;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsxRuntime.jsxs("label",{htmlFor:c,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:An[i].label,userSelect:"none"},children:[e,t&&jsxRuntime.jsx("span",{style:{color:An[i].borderError,marginLeft:"3px"},children:"*"})]}),n??jsxRuntime.jsx(fa,{options:[]})]})};ul.displayName="SelectGroup";var vl=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Sl={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"}},Ln=180,kl={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"}},Cl=rr__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:n,placeholder:r="Hledat\u2026",label:a,error:i,disabled:s=false,loading:c=false,multiple:f=false,clearable:d=false,onOpenChange:u,onSelect:l,onDeselect:p,onClear:g,onFocus:m,onBlur:b,allowCustom:x=false,onCreate:E,renderOption:S,notFoundContent:v,footer:z,size:D="md",style:I,className:F},h)=>{let R=H(),B=Sl[R],M=rr.useId(),T=kl[D],k=rr.useRef(null),w=rr.useRef(null),L=rr.useRef(null),A=rr.useRef(null),[y,P]=rr.useState(false),[N,$]=rr.useState(false),[O,U]=rr.useState("idle"),[Z,W]=rr.useState(""),[K,G]=rr.useState(-1),[j,J]=rr.useState(false),[oe,ne]=rr.useState({top:0,left:0,width:0,openAbove:false}),fe=s||c,ee=!!i,Y=typeof i=="string"?i:void 0,q=d&&!fe,te=f?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ge=_=>te.includes(_),Ke=_=>{let ae=e.find(be=>be.value===_);return ae?ae.label??ae.value:_};rr.useEffect(()=>{if(!f&&!j){let _=e.find(ae=>ae.value===t);W(_?_.label??_.value:(typeof t=="string"?t:"")||"");}},[t,e,j,f]);let We=Z?e.filter(_=>(_.label??_.value).toLowerCase().includes(Z.toLowerCase())):e,me=rr.useCallback(()=>{P(true),$(true),U("opening"),u?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>U("open"));});},[u]),se=rr.useCallback(()=>{P(false),U("closing"),u?.(false);let _=setTimeout(()=>{$(false),U("idle");},Ln);return ()=>clearTimeout(_)},[u]),Q=rr.useCallback(()=>{if(!k.current)return;let _=k.current.getBoundingClientRect(),ae=L.current?.offsetHeight??240,be=window.innerHeight-_.bottom-6,ke=_.top-6,qt=be<ae&&ke>be;ne({top:qt?_.top-6:_.bottom+6,left:_.left,width:_.width,openAbove:qt});},[]);rr.useEffect(()=>{if(N)return Q(),window.addEventListener("scroll",Q,true),window.addEventListener("resize",Q),()=>{window.removeEventListener("scroll",Q,true),window.removeEventListener("resize",Q);}},[N,Q]),rr.useEffect(()=>{if(!y)return;let _=ae=>{let be=ae.target;if(!k.current?.contains(be)&&!L.current?.contains(be))if(se(),f)W("");else {let ke=e.find(qt=>qt.value===t);x||W(ke?ke.label??ke.value:"");}};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[y,se,t,e,x,f]),rr.useEffect(()=>{K>=0&&A.current&&A.current.children[K]?.scrollIntoView({block:"nearest"});},[K]);let ie=_=>{let ae=_.target.value;W(ae),n?.(ae),G(0),y||me();},nt=rr.useCallback(_=>{let ae=e.find(be=>be.value===_)||{value:_};if(f){if(ge(_)){let be=te.filter(ke=>ke!==_);o(be),p?.(_,ae);}else {let be=[...te,_];o(be),l?.(_,ae);}W("");}else o(_),l?.(_,ae),W(ae.label??ae.value),se();},[o,e,se,f,te,l,p]),ht=rr.useCallback(_=>{if(!f)return;let ae=e.find(ke=>ke.value===_)||{value:_},be=te.filter(ke=>ke!==_);o(be),p?.(_,ae);},[f,te,o,e,p]),X=rr.useCallback(_=>{_.stopPropagation(),o(f?[]:""),W(""),g?.();},[f,o,g]),ue=_=>{if(!fe)switch(_.key){case "ArrowDown":_.preventDefault(),y?G(ae=>Math.min(ae+1,We.length-1)):(me(),G(0));break;case "ArrowUp":_.preventDefault(),G(ae=>Math.max(ae-1,0));break;case "Enter":_.preventDefault(),y&&K>=0&&We[K]?nt(We[K].value):x&&Z&&(f?(o([...te,Z]),E?.(Z),W("")):(o(Z),E?.(Z),se()));break;case "Backspace":if(f&&Z===""&&te.length>0){let ae=te.slice(0,-1);o(ae);}break;case "Escape":se();break;case "Tab":y&&se();break}},pe=_=>{J(true),m?.(_),!y&&!fe&&me();},Ae=_=>{let ae=_.relatedTarget;ae&&(L.current?.contains(ae)||k.current?.contains(ae))||(J(false),b?.(_),!f&&x&&Z&&o(Z),f&&W(""));},Oe=()=>{let _=oe.openAbove,ae=_?"translateY(8px)":"translateY(-8px)",be=_?"translateY(6px)":"translateY(-6px)",ke={transition:`opacity ${Ln}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Ln}ms cubic-bezier(0.16, 1, 0.3, 1)`};return O==="opening"||O==="idle"?{...ke,opacity:0,transform:`${ae} scale(0.97)`}:O==="open"?{...ke,opacity:1,transform:"translateY(0) scale(1)"}:{...ke,opacity:0,transform:`${be} scale(0.98)`,pointerEvents:"none"}},yt={display:"flex",alignItems:"center",gap:T.gap,backgroundColor:fe?B.backgroundDisabled:B.background,border:`1px solid ${ee?B.borderError:j?B.borderFocus:B.border}`,borderRadius:"8px",padding:T.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:fe?.6:1,cursor:fe?"not-allowed":"text",flexWrap:"nowrap"},dt={flex:1,minWidth:f?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:T.fontSize,lineHeight:"normal",color:B.text,cursor:fe?"not-allowed":"text"},Xt={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:B.label,userSelect:"none"},jt=N?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:L,style:{position:"fixed",...oe.openAbove?{bottom:window.innerHeight-oe.top,left:oe.left}:{top:oe.top,left:oe.left},width:oe.width,backgroundColor:B.dropdownBg,border:`1px solid ${B.dropdownBorder}`,borderRadius:"12px",boxShadow:R==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",overflow:"hidden",boxSizing:"border-box",transformOrigin:oe.openAbove?"bottom center":"top center",...Oe()},onMouseDown:_=>{_.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:A,role:"listbox","aria-multiselectable":f,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[We.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:B.placeholder,textAlign:"center"},children:x&&Z?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof v=="function"?v(se):v??"\u017D\xE1dn\xE9 v\xFDsledky"}),We.map((_,ae)=>{let be=ge(_.value),ke=ae===K;return jsxRuntime.jsx("div",{role:"option","aria-selected":be,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:be?500:400,lineHeight:"normal",color:be?B.optionSelectedText:B.text,backgroundColor:ke?B.optionHover:be?B.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ae<We.length-1?"2px":0},onClick:()=>nt(_.value),onMouseEnter:()=>G(ae),onMouseLeave:()=>G(-1),children:S?S(_,ke):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.label??_.value}),be&&jsxRuntime.jsx(react.Check,{size:16,color:B.optionSelectedText})]})},_.value)})]}),z&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${B.divider}`,padding:"8px 6px"},children:typeof z=="function"?z(se):z})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...I},className:F,children:[a&&jsxRuntime.jsx("label",{htmlFor:M,style:Xt,children:a}),jsxRuntime.jsxs("div",{ref:k,style:yt,onClick:()=>w.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B.placeholder},children:c?jsxRuntime.jsx(vl,{size:T.iconSize,color:B.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:T.iconSize,color:B.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[f&&te.map(_=>jsxRuntime.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:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Ke(_)}),!fe&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ae=>{ae.stopPropagation(),ht(_);},children:jsxRuntime.jsx(react.X,{size:14,color:B.tagText})})]},_)),jsxRuntime.jsx("input",{ref:_=>{w.current=_,typeof h=="function"?h(_):h&&(h.current=_);},id:M,type:"text",value:Z,onChange:ie,onFocus:pe,onBlur:Ae,onKeyDown:ue,placeholder:f&&te.length>0?"":r,disabled:s,readOnly:c,style:dt})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[q&&te.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:X,children:jsxRuntime.jsx(react.X,{size:14,color:B.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:T.iconSize,color:B.placeholder,style:{transition:"transform 0.2s ease",transform:y?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:B.borderError,lineHeight:"normal"},children:Y}),jt]})});Cl.displayName="Combobox";var El=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},xa=({value:e,max:t,onCommit:o,ariaLabel:n,baseStyle:r,borderColor:a,focusBorderColor:i})=>{let[s,c]=rr.useState(null),[f,d]=rr.useState(false),u=s??String(e).padStart(2,"0"),l=p=>Math.max(0,Math.min(t,p));return jsxRuntime.jsx("input",{type:"text",inputMode:"numeric",value:u,"aria-label":n,maxLength:2,onFocus:p=>{d(true),p.currentTarget.select();},onChange:p=>{let g=p.target.value.replace(/\D/g,"").slice(0,2);if(g===""){c("");return}let m=l(parseInt(g,10));c(g.length===2?String(m).padStart(2,"0"):String(m)),o(m);},onBlur:()=>{d(false),s!==null&&s!==""&&o(l(parseInt(s,10))),c(null);},onKeyDown:p=>{p.key==="ArrowUp"?(p.preventDefault(),c(null),o(e>=t?0:e+1)):p.key==="ArrowDown"?(p.preventDefault(),c(null),o(e<=0?t:e-1)):p.key==="Enter"&&(p.preventDefault(),p.currentTarget.blur());},style:{...r,border:`1px solid ${f?i:a}`}})},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",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)"}},Hn=180,zl={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"}},Bl={sm:{width:280,headerPadding:"8px 10px",gridPadding:"0 10px 6px",monthYearGridPadding:"6px 10px",headerFontSize:"13px",weekdayFontSize:"10px",dayFontSize:"12px",timePadding:"8px 10px",timeLabelFontSize:"11px"},md:{width:320,headerPadding:"10px 12px",gridPadding:"0 12px 8px",monthYearGridPadding:"8px 12px",headerFontSize:"14px",weekdayFontSize:"11px",dayFontSize:"13px",timePadding:"10px 12px",timeLabelFontSize:"12px"},lg:{width:380,headerPadding:"12px 14px",gridPadding:"0 14px 10px",monthYearGridPadding:"10px 14px",headerFontSize:"16px",weekdayFontSize:"12px",dayFontSize:"14px",timePadding:"12px 14px",timeLabelFontSize:"13px"}},Dl=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],ha=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function Il(e,t,o){let r=new Date(e,t,1).getDay();r=(r===0?7:r)-o,r<0&&(r+=7);let a=new Date(e,t,1-r),i=[];for(let s=0;s<42;s++){let c=new Date(a);c.setDate(a.getDate()+s),i.push(c);}return i}function Nn(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function ya(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Nn(e)} ${t}:${o}`}function kt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function va(e,t,o){let n=e.getTime(),r=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return n>=r&&n<=a}function Ml(e){return kt(e,new Date)}var Ca=({mode:e="single",showTime:t=false,open:o,defaultOpen:n,onOpenChange:r,value:a,onChange:i,label:s,placeholder:c,error:f,helperText:d,disabled:u=false,loading:l=false,clearable:p=false,size:g="md",fullWidth:m=false,required:b,minDate:x,maxDate:E,presets:S,presetsLabel:v="Rychl\xFD v\xFDb\u011Br",disabledDates:z,firstDayOfWeek:D=1,style:I,className:F})=>{let h=H(),R=ka[h],B=rr.useId(),C=zl[g],M=Bl[g],T=rr.useRef(null),k=rr.useRef(null),w=o!==void 0,[L,A]=rr.useState(n??false),y=w?!!o:L,P=rr.useCallback(V=>{w||A(V),r?.(V);},[w,r]),[N,$]=rr.useState(false),[O,U]=rr.useState("idle"),[Z,W]=rr.useState({top:0,left:0,width:0,openAbove:false}),[K,G]=rr.useState(null),j=new Date,[J,oe]=rr.useState(j.getFullYear()),[ne,fe]=rr.useState(j.getMonth()),[ee,Y]=rr.useState("days"),[q,te]=rr.useState(0),ge=u||l,Ke=!!f,We=typeof f=="string"?f:void 0,me=e==="single"&&a instanceof Date?a:null,se=e==="range"&&Array.isArray(a)?a:[null,null],Q=e==="single"?me!==null:se[0]!==null||se[1]!==null,ie=p&&Q&&!ge,nt=(()=>{if(e==="single")return me?t?ya(me):Nn(me):"";let[V,de]=se;if(!V&&!de)return "";let le=t?ya:Nn;return `${V?le(V):"\u2026"} \u2013 ${de?le(de):"\u2026"}`})(),ht=c??(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"),X=rr.useCallback(()=>P(true),[P]),ue=rr.useCallback(()=>P(false),[P]);rr.useEffect(()=>{if(y){let V=e==="single"?me:se[0];V&&(oe(V.getFullYear()),fe(V.getMonth())),Y("days"),$(true),U("opening");let de=0,le=requestAnimationFrame(()=>{de=requestAnimationFrame(()=>U("open"));});return ()=>{cancelAnimationFrame(le),cancelAnimationFrame(de);}}if(N){U("closing"),te(0);let V=setTimeout(()=>{$(false),U("idle");},Hn);return ()=>clearTimeout(V)}},[y]);let pe=rr.useCallback(()=>{if(!T.current)return;let V=T.current.getBoundingClientRect(),de=k.current?.offsetHeight??380,le=window.innerHeight-V.bottom-6,ce=V.top-6,xe=le<de&&ce>le,Se=M.width+(S&&S.length>0?140:0),Be=Math.max(8,window.innerWidth-Se-8),bo=Math.min(V.left,Be);W({top:xe?V.top-6:V.bottom+6,left:bo,width:Se,openAbove:xe});},[M.width,S]);rr.useEffect(()=>{if(N)return pe(),window.addEventListener("scroll",pe,true),window.addEventListener("resize",pe),()=>{window.removeEventListener("scroll",pe,true),window.removeEventListener("resize",pe);}},[N,pe]),rr.useEffect(()=>{if(!y)return;let V=de=>{let le=de.target,ce=T.current?.contains(le),xe=k.current?.contains(le);!ce&&!xe&&ue();};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[y,ue]);let Ae=V=>{ge||(V.key==="Escape"&&y&&(V.preventDefault(),ue()),(V.key==="Enter"||V.key===" ")&&!y&&(V.preventDefault(),X()));},Oe=rr.useCallback(V=>{if(x){let de=new Date(x.getFullYear(),x.getMonth(),x.getDate());if(V<de)return true}if(E){let de=new Date(E.getFullYear(),E.getMonth(),E.getDate());if(V>de)return true}return !!(z&&z(V))},[x,E,z]),yt=rr.useCallback(V=>{if(!Oe(V)&&i)if(e==="single")t&&me&&V.setHours(me.getHours(),me.getMinutes()),i(new Date(V)),t||ue();else if(q===0)t&&se[0]&&V.setHours(se[0].getHours(),se[0].getMinutes()),i([new Date(V),null]),te(1);else {let de=se[0];t&&se[1]&&V.setHours(se[1].getHours(),se[1].getMinutes());let[le,ce]=V>=de?[de,new Date(V)]:[new Date(V),de];i([le,ce]),te(0),t||ue();}},[e,t,me,se,q,i,ue,Oe]),dt=rr.useCallback((V,de,le)=>{if(!i)return;let ce=()=>{let xe=new Date;return xe.setHours(0,0,0,0),xe};if(e==="single"){let xe=me?new Date(me):ce();V==="hour"?xe.setHours(de):xe.setMinutes(de),i(xe);}else {let xe=le??0,Se=[se[0]?new Date(se[0]):null,se[1]?new Date(se[1]):null],Be=Se[xe]??ce();V==="hour"?Be.setHours(de):Be.setMinutes(de),Se[xe]=Be,i(Se);}},[e,me,se,i]),Xt=()=>{ne===0?(fe(11),oe(V=>V-1)):fe(V=>V-1);},jt=()=>{ne===11?(fe(0),oe(V=>V+1)):fe(V=>V+1);},_=V=>{V.stopPropagation(),i&&(i(e==="single"?null:[null,null]),te(0));},ae=()=>{let V=Z.openAbove,de=V?"translateY(8px)":"translateY(-8px)",le=V?"translateY(6px)":"translateY(-6px)",ce={transition:`opacity ${Hn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Hn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return O==="opening"||O==="idle"?{...ce,opacity:0,transform:`${de} scale(0.97)`}:O==="open"?{...ce,opacity:1,transform:"translateY(0) scale(1)"}:{...ce,opacity:0,transform:`${le} scale(0.98)`,pointerEvents:"none"}},be=Il(J,ne,D),ke=(V,de)=>{let le=V?V.getHours():0,ce=V?V.getMinutes():0,xe={width:"42px",background:"transparent",borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:R.text,textAlign:"center",outline:"none",boxSizing:"border-box"},Se=de===void 0?"":de===0?" (od)":" (do)";return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx(xa,{value:le,max:23,onCommit:Be=>dt("hour",Be,de),ariaLabel:`Hodiny${Se}`,baseStyle:xe,borderColor:R.border,focusBorderColor:R.borderFocus}),jsxRuntime.jsx("span",{style:{color:R.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx(xa,{value:ce,max:59,onCommit:Be=>dt("minute",Be,de),ariaLabel:`Minuty${Se}`,baseStyle:xe,borderColor:R.border,focusBorderColor:R.borderFocus})]})},qt=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:M.monthYearGridPadding},children:ha.map((V,de)=>{let le=de===ne;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{fe(de),Y("days");},style:{background:le?R.daySelected:"transparent",color:le?R.daySelectedText:R.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:M.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:ce=>{le||(ce.target.style.backgroundColor=R.dayHover);},onMouseLeave:ce=>{le||(ce.target.style.backgroundColor="transparent");},children:V},de)})}),Ss=()=>{let V=Math.floor(J/12)*12,de=Array.from({length:12},(le,ce)=>V+ce);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:M.monthYearGridPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>oe(le=>le-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:R.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.headerFontSize,color:R.text},children:[V," \u2013 ",V+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>oe(le=>le+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:R.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:M.monthYearGridPadding},children:de.map(le=>{let ce=le===J;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{oe(le),Y("months");},style:{background:ce?R.daySelected:"transparent",color:ce?R.daySelectedText:R.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:M.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:xe=>{ce||(xe.target.style.backgroundColor=R.dayHover);},onMouseLeave:xe=>{ce||(xe.target.style.backgroundColor="transparent");},children:le},le)})})]})},ks=N?reactDom.createPortal(jsxRuntime.jsx("div",{ref:k,style:{position:"fixed",...Z.openAbove?{bottom:window.innerHeight-Z.top,left:Z.left}:{top:Z.top,left:Z.left},width:Z.width,backgroundColor:R.dropdownBg,border:`1px solid ${R.dropdownBorder}`,borderRadius:"12px",boxShadow:h==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",overflow:"hidden",boxSizing:"border-box",transformOrigin:Z.openAbove?"bottom center":"top center",...ae()},children:jsxRuntime.jsxs("div",{style:{display:"flex"},children:[S&&S.length>0&&jsxRuntime.jsxs("div",{style:{width:"140px",flexShrink:0,borderRight:`1px solid ${R.dropdownBorder}`,padding:"8px",overflowY:"auto",maxHeight:"320px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"9px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em",color:R.dayOutside,padding:"4px 6px 8px",userSelect:"none"},children:v}),S.map((V,de)=>{let le=(()=>{if(e==="range"&&Array.isArray(V.value)){let[ce,xe]=se,[Se,Be]=V.value;return ce&&xe&&Se&&Be&&ce.getFullYear()===Se.getFullYear()&&ce.getMonth()===Se.getMonth()&&ce.getDate()===Se.getDate()&&xe.getFullYear()===Be.getFullYear()&&xe.getMonth()===Be.getMonth()&&xe.getDate()===Be.getDate()}return !Array.isArray(V.value)&&me?me.getFullYear()===V.value.getFullYear()&&me.getMonth()===V.value.getMonth()&&me.getDate()===V.value.getDate():false})();return jsxRuntime.jsx("div",{style:{padding:"7px 8px",borderRadius:"6px",fontSize:"13px",fontFamily:"'Zalando Sans', sans-serif",color:le?R.daySelected:R.text,fontWeight:le?600:400,backgroundColor:le?`${R.daySelected}18`:"transparent",cursor:"pointer",userSelect:"none",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>{i?.(V.value),ue();},onMouseEnter:ce=>{le||(ce.currentTarget.style.backgroundColor=R.dayHover);},onMouseLeave:ce=>{le||(ce.currentTarget.style.backgroundColor="transparent");},children:V.label},de)})]}),jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:ee==="years"?Ss():ee==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:M.headerPadding},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:M.headerFontSize,fontWeight:500,color:R.text,padding:"4px 8px",borderRadius:"4px"},children:J})}),qt()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:M.headerPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:Xt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:R.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>Y("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:M.headerFontSize,fontWeight:500,color:R.text,padding:"4px 8px",borderRadius:"4px"},children:ha[ne]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:M.headerFontSize,fontWeight:500,color:R.text,padding:"4px 8px",borderRadius:"4px"},children:J})]}),jsxRuntime.jsx("button",{type:"button",onClick:jt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:R.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:M.gridPadding.replace(/(\d+px)$/,"4px"),gap:"0"},children:Dl.map(V=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:M.weekdayFontSize,fontWeight:400,color:R.placeholder,padding:"4px 0",userSelect:"none"},children:V},V))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:M.gridPadding,gap:"2px"},children:be.map((V,de)=>{let le=V.getMonth()!==ne,ce=Oe(V),xe=Ml(V),Se=false,Be=false,bo=false,Vo=false;if(e==="single"&&me)Se=kt(V,me);else if(e==="range"){let[vt,_o]=se;vt&&kt(V,vt)&&(Be=true,Se=true),_o&&kt(V,_o)&&(bo=true,Se=true),vt&&_o&&va(V,vt,_o)&&!Be&&!bo&&(Vo=true),q===1&&vt&&K&&!ce&&(kt(V,K)&&!kt(V,vt)&&(Se=true),va(V,vt,K)&&!kt(V,vt)&&!kt(V,K)&&(Vo=true));}let zn="transparent",Uo=R.text;return Se?(zn=R.daySelected,Uo=R.daySelectedText):Vo&&(zn=R.dayRangeMiddle),le&&(Uo=Se?R.daySelectedText:R.dayOutside),ce&&(Uo=R.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:ce,onClick:()=>yt(V),onMouseEnter:()=>{ce||G(V);},onMouseLeave:()=>G(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:zn,color:Uo,border:"none",borderRadius:Be?"6px 0 0 6px":bo?"0 6px 6px 0":Vo?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:M.dayFontSize,fontWeight:Se?600:400,cursor:ce?"not-allowed":"pointer",opacity:ce?.4:1,transition:"background-color 0.1s ease",outline:xe&&!Se?`1.5px solid ${R.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:V.getDate()},de)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${R.divider}`,padding:M.timePadding,display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.timeLabelFontSize,color:R.placeholder},children:"\u010Cas:"}),ke(me)]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.timeLabelFontSize,color:R.placeholder},children:"Od:"}),ke(se[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.timeLabelFontSize,color:R.placeholder},children:"Do:"}),ke(se[1],1)]})]})})]})})]})}),document.body):null,Cs={display:"flex",alignItems:"center",gap:C.gap,backgroundColor:ge?R.backgroundDisabled:R.background,border:`1px solid ${Ke?R.borderError:y?R.borderFocus:R.border}`,borderRadius:"8px",padding:C.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:ge?.6:1,cursor:ge?"not-allowed":"pointer",userSelect:"none",outline:"none"},ws={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:R.label,userSelect:"none"},jr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:m?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:m?"100%":void 0,...I},className:F,children:[s&&jsxRuntime.jsxs("label",{htmlFor:B,style:ws,children:[s,b&&jsxRuntime.jsx("span",{style:{color:R.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:T,role:"button",tabIndex:ge?-1:0,style:Cs,onClick:()=>{ge||(y?ue():X());},onKeyDown:Ae,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,display:"flex",alignItems:"center",overflow:"hidden"},children:jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:C.fontSize,color:nt?R.text:R.placeholder,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:nt||ht})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ie&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:_,children:jsxRuntime.jsx(react.X,{size:C.iconSize-2,color:R.placeholder})}),l?jsxRuntime.jsx(El,{size:C.iconSize,color:R.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:C.iconSize,color:R.placeholder})]})]}),We&&jsxRuntime.jsx("span",{style:{...jr,color:R.borderError},children:We}),!We&&d&&jsxRuntime.jsx("span",{style:{...jr,color:R.helperText},children:d}),ks]})};Ca.displayName="DatePicker";var Pl=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=H(),i=rr.useId(),s=t??i;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:ka[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Ca,{})]})};Pl.displayName="DatePickerGroup";var wa={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"}},Nl={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}},Ra=({checked:e=false,onChange:t,label:o,disabled:n=false,error:r,size:a="md",indeterminate:i=false,className:s,style:c})=>{let f=H(),d=wa[f],u=Nl[a],l=rr.useId(),p=rr.useRef(null),g=!!r,m=typeof r=="string"?r:void 0;rr.useEffect(()=>{p.current&&(p.current.indeterminate=i);},[i]);let b=()=>{n||t?.(!e);},x=g?d.borderError:e||i?d.checkBg:d.border,E=e||i?d.checkBg:n?d.backgroundDisabled:d.background,S={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${x}`,backgroundColor:E,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:n?.5:1},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:d.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...c},className:s,children:[jsxRuntime.jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:n?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),b();},children:[jsxRuntime.jsx("input",{ref:p,id:l,type:"checkbox",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":g||void 0}),jsxRuntime.jsxs("span",{style:S,children:[e&&!i&&jsxRuntime.jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:d.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),i&&jsxRuntime.jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:d.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:v,children:o})]}),m&&jsxRuntime.jsx("span",{style:{...z,color:d.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:m})]})};Ra.displayName="Checkbox";var Ta=({label:e,children:t,error:o,className:n,style:r})=>{let a=H(),i=wa[a],s=typeof o=="string"?o:void 0,c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[e&&jsxRuntime.jsx("span",{style:c,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),s&&jsxRuntime.jsx("span",{style:{...f,color:i.borderError},children:s})]})};Ta.displayName="CheckboxGroup";var Fa={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"}},Wl={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"}},$n=({value:e,checked:t=false,onChange:o,label:n,disabled:r=false,size:a="md",className:i,style:s})=>{let c=H(),f=Fa[c],d=Wl[a],u=rr.useId(),l=()=>{r||o?.(e);},p=t?f.dotRing:f.border,g=r?f.backgroundDisabled:f.background,m={width:d.box,height:d.box,borderRadius:"50%",border:`1.5px solid ${p}`,backgroundColor:g,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:r?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:f.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...s},className:i,children:jsxRuntime.jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:r?"not-allowed":"pointer"},onClick:x=>{x.preventDefault(),l();},children:[jsxRuntime.jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:r,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:m,children:t&&jsxRuntime.jsx("span",{style:{width:d.dot,height:d.dot,borderRadius:"50%",backgroundColor:f.dot,transition:"transform 0.15s ease"}})}),n&&jsxRuntime.jsx("span",{style:b,children:n})]})})};$n.displayName="Radio";var Ea=({value:e,onChange:t,label:o,options:n,direction:r="vertical",error:a,helperText:i,size:s="md",className:c,style:f})=>{let d=H(),u=Fa[d],l=!!a,p=typeof a=="string"?a:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...f},className:c,children:[o&&jsxRuntime.jsx("span",{style:g,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:r==="horizontal"?"16px":"6px"},children:n.map(b=>jsxRuntime.jsx($n,{value:b.value,label:b.label,checked:e===b.value,onChange:t,disabled:b.disabled,size:s},b.value))}),p&&jsxRuntime.jsx("span",{style:{...m,color:u.borderError},children:p}),!p&&i&&jsxRuntime.jsx("span",{style:{...m,color:u.helperText},children:i})]})};Ea.displayName="RadioGroup";var Zl={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"}},Yl={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"}},Ba=({checked:e=false,onChange:t,label:o,disabled:n=false,size:r="md",className:a,style:i})=>{let s=H(),c=Zl[s],f=Yl[r],d=rr.useId(),u=()=>{n||t?.(!e);},l=1.5,p=2,m=f.trackW-l*2-f.thumb-p,b=e?m:0,x={width:f.trackW,height:f.trackH,borderRadius:f.trackH/2,backgroundColor:e?c.trackOn:c.trackOff,border:`${l}px solid ${e?c.trackOnBorder:c.trackOffBorder}`,position:"relative",cursor:n?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:n?.5:1,boxSizing:"border-box"},E={width:f.thumb,height:f.thumb,borderRadius:"50%",backgroundColor:c.thumb,position:"absolute",top:"50%",left:p,transform:`translateY(-50%) translateX(${b}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:`${f.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...i},className:a,children:jsxRuntime.jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:n?"not-allowed":"pointer"},onClick:v=>{v.preventDefault(),u();},children:[jsxRuntime.jsx("input",{id:d,type:"checkbox",role:"switch",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:x,children:jsxRuntime.jsx("span",{style:E})}),o&&jsxRuntime.jsx("span",{style:S,children:o})]})})};Ba.displayName="Switch";var ql={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"}},Kl={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Ia=rr__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:n,loading:r=false,size:a="md",fullWidth:i=false,required:s,rows:c=4,maxLength:f,resize:d="vertical",autoHeight:u=false,minRows:l,maxRows:p,className:g,style:m,value:b,onChange:x,onFocus:E,onBlur:S,...v},z)=>{let D=H(),I=ql[D],F=Kl[a],h=rr.useId(),R=v.id??h,[B,C]=rr.useState(false),M=rr.useRef(null),T=rr.useCallback(()=>{let W=M.current;if(!W||!u)return;W.style.height="auto";let K=getComputedStyle(W),G=parseFloat(K.lineHeight)||parseFloat(K.fontSize)*1.5,j=parseFloat(K.paddingTop)||0,J=parseFloat(K.paddingBottom)||0,oe=j+J,fe=G*(l??1)+oe,ee=p?G*p+oe:1/0,Y=Math.min(Math.max(W.scrollHeight,fe),ee);W.style.height=`${Y}px`,W.style.overflowY=W.scrollHeight>ee?"auto":"hidden";},[u,l,p]);rr.useEffect(()=>{T();},[b,T]);let k=rr.useCallback(W=>{M.current=W,typeof z=="function"?z(W):z&&(z.current=W);},[z]),w=u?"none":d,L=u?l??1:c,A=n||r,y=!!t,P=typeof t=="string"?t:void 0,N=typeof b=="string"?b.length:0,$={backgroundColor:A?I.backgroundDisabled:I.background,border:`1px solid ${y?I.borderError:B?I.borderFocus:I.border}`,borderRadius:"8px",padding:F.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},O={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:F.fontSize,lineHeight:"1.5",color:I.text,cursor:A?"not-allowed":"text",resize:w,boxSizing:"border-box",overflow:u?"hidden":void 0},U={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:I.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...m},className:g,children:[e&&jsxRuntime.jsxs("label",{htmlFor:R,style:U,children:[e,s&&jsxRuntime.jsx("span",{style:{color:I.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:$,children:jsxRuntime.jsx("textarea",{ref:k,id:R,rows:L,maxLength:f,disabled:n,required:s,readOnly:r||v.readOnly,value:b,onChange:x,style:O,onFocus:W=>{C(true),E?.(W);},onBlur:W=>{C(false),S?.(W);},...v})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[P&&jsxRuntime.jsx("span",{style:{...Z,color:I.borderError},children:P}),!P&&o&&jsxRuntime.jsx("span",{style:{...Z,color:I.helperText},children:o})]}),f!==void 0&&jsxRuntime.jsxs("span",{style:{...Z,color:N>f?I.borderError:I.counter,flexShrink:0},children:[N,"/",f]})]})]})});Ia.displayName="Textarea";var Ql={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)"}},ec={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Aa(e,t,o){return Math.min(Math.max(e,t),o)}function tc(e,t,o){return Math.round((e-t)/o)*o+t}var La=({value:e,onChange:t,min:o=0,max:n=100,step:r=1,label:a,disabled:i=false,showValue:s=false,range:c=false,size:f="md",className:d,style:u})=>{let l=H(),p=Ql[l],g=ec[f],m=rr.useId(),b=rr.useRef(null),x=rr.useRef(null),E=c?e:[o,e],S=B=>(B-o)/(n-o)*100,v=S(E[0]),z=S(E[1]),D=rr.useCallback(B=>{let C=b.current;if(!C)return o;let M=C.getBoundingClientRect(),T=Aa((B-M.left)/M.width,0,1),k=o+T*(n-o);return Aa(tc(k,o,r),o,n)},[o,n,r]),I=rr.useCallback(B=>{if(i)return;B.preventDefault();let C=D(B.clientX);if(c){let k=e,w=Math.abs(C-k[0]),L=Math.abs(C-k[1]),A=w<=L?"start":"end";x.current=A;let y=A==="start"?[Math.min(C,k[1]),k[1]]:[k[0],Math.max(C,k[0])];t?.(y);}else x.current="end",t?.(C);let M=k=>{let w=D(k.clientX);if(c){let L=e;x.current==="start"?t?.([Math.min(w,L[1]),L[1]]):t?.([L[0],Math.max(w,L[0])]);}else t?.(w);},T=()=>{x.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",T);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",T);},[i,D,t,c,e]),F={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},h=c?`${E[0]} \u2013 ${E[1]}`:`${e}`,R={width:g.thumb,height:g.thumb,borderRadius:"50%",backgroundColor:p.thumb,border:`2px solid ${p.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 jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:i?.5:1,...u},className:d,children:[(a||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("label",{htmlFor:m,style:F,children:a}),s&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.text,userSelect:"none"},children:h})]}),jsxRuntime.jsxs("div",{ref:b,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":c?void 0:e,"aria-disabled":i||void 0,onMouseDown:I,style:{position:"relative",width:"100%",height:g.thumb,cursor:i?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:p.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${c?v:0}%`,width:`${z-(c?v:0)}%`,height:g.trackH,transform:"translateY(-50%)",borderRadius:g.trackH/2,backgroundColor:p.trackFill}}),c&&jsxRuntime.jsx("span",{style:{...R,left:`${v}%`}}),jsxRuntime.jsx("span",{style:{...R,left:`${z}%`}})]})]})};La.displayName="Slider";var ic={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 Vn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var sc=0,Na=({variant:e="dropzone",onFiles:t,accept:o,multiple:n=false,maxSize:r,disabled:a=false,label:i,helperText:s,error:c,value:f,buttonStyle:d="default",showFileList:u=true,buttonLabel:l,className:p,style:g})=>{let m=H(),b=ic[m],x=rr.useId(),E=rr.useRef(null),[S,v]=rr.useState(false),[z,D]=rr.useState([]),[I,F]=rr.useState(null),h=f!==void 0,R=h?f.map((y,P)=>({file:y,id:`controlled-${P}`})):z,B=!!c||!!I,C=typeof c=="string"?c:I??void 0,M=rr.useCallback(y=>{let P=Array.from(y);if(F(null),r){let N=P.find($=>$.size>r);if(N){F(`Soubor \u201E${N.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Vn(r)}.`);return}}if(h){let $=n?[...f||[],...P]:P;t?.($);}else {let N=P.map(O=>({file:O,id:`file-${++sc}`})),$=n?[...z,...N]:N;D($),t?.($.map(O=>O.file));}},[h,f,z,r,n,t]),T=rr.useCallback(y=>{y.preventDefault(),v(false),!a&&y.dataTransfer.files.length>0&&M(y.dataTransfer.files);},[a,M]),k=rr.useCallback(y=>{if(h){let P=(f||[]).filter((N,$)=>`controlled-${$}`!==y);t?.(P);}else {let P=z.filter(N=>N.id!==y);D(P),t?.(P.map(N=>N.file));}},[h,f,z,t]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${B?b.borderError:S?b.borderDrag:b.border}`,borderRadius:"8px",backgroundColor:S?b.backgroundDrag:a?b.backgroundDisabled:b.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},A={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...g},className:p,children:[i&&jsxRuntime.jsx("span",{style:w,children:i}),jsxRuntime.jsx("input",{ref:E,id:x,type:"file",accept:o,multiple:n,disabled:a,onChange:y=>{y.target.files&&y.target.files.length>0&&M(y.target.files),y.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:L,onClick:()=>!a&&E.current?.click(),onDragOver:y=>{y.preventDefault(),a||v(true);},onDragLeave:()=>v(false),onDrop:T,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:b.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):d==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&E.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:y=>{a||(y.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(R.length===0?"Nahr\xE1t soubor":R.length===1?R[0].file.name:`${R.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!a&&E.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${B?b.borderError:b.border}`,backgroundColor:a?b.backgroundDisabled:b.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:y=>{a||(y.currentTarget.style.borderColor=B?b.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:y=>{y.currentTarget.style.borderColor=B?b.borderError:b.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.textSecondary},children:R.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:b.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:b.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:R.length>0?b.text:b.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(R.length===0?"Vyberte soubor...":R.length===1?R[0].file.name:`${R.length} soubor\u016F`)}),R.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.textSecondary,flexShrink:0},children:Vn(R[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:b.textSecondary})})]}),u&&R.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:R.map(y=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:b.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:b.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.textSecondary,flexShrink:0},children:Vn(y.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${y.file.name}`,onClick:P=>{P.stopPropagation(),k(y.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&k(y.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:b.removeColor})})]},y.id))}),C&&jsxRuntime.jsx("span",{style:{...A,color:b.borderError},children:C}),!C&&s&&jsxRuntime.jsx("span",{style:{...A,color:b.helperText},children:s})]})};Na.displayName="FileUpload";var dc={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)"}},pc={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"}},uc=({data:e,value:t,onChange:o,size:n="md",fullWidth:r=false,orientation:a="horizontal",disabled:i=false,className:s,style:c})=>{let f=H(),d=dc[f],u=pc[n],l=a==="vertical",p=e.map(v=>typeof v=="string"?{value:v,label:v}:v),g=p.findIndex(v=>v.value===t),m=rr.useRef(null),b=rr.useRef([]),[x,E]=rr.useState({offset:0,size:0}),S=rr.useCallback(()=>{let v=m.current,z=b.current[g];if(!v||!z||g<0)return;let D=v.getBoundingClientRect(),I=z.getBoundingClientRect();E(l?{offset:I.top-D.top,size:I.height}:{offset:I.left-D.left,size:I.width});},[g,l]);return rr.useEffect(()=>{S();},[S,t,e,n]),rr.useEffect(()=>(window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)),[S]),jsxRuntime.jsxs("div",{ref:m,role:"radiogroup",className:s,style:{position:"relative",display:"inline-flex",width:r?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:d.bg,border:`1px solid ${d.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:i?.5:1,cursor:i?"not-allowed":void 0,...c},children:[g>=0&&x.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:d.indicator,border:`1px solid ${d.indicatorBorder}`,boxShadow:d.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:u.padding,right:u.padding,top:x.offset,height:x.size}:{top:u.padding,bottom:u.padding,left:x.offset,width:x.size}}}),p.map((v,z)=>{let D=v.value===t,I=i||v.disabled;return jsxRuntime.jsxs("button",{ref:F=>{b.current[z]=F;},type:"button",role:"radio","aria-checked":D,disabled:I,onClick:()=>{I||o(v.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:r?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:I?d.textDisabled:D?d.textActive:d.text,cursor:I?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:F=>{!I&&!D&&(F.currentTarget.style.color=d.textHover);},onMouseLeave:F=>{!I&&!D&&(F.currentTarget.style.color=d.text);},children:[v.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:v.icon}),(v.label||!v.icon&&v.value)&&jsxRuntime.jsx("span",{children:v.label??v.value})]},v.value)})]})};uc.displayName="SegmentedControl";var mc={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)"}},Xn=180,xc=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],jn=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),hc=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},yc=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),n=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),r=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+n*587+r*114)/1e3>150},vc=({value:e,onChange:t,presets:o=xc,label:n,disabled:r=false,style:a,className:i})=>{let s=H(),c=mc[s],d=rr.useId(),u=rr.useRef(null),l=rr.useRef(null),[p,g]=rr.useState(false),[m,b]=rr.useState(false),[x,E]=rr.useState("idle"),[S,v]=rr.useState(e),[z,D]=rr.useState(false),[I,F]=rr.useState({top:0,left:0,openAbove:false});rr.useEffect(()=>{z||v(e);},[e,z]);let h=rr.useCallback(()=>{r||(g(true),b(true),E("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>E("open"));}));},[r]),R=rr.useCallback(()=>{g(false),E("closing");let P=setTimeout(()=>{b(false),E("idle");},Xn);return ()=>clearTimeout(P)},[]),B=rr.useCallback(()=>{if(!u.current)return;let P=u.current.getBoundingClientRect(),N=220,$=window.innerHeight-P.bottom-8,O=$<N&&P.top>$;F({top:O?P.top-8:P.bottom+8,left:P.left,openAbove:O});},[]);rr.useEffect(()=>{if(m)return B(),window.addEventListener("scroll",B,true),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,true),window.removeEventListener("resize",B);}},[m,B]),rr.useEffect(()=>{if(!p)return;let P=N=>{let $=N.target;!u.current?.contains($)&&!l.current?.contains($)&&R();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[p,R]);let C=P=>{let N=hc(P.target.value);v(N),jn(N)&&t(N);},M=()=>{D(false),jn(S)?t(S):v(e);},T=P=>{t(P),v(P),R();},k=()=>{let P=I.openAbove,N=P?"translateY(8px)":"translateY(-8px)",$=P?"translateY(6px)":"translateY(-6px)",O={transition:`opacity ${Xn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Xn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...O,opacity:0,transform:`${N} scale(0.97)`}:x==="open"?{...O,opacity:1,transform:"translateY(0) scale(1)"}:{...O,opacity:0,transform:`${$} scale(0.98)`,pointerEvents:"none"}},w={display:"flex",alignItems:"center",gap:"10px",backgroundColor:r?c.backgroundDisabled:c.background,border:`1px solid ${z?c.borderFocus:c.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:jn(e)?e:"#cccccc",border:`1px solid ${c.swatchBorder}`,flexShrink:0,cursor:r?"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:c.label,userSelect:"none"},y=m?reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},backgroundColor:c.popoverBg,border:`1px solid ${c.popoverBorder}`,borderRadius:"12px",boxShadow:s==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",padding:"12px",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom left":"top left",...k()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((P,N)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${P}`,onClick:()=>T(P),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:P,border:P===e?"2px solid #FC4F00":`1px solid ${c.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:$=>{$.currentTarget.style.transform="scale(1.1)";},onMouseLeave:$=>{$.currentTarget.style.transform="scale(1)";}},`${P}-${N}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:i,children:[n&&jsxRuntime.jsx("label",{htmlFor:d,style:A,children:n}),jsxRuntime.jsxs("div",{ref:u,style:w,children:[jsxRuntime.jsx("div",{style:L,onClick:()=>{r||(p?R():h());}}),jsxRuntime.jsx("input",{id:d,type:"text",value:S,onChange:C,onFocus:()=>D(true),onBlur:M,disabled:r,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:c.text,cursor:r?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:c.placeholder,cursor:r?"not-allowed":"pointer"},onClick:()=>{r||(p?R():h());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(yc(e)&&s==="light",c.placeholder)})})]}),y]})};vc.displayName="ColorPicker";var wc={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"}},Rc={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Tc=({value:e,onChange:t,max:o=5,size:n="md",readOnly:r=false,label:a,style:i,className:s})=>{let c=H(),f=wc[c],d=rr.useId(),u=Rc[n],[l,p]=rr.useState(null),g=!r&&!!t,m=rr.useCallback(v=>{g&&t(v+1);},[g,t]),b=rr.useCallback(v=>{g&&p(v);},[g]),x=rr.useCallback(()=>{p(null);},[]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},S=Array.from({length:o},(v,z)=>{let D=l!==null?l+1:e,I=z<D,F=l!==null&&z<=l;return jsxRuntime.jsx("span",{role:g?"button":void 0,tabIndex:g?0:void 0,"aria-label":g?`Hodnocen\xED ${z+1} z ${o}`:void 0,onClick:()=>m(z),onMouseEnter:()=>b(z),onMouseLeave:x,onKeyDown:h=>{g&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m(z));},style:{display:"inline-flex",cursor:g?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:F?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:u.starSize,weight:I?"fill":"regular",color:I?F?f.starHover:f.starFilled:f.starEmpty})},z)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:s,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsxRuntime.jsx("label",{htmlFor:d,style:E,children:a}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:x,children:S})]})};Tc.displayName="Rating";var Mc={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"}},Pc=({length:e=6,value:t,onChange:o,error:n,disabled:r=false,autoFocus:a=false,label:i,separatorAfter:s,separator:c="-",style:f,className:d})=>{let u=H(),l=Mc[u],p=rr.useId(),g=rr.useRef([]),[m,b]=rr.useState(null),x=!!n,E=typeof n=="string"?n:void 0,S=t.padEnd(e,"").slice(0,e).split("");rr.useEffect(()=>{a&&g.current[0]&&g.current[0].focus();},[a]);let v=rr.useCallback(T=>{T>=0&&T<e&&g.current[T]?.focus();},[e]),z=rr.useCallback(T=>{let k=T.join("").replace(/[^0-9]/g,"");o(k);},[o]),D=rr.useCallback((T,k)=>{if(!/^[0-9]$/.test(k))return;let w=[...S];w[T]=k,z(w),T<e-1&&v(T+1);},[S,e,z,v]),I=rr.useCallback((T,k)=>{switch(k.key){case "Backspace":if(k.preventDefault(),S[T]){let w=[...S];w[T]="",z(w);}else if(T>0){let w=[...S];w[T-1]="",z(w),v(T-1);}break;case "Delete":k.preventDefault();{let w=[...S];w[T]="",z(w);}break;case "ArrowLeft":k.preventDefault(),T>0&&v(T-1);break;case "ArrowRight":k.preventDefault(),T<e-1&&v(T+1);break}},[S,e,z,v]),F=rr.useCallback((T,k)=>{let L=k.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&D(T,L);},[D]),h=rr.useCallback(T=>{T.preventDefault();let k=T.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!k)return;let w=[...S];for(let A=0;A<k.length;A++)w[A]=k[A];z(w);let L=Math.min(k.length,e-1);v(L);},[S,e,z,v]),R=rr.useCallback(T=>{b(T),g.current[T]?.select();},[]),B=rr.useCallback(()=>{b(null);},[]),C={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},M=T=>{let k=m===T,w=!!S[T];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:r?l.backgroundDisabled:w?l.backgroundFilled:l.background,border:`1px solid ${x?l.borderError:k?l.borderFocus:w?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"text",caretColor:l.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...f},className:d,children:[i&&jsxRuntime.jsx("label",{htmlFor:`${p}-0`,style:C,children:i}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:h,children:Array.from({length:e},(T,k)=>jsxRuntime.jsxs(rr__default.default.Fragment,{children:[s&&k>0&&k%s===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:r?.6:.5,padding:"0 2px"},children:c}),jsxRuntime.jsx("input",{ref:w=>{g.current[k]=w;},id:`${p}-${k}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:S[k]||"",onChange:w=>F(k,w),onKeyDown:w=>I(k,w),onFocus:()=>R(k),onBlur:B,disabled:r,"aria-label":`\u010C\xEDslice ${k+1} z ${e}`,style:M(k)})]},k))}),E&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:E})]})};Pc.displayName="OTPInput";var $c={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Jn=180,Wc={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},Oc=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function Zc(e,t){return [...t].sort((n,r)=>r.dialCode.length-n.dialCode.length).find(n=>e.startsWith(n.dialCode))}var Yc=({value:e="",onChange:t,defaultCountry:o="CZ",countries:n,label:r,error:a,helperText:i,disabled:s=false,size:c="md",placeholder:f="123 456 789",style:d,className:u})=>{let l=H(),p=$c[l],g=Wc[c],m=rr.useId(),b=n||Oc,x=rr.useRef(null),E=rr.useRef(null),S=rr.useRef(null),v=rr.useRef(null),[z,D]=rr.useState(false),[I,F]=rr.useState(false),[h,R]=rr.useState(false),[B,C]=rr.useState("idle"),[M,T]=rr.useState(""),[k,w]=rr.useState(-1),[L,A]=rr.useState({top:0,left:0,width:0,openAbove:false}),y=!!a,P=typeof a=="string"?a:void 0,N=rr.useMemo(()=>{if(e){let Y=Zc(e,b);if(Y)return Y}return b.find(Y=>Y.code===o)||b[0]},[e,b,o]),$=rr.useMemo(()=>!e||!N?"":e.startsWith(N.dialCode)?e.slice(N.dialCode.length):e.replace(/^\+\d+/,""),[e,N]),O=rr.useMemo(()=>{if(!M)return b;let Y=M.toLowerCase();return b.filter(q=>q.name.toLowerCase().includes(Y)||q.dialCode.includes(Y)||q.code.toLowerCase().includes(Y))},[b,M]),U=rr.useCallback(()=>{F(true),R(true),C("opening"),T(""),w(-1);let Y=setTimeout(()=>{C("open"),v.current?.focus();},10);return ()=>clearTimeout(Y)},[]),Z=rr.useCallback(()=>{F(false),C("closing");let Y=setTimeout(()=>{R(false),C("idle");},Jn);return ()=>clearTimeout(Y)},[]),W=rr.useCallback(()=>{if(!x.current)return;let Y=x.current.getBoundingClientRect(),q=E.current?.offsetHeight??300,te=window.innerHeight-Y.bottom-6,ge=Y.top-6,Ke=te<q&&ge>te;A({top:Ke?Y.top-6:Y.bottom+6,left:Y.left,width:Math.max(Y.width,280),openAbove:Ke});},[]);rr.useEffect(()=>{if(h)return W(),window.addEventListener("scroll",W,true),window.addEventListener("resize",W),()=>{window.removeEventListener("scroll",W,true),window.removeEventListener("resize",W);}},[h,W]),rr.useEffect(()=>{if(!I)return;let Y=q=>{let te=q.target;!x.current?.contains(te)&&!E.current?.contains(te)&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[I,Z]);let K=rr.useCallback(Y=>{let q=Y.dialCode+$;t?.(q),Z(),S.current?.focus();},[$,t,Z]),G=Y=>{let q=Y.target.value.replace(/[^0-9\s]/g,"");t?.(N.dialCode+q);},j=Y=>{let q=Y.clipboardData.getData("text").trim();q.startsWith("+")&&(Y.preventDefault(),t?.(q.replace(/[^0-9+]/g,"")));},J=Y=>{switch(Y.key){case "ArrowDown":Y.preventDefault(),w(q=>Math.min(q+1,O.length-1));break;case "ArrowUp":Y.preventDefault(),w(q=>Math.max(q-1,0));break;case "Enter":Y.preventDefault(),k>=0&&O[k]&&K(O[k]);break;case "Escape":Y.preventDefault(),Z(),S.current?.focus();break}},oe=()=>{let Y=L.openAbove,q=Y?"translateY(8px)":"translateY(-8px)",te=Y?"translateY(6px)":"translateY(-6px)",ge={transition:`opacity ${Jn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Jn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...ge,opacity:0,transform:`${q} scale(0.97)`}:B==="open"?{...ge,opacity:1,transform:"translateY(0) scale(1)"}:{...ge,opacity:0,transform:`${te} scale(0.98)`,pointerEvents:"none"}},ne={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},fe={display:"flex",alignItems:"center",backgroundColor:s?p.backgroundDisabled:p.background,border:`1px solid ${y?p.borderError:z?p.borderFocus:p.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden"},ee=h?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:E,style:{position:"fixed",...L.openAbove?{bottom:window.innerHeight-L.top,left:L.left}:{top:L.top,left:L.left},width:L.width,backgroundColor:p.dropdownBg,border:`1px solid ${p.dropdownBorder}`,borderRadius:"12px",boxShadow:p.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",overflow:"hidden",boxSizing:"border-box",transformOrigin:L.openAbove?"bottom center":"top center",...oe()},onKeyDown:J,children:[jsxRuntime.jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${p.divider}`},children:jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:l==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:14,color:p.placeholder}),jsxRuntime.jsx("input",{ref:v,type:"text",value:M,onChange:Y=>{T(Y.target.value),w(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.text}})]})}),jsxRuntime.jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[O.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:p.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),O.map((Y,q)=>{let te=Y.code===N.code;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:q===k?p.optionHover:te?p.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>K(Y),onMouseEnter:()=>w(q),onMouseLeave:()=>w(-1),children:[jsxRuntime.jsx("span",{style:{fontSize:"18px",flexShrink:0},children:Y.flag}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:te?p.optionSelectedText:p.text,fontWeight:te?500:400},children:Y.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.placeholder,flexShrink:0},children:Y.dialCode})]},Y.code)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{className:u,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},children:[r&&jsxRuntime.jsx("label",{htmlFor:m,style:ne,children:r}),jsxRuntime.jsxs("div",{ref:x,style:fe,children:[jsxRuntime.jsxs("button",{type:"button",disabled:s,onClick:()=>{s||(I?Z():U());},style:{display:"flex",alignItems:"center",gap:"4px",padding:g.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.text,flexShrink:0,outline:"none"},children:[jsxRuntime.jsx("span",{style:{fontSize:c==="sm"?"14px":"18px"},children:N.flag}),jsxRuntime.jsx("span",{style:{fontSize:"13px",color:p.placeholder},children:N.dialCode}),jsxRuntime.jsx(react.CaretDown,{size:12,color:p.placeholder,style:{transition:"transform 0.2s ease",transform:I?"rotate(180deg)":"rotate(0deg)"}})]}),jsxRuntime.jsx("div",{style:{width:"1px",height:"60%",backgroundColor:p.divider,flexShrink:0}}),jsxRuntime.jsx("input",{ref:S,id:m,type:"tel",value:$,onChange:G,onPaste:j,onFocus:()=>D(true),onBlur:()=>D(false),placeholder:f,disabled:s,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.text,padding:g.padding,paddingLeft:"8px"}})]}),P&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:P}),!P&&i&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.helperText,lineHeight:"normal"},children:i}),ee]})};Yc.displayName="PhoneInput";var Gc={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},er=10;function en(e,t,o){return Math.max(t,Math.min(o,e))}var Xc=({src:e,onCrop:t,onCancel:o,aspectRatio:n,minWidth:r=50,minHeight:a=50,shape:i="rect",style:s,className:c})=>{let f=H(),d=Gc[f],u=rr.useRef(null),l=rr.useRef(null),[p,g]=rr.useState(""),[m,b]=rr.useState(false),[x,E]=rr.useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[S,v]=rr.useState({x:0,y:0,width:0,height:0}),[z,D]=rr.useState(null),I=i==="circle"?1:n;rr.useEffect(()=>{if(e instanceof File){let k=URL.createObjectURL(e);return g(k),()=>URL.revokeObjectURL(k)}else g(e);},[e]);let F=rr.useCallback(()=>{let k=u.current,w=l.current;if(!k||!w||!w.naturalWidth)return;let L=k.clientWidth,A=k.clientHeight,y=w.naturalWidth,P=w.naturalHeight,N=Math.min(L/y,A/P),$=y*N,O=P*N,U=(L-$)/2,Z=(A-O)/2;E({natural:{w:y,h:P},display:{w:$,h:O},offset:{x:U,y:Z}});let W=$*.8,K=O*.8,G,j;I?W/I<=K?(G=W,j=W/I):(j=K,G=K*I):(G=W,j=K),G=Math.max(G,r),j=Math.max(j,a),v({x:U+($-G)/2,y:Z+(O-j)/2,width:G,height:j});},[I,r,a]),h=()=>{b(true),F();};rr.useEffect(()=>(window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)),[F]);let R=k=>"touches"in k?{x:k.touches[0].clientX,y:k.touches[0].clientY}:{x:k.clientX,y:k.clientY};rr.useEffect(()=>{if(!z)return;let{display:{w:k,h:w},offset:{x:L,y:A}}=x,y=N=>{N.preventDefault();let $=R(N);if(!u.current?.getBoundingClientRect())return;let U=$.x-z.startX,Z=$.y-z.startY,W=z.startCrop,K={...W};if(z.type==="move")K.x=en(W.x+U,L,L+k-W.width),K.y=en(W.y+Z,A,A+w-W.height);else {let G=W.x,j=W.y,J=W.width,oe=W.height,ne=z.type;ne.includes("e")&&(J=Math.max(r,W.width+U)),ne.includes("w")&&(J=Math.max(r,W.width-U),G=W.x+W.width-J),ne.includes("s")&&(oe=Math.max(a,W.height+Z)),ne.includes("n")&&(oe=Math.max(a,W.height-Z),j=W.y+W.height-oe),I&&(ne==="n"||ne==="s"?(J=oe*I,G=W.x+(W.width-J)/2):ne==="e"||ne==="w"?(oe=J/I,j=W.y+(W.height-oe)/2):(oe=J/I,ne.includes("n")&&(j=W.y+W.height-oe))),G=en(G,L,L+k-J),j=en(j,A,A+w-oe),J=Math.min(J,L+k-G),oe=Math.min(oe,A+w-j),K={x:G,y:j,width:J,height:oe};}v(K);},P=()=>D(null);return document.addEventListener("mousemove",y),document.addEventListener("mouseup",P),document.addEventListener("touchmove",y,{passive:false}),document.addEventListener("touchend",P),()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",P);}},[z,x,I,r,a]);let B=(k,w)=>{w.preventDefault(),w.stopPropagation();let L="touches"in w?{x:w.touches[0].clientX,y:w.touches[0].clientY}:{x:w.clientX,y:w.clientY};D({type:k,startX:L.x,startY:L.y,startCrop:{...S}});},C=rr.useCallback(()=>{let k=l.current;if(!k||!x.display.w)return;let w=x.natural.w/x.display.w,L=(S.x-x.offset.x)*w,A=(S.y-x.offset.y)*w,y=S.width*w,P=S.height*w,N=document.createElement("canvas");N.width=y,N.height=P;let $=N.getContext("2d");$&&(i==="circle"&&($.beginPath(),$.arc(y/2,P/2,y/2,0,Math.PI*2),$.clip()),$.drawImage(k,L,A,y,P,0,0,y,P),N.toBlob(O=>{O&&t(O);},"image/png"));},[S,x,i,t]),M=rr.useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),T={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxRuntime.jsxs("div",{className:c,style:{display:"flex",flexDirection:"column",backgroundColor:d.containerBg,border:`1px solid ${d.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...s},children:[jsxRuntime.jsxs("div",{ref:u,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:z?z.type==="move"?"grabbing":`${z.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[p&&jsxRuntime.jsx("img",{ref:l,src:p,crossOrigin:"anonymous",onLoad:h,style:{position:"absolute",top:x.offset.y,left:x.offset.x,width:x.display.w||"100%",height:x.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:S.y,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:S.y+S.height,left:0,right:0,bottom:0,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:S.y,left:0,width:S.x,height:S.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:S.y,left:S.x+S.width,right:0,height:S.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsxs("div",{style:{position:"absolute",left:S.x,top:S.y,width:S.width,height:S.height,border:`2px dashed ${d.cropBorder}`,borderRadius:i==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:k=>B("move",k),onTouchStart:k=>B("move",k),children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),M.map(k=>jsxRuntime.jsx("div",{style:{position:"absolute",width:er,height:er,backgroundColor:d.handleBg,border:`1px solid ${d.handleBorder}`,borderRadius:"2px",cursor:k.cursor,zIndex:2,...k.style},onMouseDown:w=>B(k.type,w),onTouchStart:w=>B(k.type,w)},k.type))]})]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:d.actionBarBg,borderTop:`1px solid ${d.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxRuntime.jsxs("button",{type:"button",style:{...T,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`},onClick:o,onMouseEnter:k=>{k.currentTarget.style.backgroundColor=d.buttonSecondaryHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.X,{size:14}),"Zru\u0161it"]}),jsxRuntime.jsxs("button",{type:"button",style:{...T,backgroundColor:d.buttonPrimary,color:d.buttonPrimaryText,border:"1px solid transparent"},onClick:C,onMouseEnter:k=>{k.currentTarget.style.backgroundColor=d.buttonPrimaryHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor=d.buttonPrimary;},children:[jsxRuntime.jsx(react.Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};Xc.displayName="ImageCropper";var qc={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)"}},ja="smSkeletonShimmer",Kc=`@keyframes ${ja}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,Re=({variant:e="text",width:t,height:o,lines:n=1,animate:r=true,className:a,style:i})=>{let s=H(),c=qc[s],f=t??(e==="circle"?40:"100%"),d=o??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:c.base,backgroundImage:r?`linear-gradient(90deg, ${c.base} 25%, ${c.shimmer} 50%, ${c.base} 75%)`:void 0,backgroundSize:r?"200% 100%":void 0,animation:r?`${ja} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof f=="number"?`${f}px`:f,height:typeof d=="number"?`${d}px`:d},l=r?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Kc}}):null;return e==="text"&&n>1?jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...i},children:[l,Array.from({length:n}).map((p,g)=>jsxRuntime.jsx("div",{style:{...u,width:g===n-1?"75%":u.width}},g))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx("div",{className:a,style:{...u,...i}})]})};Re.displayName="Skeleton";var ed={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)"}},td=({columns:e,data:t,loading:o=false,emptyText:n="\u017D\xE1dn\xE1 data",onSort:r,sortKey:a,sortDirection:i,striped:s=false,hoverable:c=true,onRowClick:f,rowActions:d,className:u,style:l})=>{let p=H(),g=ed[p],m=v=>{if(!v.sortable||!r)return;let z=a===v.key&&i==="asc"?"desc":"asc";r(v.key,z);},b={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.text,backgroundColor:g.background,border:`1px solid ${g.border}`,borderRadius:"12px",overflow:"hidden",...l},x=v=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:g.textSecondary,backgroundColor:g.headerBg,borderBottom:`1px solid ${g.border}`,whiteSpace:"nowrap",cursor:v.sortable?"pointer":"default",userSelect:"none",width:v.width!=null?typeof v.width=="number"?`${v.width}px`:v.width:void 0}),E={padding:"10px 16px",borderBottom:`1px solid ${g.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:u,style:b,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[e.map(v=>jsxRuntime.jsx("th",{style:x(v),onClick:()=>m(v),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[v.header,v.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:a===v.key?g.sortActive:g.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},v.key)),d&&jsxRuntime.jsx("th",{style:{...x({sortable:false}),width:"auto"}})]})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((v,z)=>jsxRuntime.jsx("tr",{children:e.map(D=>jsxRuntime.jsx("td",{style:E,children:jsxRuntime.jsx(Re,{variant:"text",width:"80%"})},D.key))},`skel-${z}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...E,textAlign:"center",padding:"32px 16px",color:g.textSecondary,borderBottom:"none"},children:n})}):t.map((v,z)=>jsxRuntime.jsxs("tr",{style:{backgroundColor:s&&z%2===1?g.stripedBg:"transparent",transition:"background-color 0.12s ease",cursor:f?"pointer":"default"},onClick:D=>{f&&!D.target.closest("[data-no-row-click]")&&f(v,z);},onMouseEnter:D=>{(c||f)&&(D.currentTarget.style.backgroundColor=g.rowHover);},onMouseLeave:D=>{(c||f)&&(D.currentTarget.style.backgroundColor=s&&z%2===1?g.stripedBg:"transparent");},children:[e.map(D=>jsxRuntime.jsx("td",{style:{...E,borderBottom:z===t.length-1?"none":E.borderBottom},children:D.render?D.render(v[D.key],v,z):v[D.key]},D.key)),d&&jsxRuntime.jsx("td",{"data-no-row-click":true,style:{...E,borderBottom:z===t.length-1?"none":E.borderBottom,textAlign:"right",whiteSpace:"nowrap"},onClick:D=>D.stopPropagation(),children:d(v)})]},z))})]})};td.displayName="Table";var nd={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"}},Ja=({checked:e,indeterminate:t,onChange:o,t:n})=>{let r=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${r?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:r?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},rd=({columns:e,data:t,selectable:o=false,onSelectionChange:n,loading:r=false,rowKey:a="id",onRowClick:i,stickyHeader:s=false,emptyText:c="\u017D\xE1dn\xE1 data",style:f,className:d})=>{let u=H(),l=nd[u],[p,g]=rr.useState(new Set),[m,b]=rr.useState(null),x=rr.useMemo(()=>t.map(C=>String(C[a])),[t,a]),E=x.length>0&&x.every(C=>p.has(C)),S=x.some(C=>p.has(C))&&!E,v=rr.useCallback(()=>{let C=E?new Set:new Set(x);g(C),n?.(Array.from(C));},[E,x,n]),z=rr.useCallback(C=>{g(M=>{let T=new Set(M);return T.has(C)?T.delete(C):T.add(C),n?.(Array.from(T)),T});},[n]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},I=C=>({padding:"12px 16px",textAlign:C.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:C.width!=null?typeof C.width=="number"?`${C.width}px`:C.width:void 0,minWidth:C.minWidth!=null?`${C.minWidth}px`:void 0,...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),F=C=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:C.align||"left"}),h={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},R={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:d,style:{overflow:s?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...f},children:jsxRuntime.jsxs("table",{style:D,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:h,children:jsxRuntime.jsx(Ja,{checked:E,indeterminate:S,onChange:v,t:l})}),e.map(C=>jsxRuntime.jsx("th",{style:I(C),children:C.header},C.key))]})}),jsxRuntime.jsx("tbody",{children:r?Array.from({length:5}).map((C,M)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:R,children:jsxRuntime.jsx(Re,{variant:"rect",width:16,height:16})}),e.map(T=>jsxRuntime.jsx("td",{style:F(T),children:jsxRuntime.jsx(Re,{variant:"text",width:"80%"})},T.key))]},`skel-${M}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:c})}):t.map((C,M)=>{let T=String(C[a]),k=p.has(T),w=m===T,L=M===t.length-1,A="transparent";return k?A=l.selectedRowBg:w&&(A=l.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:A,cursor:i?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>b(T),onMouseLeave:()=>b(null),onClick:()=>i?.(C),children:[o&&jsxRuntime.jsx("td",{style:{...R,borderBottom:L?"none":R.borderBottom},children:jsxRuntime.jsx(Ja,{checked:k,onChange:()=>z(T),t:l})}),e.map(y=>jsxRuntime.jsx("td",{style:{...F(y),borderBottom:L?"none":F(y).borderBottom},children:y.render?y.render(C[y.key],C,M):C[y.key]},y.key))]},T)})})]})})};rd.displayName="DataGrid";var ld={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ei=({checked:e,indeterminate:t,onChange:o,t:n})=>jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:r=>{r.stopPropagation(),o();},onKeyDown:r=>{(r.key===" "||r.key==="Enter")&&(r.preventDefault(),r.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:e||t?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M3 6H9",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),cd=({columns:e,data:t,primaryKey:o,rowKey:n="id",selectable:r=false,selectedIds:a,onSelectionChange:i,onCardClick:s,onSort:c,sortKey:f,sortDirection:d,loading:u=false,skeletonCount:l=3,emptyText:p="\u017D\xE1dn\xE1 data",emptyContent:g,gap:m=12,cardActions:b,style:x,className:E})=>{let S=H(),v=ld[S],[z,D]=rr.useState(new Set),[I,F]=rr.useState(null),h=a!==void 0,R=rr.useMemo(()=>h?new Set(a):z,[h,a,z]),B=rr.useMemo(()=>e.find(y=>y.primary)||(o?e.find(y=>y.key===o):void 0),[e,o]),C=rr.useMemo(()=>e.filter(y=>!y.hidden&&y!==B),[e,B]),M=rr.useMemo(()=>e.filter(y=>y.sortable),[e]),T=rr.useCallback(y=>{let P=new Set(R);P.has(y)?P.delete(y):P.add(y),h||D(P),i?.(Array.from(P));},[R,h,i]),k=rr.useCallback(()=>{let y=t.map($=>String($[n])),N=y.every($=>R.has($))?new Set:new Set(y);h||D(N),i?.(Array.from(N));},[t,n,R,h,i]),w=t.length>0&&t.every(y=>R.has(String(y[n]))),L=t.some(y=>R.has(String(y[n])))&&!w,A=rr.useCallback(y=>{if(!c)return;c(y,f===y&&d==="asc"?"desc":"asc");},[c,f,d]);if(u){let y=C.length>0?C.length:3;return jsxRuntime.jsx("div",{className:E,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...x},children:Array.from({length:l}).map((P,N)=>jsxRuntime.jsxs("div",{style:{backgroundColor:v.cardBg,border:`1px solid ${v.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(B||r)&&jsxRuntime.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${v.divider}`,backgroundColor:v.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[r&&jsxRuntime.jsx(Re,{variant:"rect",width:18,height:18}),jsxRuntime.jsx(Re,{variant:"text",width:"45%",height:18})]}),Array.from({length:y}).map(($,O)=>jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:O<y-1?`1px solid ${v.divider}`:"none"},children:[jsxRuntime.jsx(Re,{variant:"text",width:70,height:12}),jsxRuntime.jsx(Re,{variant:"text",width:100,height:14})]},O)),b&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${v.divider}`},children:[jsxRuntime.jsx(Re,{variant:"rect",width:64,height:30}),jsxRuntime.jsx(Re,{variant:"rect",width:64,height:30})]})]},N))})}return t.length===0?jsxRuntime.jsx("div",{className:E,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...x},children:jsxRuntime.jsx("div",{style:{backgroundColor:v.emptyBg,border:`1px solid ${v.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:v.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:g??p})}):jsxRuntime.jsxs("div",{className:E,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...x},children:[(r||M.length>0)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsxRuntime.jsx(ei,{checked:w,indeterminate:L,onChange:k,t:v}),jsxRuntime.jsx("span",{style:{fontSize:"12px",color:v.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:R.size>0?`${R.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),M.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:r?"auto":0},children:M.map(y=>{let P=f===y.key;return jsxRuntime.jsxs("button",{onClick:()=>A(y.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:P?v.sortChipActiveBg:v.sortChipBg,color:P?v.sortActive:v.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:P?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[y.header,P?d==="asc"?jsxRuntime.jsx(react.CaretUp,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretDown,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretUpDown,{size:12})]},y.key)})})]}),t.map((y,P)=>{let N=String(y[n]),$=R.has(N),O=I===N,U=B?B.render?B.render(y[B.key],y,P):y[B.key]:null;return jsxRuntime.jsxs("div",{style:{backgroundColor:$?v.selectedBg:O?v.hover:v.cardBg,border:`1px solid ${$?v.selectedBorder:v.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:s?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>s?.(y),onMouseEnter:()=>F(N),onMouseLeave:()=>F(null),children:[(U!==null||r)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:v.headerBg,borderBottom:`1px solid ${v.divider}`},children:[r&&jsxRuntime.jsx(ei,{checked:$,onChange:()=>T(N),t:v}),U!==null&&jsxRuntime.jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:v.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:U})]}),jsxRuntime.jsx("div",{children:C.map((Z,W)=>{let K=Z.render?Z.render(y[Z.key],y,P):y[Z.key];return jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:W<C.length-1?`1px solid ${v.divider}`:"none"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:v.textSecondary,flexShrink:0,paddingTop:"2px"},children:Z.header}),jsxRuntime.jsx("span",{style:{fontSize:"14px",color:v.text,textAlign:"right",wordBreak:"break-word"},children:K??"\u2014"})]},Z.key)})}),b&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${v.divider}`},onClick:Z=>Z.stopPropagation(),children:b(y,P)})]},N??P)})]})};cd.displayName="MobileDataCard";var dd={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)"}},pd={none:"0",sm:"12px",md:"20px",lg:"28px"},ud=({title:e,subtitle:t,header:o,footer:n,children:r,hoverable:a=false,bordered:i=true,padding:s="md",className:c,style:f})=>{let d=H(),u=dd[d],l=pd[s],p={backgroundColor:u.background,border:i?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...f},g=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:l,paddingBottom:r||n?"0":l},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:u.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:c,style:p,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=u.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=d==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=i?u.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[g,r&&jsxRuntime.jsx("div",{style:{padding:l},children:r}),n&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsxRuntime.jsx("div",{style:{padding:l},children:n})]})]})};ud.displayName="Card";var ni={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)"}},xd=({title:e,children:t,defaultOpen:o=false,disabled:n=false,_controlled:r,_open:a,_onToggle:i})=>{let s=H(),c=ni[s],[f,d]=rr.useState(o),u=r?!!a:f,l=rr.useRef(null),[p,g]=rr.useState(0);rr.useEffect(()=>{l.current&&g(l.current.scrollHeight);},[t,u]);let m=rr.useCallback(()=>{n||(r&&i?i():d(b=>!b));},[n,r,i]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${c.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:n?c.textDisabled:c.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:b=>{n||(b.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:n?c.chevronDisabled:c.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:u?`${p}px`:"0px",transition:"max-height 0.25s ease"},children:jsxRuntime.jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:c.textSecondary},children:t})})]})};xd.displayName="AccordionItem";var hd=({children:e,multiple:t=false,className:o,style:n})=>{let r=H(),a=ni[r],i=rr__default.default.Children.toArray(e).filter(d=>rr__default.default.isValidElement(d)),[s,c]=rr.useState(()=>{let d=new Set;return i.forEach((u,l)=>{u.props.defaultOpen&&d.add(l);}),d}),f=rr.useCallback(d=>{c(u=>{let l=new Set(u);return l.has(d)?l.delete(d):(t||l.clear(),l.add(d)),l});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...n},children:i.map((d,u)=>rr__default.default.cloneElement(d,{key:u,_controlled:true,_open:s.has(u),_onToggle:()=>f(u)}))})};hd.displayName="Accordion";var yd={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)"}},vd={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Sd=()=>null;Sd.displayName="Tab";var kd=()=>null;kd.displayName="TabPanel";var Cd=({value:e,onChange:t,children:o,variant:n="underline",fullWidth:r=false,size:a="md",className:i,style:s})=>{let c=H(),f=yd[c],d=vd[a],u=rr__default.default.Children.toArray(o),l=u.filter(m=>rr__default.default.isValidElement(m)&&m.type?.displayName==="Tab"),g=u.filter(m=>rr__default.default.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxRuntime.jsxs("div",{className:i,style:s,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:n==="pills"?"4px":"0",borderBottom:n==="underline"?`1px solid ${f.border}`:"none"},children:l.map(m=>{let b=m.props.value===e,x=m.props.disabled,E=n==="underline"?{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:b?500:400,color:x?f.textDisabled:b?f.text:f.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${b?f.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:x?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:b?500:400,color:x?f.textDisabled:b?f.pillText:f.textInactive,backgroundColor:b?f.pillBg:f.pillInactiveBg,border:"none",borderRadius:"8px",cursor:x?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:x,style:E,onClick:()=>{x||t(m.props.value);},onMouseEnter:S=>{!x&&!b&&(S.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:S=>{x||(S.currentTarget.style.backgroundColor=n==="pills"&&b?f.pillBg:"transparent");},children:[m.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),g&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:g.props.children})]})};Cd.displayName="Tabs";var Td={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"}},cr=180,an=8,Fd=({content:e,children:t,position:o="bottom",trigger:n="click",className:r,style:a})=>{let i=H(),s=Td[i],[c,f]=rr.useState(false),[d,u]=rr.useState(false),[l,p]=rr.useState("idle"),[g,m]=rr.useState({top:0,left:0}),b=rr.useRef(null),x=rr.useRef(null),E=rr.useRef(void 0),S=rr.useCallback(()=>{f(true),u(true),p("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>p("open"));});},[]),v=rr.useCallback(()=>{f(false),p("closing");let B=setTimeout(()=>{u(false),p("idle");},cr);return ()=>clearTimeout(B)},[]),z=rr.useCallback(()=>{let B=b.current,C=x.current;if(!B||!C)return;let M=B.getBoundingClientRect(),T=C.getBoundingClientRect(),k=0,w=0;switch(o){case "top":k=M.top-T.height-an,w=M.left+M.width/2-T.width/2;break;case "bottom":k=M.bottom+an,w=M.left+M.width/2-T.width/2;break;case "left":k=M.top+M.height/2-T.height/2,w=M.left-T.width-an;break;case "right":k=M.top+M.height/2-T.height/2,w=M.right+an;break}m({top:k,left:w});},[o]);rr.useEffect(()=>{if(d)return requestAnimationFrame(z),window.addEventListener("scroll",z,true),window.addEventListener("resize",z),()=>{window.removeEventListener("scroll",z,true),window.removeEventListener("resize",z);}},[d,z]),rr.useEffect(()=>{if(!c)return;let B=C=>{let M=C.target;!b.current?.contains(M)&&!x.current?.contains(M)&&v();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[c,v]),rr.useEffect(()=>{if(!c)return;let B=C=>{C.key==="Escape"&&v();};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[c,v]);let D=()=>{let B={transition:`opacity ${cr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${cr}ms cubic-bezier(0.16, 1, 0.3, 1)`},C={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...B,opacity:0,transform:`translate${M}(${C[o]}) scale(0.97)`}:l==="open"?{...B,opacity:1,transform:"translateY(0) scale(1)"}:{...B,opacity:0,transform:`translate${M}(${C[o]}) scale(0.98)`,pointerEvents:"none"}},I=rr.useCallback(()=>{n==="click"&&(c?v():S());},[n,c,v,S]),F=rr.useCallback(()=>{n==="hover"&&(E.current&&clearTimeout(E.current),c||S());},[n,c,S]),h=rr.useCallback(()=>{n==="hover"&&(E.current=setTimeout(()=>{v();},150));},[n,v]);rr.useEffect(()=>()=>{E.current&&clearTimeout(E.current);},[]);let R=d?reactDom.createPortal(jsxRuntime.jsx("div",{ref:x,className:r,onMouseEnter:()=>{n==="hover"&&E.current&&clearTimeout(E.current);},onMouseLeave:h,style:{position:"fixed",top:g.top,left:g.left,zIndex:"var(--sm-ui-z-popover, 99999)",padding:"16px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",color:s.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...a},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[rr__default.default.cloneElement(t,{ref:b,onClick:B=>{I(),t.props.onClick?.(B);},onMouseEnter:B=>{F(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{h(),t.props.onMouseLeave?.(B);}}),R]})};Fd.displayName="Popover";var Ld={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Hd={"no-data":{icon:jsxRuntime.jsx(react.Tray,{size:48}),title:"\u017D\xE1dn\xE1 data",description:"Zat\xEDm zde nejsou \u017E\xE1dn\xE9 z\xE1znamy."},"no-results":{icon:jsxRuntime.jsx(react.MagnifyingGlass,{size:48}),title:"\u017D\xE1dn\xE9 v\xFDsledky",description:"Zkuste upravit filtr nebo hledan\xFD v\xFDraz."},"no-permission":{icon:jsxRuntime.jsx(react.Lock,{size:48}),title:"Nem\xE1te opr\xE1vn\u011Bn\xED",description:"Pro p\u0159\xEDstup kontaktujte administr\xE1tora."},error:{icon:jsxRuntime.jsx(react.WarningCircle,{size:48}),title:"N\u011Bco se pokazilo",description:"Nepoda\u0159ilo se na\u010D\xEDst data. Zkuste to znovu."},"coming-soon":{icon:jsxRuntime.jsx(react.Rocket,{size:48}),title:"Ji\u017E brzy",description:"Tato funkce je ve v\xFDvoji."}},Nd={sm:{padding:"24px 16px",iconSize:32,titleSize:"14px",descSize:"12px",maxWidth:"280px"},md:{padding:"48px 24px",iconSize:48,titleSize:"18px",descSize:"14px",maxWidth:"360px"},lg:{padding:"64px 32px",iconSize:64,titleSize:"22px",descSize:"15px",maxWidth:"440px"}},$d=({icon:e,title:t,description:o,action:n,preset:r,size:a="md",className:i,style:s})=>{let c=H(),f=Ld[c],d=Nd[a],u=r?Hd[r]:void 0,l=e??u?.icon,p=t??u?.title??"",g=o??u?.description;return jsxRuntime.jsxs("div",{className:i,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:d.padding,gap:"12px",...s},children:[l&&jsxRuntime.jsx("div",{style:{lineHeight:1,color:f.iconColor,marginBottom:"4px"},children:l}),p&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:d.titleSize,lineHeight:"normal",color:f.text},children:p}),g&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:d.descSize,lineHeight:"1.5",color:f.textSecondary,maxWidth:d.maxWidth},children:g}),n&&jsxRuntime.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px",alignItems:"center"},children:n})]})};$d.displayName="EmptyState";var Vd={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",helper:"#888888",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)",hoverBg:"rgba(255,255,255,0.04)",hoverShadow:"0 4px 16px rgba(0,0,0,0.3)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",helper:"#999999",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)",hoverBg:"rgba(0,0,0,0.02)",hoverShadow:"0 4px 16px rgba(0,0,0,0.08)"}},Ud=({label:e,value:t,change:o,changeLabel:n,icon:r,trend:a="neutral",loading:i=false,onClick:s,helper:c,className:f,style:d})=>{let u=H(),l=Vd[u],[p,g]=rr.useState(false),m=!!s,b=a==="up"?l.trendUp:a==="down"?l.trendDown:l.trendNeutral,x=S=>`${S>0?"+":""}${S.toFixed(1)} %`;return jsxRuntime.jsxs(m?"button":"div",{className:f,onClick:m?s:void 0,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),type:m?"button":void 0,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:p&&m?l.hoverBg:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",padding:"16px 20px",cursor:m?"pointer":"default",transition:"transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease",transform:p&&m?"translateY(-2px)":"translateY(0)",boxShadow:p&&m?l.hoverShadow:"none",outline:"none",textAlign:"left",width:"100%",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...d},children:[r&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:l.iconColor,flexShrink:0,color:l.text},children:r}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.label,lineHeight:"normal",marginBottom:"4px"},children:e}),i?jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"2px"},children:[jsxRuntime.jsx(Re,{variant:"text",width:"60%",height:24}),o!==void 0&&jsxRuntime.jsx(Re,{variant:"text",width:"40%",height:14})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:l.text},children:t}),c&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:l.helper,marginTop:"2px"},children:c}),o!==void 0&&jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:b},children:[a==="up"&&jsxRuntime.jsx(react.TrendUp,{size:14,color:b}),a==="down"&&jsxRuntime.jsx(react.TrendDown,{size:14,color:b}),jsxRuntime.jsx("span",{children:x(o)}),n&&jsxRuntime.jsx("span",{style:{color:l.label,marginLeft:"2px"},children:n})]})]})]})]})};Ud.displayName="Stat";var jd=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],qd=rr__default.default.forwardRef(({initials:e,src:t,size:o="md",borderRadius:n="8px",style:r,className:a,"aria-label":i},s)=>{let c=jd(o),[f,d]=rr.useState(void 0),u=!!t&&t!==f,l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,height:c,borderRadius:n,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,overflow:"hidden",userSelect:"none",WebkitUserSelect:"none",...r},p={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 jsxRuntime.jsx("div",{ref:s,style:l,className:a,role:"img","aria-label":i??`Avatar ${e.toUpperCase()}`,children:u?jsxRuntime.jsx("img",{src:t,alt:"",onError:()=>d(t),style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}},t):jsxRuntime.jsx("span",{style:p,children:e.toUpperCase()})})});qd.displayName="Avatar";var Kd={dark:{overflowBg:"rgba(60,60,60,0.95)",overflowText:"#ffffff",overflowBorder:"rgba(3,3,3,1)",ringColor:"rgba(3,3,3,1)"},light:{overflowBg:"rgba(220,220,220,0.95)",overflowText:"#1a1a1a",overflowBorder:"rgba(255,255,255,1)",ringColor:"rgba(255,255,255,1)"}},Jd=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Qd={tight:-0.4,normal:-0.3,loose:-0.15},ep=({children:e,max:t=3,size:o="sm",spacing:n="normal",direction:r="ltr",overflowTooltip:a,style:i,className:s})=>{let c=H(),f=Kd[c],d=Jd(o),u=Math.round(d*Qd[n]),l=Math.max(2,Math.round(d*.06)),p=rr__default.default.Children.toArray(e),g=p.slice(0,t),m=Math.max(0,p.length-t),b=m>0?jsxRuntime.jsxs("div",{style:{width:d,height:d,borderRadius:"50%",backgroundColor:f.overflowBg,border:`${l}px solid ${f.overflowBorder}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:Math.max(9,Math.round(d*.3)),color:f.overflowText,flexShrink:0,boxSizing:"border-box",marginLeft:g.length>0?u:0,zIndex:r==="ltr"?0:p.length+1,position:"relative",userSelect:"none"},children:["+",m]}):null,x=b&&a?jsxRuntime.jsx(Mt,{content:typeof a=="function"?a(m):a,children:b}):b;return jsxRuntime.jsxs("div",{className:s,style:{display:"inline-flex",alignItems:"center",flexDirection:r==="rtl"?"row-reverse":"row",...i},children:[g.map((E,S)=>{let v=rr__default.default.isValidElement(E),z=r==="ltr"?g.length-S:S+1,D=v?rr__default.default.cloneElement(E,{size:o,borderRadius:"50%",style:{...E.props.style||{},border:`${l}px solid ${f.ringColor}`,boxSizing:"border-box"}}):E;return jsxRuntime.jsx("div",{style:{position:"relative",zIndex:z,marginLeft:S>0?u:0,flexShrink:0,lineHeight:0},children:D},S)}),x]})};ep.displayName="AvatarStack";var si={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)"}},ur=({onClick:e,title:t,color:o,children:n})=>jsxRuntime.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:n}),Km=({label:e,onRemove:t,style:o,className:n})=>{let r=si[H()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:r.tagBg,border:`1px solid ${r.tagBorder}`,borderRadius:"4px",...o},className:n,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:r.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsxRuntime.jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},rp={default:{bg:"rgba(246,84,14,0.8)",color:"#ffffff"},success:{bg:"#00A205",color:"#ffffff"},info:{bg:"#2D7FF9",color:"#ffffff"},warning:{bg:"#F5A623",color:"#1a1a1a"},danger:{bg:"#EF3838",color:"#ffffff"}},Jm=({label:e,variant:t="default",color:o,style:n,className:r})=>{let a=rp[t];return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:o??a.bg,borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.color,textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...n},className:r,children:e})},Qm=({label:e,onFilter:t,onEdit:o,onDelete:n,showActions:r=true,style:a,className:i})=>{let s=si[H()],c=t||o||n;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:s.itemBg,border:`1px solid ${s.itemBorder}`,borderRadius:"8px",...a},className:i,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:s.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),r&&c&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(ur,{onClick:t,title:"Filtrovat",color:s.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(ur,{onClick:o,title:"Upravit",color:s.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),n&&jsxRuntime.jsx(ur,{onClick:n,title:"Smazat",color:s.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var ap={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"}},di={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"]}},Ot=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ip=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,st=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},gr=(e,t=1)=>{let o=new Date(e),n=o.getDay(),r=t===1?(n===0?-6:1)-n:-n;return o.setDate(o.getDate()+r),o.setHours(0,0,0,0),o},pi=(e,t,o=1)=>{let n=new Date(e,t,1),r=gr(n,o),a=[],i=new Date(r);for(let s=0;s<42;s++)a.push(new Date(i)),i.setDate(i.getDate()+1);return a},sp=(e,t=1)=>{let o=gr(e,t),n=[];for(let r=0;r<7;r++){let a=new Date(o);a.setDate(o.getDate()+r),n.push(a);}return n},ui=(e,t,o)=>{if(t){let n=new Date(t);if(n.setHours(0,0,0,0),e<n)return true}if(o){let n=new Date(o);if(n.setHours(23,59,59,999),e>n)return true}return false};function lp(e,t){let o=[],n=new Map,r=st(e[0]),a=st(e[6]),i=t.filter(s=>{let c=st(s.date);return (s.endDate?st(s.endDate):c)>=r&&c<=a}).sort((s,c)=>{let f=st(s.date).getTime(),d=st(c.date).getTime();if(f!==d)return f-d;let u=s.endDate?st(s.endDate).getTime():f;return (c.endDate?st(c.endDate).getTime():d)-d-(u-f)});for(let s of i){let c=st(s.date),f=s.endDate?st(s.endDate):c,d=c<r?r:c,u=f>a?a:f,l=e.findIndex(E=>Ot(E,d)),p=e.findIndex(E=>Ot(E,u));if(l===-1||p===-1)continue;let g=p-l+1,m=c>=r,b=0;for(;;){n.has(b)||n.set(b,new Set);let E=n.get(b),S=true;for(let v=l;v<=p;v++)if(E.has(v)){S=false;break}if(S)break;b++;}let x=n.get(b);for(let E=l;E<=p;E++)x.add(E);o.push({event:s,row:b,startCol:l,span:g,isStart:m});}return o}var cp=({value:e,onChange:t,view:o="month",events:n=[],minDate:r,maxDate:a,style:i,className:s,firstDay:c=1,locale:f="cs",initialDate:d,t:u,today:l})=>{let p=di[f],g=d||e||l,[m,b]=rr.useState(()=>g.getMonth()),[x,E]=rr.useState(()=>g.getFullYear()),[S,v]=rr.useState(()=>gr(g,c)),[z,D]=rr.useState(null),I=rr.useMemo(()=>o==="week"?sp(S,c):pi(x,m,c),[o,x,m,S,c]),F=rr.useCallback(()=>{o==="week"?v(T=>{let k=new Date(T);return k.setDate(k.getDate()-7),k}):b(T=>T===0?(E(k=>k-1),11):T-1);},[o]),h=rr.useCallback(()=>{o==="week"?v(T=>{let k=new Date(T);return k.setDate(k.getDate()+7),k}):b(T=>T===11?(E(k=>k+1),0):T+1);},[o]),R=T=>n.filter(k=>Ot(k.date,T)),B=o==="week"?(()=>{let T=new Date(S);return T.setDate(T.getDate()+6),S.getMonth()===T.getMonth()?`${S.getDate()}. \u2013 ${T.getDate()}. ${p.months[T.getMonth()]} ${T.getFullYear()}`:`${S.getDate()}. ${p.months[S.getMonth()].slice(0,3)} \u2013 ${T.getDate()}. ${p.months[T.getMonth()].slice(0,3)} ${T.getFullYear()}`})():`${p.months[m]} ${x}`,C={backgroundColor:u.background,border:`1px solid ${u.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:u.text,overflow:"hidden",userSelect:"none",...i},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:u.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:s,style:C,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:u.headerBg,borderBottom:`1px solid ${u.border}`},children:[jsxRuntime.jsx("button",{style:M,onClick:F,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=u.navHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:B}),jsxRuntime.jsx("button",{style:M,onClick:h,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=u.navHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:p.daysFull.map(T=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:u.textMuted,padding:"6px 0 8px"},children:T},T))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:I.map((T,k)=>{let w=Ot(T,l),L=e?Ot(T,e):false,A=o==="month"&&T.getMonth()!==m,y=ui(T,r,a),P=T.toISOString(),N=z===P,$=R(T),O="transparent",U=A?u.outsideText:u.text,Z="2px solid transparent";return L?(O=u.selectedBg,U=u.selectedText):w?(O=u.todayBg,Z=`2px solid ${u.todayBorder}`):N&&!y&&(O=u.hover),y&&(U=u.textMuted),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsxRuntime.jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:O,color:U,fontSize:"13px",fontWeight:w?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:y?"default":"pointer",opacity:y?.4:1,transition:"background-color 0.12s ease"},disabled:y,onClick:()=>{!y&&t&&t(T);},onMouseEnter:()=>!y&&D(P),onMouseLeave:()=>D(null),children:T.getDate()}),$.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:$.slice(0,3).map((W,K)=>jsxRuntime.jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||u.eventDot}},K))})]},k)})})]})},sn=24,ro=2,dp=({value:e,onChange:t,events:o=[],onEventClick:n,showHeader:r=true,onNavigate:a,minDate:i,maxDate:s,style:c,className:f,firstDay:d=1,locale:u="cs",maxEventsPerDay:l=3,initialDate:p,t:g,today:m})=>{let b=di[u],x=p||e||m,[E,S]=rr.useState(()=>x.getMonth()),[v,z]=rr.useState(()=>x.getFullYear()),[D,I]=rr.useState(null),F=rr.useMemo(()=>pi(v,E,d),[v,E,d]),h=rr.useMemo(()=>{let w=[];for(let L=0;L<F.length;L+=7)w.push(F.slice(L,L+7));return w},[F]),R=rr.useMemo(()=>{let w=h[h.length-1];return w&&w.every(L=>L.getMonth()!==E)?h.slice(0,-1):h},[h,E]),B=rr.useCallback(()=>{let w=E-1,L=v;w<0&&(w=11,L--),S(w),z(L),a&&a(new Date(L,w,1));},[E,v,a]),C=rr.useCallback(()=>{let w=E+1,L=v;w>11&&(w=0,L++),S(w),z(L),a&&a(new Date(L,w,1));},[E,v,a]),M=`${b.months[E]} ${v}`,k={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 jsxRuntime.jsxs("div",{className:f,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.text,userSelect:"none",...c},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:k,onClick:B,onMouseEnter:w=>{w.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16,weight:"bold"})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:M}),jsxRuntime.jsx("button",{style:k,onClick:C,onMouseEnter:w=>{w.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16,weight:"bold"})})]}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${g.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:g.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${g.cellBorder}`},children:b.days.map((w,L)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:g.text,padding:"10px 0",borderRight:L<6?`1px solid ${g.cellBorder}`:"none"},children:w},w))}),R.map((w,L)=>{let A=lp(w,o),y=A.length>0?Math.max(...A.map(Z=>Z.row))+1:0,P=w.map((Z,W)=>{let K=A.filter(G=>W>=G.startCol&&W<G.startCol+G.span);return Math.max(0,K.filter(G=>G.row>=l).length)}),$=Math.min(y,l)*(sn+ro)+ro,U=P.some(Z=>Z>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<R.length-1?`1px solid ${g.cellBorder}`:"none"},children:w.map((Z,W)=>{let K=Ot(Z,m),G=Z.getMonth()!==E,j=e?Ot(Z,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:W<6?`1px solid ${g.cellBorder}`:"none",backgroundColor:K?g.todayCellBg:"transparent",minHeight:`${30+$+U}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!ui(Z,i,s)&&t(Z);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:K?700:400,color:G?g.outsideText:K?"#FC4F00":g.text},children:j?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Z.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Z.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${$}px`},children:A.filter(J=>J.startCol===W&&J.row<l).map((J,oe)=>{let ne=J.event.id||`${ip(J.event.date)}-${J.event.title}`,fe=D===ne,ee=J.event.color||g.eventBarDefault,Y=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${ro+J.row*(sn+ro)}px`,left:"2px",width:J.span>1?`calc(${J.span*100}% - 4px)`:"calc(100% - 4px)",height:`${sn}px`,backgroundColor:ee,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:n?"pointer":"default",zIndex:fe?2:1,opacity:fe?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:J.event.tooltip?void 0:J.event.title,onClick:q=>{q.stopPropagation(),n&&n(J.event);},onMouseEnter:()=>I(ne),onMouseLeave:()=>I(null),children:[J.isStart&&J.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:J.event.emoji}),J.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:J.event.textColor||g.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:J.event.title})]},oe);return J.event.tooltip?jsxRuntime.jsx(Mt,{content:J.event.tooltip,children:Y},oe):Y})}),P[W]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:g.moreText,textAlign:"center",padding:"2px 0"},children:["+",P[W]]})]},W)})},L)})]})]})},pp=e=>{let t=H(),o=ap[t],n=rr.useMemo(()=>{let r=new Date;return r.setHours(0,0,0,0),r},[]);return e.fullSize?jsxRuntime.jsx(dp,{...e,t:o,today:n}):jsxRuntime.jsx(cp,{...e,t:o,today:n})};pp.displayName="Calendar";var fp={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)"}},gp=({items:e,orientation:t="vertical",style:o,className:n})=>{let r=H(),a=fp[r];return t==="horizontal"?jsxRuntime.jsx("div",{className:n,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((i,s)=>{let c=s===e.length-1,f=i.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:c?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[s>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),s===0&&jsxRuntime.jsx("div",{style:{flex:1}}),i.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:f,flexShrink:0},children:i.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${f}`,backgroundColor:a.dotBg,flexShrink:0}}),!c&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),c&&jsxRuntime.jsx("div",{style:{flex:1}})]}),jsxRuntime.jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:i.title}),i.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:i.date}),i.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:i.description})]})]},s)})}):jsxRuntime.jsx("div",{className:n,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((i,s)=>{let c=s===e.length-1,f=i.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:c?0:"4px",minHeight:i.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[i.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:f,flexShrink:0},children:i.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${f}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!c&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:i.icon?"5px":0},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:i.title}),i.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:i.date})]}),i.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:i.description})]})]},s)})})};gp.displayName="Timeline";var bp={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)"}},mp=({items:e,columns:t=1,striped:o=false,style:n,className:r})=>{let a=H(),i=bp[a],s=Math.max(1,Math.round(t)),c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,display:s>1?"grid":"block",gridTemplateColumns:s>1?`repeat(${s}, 1fr)`:void 0,gap:s>1?"0 24px":void 0,...n},f=p=>s<=1?p:Math.floor(p/s),d=p=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${i.border}`,backgroundColor:o&&f(p)%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"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:r,style:c,children:e.map((p,g)=>jsxRuntime.jsxs("div",{style:d(g),children:[jsxRuntime.jsx("span",{style:u,children:p.label}),jsxRuntime.jsx("span",{style:l,children:p.value})]},g))})};mp.displayName="DataList";var vp={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"}},gi=({node:e,depth:t,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:i})=>{let s=e.children&&e.children.length>0,c=o.has(e.id),f=n===e.id,[d,u]=rr.useState(false),l="transparent";return f?l=i.selectedBg:d&&(l=i.hover),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:f?`2px solid ${i.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>a?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:p=>{p.stopPropagation(),s&&r(e.id);},children:s&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:c?i.iconExpanded:i.iconColor,style:{transform:c?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:f?i.selectedBorder:i.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:f?500:400,color:f?i.selectedText:i.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),s&&c&&jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:i.line}}),e.children.map(p=>jsxRuntime.jsx(gi,{node:p,depth:t+1,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:i},p.id))]})]})},Sp=({data:e,onSelect:t,selectedId:o,defaultExpanded:n=[],style:r,className:a})=>{let i=H(),s=vp[i],[c,f]=rr.useState(()=>new Set(n)),d=rr.useCallback(l=>{f(p=>{let g=new Set(p);return g.has(l)?g.delete(l):g.add(l),g});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,...r};return jsxRuntime.jsx("div",{className:a,style:u,role:"tree",children:e.map(l=>jsxRuntime.jsx(gi,{node:l,depth:0,expanded:c,selectedId:o,onToggle:d,onSelect:t,t:s},l.id))})};Sp.displayName="Tree";var Cp={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},wp={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Rp={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},xr=false,Tp=()=>{if(xr||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){xr=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),On=true;},Td=({status:e,label:t,size:o="md",pulse:n=false,color:r,style:a,className:l})=>{let s=A(),g=kd[s],b=wd[o],c=r||Cd[e]||"#888888";return n&&Rd(),jsxRuntime.jsxs("span",{className:l,style:{display:"inline-flex",alignItems:"center",gap:b.gap,...a},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${b.dot}px`,height:`${b.dot}px`,flexShrink:0},children:[n&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:c,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:c}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,fontWeight:400,color:g.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Td.displayName="StatusBadge";var zd={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"}},Ho=180,Bd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Vn=({open:e,onClose:t,title:o,titleSlot:n,children:r,footer:a,size:l="md",width:s,closeOnOverlay:g=true,closeOnEscape:b=true,dismissable:c=true,showClose:d=true,showHeaderDivider:i=true,className:u,style:f})=>{let m=A(),p=zd[m],R=Bd[l],z=s?typeof s=="number"?`${s}px`:s:R.width,[h,S]=zn.useState(false),[x,I]=zn.useState("idle"),v=zn.useRef(null),E=zn.useRef(null);zn.useEffect(()=>{if(e){E.current=document.activeElement,S(true),I("opening");let k=setTimeout(()=>{I("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(h){I("closing");let k=setTimeout(()=>{S(false),I("idle"),document.body.style.overflow="",E.current instanceof HTMLElement&&E.current.focus();},Ho);return ()=>clearTimeout(k)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!h||!b||!c)return;let k=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,b,t]),zn.useEffect(()=>{if(!h||!v.current)return;let k=v.current,M='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',F=w=>{if(w.key!=="Tab")return;let T=k.querySelectorAll(M);if(T.length===0){w.preventDefault();return}let L=T[0],N=T[T.length-1];w.shiftKey?document.activeElement===L&&(w.preventDefault(),N.focus()):document.activeElement===N&&(w.preventDefault(),L.focus());};return document.addEventListener("keydown",F),k.focus(),()=>document.removeEventListener("keydown",F)},[h]);let y=()=>{let k={transition:`opacity ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...k,opacity:0,transform:"scale(0.95)"}:x==="open"?{...k,opacity:1,transform:"scale(1)"}:{...k,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!h)return null;let D=l==="fullscreen",B=()=>{let k={transition:`opacity ${Ho}ms ease`};return x==="opening"||x==="idle"?{...k,opacity:0}:x==="open"?{...k,opacity:1}:{...k,opacity:0}};return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...x==="closing"?{pointerEvents:"none"}:{}},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:p.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...B()},onClick:g&&c?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:v,role:"dialog","aria-modal":"true","aria-label":typeof o=="string"?o:void 0,tabIndex:-1,className:u,style:{position:"relative",display:"flex",flexDirection:"column",width:z,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":R.maxHeight,backgroundColor:p.cardBg,border:D?"none":`1px solid ${p.cardBorder}`,borderRadius:D?0:"16px",boxShadow:p.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...y(),...f},children:[n?jsxRuntime.jsx("div",{style:{flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:n}):o||d&&c?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:[o&&(typeof o=="string"?jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:p.titleText},children:o}):jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:o})),d&&c&&jsxRuntime.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:p.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=p.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:p.closeColor})})]}):null,jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:p.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${p.divider}`},children:a})]})]}),document.body)};Vn.displayName="Modal";var Md={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)"}},Xn=220,Ad=({open:e,onClose:t,position:o="right",title:n,children:r,footer:a,width:l=400,showClose:s=true,closeOnOverlay:g=true,className:b,style:c})=>{let d=A(),i=Md[d],[u,f]=zn.useState(false),[m,p]=zn.useState("idle"),R=zn.useRef(null),z=typeof l=="number"?`${l}px`:l;zn.useEffect(()=>{if(e){f(true),p("opening");let x=setTimeout(()=>{p("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(u){p("closing");let x=setTimeout(()=>{f(false),p("idle"),document.body.style.overflow="";},Xn);return ()=>clearTimeout(x)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!u)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[u,t]);let h=x=>{let I=o==="right"?"100%":"-100%";return x==="opening"||x==="idle"?I:x==="open"?"0%":I},S=()=>m==="open"?1:0;return u?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:S(),transition:`opacity ${Xn}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:g?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":n,className:b,style:{position:"absolute",top:0,bottom:0,[o]:0,width:z,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:o==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${h(m)})`,transition:`transform ${Xn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...c},children:[(n||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[n&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:n}),s&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:i.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:a})]})]}),document.body):null};Ad.displayName="Drawer";var $d={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)"}},qn=180,Wd=({open:e,onClose:t,children:o,side:n="bottom",title:r,showClose:a=true,style:l,className:s})=>{let g=A(),b=$d[g],[c,d]=zn.useState(false),[i,u]=zn.useState("idle"),f=zn.useRef(null);zn.useEffect(()=>{if(e){d(true),u("opening");let x=setTimeout(()=>{u("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(c){u("closing");let x=setTimeout(()=>{d(false),u("idle"),document.body.style.overflow="";},qn);return ()=>clearTimeout(x)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!c)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,t]);let R=x=>{let I={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return x==="opening"||x==="idle"?I[n]:x==="open"?"translate(0, 0)":I[n]},z=()=>i==="open"?1:0,h={};n==="bottom"?(h.bottom=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderTopLeftRadius="16px",h.borderTopRightRadius="16px"):n==="top"?(h.top=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderBottomLeftRadius="16px",h.borderBottomRightRadius="16px"):n==="right"?(h.top=0,h.bottom=0,h.right=0,h.width="400px",h.maxWidth="100vw"):n==="left"&&(h.top=0,h.bottom=0,h.left=0,h.width="400px",h.maxWidth="100vw");let S={};return n==="bottom"?S.borderTop=`1px solid ${b.panelBorder}`:n==="top"?S.borderBottom=`1px solid ${b.panelBorder}`:n==="right"?S.borderLeft=`1px solid ${b.panelBorder}`:n==="left"&&(S.borderRight=`1px solid ${b.panelBorder}`),c?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:b.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:z(),transition:`opacity ${qn}ms ease`,...i==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:b.panelBg,boxShadow:b.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:R(i),transition:`transform ${qn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...h,...S,...l},children:[n==="bottom"&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsxRuntime.jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:b.handleBg}})}),(r||a)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:n==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${b.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:b.titleText},children:r}),a&&jsxRuntime.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:b.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=b.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:b.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:b.bodyText},children:o})]})]}),document.body):null};Wd.displayName="Sheet";var Zd={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)"}},Yd=({items:e,separator:t="/",className:o,style:n})=>{let r=A(),a=Zd[r];return jsxRuntime.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",...n},children:e.map((l,s)=>{let g=s===e.length-1;return jsxRuntime.jsxs(zn__default.default.Fragment,{children:[s>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),g?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxRuntime.jsxs("a",{href:l.href??"#",onClick:l.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:b=>{b.currentTarget.style.color=a.linkHover;},onMouseLeave:b=>{b.currentTarget.style.color=a.text;},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},s)})})};Yd.displayName="Breadcrumb";var Xd={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)"}},Gd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function _d(e,t,o,n,r){let a=[],l=Math.max(2,e-o),s=Math.min(t-1,e+o);(n||e-o<=1)&&a.push(1),l>2&&(n&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let g=l;g<=s;g++)a.includes(g)||a.push(g);return s<t-1&&a.push("ellipsis-end"),(r||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var qd=({page:e,totalPages:t,onChange:o,siblings:n=1,showFirst:r=true,showLast:a=true,size:l="md",className:s,style:g})=>{let b=A(),c=Xd[b],d=Gd[l];if(t<=0)return null;let i=_d(e,t,n,r,a),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:d.size,height:d.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:s,style:{display:"flex",alignItems:"center",gap:"4px",...g},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...u,color:e<=1?c.disabledText:c.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:f=>{e>1&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:d.iconSize,color:e<=1?c.disabledText:c.text})}),i.map((f,m)=>{if(f==="ellipsis-start"||f==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...u,cursor:"default",color:c.text},"aria-hidden":"true",children:"..."},f);let p=f===e;return jsxRuntime.jsx("button",{type:"button","aria-current":p?"page":void 0,"aria-label":`Str\xE1nka ${f}`,onClick:()=>o(f),style:{...u,color:p?c.activeText:c.text,backgroundColor:p?c.activeBg:"transparent",fontWeight:p?600:500},onMouseEnter:R=>{p||(R.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:R=>{p||(R.currentTarget.style.backgroundColor="transparent");},children:f},f)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...u,color:e>=t?c.disabledText:c.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:f=>{e<t&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:d.iconSize,color:e>=t?c.disabledText:c.text})})]})};qd.displayName="Pagination";var Qd={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)"}},Qn=({steps:e,activeStep:t,orientation:o="horizontal",clickable:n=false,onStepClick:r,className:a,style:l})=>{let s=A(),g=Qd[s],[b,c]=zn.useState(null),d=o==="horizontal",i=32,u=f=>!n||!r?false:n==="completed"?f<=t:true;return jsxRuntime.jsx("div",{className:a,style:{display:"flex",flexDirection:d?"row":"column",alignItems:d?"flex-start":"stretch",gap:0,...l},children:e.map((f,m)=>{let p=m<t,R=m===t,z=m>t,h=m===e.length-1,S=u(m),x=b===m&&S,I=p?g.completedBg:x?g.hoverBg:g.activeBg,v=p?g.completedBg:R||x?g.activeBorder:g.futureBorder,E=p?g.completedText:R||x?g.activeText:g.futureText,y=x?g.activeText:z?g.labelFuture:g.labelText,D=z?g.descFuture:g.descText,B=p?g.lineCompleted:g.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:d?"column":"row",alignItems:"flex-start",flex:h?"0 0 auto":"1 1 0",minWidth:0,cursor:S?"pointer":"default"},onClick:()=>S&&r?.(m),onMouseEnter:()=>c(m),onMouseLeave:()=>c(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:d?"row":"column",alignItems:"center",width:d?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:I,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:p?jsxRuntime.jsx(react.CheckIcon,{size:14,color:g.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:E,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!h&&jsxRuntime.jsx("div",{style:d?{flex:1,height:"2px",backgroundColor:B,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:B,margin:"6px 0",marginLeft:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:d?"10px":0,marginLeft:d?0:"14px",paddingTop:d?0:"4px",textAlign:"left",minHeight:d||h?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:R||x?600:500,color:y,lineHeight:"normal",transition:"color 0.2s ease"},children:f.label}),f.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:D,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:f.description})]})]},m)})})};Qn.displayName="Stepper";var rp=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ap={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},ip=({steps:e,activeStep:t,onStepChange:o,orientation:n="horizontal",showNavigation:r=true,finishLabel:a="Dokon\u010Dit",nextLabel:l="Dal\u0161\xED",prevLabel:s="P\u0159edchoz\xED",style:g,className:b})=>{let c=A(),d=ap[c],[i,u]=zn.useState(false),f=t<=0,m=t>=e.length-1,p=Math.max(0,Math.min(t,e.length-1)),R=n==="horizontal",z=e.map(y=>({label:y.label,description:y.description})),h=zn.useCallback(async()=>{if(i)return;let y=e[p];if(y.validate){u(true);try{if(!await y.validate()){u(!1);return}}catch{u(false);return}u(false);}o(p+1);},[i,e,p,o]),S=zn.useCallback(()=>{p>0&&o(p-1);},[p,o]),x=zn.useCallback(y=>{y<p&&o(y);},[p,o]);if(e.length===0)return null;let I={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},v={...I,backgroundColor:i?d.buttonDisabledBg:d.buttonPrimary,color:i?d.buttonDisabledText:d.buttonPrimaryText,border:"1px solid transparent",cursor:i?"not-allowed":"pointer"},E={...I,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`};return jsxRuntime.jsxs("div",{className:b,style:{display:"flex",flexDirection:R?"column":"row",gap:R?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...g},children:[jsxRuntime.jsx("div",{style:{flexShrink:0,...R?{}:{width:"240px"}},children:jsxRuntime.jsx(Qn,{steps:z,activeStep:p,orientation:n,clickable:"completed",onStepClick:x})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsxRuntime.jsx("div",{style:{flex:1,padding:R?"24px 0":"0"},children:e[p]?.content}),r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${d.navBorder}`,marginTop:"8px"},children:[jsxRuntime.jsx("div",{children:!f&&jsxRuntime.jsxs("button",{type:"button",style:E,onClick:S,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonSecondaryHover);},onMouseLeave:y=>{y.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.CaretLeft,{size:14}),s]})}),jsxRuntime.jsx("button",{type:"button",style:v,onClick:h,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimaryHover);},onMouseLeave:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimary);},children:i?jsxRuntime.jsx(rp,{size:14,color:d.buttonDisabledText}):m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react.Check,{size:14}),a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(react.CaretRight,{size:14})]})})]})]})]})};ip.displayName="FormWizard";var Ga={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"}},or=180,lp=({items:e,parentRef:t,itemIndex:o,theme:n,onClose:r})=>{let a=Ga[n],l=zn.useRef(null),[s,g]=zn.useState({top:0,left:0}),[b,c]=zn.useState(-1);return zn.useEffect(()=>{if(!t.current)return;let i=t.current.querySelectorAll('[role="menuitem"]')[o];if(!i)return;let u=i.getBoundingClientRect(),f=l.current?.offsetWidth??180,m=window.innerWidth-u.right-4;g({top:u.top,left:m>=f?u.right+4:u.left-f-4});},[t,o]),reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,role:"menu",style:{position:"fixed",top:s.top,left:s.left,minWidth:"160px",backgroundColor:a.dropdownBg,border:`1px solid ${a.dropdownBorder}`,borderRadius:"12px",boxShadow:a.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:1e5,overflow:"hidden",boxSizing:"border-box",padding:"6px"},onMouseLeave:()=>c(-1),children:e.map((d,i)=>{if(d.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:a.divider,margin:"4px 6px"}},i);if(d.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:a.textDisabled,padding:`${i>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:d.category},i);let u=d.danger,f=d.disabled,m=i===b,p=f?a.textDisabled:u?a.dangerText:a.text,R=u?a.dangerHover:a.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem",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:m?R:"transparent",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{f||(d.onClick?.(),r());},onMouseEnter:()=>{f||c(i);},children:[d.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:d.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:d.label}),d.shortcut&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:a.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:d.shortcut})]},i)})}),document.body)},cp=({trigger:e,items:t,position:o="bottom-left",triggerOnRightClick:n=false,className:r,style:a})=>{let l=A(),s=Ga[l],g=zn.useRef(null),b=zn.useRef(null),[c,d]=zn.useState(false),[i,u]=zn.useState(false),[f,m]=zn.useState("idle"),[p,R]=zn.useState({top:0,left:0,openAbove:false}),[z,h]=zn.useState(-1),[S,x]=zn.useState(null),I=zn.useRef(void 0),v=zn.useCallback(()=>{d(true),u(true),m("opening"),h(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),E=zn.useCallback(()=>{d(false),m("closing");let k=setTimeout(()=>{u(false),m("idle");},or);return ()=>clearTimeout(k)},[]),y=zn.useCallback(()=>{if(!g.current)return;let k=g.current.getBoundingClientRect(),M=b.current?.offsetHeight??200,F=b.current?.offsetWidth??200,w=window.innerHeight-k.bottom-6,T=k.top-6,L=w<M&&T>w,N;o==="bottom-right"?(N=k.right-F,N<4&&(N=4)):(N=k.left,N+F>window.innerWidth-4&&(N=window.innerWidth-F-4)),R({top:L?k.top-6:k.bottom+6,left:N,openAbove:L});},[o]);zn.useEffect(()=>{if(i)return y(),window.addEventListener("scroll",y,true),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y,true),window.removeEventListener("resize",y);}},[i,y]),zn.useEffect(()=>{if(!c)return;let k=M=>{let F=M.target,w=g.current?.contains(F),T=b.current?.contains(F);!w&&!T&&E();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,E]),zn.useEffect(()=>{if(!c)return;let k=t.map((F,w)=>({item:F,idx:w})).filter(({item:F})=>!F.divider&&!F.disabled),M=F=>{switch(F.key){case "Escape":F.preventDefault(),E();break;case "ArrowDown":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w<k.length-1?w+1:0;h(k[T]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w>0?w-1:k.length-1;h(k[T]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),z>=0){let w=t[z];w&&!w.divider&&!w.disabled&&(w.onClick?.(),E());}break}};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[c,z,t,E]);let D=()=>{let k=p.openAbove,M=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",w={transition:`opacity ${or}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${or}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...w,opacity:0,transform:`${M} scale(0.97)`}:f==="open"?{...w,opacity:1,transform:"translateY(0) scale(1)"}:{...w,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},B=i?reactDom.createPortal(jsxRuntime.jsx("div",{ref:b,role:"menu",style:{position:"fixed",...p.openAbove?{bottom:window.innerHeight-p.top,left:p.left}:{top:p.top,left:p.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:p.openAbove?"bottom center":"top center",...D()},children:t.map((k,M)=>{if(k.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${M>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},M);if(k.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},M);let F=k.danger,w=k.disabled,T=M===z,L=typeof k.label!="string",N=L&&!k.onClick,C=w?s.textDisabled:F?s.dangerText:s.text,P=F?s.dangerHover:s.hoverBg;return N?jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},M):jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":w,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:C,backgroundColor:T?P:"transparent",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{if(!w){if(k.subItems){x(S===M?null:M);return}k.onClick?.(),k.keepOpenOnClick||E();}},onMouseEnter:()=>{w||h(M),k.subItems?(I.current&&clearTimeout(I.current),I.current=setTimeout(()=>x(M),300)):(I.current&&clearTimeout(I.current),x(null));},onMouseLeave:()=>{h(-1),k.subItems&&I.current&&clearTimeout(I.current);},children:[k.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:k.label}):k.label,k.shortcut&&!k.subItems&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:s.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:k.shortcut}),k.subItems&&jsxRuntime.jsx(react.CaretRight,{size:12,color:s.textDisabled,style:{flexShrink:0,marginLeft:"auto"}}),k.subItems&&S===M&&jsxRuntime.jsx(lp,{items:k.subItems,parentRef:b,itemIndex:M,theme:l,onClose:E})]},M)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:g,onClick:n?void 0:()=>{c?E():v();},onContextMenu:n?k=>{k.preventDefault(),c?E():v();}:void 0,style:{display:"inline-flex",cursor:"pointer"},children:e}),B]})};cp.displayName="DropdownMenu";var pp={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},px=({variant:e="default",icon:t,iconPosition:o="left",showIcon:n=true,children:r,style:a,className:l,onMouseEnter:s,onMouseLeave:g,target:b,rel:c,...d})=>{let i=A(),u=pp[i],[f,m]=zn.useState(false),p=e==="danger"?u.danger:u.default,R={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:f?u.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:p,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},z=n&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:R,className:l,target:b,rel:c??(b==="_blank"?"noopener noreferrer":void 0),onMouseEnter:h=>{m(true),s?.(h);},onMouseLeave:h=>{m(false),g?.(h);},...d,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,z]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z,r]})})};var bp={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"}},Wo=180,mp=({open:e,onClose:t,value:o,onChange:n,results:r,loading:a=false,placeholder:l="Hledat...",className:s,style:g})=>{let b=A(),c=bp[b],[d,i]=zn.useState(false),[u,f]=zn.useState("idle"),[m,p]=zn.useState(-1),R=zn.useRef(null),z=zn.useRef(null);zn.useEffect(()=>{let y="sm-spotlight-scrollbar-hide";if(document.getElementById(y))return;let D=document.createElement("style");D.id=y,D.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(D);},[]);let h=r;zn.useEffect(()=>{if(e){i(true),f("opening"),p(-1);let y=setTimeout(()=>{f("open");},10);return ()=>clearTimeout(y)}else if(d){f("closing");let y=setTimeout(()=>{i(false),f("idle");},Wo);return ()=>clearTimeout(y)}},[e]),zn.useEffect(()=>{d&&u==="open"&&R.current?.focus();},[d,u]),zn.useEffect(()=>{p(-1);},[r]),zn.useEffect(()=>{if(m<0||!z.current)return;let y=z.current.querySelector(`[data-spotlight-index="${m}"]`);y&&y.scrollIntoView({block:"nearest"});},[m]);let S=zn.useCallback(y=>{switch(y.key){case "Escape":y.preventDefault(),t();break;case "ArrowDown":{y.preventDefault(),p(D=>{let B=D+1;return B>=h.length?0:B});break}case "ArrowUp":{y.preventDefault(),p(D=>{let B=D-1;return B<0?h.length-1:B});break}case "Enter":{y.preventDefault(),m>=0&&m<h.length&&(h[m].onSelect(),t());break}}},[h,m,t]),x=[],I=new Map;h.forEach((y,D)=>{let B=I.get(y.category);B||(B=[],I.set(y.category,B),x.push({category:y.category,items:B})),B.push({...y,flatIndex:D});});let v=()=>{let y={transition:`opacity ${Wo}ms ease`};return u==="opening"||u==="idle"?{...y,opacity:0}:u==="open"?{...y,opacity:1}:{...y,opacity:0,pointerEvents:"none"}},E=()=>{let y={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return u==="opening"||u==="idle"?{...y,opacity:0,transform:"scale(0.95) translateY(-10px)"}:u==="open"?{...y,opacity:1,transform:"scale(1) translateY(0)"}:{...y,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:S,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...g},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:18,color:c.textSecondary}),jsxRuntime.jsx("input",{ref:R,type:"text",value:o,onChange:y=>n(y.target.value),placeholder:l,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:z,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsxRuntime.jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(y=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsxRuntime.jsx(ve,{variant:"rect",width:28,height:28}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsxRuntime.jsx(ve,{variant:"text",width:`${50+y%3*15}%`,height:14}),jsxRuntime.jsx(ve,{variant:"text",width:`${30+y%2*20}%`,height:11})]})]},y))}):x.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(y=>jsxRuntime.jsxs("div",{role:"group","aria-label":y.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:y.category}),y.items.map(D=>{let B=D.flatIndex===m;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-spotlight-index":D.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{D.onSelect(),t();},onMouseEnter:()=>p(D.flatIndex),onMouseLeave:()=>p(-1),children:[D.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:D.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.label}),D.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:D.description})]})]},D.id)})]},y.category))})]})]}),document.body):null};mp.displayName="Spotlight";var vp={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"}},Zo=180,Sp=({open:e,onClose:t,groups:o,placeholder:n="Zadejte p\u0159\xEDkaz...",style:r,className:a})=>{let l=A(),s=vp[l],[g,b]=zn.useState(false),[c,d]=zn.useState("idle"),[i,u]=zn.useState(""),[f,m]=zn.useState(-1),p=zn.useRef(null),R=zn.useRef(null);zn.useEffect(()=>{let E="sm-commandmenu-scrollbar-hide";if(document.getElementById(E))return;let y=document.createElement("style");y.id=E,y.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(y);},[]);let z=o.map(E=>({...E,items:E.items.filter(y=>y.label.toLowerCase().includes(i.toLowerCase())||y.description?.toLowerCase().includes(i.toLowerCase()))})).filter(E=>E.items.length>0),h=z.flatMap(E=>E.items);zn.useEffect(()=>{if(e){u(""),m(-1),b(true),d("opening");let E=setTimeout(()=>{d("open");},10);return ()=>clearTimeout(E)}else if(g){d("closing");let E=setTimeout(()=>{b(false),d("idle");},Zo);return ()=>clearTimeout(E)}},[e]),zn.useEffect(()=>{g&&c==="open"&&p.current?.focus();},[g,c]),zn.useEffect(()=>{m(-1);},[i]),zn.useEffect(()=>{if(f<0||!R.current)return;let E=R.current.querySelector(`[data-cmd-index="${f}"]`);E&&E.scrollIntoView({block:"nearest"});},[f]);let S=zn.useCallback(E=>{switch(E.key){case "Escape":E.preventDefault(),t();break;case "ArrowDown":{E.preventDefault(),m(y=>{let D=y+1;return D>=h.length?0:D});break}case "ArrowUp":{E.preventDefault(),m(y=>{let D=y-1;return D<0?h.length-1:D});break}case "Enter":{E.preventDefault(),f>=0&&f<h.length&&(h[f].onSelect(),t());break}}},[h,f,t]),x=()=>{let E={transition:`opacity ${Zo}ms ease`};return c==="opening"||c==="idle"?{...E,opacity:0}:c==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},I=()=>{let E={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...E,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...E,opacity:1,transform:"scale(1) translateY(0)"}:{...E,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},v=0;return g?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...x()},onKeyDown:S,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor: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",...I(),...r},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsxRuntime.jsx("input",{ref:p,type:"text",value:i,onChange:E=>u(E.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"}}),jsxRuntime.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"})]}),jsxRuntime.jsx("div",{ref:R,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:z.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):z.map(E=>jsxRuntime.jsxs("div",{role:"group","aria-label":E.label,children:[jsxRuntime.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:E.label}),E.items.map(y=>{let D=v++,B=D===f;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-cmd-index":D,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{y.onSelect(),t();},onMouseEnter:()=>m(D),onMouseLeave:()=>m(-1),children:[y.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:y.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y.label}),y.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:y.description})]}),y.shortcut&&jsxRuntime.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,whiteSpace:"nowrap"},children:y.shortcut})]},y.id)})]},E.label))})]})]}),document.body):null};Sp.displayName="CommandMenu";var kp={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)"}},ar=250,Cp=({children:e,collapsed:t=false,onCollapse:o,width:n=260,collapsedWidth:r=64,style:a,className:l})=>{let s=A(),g=kp[s],b=t?r:n;return jsxRuntime.jsx("aside",{className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:`${b}px`,minWidth:`${b}px`,height:"100%",backgroundColor:g.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${g.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsxRuntime.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 ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cp.displayName="AppSidebar";var Ep={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)"}},zp=({label:e,icon:t,active:o=false,defaultExpanded:n=false,expanded:r,onExpandedChange:a,onClick:l,children:s,collapsed:g=false,disabled:b=false,style:c,className:d})=>{let i=A(),u=Ep[i],f=zn__default.default.Children.count(s)>0,m=r!==void 0,[p,R]=zn.useState(n),z=m?r:p,[h,S]=zn.useState(false),x=zn.useRef(null),[I,v]=zn.useState(0);zn.useEffect(()=>{x.current&&v(x.current.scrollHeight);},[s,z]);let E=zn.useCallback(()=>{m?a?.(!r):R(M=>{let F=!M;return a?.(F),F});},[m,r,a]),y=zn.useCallback(()=>{b||(f&&E(),l?.());},[b,f,E,l]),D=b?`${u.text}66`:o?u.textActive:h?u.textHover:u.text,B=b?`${u.icon}66`:o?u.iconActive:h?u.iconHover:u.icon,k=o?u.activeBg:h&&!b?u.hoverBg:"transparent";return g?jsxRuntime.jsx("button",{type:"button",onClick:y,disabled:b,title:e,className:d,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:B,cursor:b?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...c},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:D},children:e[0]})}):jsxRuntime.jsxs("div",{className:d,style:c,children:[jsxRuntime.jsxs("button",{type:"button",onClick:y,disabled:b,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:D,cursor:b?"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:()=>S(true),onMouseLeave:()=>S(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),f&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:h?u.chevronHover:u.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:z?"rotate(0deg)":"rotate(-90deg)"}})]}),f&&jsxRuntime.jsx("div",{ref:x,style:{overflow:"hidden",maxHeight:z?`${I}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:s})})]})};zp.displayName="SidebarItem";var Bp={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)"}},Dp=({logo:e,children:t,actions:o,sticky:n=true,glass:r=true,style:a,className:l})=>{let s=A(),g=Bp[s];return jsxRuntime.jsxs("header",{className:l,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:r?g.background:g.backgroundSolid,borderBottom:`1px solid ${g.border}`,boxShadow:g.shadow,boxSizing:"border-box",...r?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...n?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsxRuntime.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&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Dp.displayName="Navbar";var Lp={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"}},Np={info:jsxRuntime.jsx(react.Info,{size:28,color:"currentColor"}),success:jsxRuntime.jsx(react.CheckCircle,{size:28,color:"#00A205"}),error:jsxRuntime.jsx(react.XCircle,{size:28,color:"#DE0000"})},oi=({variant:e="info",title:t,content:o,icon:n,onClose:r,role:a="alert",style:l,className:s})=>{let g=A(),b=Lp[g],{border:c,background:d}=b[e],i=n??Np[e];return jsxRuntime.jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:d,border:`2px solid ${c}`,borderRadius:"8px",boxSizing:"border-box",...l},className:s,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.iconColor},children:i}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:b.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:b.textSecondary,lineHeight:"normal"},children:o})]})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:r,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:b.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ni=3,Zp=.06,ri=12,Vo=320,ai=zn.createContext(null),Yp=0,Vp=()=>`sm-toast-${++Yp}-${Date.now()}`,Gx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:n=8,offset:r=16,maxToasts:a=5,duration:l=4e3})=>{let[s,g]=zn.useState([]),b=zn.useCallback(i=>{g(u=>u.map(f=>f.id===i?{...f,lifecycle:"leaving"}:f)),setTimeout(()=>{g(u=>u.filter(f=>f.id!==i));},Vo+100);},[]),c=zn.useCallback(i=>{let u=Vp(),f=i.duration??l,m={id:u,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:f,lifecycle:"entering",height:0};return g(p=>{let R=[...p,m];return R.length>a?R.slice(R.length-a):R}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{g(p=>p.map(R=>R.id===u?{...R,lifecycle:"visible"}:R));});}),f>0&&setTimeout(()=>b(u),f),u},[a,b,l]),d=zn.useCallback((i,u)=>{g(f=>f.map(m=>m.id===i&&m.height!==u?{...m,height:u}:m));},[]);return jsxRuntime.jsxs(ai.Provider,{value:{toast:c,dismiss:b},children:[e,s.length>0&&jsxRuntime.jsx(Xp,{toasts:s,position:t,toastWidth:o,gap:n,offset:r,onDismiss:b,onHeightMeasured:d})]})},Up=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:n,expanded:r,isBottom:a,appeared:l,toastWidth:s,onDismiss:g,onHeightMeasured:b})=>{let c=t.lifecycle==="leaving",d=!l||c,i=r?1:Math.max(.7,1-o*Zp),u=r?0:o*ri,f=a?-u:u,p=d?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${f}px)`,R=d?0:r?1:Math.max(.4,1-o*.18),z=!r&&o>=ni,h=n-o,S=zn.useCallback(x=>{x&&t.height===0&&b(t.id,x.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:S,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:p,opacity:z?0:R,zIndex:h,transition:[`transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${Vo}ms ease`].join(", "),pointerEvents:o===0||r?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(oi,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>g(t.id),style:{width:s,maxWidth:"100%",boxSizing:"border-box"}})})},Xp=({toasts:e,position:t,toastWidth:o,gap:n,offset:r,onDismiss:a,onHeightMeasured:l})=>{let[s,g]=zn.useState(false),[b,c]=zn.useState(new Set),d=t.startsWith("bottom"),i=t.endsWith("right"),u=t.endsWith("center");zn.useEffect(()=>{c(S=>{let x=new Set(S);return e.forEach(I=>{I.lifecycle==="visible"&&x.add(I.id);}),[...x].forEach(I=>{e.find(v=>v.id===I)||x.delete(I);}),x});},[e]);let p=(e[e.length-1]?.height||80)+Math.min(e.length-1,ni-1)*ri,R=e.reduce((S,x)=>S+(x.height||80),0)+Math.max(0,e.length-1)*n,z=s?R:p,h=u?{left:"50%",transform:"translateX(-50%)"}:i?{right:r}:{left:r};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${r*2}px)`,height:z,...d?{bottom:r}:{top:r},...h,transition:`height ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),"aria-live":"polite","aria-atomic":"false",children:e.map((S,x)=>{let I=e.length-1-x,v=b.has(S.id),E=S.lifecycle==="leaving",y=!v||E,D;if(s&&!y){let k=e.slice(x+1).reduce((F,w)=>F+(w.height||80)+n,0);D=`translateY(${d?-k:k}px)`;}return jsxRuntime.jsx(Up,{item:S,depthIndex:I,stackSize:e.length,expanded:s,isBottom:d,appeared:v,toastWidth:o,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:D},S.id)})})},_x=()=>{let e=zn.useContext(ai);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 eu={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)"}},tu={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"}},th=({variant:e="info",title:t,children:o,icon:n,closable:r=false,onClose:a,className:l,style:s})=>{let g=A(),b=eu[g],c=tu[e],[d,i]=zn.useState(true);if(!d)return null;let u=g==="light",f=u?c.borderLight:c.border,m=u?c.backgroundLight:c.background,p=u?c.iconColorLight:c.iconColor,z=n??{info:jsxRuntime.jsx(react.Info,{size:24,color:p}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:p}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:p}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:p})}[e],h=()=>{i(false),a?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${f}`,borderRadius:"4px",boxSizing:"border-box",...s},className:l,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:b.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:b.descriptionText},children:o})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:b.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var lu={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},cu={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},du={info:jsxRuntime.jsx(react.Info,{size:20}),success:jsxRuntime.jsx(react.CheckCircle,{size:20}),warning:jsxRuntime.jsx(react.Warning,{size:20}),error:jsxRuntime.jsx(react.XCircle,{size:20})},pu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,actions:l,dismissKey:s,position:g="top",sticky:b=false,style:c,className:d})=>{let i=A(),u=lu[i],f=cu[e],[m,p]=zn.useState(()=>s&&typeof window<"u"?localStorage.getItem(`banner-dismiss-${s}`)!=="1":true);if(!m||!t&&!o)return null;let R=i==="light",z=R?f.accentLight:f.accent,h=b?u.glassBg:R?f.bgLight:f.bg,S=R?f.iconLight:f.icon,x=a??du[e],I=()=>{p(false),s&&typeof window<"u"&&localStorage.setItem(`banner-dismiss-${s}`,"1"),r?.();};return jsxRuntime.jsxs("div",{role:"alert",className:d,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:h,borderTop:g==="bottom"?`3px solid ${z}`:"none",borderBottom:g==="top"?`3px solid ${z}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...b?{position:"sticky",[g]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${u.glassBorder}`,borderRight:`1px solid ${u.glassBorder}`}:{},...c},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,marginTop:"1px"},children:x}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsxRuntime.jsx("div",{style:{fontWeight:600,fontSize:"14px",color:u.titleText,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("div",{style:{fontSize:"13px",color:u.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),l&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:l}),n&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:I,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:u.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=u.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=u.closeColor;},children:jsxRuntime.jsx(react.X,{size:16})})]})};pu.displayName="Banner";var hu={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)"}},yu={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"}},vu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,action:l,style:s,className:g})=>{let b=A(),c=hu[b],d=yu[e],[i,u]=zn.useState(true);if(!i)return null;let f=b==="light",m=f?d.bgLight:d.bg,p=f?d.accentLight:d.accent,z=a??{info:jsxRuntime.jsx(react.Info,{size:20,color:p}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:p}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:p}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:p})}[e],h=()=>{u(false),r?.();};return jsxRuntime.jsxs("div",{role:"status",className:g,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${c.border}`,borderRadius:"12px",boxSizing:"border-box",...s},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.bodyText},children:o})]}),l&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:l}),n&&jsxRuntime.jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};vu.displayName="Notification";var pi={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},ui={default:"#E8612D",success:"#00A205",warning:"#F5A623",danger:"#EF3838"},Su={xs:{height:4,fontSize:"10px"},sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"}},ci="sm-ui-progress-stripes",di="sm-ui-progress-indeterminate",ku=()=>{if(typeof document>"u"||document.getElementById(ci))return;let e=document.createElement("style");e.id=ci,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Cu=()=>{if(typeof document>"u"||document.getElementById(di))return;let e=document.createElement("style");e.id=di,e.textContent="@keyframes sm-ui-progress-indeterminate { 0% { left: -40%; width: 40%; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 40%; } }",document.head.appendChild(e);};function fi(e,t,o){if(!o||o.length===0)return e;let n=[...o].sort((a,l)=>a.value-l.value),r=e;for(let a of n)t>=a.value&&(r=a.variant);return r}var xh=({value:e,max:t=100,label:o=false,variant:n="default",thresholds:r,size:a="sm",striped:l=false,animated:s=false,indeterminate:g=false,className:b,style:c})=>{let d=A(),i=pi[d],u=Su[a],f=t>0?Math.max(0,Math.min(100,e/t*100)):0,m=fi(n,e,r),p=ui[m];l&&s&&ku(),g&&Cu();let R=l?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{},z=typeof o=="string"?o:o?`${Math.round(f)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":g?void 0:Math.round(e),"aria-valuemin":0,"aria-valuemax":t,style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",...c},className:b,children:[z&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:i.text,userSelect:"none"},children:z})}),jsxRuntime.jsx("div",{style:{width:"100%",height:u.height,backgroundColor:i.trackBg,borderRadius:u.height/2,overflow:"hidden",position:"relative"},children:g?jsxRuntime.jsx("div",{style:{position:"absolute",height:"100%",backgroundColor:p,borderRadius:u.height/2,animation:"sm-ui-progress-indeterminate 1.5s ease-in-out infinite",...R}}):jsxRuntime.jsx("div",{style:{width:`${f}%`,height:"100%",backgroundColor:p,borderRadius:u.height/2,transition:"width 0.3s ease, background-color 0.3s ease",...R}})})]})},hh=({value:e,max:t=100,variant:o="default",thresholds:n,size:r=48,thickness:a=4,showValue:l=false,valueLabel:s,label:g,className:b,style:c})=>{let d=A(),i=pi[d],u=t>0?Math.max(0,Math.min(100,e/t*100)):0,f=fi(o,e,n),m=ui[f],p=(r-a)/2,R=2*Math.PI*p,z=R-u/100*R,h=s?s(e,t):l?`${Math.round(u)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":Math.round(e),"aria-valuemin":0,"aria-valuemax":t,"aria-label":g,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...c},className:b,children:[jsxRuntime.jsxs("div",{style:{position:"relative",width:r,height:r},children:[jsxRuntime.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:i.trackBg,strokeWidth:a}),jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:m,strokeWidth:a,strokeLinecap:"round",strokeDasharray:R,strokeDashoffset:z,style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]}),h!=null&&jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(10,r*.22)}px`,color:i.text,userSelect:"none"},children:h})]}),g&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},children:g})]})};var Tu={sm:16,md:24,lg:40},Ch=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:n,style:r})=>{let[a,l]=zn.useState(0),s=zn.useRef(void 0),g=zn.useRef(void 0);zn.useEffect(()=>{let d=i=>{g.current===void 0&&(g.current=i),l((i-g.current)/800*360%360),s.current=requestAnimationFrame(d);};return s.current=requestAnimationFrame(d),()=>{s.current!==void 0&&cancelAnimationFrame(s.current);}},[]);let b=typeof e=="number"?e:Tu[e]??24,c=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:n,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...r},children:jsxRuntime.jsxs("svg",{width:b,height:b,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:c,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:c,strokeWidth:"2",strokeLinecap:"round"})]})})};var Eu={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"}},zu=({open:e,onConfirm:t,onCancel:o,title:n,description:r,confirmLabel:a="Potvrdit",cancelLabel:l="Zru\u0161it",variant:s="default",loading:g=false,style:b,className:c})=>{let d=A(),i=Eu[d],[u,f]=zn.useState(false),[m,p]=zn.useState(false),R=s==="danger",z=R?m?i.dangerHover:i.dangerBg:m?i.confirmHover:i.confirmBg,h=R?i.dangerText:i.confirmText;return jsxRuntime.jsx(Vn,{open:e,onClose:o,title:n,size:"sm",className:c,style:b,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:u?i.cancelHover:i.cancelBg,border:`1px solid ${i.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:l}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:g,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:z,border:"none",borderRadius:"6px",cursor:g?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:h,lineHeight:"normal",opacity:g?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:g?"Zpracov\xE1v\xE1m...":a})]}),children:r&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.descriptionText},children:r})})};zu.displayName="ConfirmDialog";var Hu={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"}},Lu={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"}},Nu=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}},$u=({text:e,children:t,size:o="md",variant:n="icon",label:r="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:l,style:s,className:g})=>{let b=A(),c=Hu[b],d=Lu[o],[i,u]=zn.useState(false),[f,m]=zn.useState(false),p=zn.useRef(null),R=zn.useCallback(async()=>{await Nu(e)&&(u(true),l?.(),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(false),p.current=null;},2e3));},[e,l]),z=i?c.successColor:f?c.iconHover:c.iconColor,h=i?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:z,...s},children:t}):n==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:z,...s},children:jsxRuntime.jsx(h,{size:d.iconSize,color:z})}):jsxRuntime.jsxs("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.buttonPadding,background:f?c.buttonHover:c.buttonBg,border:`1px solid ${c.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,color:i?c.successColor:c.buttonText,lineHeight:"normal",...s},children:[jsxRuntime.jsx(h,{size:d.iconSize,color:i?c.successColor:c.buttonText}),i?a:r]})};$u.displayName="CopyButton";var Ou={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"}},Zh=({orientation:e="horizontal",label:t,className:o,style:n})=>{let r=A(),a=Ou[r];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...n}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...n},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...n}})};var Yu={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Vu={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Uh=({direction:e="column",gap:t=8,align:o="stretch",justify:n="start",wrap:r=false,fullWidth:a=false,children:l,className:s,style:g})=>jsxRuntime.jsx("div",{className:s,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Yu[o],justifyContent:Vu[n],flexWrap:r?"wrap":"nowrap",width:a?"100%":void 0,...g},children:l});var Xu={sm:640,md:768,lg:1024,xl:1280},_h=({maxWidth:e="lg",padding:t=16,centered:o=true,children:n,className:r,style:a})=>{let l=typeof e=="number"?e:Xu[e],s=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:r,style:{maxWidth:`${l}px`,width:"100%",padding:s,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:n})};var Ju={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)"}},hi="smDragListPulse",Qu=`@keyframes ${hi}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let n=fr(o.children,t);if(n)return n}}return null}function pr(e,t,o){let n=fr(e,t);if(!n||!n.children)return false;for(let r of n.children)if(r.id===o||pr([r],r.id,o))return true;return false}function yi(e,t){let o=null;return [e.reduce((r,a)=>{if(a.id===t)return o=a,r;if(a.children){let[l,s]=yi(a.children,t);s&&(o=s),r.push({...a,children:l.length>0?l:void 0});}else r.push(a);return r},[]),o]}function ur(e,t,o,n){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],n],expanded:true}:a.children?{...a,children:ur(a.children,t,o,n)}:a);let r=[];for(let a of e)a.id===t?o==="before"?(r.push(n),r.push(a)):(r.push(a),r.push(n)):a.children?r.push({...a,children:ur(a.children,t,o,n)}):r.push(a);return r}function vi(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:vi(o.children,t)}:o)}function Si(e,t,o){return e.map(n=>n.id===t?{...n,expanded:o}:n.children?{...n,children:Si(n.children,t,o)}:n)}var xi=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${hi} 1.2s ease-in-out infinite`,width:"100%"},children:jsxRuntime.jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),ki=({item:e,depth:t,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f})=>{let[m,p]=zn.useState(false),[R,z]=zn.useState(false),[h,S]=zn.useState(false),x=zn.useRef(false),I=zn.useRef(null),v=e.children&&e.children.length>0,E=e.expanded??false,y=r===e.id,D=r!==null,B=u==="handle",k=a?.targetId===e.id,M=k&&a?.position==="before",F=k&&a?.position==="after",w=k&&a?.position==="inside",T=y?"transparent":w?f.nestHighlight:R&&!D?f.itemHoverBg:f.itemBg,L=w?f.nestBorder:y?"transparent":f.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(xi,{color:f.dropIndicator})}),jsxRuntime.jsxs("div",{ref:I,draggable:true,onDragStart:N=>{if(B&&!x.current){N.preventDefault();return}if(x.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),I.current){let C=I.current.cloneNode(true);C.style.width=`${I.current.offsetWidth}px`,C.style.opacity="0.85",C.style.transform="rotate(1.5deg) scale(1.02)",C.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",C.style.position="fixed",C.style.top="-1000px",document.body.appendChild(C),N.dataTransfer.setDragImage(C,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(C));}l(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),s(N,e.id,t);},onDragLeave:N=>{let C=N.relatedTarget;I.current&&C&&I.current.contains(C)||(N.stopPropagation(),g(N,I.current),z(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),b(N);},onDragEnd:c,onMouseEnter:()=>z(true),onMouseLeave:()=>z(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:y?"transparent":f.text,cursor:D?"grabbing":B?"default":"grab",opacity:y?.35:1,backgroundColor:T,borderWidth:"1px",borderColor:L,borderStyle:y?"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:w?`inset 0 0 0 1px ${f.nestBorder}`:R&&!D?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:w?"scale(1.01)":"scale(1)"},children:[!i&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:D?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:y?"hidden":"visible"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onMouseDown:()=>{x.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:m?f.gripHover:f.gripColor})}),w&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:f.dropIndicator})}),v?jsxRuntime.jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),d(e.id);},onMouseEnter:()=>S(true),onMouseLeave:()=>S(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:y?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:h?f.chevronHover:f.chevron,style:{transition:"transform 0.2s ease",transform:E?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:y?"hidden":"visible"},children:i?i(e,{handleProps:{onMouseDown:()=>{x.current=true;},style:{cursor:D?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:y,depth:t,isExpanded:E,toggleExpand:()=>d(e.id),hasChildren:!!v}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsxRuntime.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&&jsxRuntime.jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(xi,{color:f.dropIndicator})}),v&&E&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${f.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsxRuntime.jsx(ki,{item:N,depth:t+1,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f},N.id))})]})},ef=({items:e,onReorder:t,renderItem:o,allowNesting:n=false,maxDepth:r=3,dragMode:a="full",className:l,style:s})=>{let g=A(),b=Ju[g],[c,d]=zn.useState(null),[i,u]=zn.useState(null),f=zn.useRef(null),m=zn.useRef(void 0),p=zn.useRef(void 0),R=zn.useRef(null),z=zn.useCallback(E=>{d(E);},[]),h=zn.useCallback((E,y,D)=>{if(!c||c===y||pr(e,c,y))return;m.current&&(clearTimeout(m.current),m.current=void 0);let B=E.currentTarget.getBoundingClientRect(),k=E.clientY-B.top,M=B.height,F;n&&D<r?k<M*.25?F="before":k>M*.75?F="after":F="inside":k<M*.35?F="before":k>M*.65?F="after":R.current?.targetId===y?F=R.current.position:F=k<M/2?"before":"after";let w={targetId:y,position:F},T=fr(e,y);F==="inside"&&T?.children&&T.children.length>0&&!T.expanded?(R.current?.targetId!==y||R.current?.position!=="inside")&&(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{t(Si(e,y,true));},600)):p.current&&(clearTimeout(p.current),p.current=void 0),R.current=w,u(w);},[c,e,n,r,t]),S=zn.useCallback((E,y)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{u(null),R.current=null;},60),p.current&&(clearTimeout(p.current),p.current=void 0);},[]),x=zn.useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),!c||!i)return;let{targetId:E,position:y}=i;if(c===E||pr(e,c,E))return;let[D,B]=yi(e,c);if(!B)return;let k=ur(D,E,y,B);t(k),d(null),u(null),R.current=null;},[c,i,e,t]),I=zn.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),d(null),u(null),R.current=null;},[]),v=zn.useCallback(E=>{t(vi(e,E));},[e,t]);return zn.useEffect(()=>()=>{m.current&&clearTimeout(m.current),p.current&&clearTimeout(p.current);},[]),jsxRuntime.jsxs("div",{ref:f,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...s},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Qu}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.textSecondary,backgroundColor:b.itemBg,borderRadius:"10px",border:`1px solid ${b.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(E=>jsxRuntime.jsx(ki,{item:E,depth:0,allowNesting:n,maxDepth:r,draggedId:c,dropState:i,onDragStart:z,onDragOver:h,onDragLeave:S,onDrop:x,onDragEnd:I,onToggleExpand:v,renderItem:o,dragMode:a,tokens:b},E.id))]})};ef.displayName="DragList";var rf={dark:{insertionLine:"#FC4F00",dragOverlay:"rgba(24,24,24,0.95)",dragBorder:"rgba(255,255,255,0.12)",dragShadow:"0 8px 30px rgba(0,0,0,0.5)",handleColor:"rgba(255,255,255,0.3)",handleHover:"rgba(255,255,255,0.6)"},light:{insertionLine:"#FC4F00",dragOverlay:"rgba(255,255,255,0.95)",dragBorder:"rgba(0,0,0,0.1)",dragShadow:"0 8px 30px rgba(0,0,0,0.15)",handleColor:"rgba(0,0,0,0.2)",handleHover:"rgba(0,0,0,0.5)"}};function af({items:e,keyExtractor:t,renderItem:o,onReorder:n,direction:r="vertical",handle:a="whole",disabled:l=false,gap:s,style:g,className:b}){let c=A(),d=rf[c],i=r==="vertical",[u,f]=zn.useState(null),[m,p]=zn.useState(null),[R,z]=zn.useState(null),h=zn.useRef(new Map),S=zn.useRef({x:0,y:0}),x=zn.useCallback((v,E)=>{if(l)return;E.preventDefault();let y="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};S.current=y,f(v),p(v);},[l]);zn.useEffect(()=>{if(u===null)return;let v=y=>{let D="touches"in y?{x:y.touches[0].clientX,y:y.touches[0].clientY}:{x:y.clientX,y:y.clientY},B=u,k=1/0;h.current.forEach((M,F)=>{let w=M.getBoundingClientRect(),T=i?w.top+w.height/2:w.left+w.width/2,L=i?D.y:D.x,N=Math.abs(L-T);N<k&&(k=N,B=F);}),p(B);},E=()=>{if(u!==null&&m!==null&&u!==m){let y=[...e],[D]=y.splice(u,1);y.splice(m,0,D),n(y);}f(null),p(null);};return document.addEventListener("mousemove",v),document.addEventListener("mouseup",E),document.addEventListener("touchmove",v,{passive:false}),document.addEventListener("touchend",E),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",E);}},[u,m,e,n,i]);let I=zn.useCallback((v,E)=>{if(!l){if(E.key===" "||E.key==="Enter")if(E.preventDefault(),R===null)z(v);else {if(R!==v){let y=[...e],[D]=y.splice(R,1);y.splice(v,0,D),n(y);}z(null);}else if(R!==null){let y=i?E.key==="ArrowDown"?1:E.key==="ArrowUp"?-1:0:E.key==="ArrowRight"?1:E.key==="ArrowLeft"?-1:0;if(y!==0){E.preventDefault();let D=Math.max(0,Math.min(e.length-1,R+y));if(D!==R){let B=[...e],[k]=B.splice(R,1);B.splice(D,0,k),n(B),z(D);}}E.key==="Escape"&&z(null);}}},[l,R,e,n,i]);return jsxRuntime.jsx("div",{className:b,style:{display:"flex",flexDirection:i?"column":"row",gap:s??0,position:"relative",...g},children:e.map((v,E)=>{let y=t(v),D=u===E,B=R===E,k=u!==null&&m===E&&u>E,M=u!==null&&m===E&&u<E,F=a==="explicit"?jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:l?"default":"grab",color:d.handleColor,transition:"color 0.12s ease",touchAction:"none"},onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),onMouseEnter:T=>{T.currentTarget.style.color=d.handleHover;},onMouseLeave:T=>{T.currentTarget.style.color=d.handleColor;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:16})}):null,w=a==="whole"?{onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),style:{cursor:l?"default":"grab",touchAction:"none"}}:{};return jsxRuntime.jsxs("div",{ref:T=>{T?h.current.set(E,T):h.current.delete(E);},tabIndex:l?-1:0,role:"listitem","aria-grabbed":D||B,onKeyDown:T=>I(E,T),...a==="whole"?w:{},style:{position:"relative",opacity:D?.4:1,outline:B?`2px solid ${d.insertionLine}`:"none",outlineOffset:"2px",borderRadius:"4px",transition:"opacity 0.15s ease",...a==="whole"?w.style:{}},children:[k&&jsxRuntime.jsx("div",{style:{position:"absolute",[i?"top":"left"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}}),o(v,F),M&&jsxRuntime.jsx("div",{style:{position:"absolute",[i?"bottom":"right"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}})]},y)})})}af.displayName="SortableList";var lf={dark:{dividerBg:"rgba(255,255,255,0.06)",dividerHover:"rgba(255,255,255,0.15)",dividerActive:"#FC4F00"},light:{dividerBg:"rgba(0,0,0,0.06)",dividerHover:"rgba(0,0,0,0.12)",dividerActive:"#FC4F00"}},cf=({orientation:e="horizontal",children:t,defaultSizes:o,minSizes:n,maxSizes:r,onResize:a,persistKey:l,dividerSize:s=4,disabled:g=false,style:b,className:c})=>{let d=A(),i=lf[d],u=zn.useRef(null),f=zn__default.default.Children.count(t),m=e==="horizontal",p=()=>{if(l&&typeof window<"u"){let B=localStorage.getItem(`splitter-${l}`);if(B)try{let k=JSON.parse(B);if(Array.isArray(k)&&k.length===f)return k}catch{}}return o&&o.length===f?o:Array.from({length:f},()=>100/f)},[R,z]=zn.useState(p),[h,S]=zn.useState(null),[x,I]=zn.useState(null),v=zn.useRef(null);zn.useEffect(()=>{l&&typeof window<"u"&&h===null&&localStorage.setItem(`splitter-${l}`,JSON.stringify(R));},[R,l,h]);let E=zn.useCallback(()=>u.current?m?u.current.clientWidth:u.current.clientHeight:0,[m]),y=zn.useCallback((B,k)=>{g||(S(B),v.current={pos:k,sizes:[...R]});},[g,R]);zn.useEffect(()=>{if(h===null)return;let B=m?"col-resize":"row-resize";document.body.style.cursor=B,document.body.style.userSelect="none";let k=F=>{if(!v.current||h===null)return;let w="touches"in F?F.touches[0][m?"clientX":"clientY"]:F[m?"clientX":"clientY"],T=E();if(!T)return;let N=(w-v.current.pos)/T*100,C=[...v.current.sizes],P=h,H=h+1;C[P]=v.current.sizes[P]+N,C[H]=v.current.sizes[H]-N;let W=T/100;if(n){let V=(n[P]??0)/W,q=(n[H]??0)/W;C[P]<V&&(C[H]+=C[P]-V,C[P]=V),C[H]<q&&(C[P]+=C[H]-q,C[H]=q);}if(r){let V=r[P]?r[P]/W:100,q=r[H]?r[H]/W:100;C[P]>V&&(C[H]+=C[P]-V,C[P]=V),C[H]>q&&(C[P]+=C[H]-q,C[H]=q);}C[P]<0||C[H]<0||(z(C),a&&a(C.map(V=>Math.round(V*W))));},M=()=>{S(null),v.current=null,document.body.style.cursor="",document.body.style.userSelect="";};return document.addEventListener("mousemove",k),document.addEventListener("mouseup",M),document.addEventListener("touchmove",k,{passive:false}),document.addEventListener("touchend",M),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",M),document.body.style.cursor="",document.body.style.userSelect="";}},[h,m,E,n,r,a]);let D=zn__default.default.Children.toArray(t);return jsxRuntime.jsx("div",{ref:u,className:c,style:{display:"flex",flexDirection:m?"row":"column",width:"100%",height:"100%",overflow:"hidden",...b},children:D.map((B,k)=>jsxRuntime.jsxs(zn__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:{flex:`0 0 calc(${R[k]??100/f}% - ${(f-1)*s/f}px)`,overflow:"auto",minWidth:0,minHeight:0},children:B}),k<D.length-1&&jsxRuntime.jsx("div",{style:{flex:`0 0 ${s}px`,backgroundColor:h===k?i.dividerActive:x===k?i.dividerHover:i.dividerBg,cursor:g?"default":m?"col-resize":"row-resize",transition:h===k?"none":"background-color 0.15s ease",touchAction:"none"},onMouseDown:M=>y(k,m?M.clientX:M.clientY),onTouchStart:M=>y(k,m?M.touches[0].clientX:M.touches[0].clientY),onMouseEnter:()=>!g&&I(k),onMouseLeave:()=>I(null)})]},k))})};cf.displayName="Splitter";exports.Accordion=Sc;exports.AccordionItem=vc;exports.Alert=th;exports.AppSidebar=Cp;exports.Avatar=zb;exports.AvatarStack=ed;exports.Badge=Wb;exports.Banner=pu;exports.Breadcrumb=Yd;exports.Button=Mi;exports.Calendar=dd;exports.Card=bc;exports.Checkbox=Gr;exports.CheckboxGroup=_r;exports.ColorPicker=Cl;exports.Combobox=Ts;exports.CommandMenu=Sp;exports.ConfirmDialog=zu;exports.Container=_h;exports.CopyButton=$u;exports.DataGrid=sc;exports.DataList=bd;exports.DatePicker=Ur;exports.DatePickerGroup=Ls;exports.Divider=Zh;exports.DragList=ef;exports.Drawer=Ad;exports.DropdownMenu=cp;exports.EmptyState=Zc;exports.FileUpload=ia;exports.FormField=_i;exports.FormWizard=ip;exports.IconButton=Vi;exports.ImageCropper=Kl;exports.Input=zr;exports.InputGroup=Hf;exports.Link=px;exports.MobileDataCard=uc;exports.Modal=Vn;exports.Navbar=Dp;exports.Notification=vu;exports.NumberInput=ps;exports.OTPInput=Ll;exports.Pagination=qd;exports.PhoneInput=Xl;exports.Popover=Bc;exports.ProgressBar=xh;exports.ProgressCircle=hh;exports.Radio=dn;exports.RadioGroup=jr;exports.Rating=zl;exports.SegmentedControl=bl;exports.Select=Hr;exports.SelectGroup=bs;exports.Sheet=Wd;exports.SidebarItem=zp;exports.Skeleton=ve;exports.Slider=ra;exports.SortableList=af;exports.Spinner=Ch;exports.Splitter=cf;exports.Spotlight=mp;exports.Stack=Uh;exports.Stat=_c;exports.StatusBadge=Td;exports.Stepper=Qn;exports.Switch=Jr;exports.Tab=wc;exports.TabPanel=Rc;exports.Table=rc;exports.Tabs=Tc;exports.Tag=$b;exports.TagItem=Ob;exports.Textarea=ea;exports.Timeline=fd;exports.Toast=oi;exports.ToasterProvider=Gx;exports.Tooltip=ht;exports.Tree=vd;exports.useTheme=A;exports.useToast=_x;//# sourceMappingURL=index.js.map
18
+ `,document.head.appendChild(t),xr=true;},Fp=({status:e,label:t,size:o="md",pulse:n=false,color:r,style:a,className:i})=>{let s=H(),c=Cp[s],f=Rp[o],d=r||wp[e]||"#888888";return n&&Tp(),jsxRuntime.jsxs("span",{className:i,style:{display:"inline-flex",alignItems:"center",gap:f.gap,...a},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${f.dot}px`,height:`${f.dot}px`,flexShrink:0},children:[n&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:d,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:d}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:400,color:c.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Fp.displayName="StatusBadge";var bt={dark:{gridLine:"rgba(255,255,255,0.08)",axisLine:"rgba(255,255,255,0.18)",axisText:"#ACACAC",label:"#ffffff",sliceStroke:"#181818",tooltipBg:"rgba(24,24,24,0.95)",tooltipBorder:"rgba(255,255,255,0.12)",tooltipText:"#ffffff",tooltipMuted:"#ACACAC",tooltipShadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset",crosshair:"rgba(255,255,255,0.25)",emptyText:"#ACACAC"},light:{gridLine:"rgba(0,0,0,0.06)",axisLine:"rgba(0,0,0,0.14)",axisText:"#888888",label:"#1a1a1a",sliceStroke:"#ffffff",tooltipBg:"rgba(255,255,255,0.97)",tooltipBorder:"rgba(0,0,0,0.1)",tooltipText:"#1a1a1a",tooltipMuted:"#888888",tooltipShadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",crosshair:"rgba(0,0,0,0.2)",emptyText:"#888888"}},Mo=["#FC4F00","#2D7FF9","#00A205","#F5A623","#9C27B0","#00B8D9","#EF3838","#7C4DFF"],qe=(e,t)=>e??Mo[t%Mo.length],He=600,Ne="cubic-bezier(0.16, 1, 0.3, 1)",Ie="'Zalando Sans', sans-serif";function cn(e){let t=rr.useRef(null),[o,n]=rr.useState(e??0);return rr.useLayoutEffect(()=>{if(e!=null){n(e);return}let r=t.current;if(!r)return;let a=()=>n(r.clientWidth);if(a(),typeof ResizeObserver>"u")return;let i=new ResizeObserver(a);return i.observe(r),()=>i.disconnect()},[e]),[t,o]}function Ft(e){let[t,o]=rr.useState(!e);return rr.useEffect(()=>{if(!e)return;let n=requestAnimationFrame(()=>o(true));return ()=>cancelAnimationFrame(n)},[e]),t}var ao=({items:e,position:t})=>{let o=bt[H()];return t==="none"||e.length===0?null:jsxRuntime.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"6px 16px",justifyContent:"center",padding:t==="top"?"0 0 12px":"12px 0 0"},children:e.map(n=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,userSelect:"none"},children:[jsxRuntime.jsx("span",{style:{width:10,height:10,borderRadius:3,backgroundColor:n.color,flexShrink:0}}),jsxRuntime.jsx("span",{style:{fontFamily:Ie,fontSize:12,color:o.axisText,lineHeight:"normal"},children:n.name})]},n.name))})},io=({x:e,y:t,title:o,rows:n,containerWidth:r})=>{let a=bt[H()],i=Math.min(160,Math.max(80,r-8)),s=Math.max(4,Math.min(e+12,r-i-4));return jsxRuntime.jsxs("div",{style:{position:"absolute",left:s,top:Math.max(4,t-8),width:i,pointerEvents:"none",backgroundColor:a.tooltipBg,border:`1px solid ${a.tooltipBorder}`,borderRadius:8,boxShadow:a.tooltipShadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",padding:"8px 10px",zIndex:1},children:[o!=null&&jsxRuntime.jsx("div",{style:{fontFamily:Ie,fontSize:11,color:a.tooltipMuted,marginBottom:6,lineHeight:"normal"},children:o}),n.map(c=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:2},children:[jsxRuntime.jsx("span",{style:{width:8,height:8,borderRadius:2,backgroundColor:c.color,flexShrink:0}}),jsxRuntime.jsx("span",{style:{fontFamily:Ie,fontSize:12,color:a.tooltipMuted,flex:1,lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.name}),jsxRuntime.jsx("span",{style:{fontFamily:Ie,fontSize:12,fontWeight:600,color:a.tooltipText,lineHeight:"normal"},children:c.value})]},c.name))]})},so=({height:e,text:t})=>{let o=bt[H()];return jsxRuntime.jsx("div",{style:{height:e,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:Ie,fontSize:13,color:o.emptyText,userSelect:"none"},children:t})};function xi(e,t){let o=Math.floor(Math.log10(e)),n=e/Math.pow(10,o),r;return t?n<1.5?r=1:n<3?r=2:n<7?r=5:r=10:n<=1?r=1:n<=2?r=2:n<=5?r=5:r=10,r*Math.pow(10,o)}function dn(e,t,o=5){if(!isFinite(e)||!isFinite(t))return {min:0,max:1,ticks:[0,1],step:1};if(e>t){let c=e;e=t,t=c;}if(e===t){if(e===0)return {min:0,max:1,ticks:[0,.5,1],step:.5};t=e+Math.abs(e)*.5;}let n=xi(t-e,false),r=xi(n/Math.max(1,o-1),true),a=Math.floor(e/r)*r,i=Math.ceil(t/r)*r,s=[];for(let c=a;c<=i+r*.5;c+=r)s.push(Number(c.toFixed(10)));return {min:a,max:i,ticks:s,step:r}}function pn(e){let t=0,o=0;for(let n of e)for(let r of n.data)isFinite(r)&&(r<t&&(t=r),r>o&&(o=r));return [t,o]}function hi(e,t){let o=0,n=0;for(let r=0;r<t;r++){let a=0,i=0;for(let s of e){let c=s.data[r];isFinite(c)&&(c>=0?a+=c:i+=c);}a>n&&(n=a),i<o&&(o=i);}return [o,n]}function un(e,t,o=5){let n=Math.max(1,o-1),r=[];for(let a=0;a<=n;a++)r.push(Number((e+a/n*(t-e)).toFixed(10)));return r}function yi(e){let t=e.trim(),o=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t),n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t),r,a,i;if(o)r=parseInt(o[1],16),a=parseInt(o[2],16),i=parseInt(o[3],16);else if(n)r=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16),i=parseInt(n[3]+n[3],16);else return "#ffffff";return (.299*r+.587*a+.114*i)/255>.5?"#1a1a1a":"#ffffff"}function Po(e,t){if(e.length===0)return "";if(!t||e.length<3)return e.map((n,r)=>`${r===0?"M":"L"}${n[0]},${n[1]}`).join(" ");let o=`M${e[0][0]},${e[0][1]}`;for(let n=0;n<e.length-1;n++){let r=e[n===0?0:n-1],a=e[n],i=e[n+1],s=e[n+2<e.length?n+2:e.length-1],c=a[0]+(i[0]-r[0])/6,f=a[1]+(i[1]-r[1])/6,d=i[0]-(s[0]-a[0])/6,u=i[1]-(s[1]-a[1])/6;o+=` C${c},${f} ${d},${u} ${i[0]},${i[1]}`;}return o}function fn(e,t,o){if(e.length===0)return "";let n=Po(e,o),r=e[e.length-1],a=e[0];return `${n} L${r[0]},${t} L${a[0]},${t} Z`}function Yt(e,t,o,n){return [e+o*Math.cos(n),t+o*Math.sin(n)]}function vi(e,t,o,n,r,a){if(a-r>=2*Math.PI-1e-6){let m=`M${e-o},${t} a${o},${o} 0 1 0 ${o*2},0 a${o},${o} 0 1 0 ${-o*2},0 Z`;if(n<=0)return m;let b=`M${e-n},${t} a${n},${n} 0 1 1 ${n*2},0 a${n},${n} 0 1 1 ${-n*2},0 Z`;return `${m} ${b}`}let i=a-r>Math.PI?1:0,[s,c]=Yt(e,t,o,r),[f,d]=Yt(e,t,o,a);if(n<=0)return `M${e},${t} L${s},${c} A${o},${o} 0 ${i} 1 ${f},${d} Z`;let[u,l]=Yt(e,t,n,r),[p,g]=Yt(e,t,n,a);return [`M${s},${c}`,`A${o},${o} 0 ${i} 1 ${f},${d}`,`L${p},${g}`,`A${n},${n} 0 ${i} 0 ${u},${l}`,"Z"].join(" ")}function lo(e){return isFinite(e)?Number(e.toFixed(2)).toLocaleString():""}var Mp={top:12,right:16,bottom:24,left:44},Si=({series:e,categories:t,height:o=260,width:n,area:r,defaultArea:a,curve:i="smooth",showGrid:s=true,showXAxis:c=true,showYAxis:f=true,showDots:d=true,showTooltip:u=true,legend:l,yDomain:p,yTickCount:g=5,strokeWidth:m=2,fillOpacity:b=.15,animate:x=true,valueFormat:E=lo,margin:S,onPointClick:v,ariaLabel:z,style:D,className:I})=>{let F=bt[H()],[h,R]=cn(n),B=Ft(x),[C,M]=rr.useState(null),T=rr.useId(),k=r??a,w=l??(e.length>1?"top":"none"),L={...Mp,...S},A=R,y=t.length,P=e.length>0&&y>0&&e.some(O=>O.data.length>0),N=e.map((O,U)=>({name:O.name,color:qe(O.color,U)})),$=(()=>{if(!P)return jsxRuntime.jsx(so,{height:o,text:"\u017D\xE1dn\xE1 data"});if(A===0)return jsxRuntime.jsx("div",{style:{height:o}});let O=Math.max(0,A-L.left-L.right),U=Math.max(0,o-L.top-L.bottom),[Z,W]=pn(e),K=p?{min:p[0],max:p[1],ticks:un(p[0],p[1],g)}:dn(Z,W,g),G=ee=>L.left+(y<=1?O/2:ee/(y-1)*O),j=ee=>L.top+(K.max===K.min?U:(1-(ee-K.min)/(K.max-K.min))*U),J=j(Math.max(K.min,Math.min(K.max,0))),oe=e.map(ee=>{let Y=[];for(let q=0;q<y;q++){let te=ee.data[q];isFinite(te)&&Y.push({idx:q,x:G(q),y:j(te)});}return Y}),ne=ee=>{if(!u||y===0)return;let Y=ee.currentTarget.getBoundingClientRect(),q=ee.clientX-Y.left,te=y<=1?0:Math.round(q/O*(y-1));M(Math.max(0,Math.min(y-1,te)));},fe=C==null?[]:e.map((ee,Y)=>({color:qe(ee.color,Y),name:ee.name,value:E(ee.data[C]??0)}));return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsxs("svg",{width:A,height:o,viewBox:`0 0 ${A} ${o}`,role:"img","aria-label":z??`\u010C\xE1rov\xFD graf, ${e.length} s\xE9ri\xED`,children:[K.ticks.map(ee=>{let Y=j(ee);return Y<L.top-.5||Y>L.top+U+.5?null:jsxRuntime.jsxs("g",{children:[s&&jsxRuntime.jsx("line",{x1:L.left,y1:Y,x2:L.left+O,y2:Y,stroke:F.gridLine,strokeWidth:1}),f&&jsxRuntime.jsx("text",{x:L.left-8,y:Y,textAnchor:"end",dominantBaseline:"middle",fontFamily:Ie,fontSize:11,fill:F.axisText,children:E(ee)})]},ee)}),c&&t.map((ee,Y)=>{let q=Math.max(2,Math.floor(O/56)),te=Math.ceil(y/q);return y>q&&Y%te!==0&&Y!==y-1?null:jsxRuntime.jsx("text",{x:G(Y),y:L.top+U+16,textAnchor:"middle",fontFamily:Ie,fontSize:11,fill:F.axisText,children:ee},Y)}),C!=null&&jsxRuntime.jsx("line",{x1:G(C),y1:L.top,x2:G(C),y2:L.top+U,stroke:F.crosshair,strokeWidth:1,strokeDasharray:"3 3"}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:T,children:jsxRuntime.jsx("rect",{x:L.left,y:L.top,width:O,height:U})})}),jsxRuntime.jsxs("g",{clipPath:`url(#${T})`,children:[k&&e.map((ee,Y)=>{let q=qe(ee.color,Y),te=oe[Y].map(ge=>[ge.x,ge.y]);return jsxRuntime.jsx("path",{d:fn(te,J,i==="smooth"),fill:q,fillOpacity:B?b:0,stroke:"none",style:{transition:x?`fill-opacity ${He}ms ${Ne}`:void 0}},`area-${Y}`)}),e.map((ee,Y)=>{let q=qe(ee.color,Y),te=oe[Y].map(ge=>[ge.x,ge.y]);return jsxRuntime.jsx("path",{d:Po(te,i==="smooth"),fill:"none",stroke:q,strokeWidth:m,strokeLinejoin:"round",strokeLinecap:"round",pathLength:1,strokeDasharray:x?1:void 0,strokeDashoffset:x?B?0:1:void 0,style:{transition:x?`stroke-dashoffset ${He}ms ${Ne}`:void 0}},`line-${Y}`)})]}),d&&e.map((ee,Y)=>oe[Y].map(q=>jsxRuntime.jsx("circle",{cx:q.x,cy:q.y,r:C===q.idx?4.5:3,fill:qe(ee.color,Y),stroke:F.sliceStroke,strokeWidth:1.5,opacity:B?1:0,style:{transition:x?`opacity ${He}ms ${Ne}, r 0.12s ease`:"r 0.12s ease",cursor:v?"pointer":"default"},onClick:v?()=>v({category:t[q.idx],categoryIndex:q.idx,series:ee.name,value:ee.data[q.idx]}):void 0},`dot-${Y}-${q.idx}`))),u&&jsxRuntime.jsx("rect",{x:L.left,y:L.top,width:O,height:U,fill:"transparent",onMouseMove:ne,onMouseLeave:()=>M(null)})]}),u&&C!=null&&jsxRuntime.jsx(io,{x:G(C),y:L.top,title:t[C],rows:fe,containerWidth:A})]})})();return jsxRuntime.jsxs("div",{ref:h,className:I,style:{width:n??"100%",...D},children:[w==="top"&&jsxRuntime.jsx(ao,{items:N,position:"top"}),$,w==="bottom"&&jsxRuntime.jsx(ao,{items:N,position:"bottom"})]})},ki=e=>jsxRuntime.jsx(Si,{...e,defaultArea:false});ki.displayName="LineChart";var Ci=e=>jsxRuntime.jsx(Si,{...e,defaultArea:true});Ci.displayName="AreaChart";var wi=({series:e,categories:t,height:o=260,width:n,orientation:r="vertical",stacked:a=false,showGrid:i=true,showCategoryAxis:s=true,showValueAxis:c=true,showTooltip:f=true,showValues:d=false,legend:u,valueDomain:l,valueTickCount:p=5,barRadius:g=4,maxBarSize:m,animate:b=true,valueFormat:x=lo,margin:E,onBarClick:S,ariaLabel:v,style:z,className:D})=>{let I=bt[H()],[F,h]=cn(n),R=Ft(b),[B,C]=rr.useState(null),M=rr.useId(),T=r==="vertical",k=u??(e.length>1?"top":"none"),w={top:12,right:16,bottom:24,left:T?44:72,...E},L=h,A=t.length,y=e.length>0&&A>0&&e.some($=>$.data.length>0),P=e.map(($,O)=>({name:$.name,color:qe($.color,O)})),N=(()=>{if(!y)return jsxRuntime.jsx(so,{height:o,text:"\u017D\xE1dn\xE1 data"});if(L===0)return jsxRuntime.jsx("div",{style:{height:o}});let $=Math.max(0,L-w.left-w.right),O=Math.max(0,o-w.top-w.bottom),U=T?$:O,Z=T?w.left:w.top,W=T?O:$,K=T?w.top:w.left,[G,j]=a?hi(e,A):pn(e),J=l?{min:l[0],max:l[1],ticks:un(l[0],l[1],p)}:dn(G,j,p),oe=J.max-J.min||1,ne=Q=>T?K+(1-(Q-J.min)/oe)*W:K+(Q-J.min)/oe*W,fe=ne(Math.max(J.min,Math.min(J.max,0))),ee=U/A,q=ee*(1-.28);m&&q>m&&(q=m);let te=(ee-q)/2,ge=a?1:e.length,Ke=q/ge,We=[];for(let Q=0;Q<A;Q++){let ie=Z+Q*ee+te,nt=0,ht=0;e.forEach((X,ue)=>{let pe=X.data[Q]??0,Ae=qe(X.color,ue),Oe,yt,dt;if(a){Oe=ie;let ae=pe>=0?nt:ht,be=ae+pe;yt=ne(ae),dt=ne(be),pe>=0?nt=be:ht=be;}else Oe=ie+ue*Ke,yt=fe,dt=ne(pe);let Xt=a?q:Ke,jt=Math.min(yt,dt),_=Math.abs(dt-yt);We.push(T?{x:Oe,y:jt,width:Xt,height:_,color:Ae,positive:pe>=0}:{x:jt,y:Oe,width:_,height:Xt,color:Ae,positive:pe>=0});});}let me=B==null?[]:e.map((Q,ie)=>({color:qe(Q.color,ie),name:Q.name,value:x(Q.data[B]??0)})),se=Q=>Z+Q*ee+ee/2;return jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsxs("svg",{width:L,height:o,viewBox:`0 0 ${L} ${o}`,role:"img","aria-label":v??`Sloupcov\xFD graf, ${e.length} s\xE9ri\xED`,children:[J.ticks.map(Q=>{let ie=ne(Q);return jsxRuntime.jsxs("g",{children:[i&&(T?jsxRuntime.jsx("line",{x1:w.left,y1:ie,x2:w.left+$,y2:ie,stroke:I.gridLine,strokeWidth:1}):jsxRuntime.jsx("line",{x1:ie,y1:w.top,x2:ie,y2:w.top+O,stroke:I.gridLine,strokeWidth:1})),c&&(T?jsxRuntime.jsx("text",{x:w.left-8,y:ie,textAnchor:"end",dominantBaseline:"middle",fontFamily:Ie,fontSize:11,fill:I.axisText,children:x(Q)}):jsxRuntime.jsx("text",{x:ie,y:w.top+O+16,textAnchor:"middle",fontFamily:Ie,fontSize:11,fill:I.axisText,children:x(Q)}))]},Q)}),s&&t.map((Q,ie)=>T?jsxRuntime.jsx("text",{x:se(ie),y:w.top+O+16,textAnchor:"middle",fontFamily:Ie,fontSize:11,fill:I.axisText,children:Q},ie):jsxRuntime.jsx("text",{x:w.left-8,y:se(ie),textAnchor:"end",dominantBaseline:"middle",fontFamily:Ie,fontSize:11,fill:I.axisText,children:Q},ie)),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:M,children:jsxRuntime.jsx("rect",{x:w.left,y:w.top,width:$,height:O})})}),jsxRuntime.jsx("g",{clipPath:`url(#${M})`,children:We.map((Q,ie)=>jsxRuntime.jsx("rect",{x:Q.x,y:Q.y,width:Q.width,height:Q.height,rx:Math.min(g,Q.width/2,Q.height/2),fill:Q.color,style:{transformBox:"fill-box",transformOrigin:T?Q.positive?"bottom":"top":Q.positive?"left":"right",transform:R?"scale(1)":T?"scaleY(0)":"scaleX(0)",transition:b?`transform ${He}ms ${Ne}`:void 0}},ie))}),d&&!a&&e.length===1&&e[0].data.map((Q,ie)=>T?jsxRuntime.jsx("text",{x:se(ie),y:Q>=0?ne(Q)-6:ne(Q)+14,textAnchor:"middle",fontFamily:Ie,fontSize:11,fontWeight:600,fill:I.label,opacity:R?1:0,style:{transition:b?`opacity ${He}ms ${Ne}`:void 0},children:x(Q)},ie):jsxRuntime.jsx("text",{x:Q>=0?ne(Q)+6:ne(Q)-6,y:se(ie),textAnchor:Q>=0?"start":"end",dominantBaseline:"middle",fontFamily:Ie,fontSize:11,fontWeight:600,fill:I.label,opacity:R?1:0,style:{transition:b?`opacity ${He}ms ${Ne}`:void 0},children:x(Q)},ie)),f&&t.map((Q,ie)=>T?jsxRuntime.jsx("rect",{x:Z+ie*ee,y:w.top,width:ee,height:O,fill:"transparent",onMouseEnter:()=>C(ie),onMouseLeave:()=>C(null),onClick:S?()=>S({category:t[ie],categoryIndex:ie,series:e[0]?.name??"",value:e[0]?.data[ie]??0}):void 0,style:{cursor:S?"pointer":"default"}},ie):jsxRuntime.jsx("rect",{x:w.left,y:Z+ie*ee,width:$,height:ee,fill:"transparent",onMouseEnter:()=>C(ie),onMouseLeave:()=>C(null),onClick:S?()=>S({category:t[ie],categoryIndex:ie,series:e[0]?.name??"",value:e[0]?.data[ie]??0}):void 0,style:{cursor:S?"pointer":"default"}},ie))]}),f&&B!=null&&jsxRuntime.jsx(io,{x:T?se(B):$/2+w.left,y:T?w.top:se(B),title:t[B],rows:me,containerWidth:L})]})})();return jsxRuntime.jsxs("div",{ref:F,className:D,style:{width:n??"100%",...z},children:[k==="top"&&jsxRuntime.jsx(ao,{items:P,position:"top"}),N,k==="bottom"&&jsxRuntime.jsx(ao,{items:P,position:"bottom"})]})};wi.displayName="BarChart";var Ri=({data:e,size:t=220,innerRatio:o,defaultInnerRatio:n,legend:r="right",showLabels:a=false,showTooltip:i=true,padAngle:s=0,centerLabel:c,animate:f=true,valueFormat:d=lo,onSliceClick:u,ariaLabel:l,style:p,className:g})=>{let m=bt[H()],b=Ft(f),[x,E]=rr.useState(null),S=Math.max(0,Math.min(.95,o??n)),v=e.filter(A=>A.value>0),z=v.reduce((A,y)=>A+y.value,0);if(!(v.length>0&&z>0))return jsxRuntime.jsx("div",{className:g,style:p,children:jsxRuntime.jsx(so,{height:t,text:"\u017D\xE1dn\xE1 data"})});let I=t/2,F=t/2,h=t/2-2,R=h*S,B=s*Math.PI/180,C=-Math.PI/2,M=v.map((A,y)=>{let P=A.value/z,N=P*2*Math.PI,$=Math.min(B,N*.5),O=C+$/2,U=C+N-$/2;C+=N;let Z=(O+U)/2;return {datum:A,index:y,start:O,end:U,mid:Z,percent:P*100,color:qe(A.color,y)}}),T=6,k=x==null?[]:[{color:M[x].color,name:M[x].datum.label,value:`${d(M[x].datum.value)} (${Math.round(M[x].percent)}%)`}],w=jsxRuntime.jsxs("div",{style:{position:"relative",width:t,height:t,flexShrink:0},children:[jsxRuntime.jsx("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,role:"img","aria-label":l??`Kol\xE1\u010Dov\xFD graf, ${e.length} polo\u017Eek`,children:jsxRuntime.jsxs("g",{style:{transformBox:"fill-box",transformOrigin:"center",transform:b?"scale(1)":"scale(0.6)",opacity:b?1:0,transition:f?`transform ${He}ms ${Ne}, opacity ${He}ms ${Ne}`:void 0},children:[M.map(A=>{let y=x===A.index,[P,N]=Yt(0,0,y?T:0,A.mid);return jsxRuntime.jsx("path",{d:vi(I,F,h,R,A.start,A.end),fill:A.color,stroke:m.sliceStroke,strokeWidth:2,opacity:x==null||y?1:.45,transform:`translate(${P} ${N})`,style:{transition:"opacity 0.15s ease, transform 0.15s ease",cursor:u?"pointer":"default"},onMouseEnter:()=>E(A.index),onMouseLeave:()=>E(null),onClick:u?()=>u({label:A.datum.label,value:A.datum.value,index:A.index,percent:A.percent}):void 0},A.index)}),a&&b&&M.map(A=>{if(A.percent<5)return null;let y=R+(h-R)*(R>0?.5:.62),[P,N]=Yt(I,F,y,A.mid);return jsxRuntime.jsxs("text",{x:P,y:N,textAnchor:"middle",dominantBaseline:"middle",fontFamily:Ie,fontSize:12,fontWeight:600,fill:yi(A.color),style:{pointerEvents:"none"},children:[Math.round(A.percent),"%"]},A.index)})]})}),S>0&&c!=null&&jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",textAlign:"center"},children:c}),i&&x!=null&&jsxRuntime.jsx(io,{x:I,y:F,rows:k,containerWidth:t})]}),L=r!=="none"&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:r==="right"?"column":"row",flexWrap:"wrap",gap:r==="right"?8:"6px 16px",justifyContent:"center",alignContent:"center"},children:M.map(A=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:7,cursor:"default",opacity:x==null||x===A.index?1:.5,transition:"opacity 0.15s ease"},onMouseEnter:()=>E(A.index),onMouseLeave:()=>E(null),children:[jsxRuntime.jsx("span",{style:{width:10,height:10,borderRadius:3,backgroundColor:A.color,flexShrink:0}}),jsxRuntime.jsx("span",{style:{fontFamily:Ie,fontSize:12,color:m.axisText,lineHeight:"normal"},children:A.datum.label})]},A.index))});return jsxRuntime.jsxs("div",{className:g,style:{display:"inline-flex",flexDirection:r==="right"?"row":"column",alignItems:"center",gap:20,...p},children:[w,L]})},Ti=e=>jsxRuntime.jsx(Ri,{...e,defaultInnerRatio:0});Ti.displayName="PieChart";var Fi=e=>jsxRuntime.jsx(Ri,{...e,defaultInnerRatio:.6});Fi.displayName="DonutChart";var Ei=({data:e,width:t=100,height:o=32,type:n="line",color:r=Mo[0],curve:a="smooth",strokeWidth:i=1.5,fillOpacity:s=.18,showLastDot:c=false,animate:f=true,ariaLabel:d,style:u,className:l})=>{let p=Ft(f);if(e.length===0)return jsxRuntime.jsx("span",{className:l,style:{display:"inline-block",width:t,height:o,...u},"aria-label":d});let g=Math.max(2,i),m=Math.min(...e),b=Math.max(...e),x=b-m||1,E=e.length,S=h=>E<=1?t/2:h/(E-1)*t,v=h=>g+(1-(h-m)/x)*(o-g*2),z={display:"inline-block",lineHeight:0,...u};if(n==="bar"){let h=Math.min(0,m),R=b-h||1,B=k=>g+(1-(k-h)/R)*(o-g*2),C=B(0),M=E>1?Math.min(2,t/E/4):0,T=(t-M*(E-1))/E;return jsxRuntime.jsx("span",{className:l,style:z,children:jsxRuntime.jsx("svg",{width:t,height:o,viewBox:`0 0 ${t} ${o}`,role:"img","aria-label":d??"Sparkline",children:e.map((k,w)=>{let L=w*(T+M),A=B(k),y=Math.min(A,C),P=Math.abs(A-C);return jsxRuntime.jsx("rect",{x:L,y,width:Math.max(.5,T),height:Math.max(0,P),rx:Math.min(1.5,T/2),fill:r,style:{transformBox:"fill-box",transformOrigin:k>=0?"bottom":"top",transform:p?"scaleY(1)":"scaleY(0)",transition:f?`transform ${He}ms ${Ne}`:void 0}},w)})})})}let D=e.map((h,R)=>[S(R),v(h)]),I=Po(D,a==="smooth"),F=D[D.length-1];return jsxRuntime.jsx("span",{className:l,style:z,children:jsxRuntime.jsxs("svg",{width:t,height:o,viewBox:`0 0 ${t} ${o}`,role:"img","aria-label":d??"Sparkline",children:[n==="area"&&jsxRuntime.jsx("path",{d:fn(D,o-g,a==="smooth"),fill:r,fillOpacity:p?s:0,style:{transition:f?`fill-opacity ${He}ms ${Ne}`:void 0}}),jsxRuntime.jsx("path",{d:I,fill:"none",stroke:r,strokeWidth:i,strokeLinejoin:"round",strokeLinecap:"round",pathLength:1,strokeDasharray:f?1:void 0,strokeDashoffset:f?p?0:1:void 0,style:{transition:f?`stroke-dashoffset ${He}ms ${Ne}`:void 0}}),c&&jsxRuntime.jsx("circle",{cx:F[0],cy:F[1],r:Math.max(2,i+.5),fill:r,opacity:p?1:0,style:{transition:f?`opacity ${He}ms ${Ne}`:void 0}})]})})};Ei.displayName="Sparkline";var Wp={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"}},mn=180,Op={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},xl:{width:"1080px",maxHeight:"90vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Sr=({open:e,onClose:t,title:o,titleSlot:n,children:r,footer:a,size:i="md",width:s,maxHeight:c,zIndex:f,closeOnOverlay:d=true,closeOnEscape:u=true,dismissable:l=true,showClose:p=true,showHeaderDivider:g=true,className:m,style:b})=>{let x=H(),E=Wp[x],S=Op[i],v=s?typeof s=="number"?`${s}px`:s:S.width,z=c!==void 0?typeof c=="number"?`${c}px`:c:S.maxHeight,[D,I]=rr.useState(false),[F,h]=rr.useState("idle"),R=rr.useRef(null),B=rr.useRef(null);rr.useEffect(()=>{if(e){B.current=document.activeElement,I(true),h("opening");let k=setTimeout(()=>{h("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(D){h("closing");let k=setTimeout(()=>{I(false),h("idle"),document.body.style.overflow="",B.current instanceof HTMLElement&&B.current.focus();},mn);return ()=>clearTimeout(k)}},[e]),rr.useEffect(()=>()=>{document.body.style.overflow="";},[]),rr.useEffect(()=>{if(!D||!u||!l)return;let k=w=>{w.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[D,u,t]),rr.useEffect(()=>{if(!D||!R.current)return;let k=R.current,w='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',L=A=>{if(A.key!=="Tab")return;let y=k.querySelectorAll(w);if(y.length===0){A.preventDefault();return}let P=y[0],N=y[y.length-1];A.shiftKey?document.activeElement===P&&(A.preventDefault(),N.focus()):document.activeElement===N&&(A.preventDefault(),P.focus());};return document.addEventListener("keydown",L),k.focus(),()=>document.removeEventListener("keydown",L)},[D]);let C=()=>{let k={transition:`opacity ${mn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${mn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return F==="opening"||F==="idle"?{...k,opacity:0,transform:"scale(0.95)"}:F==="open"?{...k,opacity:1,transform:"scale(1)"}:{...k,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!D)return null;let M=i==="fullscreen",T=()=>{let k={transition:`opacity ${mn}ms ease`};return F==="opening"||F==="idle"?{...k,opacity:0}:F==="open"?{...k,opacity:1}:{...k,opacity:0}};return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:f??"var(--sm-ui-z-overlay, 99998)",display:"flex",alignItems:M?"stretch":"center",justifyContent:"center",...F==="closing"?{pointerEvents:"none"}:{}},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:E.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...T()},onClick:d&&l?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":typeof o=="string"?o:void 0,tabIndex:-1,className:m,style:{position:"relative",display:"flex",flexDirection:"column",width:v,maxWidth:M?void 0:"calc(100vw - 32px)",maxHeight:M?"100vh":z,backgroundColor:E.cardBg,border:M?"none":`1px solid ${E.cardBorder}`,borderRadius:M?0:"16px",boxShadow:E.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...C(),...b},children:[n?jsxRuntime.jsx("div",{style:{flexShrink:0,borderBottom:g?`1px solid ${E.divider}`:"none"},children:n}):o||p&&l?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:g?`1px solid ${E.divider}`:"none"},children:[o&&(typeof o=="string"?jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:E.titleText},children:o}):jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:o})),p&&l&&jsxRuntime.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:E.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=E.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:E.closeColor})})]}):null,jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:E.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${E.divider}`},children:a})]})]}),document.body)};Sr.displayName="Modal";var Up={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)"}},Cr=220,_p=({open:e,onClose:t,position:o="right",title:n,children:r,footer:a,width:i=400,showClose:s=true,closeOnOverlay:c=true,className:f,style:d,bodyStyle:u,bodyClassName:l,disableBodyPadding:p=false,zIndex:g})=>{let m=H(),b=Up[m],[x,E]=rr.useState(false),[S,v]=rr.useState("idle"),z=rr.useRef(null),D=typeof i=="number"?`${i}px`:i;rr.useEffect(()=>{if(e){E(true),v("opening");let h=setTimeout(()=>{v("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(h)}else if(x){v("closing");let h=setTimeout(()=>{E(false),v("idle"),document.body.style.overflow="";},Cr);return ()=>clearTimeout(h)}},[e]),rr.useEffect(()=>()=>{document.body.style.overflow="";},[]),rr.useEffect(()=>{if(!x)return;let h=R=>{R.key==="Escape"&&t();};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[x,t]);let I=h=>{let R=o==="right"?"100%":"-100%";return h==="opening"||h==="idle"?R:h==="open"?"0%":R},F=()=>S==="open"?1:0;return x?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:g??"var(--sm-ui-z-overlay, 99998)",display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:b.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:F(),transition:`opacity ${Cr}ms ease`,...S==="closing"?{pointerEvents:"none"}:{}},onClick:c?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:z,role:"dialog","aria-modal":"true","aria-label":n,className:f,style:{position:"absolute",top:0,bottom:0,[o]:0,width:D,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:b.panelBg,borderLeft:o==="right"?`1px solid ${b.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${b.panelBorder}`:"none",boxShadow:b.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${I(S)})`,transition:`transform ${Cr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...d},children:[(n||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${b.divider}`},children:[n&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:b.titleText},children:n}),s&&jsxRuntime.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:b.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:h=>{h.currentTarget.style.backgroundColor=b.closeHover;},onMouseLeave:h=>{h.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:b.closeColor})})]}),jsxRuntime.jsx("div",{className:l,style:{flex:1,overflowY:"auto",padding:p?0:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:b.bodyText,...u},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${b.divider}`},children:a})]})]}),document.body):null};_p.displayName="Drawer";var qp={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)"}},Tr=180,Kp=({open:e,onClose:t,children:o,side:n="bottom",title:r,showClose:a=true,style:i,className:s})=>{let c=H(),f=qp[c],[d,u]=rr.useState(false),[l,p]=rr.useState("idle"),g=rr.useRef(null);rr.useEffect(()=>{if(e){u(true),p("opening");let z=setTimeout(()=>{p("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(z)}else if(d){p("closing");let z=setTimeout(()=>{u(false),p("idle"),document.body.style.overflow="";},Tr);return ()=>clearTimeout(z)}},[e]),rr.useEffect(()=>()=>{document.body.style.overflow="";},[]),rr.useEffect(()=>{if(!d)return;let z=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[d,t]);let x=z=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return z==="opening"||z==="idle"?D[n]:z==="open"?"translate(0, 0)":D[n]},E=()=>l==="open"?1:0,S={};n==="bottom"?(S.bottom=0,S.left=0,S.right=0,S.maxHeight="85vh",S.borderTopLeftRadius="16px",S.borderTopRightRadius="16px"):n==="top"?(S.top=0,S.left=0,S.right=0,S.maxHeight="85vh",S.borderBottomLeftRadius="16px",S.borderBottomRightRadius="16px"):n==="right"?(S.top=0,S.bottom=0,S.right=0,S.width="400px",S.maxWidth="100vw"):n==="left"&&(S.top=0,S.bottom=0,S.left=0,S.width="400px",S.maxWidth="100vw");let v={};return n==="bottom"?v.borderTop=`1px solid ${f.panelBorder}`:n==="top"?v.borderBottom=`1px solid ${f.panelBorder}`:n==="right"?v.borderLeft=`1px solid ${f.panelBorder}`:n==="left"&&(v.borderRight=`1px solid ${f.panelBorder}`),d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:"var(--sm-ui-z-overlay, 99998)"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:f.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:E(),transition:`opacity ${Tr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:f.panelBg,boxShadow:f.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:x(l),transition:`transform ${Tr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...S,...v,...i},children:[n==="bottom"&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsxRuntime.jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:f.handleBg}})}),(r||a)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:n==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${f.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:f.titleText},children:r}),a&&jsxRuntime.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:f.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:z=>{z.currentTarget.style.backgroundColor=f.closeHover;},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:f.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:f.bodyText},children:o})]})]}),document.body):null};Kp.displayName="Sheet";var Qp={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)"}},eu=({items:e,separator:t="/",className:o,style:n})=>{let r=H(),a=Qp[r];return jsxRuntime.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",...n},children:e.map((i,s)=>{let c=s===e.length-1;return jsxRuntime.jsxs(rr__default.default.Fragment,{children:[s>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),c?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[i.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]}):jsxRuntime.jsxs("a",{href:i.href??"#",onClick:i.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:f=>{f.currentTarget.style.color=a.linkHover;},onMouseLeave:f=>{f.currentTarget.style.color=a.text;},children:[i.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]})]},s)})})};eu.displayName="Breadcrumb";var nu={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)"}},ru={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function au(e,t,o,n,r){let a=[],i=Math.max(2,e-o),s=Math.min(t-1,e+o);(n||e-o<=1)&&a.push(1),i>2&&(n&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let c=i;c<=s;c++)a.includes(c)||a.push(c);return s<t-1&&a.push("ellipsis-end"),(r||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var iu=({page:e,totalPages:t,onChange:o,siblings:n=1,showFirst:r=true,showLast:a=true,size:i="md",className:s,style:c})=>{let f=H(),d=nu[f],u=ru[i];if(t<=0)return null;let l=au(e,t,n,r,a),p={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 jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:s,style:{display:"flex",alignItems:"center",gap:"4px",...c},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...p,color:e<=1?d.disabledText:d.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:g=>{e>1&&(g.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:u.iconSize,color:e<=1?d.disabledText:d.text})}),l.map((g,m)=>{if(g==="ellipsis-start"||g==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...p,cursor:"default",color:d.text},"aria-hidden":"true",children:"..."},g);let b=g===e;return jsxRuntime.jsx("button",{type:"button","aria-current":b?"page":void 0,"aria-label":`Str\xE1nka ${g}`,onClick:()=>o(g),style:{...p,color:b?d.activeText:d.text,backgroundColor:b?d.activeBg:"transparent",fontWeight:b?600:500},onMouseEnter:x=>{b||(x.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:x=>{b||(x.currentTarget.style.backgroundColor="transparent");},children:g},g)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...p,color:e>=t?d.disabledText:d.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:g=>{e<t&&(g.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:u.iconSize,color:e>=t?d.disabledText:d.text})})]})};iu.displayName="Pagination";var du={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)"}},Br=({steps:e,activeStep:t,orientation:o="horizontal",clickable:n=false,onStepClick:r,className:a,style:i})=>{let s=H(),c=du[s],[f,d]=rr.useState(null),u=o==="horizontal",l=32,p=g=>!n||!r?false:n==="completed"?g<=t:true;return jsxRuntime.jsx("div",{className:a,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...i},children:e.map((g,m)=>{let b=m<t,x=m===t,E=m>t,S=m===e.length-1,v=p(m),z=f===m&&v,D=b?c.completedBg:z?c.hoverBg:c.activeBg,I=b?c.completedBg:x||z?c.activeBorder:c.futureBorder,F=b?c.completedText:x||z?c.activeText:c.futureText,h=z?c.activeText:E?c.labelFuture:c.labelText,R=E?c.descFuture:c.descText,B=b?c.lineCompleted:c.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:"flex-start",flex:S?"0 0 auto":"1 1 0",minWidth:0,cursor:v?"pointer":"default"},onClick:()=>v&&r?.(m),onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${I}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:b?jsxRuntime.jsx(react.CheckIcon,{size:14,color:c.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:F,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!S&&jsxRuntime.jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:B,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:B,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:"left",minHeight:u||S?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:x||z?600:500,color:h,lineHeight:"normal",transition:"color 0.2s ease"},children:g.label}),g.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:R,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:g.description})]})]},m)})})};Br.displayName="Stepper";var bu=({size:e=16,color:t})=>{let[o,n]=rr.useState(0),r=rr.useRef(void 0),a=rr.useRef(void 0);return rr.useEffect(()=>{let i=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(i);};return r.current=requestAnimationFrame(i),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},mu={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},xu=({steps:e,activeStep:t,onStepChange:o,orientation:n="horizontal",showNavigation:r=true,finishLabel:a="Dokon\u010Dit",nextLabel:i="Dal\u0161\xED",prevLabel:s="P\u0159edchoz\xED",style:c,className:f})=>{let d=H(),u=mu[d],[l,p]=rr.useState(false),g=t<=0,m=t>=e.length-1,b=Math.max(0,Math.min(t,e.length-1)),x=n==="horizontal",E=e.map(h=>({label:h.label,description:h.description})),S=rr.useCallback(async()=>{if(l)return;let h=e[b];if(h.validate){p(true);try{if(!await h.validate()){p(!1);return}}catch{p(false);return}p(false);}o(b+1);},[l,e,b,o]),v=rr.useCallback(()=>{b>0&&o(b-1);},[b,o]),z=rr.useCallback(h=>{h<b&&o(h);},[b,o]);if(e.length===0)return null;let D={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},I={...D,backgroundColor:l?u.buttonDisabledBg:u.buttonPrimary,color:l?u.buttonDisabledText:u.buttonPrimaryText,border:"1px solid transparent",cursor:l?"not-allowed":"pointer"},F={...D,backgroundColor:u.buttonSecondaryBg,color:u.buttonSecondaryText,border:`1px solid ${u.buttonSecondaryBorder}`};return jsxRuntime.jsxs("div",{className:f,style:{display:"flex",flexDirection:x?"column":"row",gap:x?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...c},children:[jsxRuntime.jsx("div",{style:{flexShrink:0,...x?{}:{width:"240px"}},children:jsxRuntime.jsx(Br,{steps:E,activeStep:b,orientation:n,clickable:"completed",onStepClick:z})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsxRuntime.jsx("div",{style:{flex:1,padding:x?"24px 0":"0"},children:e[b]?.content}),r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${u.navBorder}`,marginTop:"8px"},children:[jsxRuntime.jsx("div",{children:!g&&jsxRuntime.jsxs("button",{type:"button",style:F,onClick:v,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=u.buttonSecondaryHover);},onMouseLeave:h=>{h.currentTarget.style.backgroundColor=u.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.CaretLeft,{size:14}),s]})}),jsxRuntime.jsx("button",{type:"button",style:I,onClick:S,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=u.buttonPrimaryHover);},onMouseLeave:h=>{l||(h.currentTarget.style.backgroundColor=u.buttonPrimary);},children:l?jsxRuntime.jsx(bu,{size:14,color:u.buttonDisabledText}):m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react.Check,{size:14}),a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,jsxRuntime.jsx(react.CaretRight,{size:14})]})})]})]})]})};xu.displayName="FormWizard";var Hi={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"}},Mr=180,yu=({items:e,parentRef:t,itemIndex:o,theme:n,onClose:r})=>{let a=Hi[n],i=rr.useRef(null),[s,c]=rr.useState({top:0,left:0}),[f,d]=rr.useState(-1);return rr.useEffect(()=>{if(!t.current)return;let l=t.current.querySelectorAll('[role="menuitem"]')[o];if(!l)return;let p=l.getBoundingClientRect(),g=i.current?.offsetWidth??180,m=window.innerWidth-p.right-4;c({top:p.top,left:m>=g?p.right+4:p.left-g-4});},[t,o]),reactDom.createPortal(jsxRuntime.jsx("div",{ref:i,role:"menu",style:{position:"fixed",top:s.top,left:s.left,minWidth:"160px",backgroundColor:a.dropdownBg,border:`1px solid ${a.dropdownBorder}`,borderRadius:"12px",boxShadow:a.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:1e5,overflow:"hidden",boxSizing:"border-box",padding:"6px"},onMouseLeave:()=>d(-1),children:e.map((u,l)=>{if(u.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:a.divider,margin:"4px 6px"}},l);if(u.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:a.textDisabled,padding:`${l>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:u.category},l);let p=u.danger,g=u.disabled,m=l===f,b=g?a.textDisabled:p?a.dangerText:a.text,x=p?a.dangerHover:a.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem",style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:b,backgroundColor:m?x:"transparent",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{g||(u.onClick?.(),r());},onMouseEnter:()=>{g||d(l);},children:[u.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:u.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:u.label}),u.shortcut&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:a.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:u.shortcut})]},l)})}),document.body)},vu=({trigger:e,items:t,position:o="bottom-left",triggerOnRightClick:n=false,className:r,style:a})=>{let i=H(),s=Hi[i],c=rr.useRef(null),f=rr.useRef(null),[d,u]=rr.useState(false),[l,p]=rr.useState(false),[g,m]=rr.useState("idle"),[b,x]=rr.useState({top:0,left:0,openAbove:false}),[E,S]=rr.useState(-1),[v,z]=rr.useState(null),D=rr.useRef(void 0),I=rr.useCallback(()=>{u(true),p(true),m("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),F=rr.useCallback(()=>{u(false),m("closing");let C=setTimeout(()=>{p(false),m("idle");},Mr);return ()=>clearTimeout(C)},[]),h=rr.useCallback(()=>{if(!c.current)return;let C=c.current.getBoundingClientRect(),M=f.current?.offsetHeight??200,T=f.current?.offsetWidth??200,k=window.innerHeight-C.bottom-6,w=C.top-6,L=k<M&&w>k,A;o==="bottom-right"?(A=C.right-T,A<4&&(A=4)):(A=C.left,A+T>window.innerWidth-4&&(A=window.innerWidth-T-4)),x({top:L?C.top-6:C.bottom+6,left:A,openAbove:L});},[o]);rr.useEffect(()=>{if(l)return h(),window.addEventListener("scroll",h,true),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h,true),window.removeEventListener("resize",h);}},[l,h]),rr.useEffect(()=>{if(!d)return;let C=M=>{let T=M.target,k=c.current?.contains(T),w=f.current?.contains(T);!k&&!w&&F();};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[d,F]),rr.useEffect(()=>{if(!d)return;let C=t.map((T,k)=>({item:T,idx:k})).filter(({item:T})=>!T.divider&&!T.disabled),M=T=>{switch(T.key){case "Escape":T.preventDefault(),F();break;case "ArrowDown":{T.preventDefault();let k=C.findIndex(({idx:L})=>L===E),w=k<C.length-1?k+1:0;S(C[w]?.idx??-1);break}case "ArrowUp":{T.preventDefault();let k=C.findIndex(({idx:L})=>L===E),w=k>0?k-1:C.length-1;S(C[w]?.idx??-1);break}case "Enter":case " ":if(T.preventDefault(),E>=0){let k=t[E];k&&!k.divider&&!k.disabled&&(k.onClick?.(),F());}break}};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[d,E,t,F]);let R=()=>{let C=b.openAbove,M=C?"translateY(8px)":"translateY(-8px)",T=C?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${Mr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Mr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...k,opacity:0,transform:`${M} scale(0.97)`}:g==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${T} scale(0.98)`,pointerEvents:"none"}},B=l?reactDom.createPortal(jsxRuntime.jsx("div",{ref:f,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:"var(--sm-ui-z-popover, 99999)",overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...R()},children:t.map((C,M)=>{if(C.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${M>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:C.category},M);if(C.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},M);let T=C.danger,k=C.disabled,w=M===E,L=typeof C.label!="string",A=L&&!C.onClick,y=k?s.textDisabled:T?s.dangerText:s.text,P=T?s.dangerHover:s.hoverBg;return A?jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:C.label},M):jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":k,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:y,backgroundColor:w?P:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{if(!k){if(C.subItems){z(v===M?null:M);return}C.onClick?.(),C.keepOpenOnClick||F();}},onMouseEnter:()=>{k||S(M),C.subItems?(D.current&&clearTimeout(D.current),D.current=setTimeout(()=>z(M),300)):(D.current&&clearTimeout(D.current),z(null));},onMouseLeave:()=>{S(-1),C.subItems&&D.current&&clearTimeout(D.current);},children:[C.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:C.icon}),typeof C.label=="string"?jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:C.label}):C.label,C.shortcut&&!C.subItems&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:s.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:C.shortcut}),C.subItems&&jsxRuntime.jsx(react.CaretRight,{size:12,color:s.textDisabled,style:{flexShrink:0,marginLeft:"auto"}}),C.subItems&&v===M&&jsxRuntime.jsx(yu,{items:C.subItems,parentRef:f,itemIndex:M,theme:i,onClose:F})]},M)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:c,onClick:n?void 0:()=>{d?F():I();},onContextMenu:n?C=>{C.preventDefault(),d?F():I();}:void 0,style:{display:"inline-flex",cursor:"pointer"},children:e}),B]})};vu.displayName="DropdownMenu";var ku={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},by=({variant:e="default",icon:t,iconPosition:o="left",showIcon:n=true,children:r,style:a,className:i,onMouseEnter:s,onMouseLeave:c,target:f,rel:d,...u})=>{let l=H(),p=ku[l],[g,m]=rr.useState(false),b=e==="danger"?p.danger:p.default,x={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:g?p.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:b,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},E=n&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:x,className:i,target:f,rel:d??(f==="_blank"?"noopener noreferrer":void 0),onMouseEnter:S=>{m(true),s?.(S);},onMouseLeave:S=>{m(false),c?.(S);},...u,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,E]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[E,r]})})};var Tu={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"}},vn=180,Fu=({open:e,onClose:t,value:o,onChange:n,results:r,loading:a=false,placeholder:i="Hledat...",className:s,style:c})=>{let f=H(),d=Tu[f],[u,l]=rr.useState(false),[p,g]=rr.useState("idle"),[m,b]=rr.useState(-1),x=rr.useRef(null),E=rr.useRef(null);rr.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=r;rr.useEffect(()=>{if(e){l(true),g("opening"),b(-1);let h=setTimeout(()=>{g("open");},10);return ()=>clearTimeout(h)}else if(u){g("closing");let h=setTimeout(()=>{l(false),g("idle");},vn);return ()=>clearTimeout(h)}},[e]),rr.useEffect(()=>{u&&p==="open"&&x.current?.focus();},[u,p]),rr.useEffect(()=>{b(-1);},[r]),rr.useEffect(()=>{if(m<0||!E.current)return;let h=E.current.querySelector(`[data-spotlight-index="${m}"]`);h&&h.scrollIntoView({block:"nearest"});},[m]);let v=rr.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let B=R+1;return B>=S.length?0:B});break}case "ArrowUp":{h.preventDefault(),b(R=>{let B=R-1;return B<0?S.length-1:B});break}case "Enter":{h.preventDefault(),m>=0&&m<S.length&&(S[m].onSelect(),t());break}}},[S,m,t]),z=[],D=new Map;S.forEach((h,R)=>{let B=D.get(h.category);B||(B=[],D.set(h.category,B),z.push({category:h.category,items:B})),B.push({...h,flatIndex:R});});let I=()=>{let h={transition:`opacity ${vn}ms ease`};return p==="opening"||p==="idle"?{...h,opacity:0}:p==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},F=()=>{let h={transition:`opacity ${vn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${vn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return p==="opening"||p==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:p==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return u?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:"var(--sm-ui-z-overlay, 99998)",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...I()},onKeyDown:v,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:d.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:d.cardBg,border:`1px solid ${d.cardBorder}`,borderRadius:"16px",boxShadow:d.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...F(),...c},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${d.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:18,color:d.textSecondary}),jsxRuntime.jsx("input",{ref:x,type:"text",value:o,onChange:h=>n(h.target.value),placeholder:i,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:d.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:d.kbdBg,border:`1px solid ${d.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:d.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:E,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsxRuntime.jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(h=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsxRuntime.jsx(Re,{variant:"rect",width:28,height:28}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsxRuntime.jsx(Re,{variant:"text",width:`${50+h%3*15}%`,height:14}),jsxRuntime.jsx(Re,{variant:"text",width:`${30+h%2*20}%`,height:11})]})]},h))}):z.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):z.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.categoryText,userSelect:"none"},children:h.category}),h.items.map(R=>{let B=R.flatIndex===m;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-spotlight-index":R.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?d.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(R.flatIndex),onMouseLeave:()=>b(-1),children:[R.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?d.activeBg:d.hoverBg,color:d.text,transition:"background-color 0.1s ease"},children:R.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:d.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.label}),R.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:R.description})]})]},R.id)})]},h.category))})]})]}),document.body):null};Fu.displayName="Spotlight";var Du={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"}},kn=180,Iu=({open:e,onClose:t,groups:o,placeholder:n="Zadejte p\u0159\xEDkaz...",style:r,className:a})=>{let i=H(),s=Du[i],[c,f]=rr.useState(false),[d,u]=rr.useState("idle"),[l,p]=rr.useState(""),[g,m]=rr.useState(-1),b=rr.useRef(null),x=rr.useRef(null);rr.useEffect(()=>{let F="sm-commandmenu-scrollbar-hide";if(document.getElementById(F))return;let h=document.createElement("style");h.id=F,h.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(h);},[]);let E=o.map(F=>({...F,items:F.items.filter(h=>h.label.toLowerCase().includes(l.toLowerCase())||h.description?.toLowerCase().includes(l.toLowerCase()))})).filter(F=>F.items.length>0),S=E.flatMap(F=>F.items);rr.useEffect(()=>{if(e){p(""),m(-1),f(true),u("opening");let F=setTimeout(()=>{u("open");},10);return ()=>clearTimeout(F)}else if(c){u("closing");let F=setTimeout(()=>{f(false),u("idle");},kn);return ()=>clearTimeout(F)}},[e]),rr.useEffect(()=>{c&&d==="open"&&b.current?.focus();},[c,d]),rr.useEffect(()=>{m(-1);},[l]),rr.useEffect(()=>{if(g<0||!x.current)return;let F=x.current.querySelector(`[data-cmd-index="${g}"]`);F&&F.scrollIntoView({block:"nearest"});},[g]);let v=rr.useCallback(F=>{switch(F.key){case "Escape":F.preventDefault(),t();break;case "ArrowDown":{F.preventDefault(),m(h=>{let R=h+1;return R>=S.length?0:R});break}case "ArrowUp":{F.preventDefault(),m(h=>{let R=h-1;return R<0?S.length-1:R});break}case "Enter":{F.preventDefault(),g>=0&&g<S.length&&(S[g].onSelect(),t());break}}},[S,g,t]),z=()=>{let F={transition:`opacity ${kn}ms ease`};return d==="opening"||d==="idle"?{...F,opacity:0}:d==="open"?{...F,opacity:1}:{...F,opacity:0,pointerEvents:"none"}},D=()=>{let F={transition:`opacity ${kn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${kn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return d==="opening"||d==="idle"?{...F,opacity:0,transform:"scale(0.95) translateY(-10px)"}:d==="open"?{...F,opacity:1,transform:"scale(1) translateY(0)"}:{...F,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},I=0;return c?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:"var(--sm-ui-z-overlay, 99998)",display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...z()},onKeyDown:v,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor: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",...D(),...r},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsxRuntime.jsx("input",{ref:b,type:"text",value:l,onChange:F=>p(F.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"}}),jsxRuntime.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"})]}),jsxRuntime.jsx("div",{ref:x,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:E.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):E.map(F=>jsxRuntime.jsxs("div",{role:"group","aria-label":F.label,children:[jsxRuntime.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:F.label}),F.items.map(h=>{let R=I++,B=R===g;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-cmd-index":R,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{h.onSelect(),t();},onMouseEnter:()=>m(R),onMouseLeave:()=>m(-1),children:[h.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:h.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label}),h.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:h.description})]}),h.shortcut&&jsxRuntime.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,whiteSpace:"nowrap"},children:h.shortcut})]},h.id)})]},F.label))})]})]}),document.body):null};Iu.displayName="CommandMenu";var Mu={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)"}},Lr=250,Pu=({children:e,collapsed:t=false,onCollapse:o,width:n=260,collapsedWidth:r=64,style:a,className:i})=>{let s=H(),c=Mu[s],f=t?r:n;return jsxRuntime.jsx("aside",{className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:`${f}px`,minWidth:`${f}px`,height:"100%",backgroundColor:c.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${c.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${Lr}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${Lr}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsxRuntime.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 ${Lr}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Pu.displayName="AppSidebar";var $u={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)"}},Wu=({label:e,icon:t,active:o=false,defaultExpanded:n=false,expanded:r,onExpandedChange:a,onClick:i,children:s,collapsed:c=false,disabled:f=false,style:d,className:u})=>{let l=H(),p=$u[l],g=rr__default.default.Children.count(s)>0,m=r!==void 0,[b,x]=rr.useState(n),E=m?r:b,[S,v]=rr.useState(false),z=rr.useRef(null),[D,I]=rr.useState(0);rr.useEffect(()=>{z.current&&I(z.current.scrollHeight);},[s,E]);let F=rr.useCallback(()=>{m?a?.(!r):x(M=>{let T=!M;return a?.(T),T});},[m,r,a]),h=rr.useCallback(()=>{f||(g&&F(),i?.());},[f,g,F,i]),R=f?`${p.text}66`:o?p.textActive:S?p.textHover:p.text,B=f?`${p.icon}66`:o?p.iconActive:S?p.iconHover:p.icon,C=o?p.activeBg:S&&!f?p.hoverBg:"transparent";return c?jsxRuntime.jsx("button",{type:"button",onClick:h,disabled:f,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:C,color:B,cursor:f?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...d},onMouseEnter:()=>v(true),onMouseLeave:()=>v(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:R},children:e[0]})}):jsxRuntime.jsxs("div",{className:u,style:d,children:[jsxRuntime.jsxs("button",{type:"button",onClick:h,disabled:f,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:C,color:R,cursor:f?"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:()=>v(true),onMouseLeave:()=>v(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),g&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:S?p.chevronHover:p.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:E?"rotate(0deg)":"rotate(-90deg)"}})]}),g&&jsxRuntime.jsx("div",{ref:z,style:{overflow:"hidden",maxHeight:E?`${D}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:s})})]})};Wu.displayName="SidebarItem";var Ou={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)"}},Zu=({logo:e,children:t,actions:o,sticky:n=true,glass:r=true,style:a,className:i})=>{let s=H(),c=Ou[s];return jsxRuntime.jsxs("header",{className:i,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:r?c.background:c.backgroundSolid,borderBottom:`1px solid ${c.border}`,boxShadow:c.shadow,boxSizing:"border-box",...r?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...n?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsxRuntime.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&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Zu.displayName="Navbar";var Xu={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"}},ju={info:jsxRuntime.jsx(react.Info,{size:28,color:"currentColor"}),success:jsxRuntime.jsx(react.CheckCircle,{size:28,color:"#00A205"}),error:jsxRuntime.jsx(react.XCircle,{size:28,color:"#DE0000"})},_i=({variant:e="info",title:t,content:o,icon:n,onClose:r,role:a="alert",style:i,className:s})=>{let c=H(),f=Xu[c],{border:d,background:u}=f[e],l=n??ju[e];return jsxRuntime.jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:u,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...i},className:s,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.iconColor},children:l}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:f.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:f.textSecondary,lineHeight:"normal"},children:o})]})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:r,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:f.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var Gi=3,Qu=.06,Xi=12,wn=320,ji=rr.createContext(null),ef=0,tf=()=>`sm-toast-${++ef}-${Date.now()}`,Ky=({children:e,position:t="bottom-right",toastWidth:o=380,gap:n=8,offset:r=16,maxToasts:a=5,duration:i=4e3})=>{let[s,c]=rr.useState([]),f=rr.useCallback(l=>{c(p=>p.map(g=>g.id===l?{...g,lifecycle:"leaving"}:g)),setTimeout(()=>{c(p=>p.filter(g=>g.id!==l));},wn+100);},[]),d=rr.useCallback(l=>{let p=tf(),g=l.duration??i,m={id:p,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:g,lifecycle:"entering",height:0};return c(b=>{let x=[...b,m];return x.length>a?x.slice(x.length-a):x}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c(b=>b.map(x=>x.id===p?{...x,lifecycle:"visible"}:x));});}),g>0&&setTimeout(()=>f(p),g),p},[a,f,i]),u=rr.useCallback((l,p)=>{c(g=>g.map(m=>m.id===l&&m.height!==p?{...m,height:p}:m));},[]);return jsxRuntime.jsxs(ji.Provider,{value:{toast:d,dismiss:f},children:[e,s.length>0&&jsxRuntime.jsx(nf,{toasts:s,position:t,toastWidth:o,gap:n,offset:r,onDismiss:f,onHeightMeasured:u})]})},of=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:n,expanded:r,isBottom:a,appeared:i,toastWidth:s,onDismiss:c,onHeightMeasured:f})=>{let d=t.lifecycle==="leaving",u=!i||d,l=r?1:Math.max(.7,1-o*Qu),p=r?0:o*Xi,g=a?-p:p,b=u?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${g}px)`,x=u?0:r?1:Math.max(.4,1-o*.18),E=!r&&o>=Gi,S=n-o,v=rr.useCallback(z=>{z&&t.height===0&&f(t.id,z.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:v,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:b,opacity:E?0:x,zIndex:S,transition:[`transform ${wn}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${wn}ms ease`].join(", "),pointerEvents:o===0||r?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(_i,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>c(t.id),style:{width:s,maxWidth:"100%",boxSizing:"border-box"}})})},nf=({toasts:e,position:t,toastWidth:o,gap:n,offset:r,onDismiss:a,onHeightMeasured:i})=>{let[s,c]=rr.useState(false),[f,d]=rr.useState(new Set),u=t.startsWith("bottom"),l=t.endsWith("right"),p=t.endsWith("center");rr.useEffect(()=>{d(v=>{let z=new Set(v);return e.forEach(D=>{D.lifecycle==="visible"&&z.add(D.id);}),[...z].forEach(D=>{e.find(I=>I.id===D)||z.delete(D);}),z});},[e]);let b=(e[e.length-1]?.height||80)+Math.min(e.length-1,Gi-1)*Xi,x=e.reduce((v,z)=>v+(z.height||80),0)+Math.max(0,e.length-1)*n,E=s?x:b,S=p?{left:"50%",transform:"translateX(-50%)"}:l?{right:r}:{left:r};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:"var(--sm-ui-z-popover, 99999)",width:o,maxWidth:`calc(100vw - ${r*2}px)`,height:E,...u?{bottom:r}:{top:r},...S,transition:`height ${wn}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>c(true),onMouseLeave:()=>c(false),"aria-live":"polite","aria-atomic":"false",children:e.map((v,z)=>{let D=e.length-1-z,I=f.has(v.id),F=v.lifecycle==="leaving",h=!I||F,R;if(s&&!h){let C=e.slice(z+1).reduce((T,k)=>T+(k.height||80)+n,0);R=`translateY(${u?-C:C}px)`;}return jsxRuntime.jsx(of,{item:v,depthIndex:D,stackSize:e.length,expanded:s,isBottom:u,appeared:I,toastWidth:o,onDismiss:a,onHeightMeasured:i,expandedTransformOverride:R},v.id)})})},Jy=()=>{let e=rr.useContext(ji);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 uf={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)"}},ff={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"}},av=({variant:e="info",title:t,children:o,icon:n,closable:r=false,onClose:a,className:i,style:s})=>{let c=H(),f=uf[c],d=ff[e],[u,l]=rr.useState(true);if(!u)return null;let p=c==="light",g=p?d.borderLight:d.border,m=p?d.backgroundLight:d.background,b=p?d.iconColorLight:d.iconColor,E=n??{info:jsxRuntime.jsx(react.Info,{size:24,color:b}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:b}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:b}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:b})}[e],S=()=>{l(false),a?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${g}`,borderRadius:"4px",boxSizing:"border-box",...s},className:i,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:E}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.descriptionText},children:o})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:S,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var vf={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},Sf={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},kf={info:jsxRuntime.jsx(react.Info,{size:20}),success:jsxRuntime.jsx(react.CheckCircle,{size:20}),warning:jsxRuntime.jsx(react.Warning,{size:20}),error:jsxRuntime.jsx(react.XCircle,{size:20})},Cf=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,actions:i,dismissKey:s,position:c="top",sticky:f=false,style:d,className:u})=>{let l=H(),p=vf[l],g=Sf[e],[m,b]=rr.useState(()=>s&&typeof window<"u"?localStorage.getItem(`banner-dismiss-${s}`)!=="1":true);if(!m||!t&&!o)return null;let x=l==="light",E=x?g.accentLight:g.accent,S=f?p.glassBg:x?g.bgLight:g.bg,v=x?g.iconLight:g.icon,z=a??kf[e],D=()=>{b(false),s&&typeof window<"u"&&localStorage.setItem(`banner-dismiss-${s}`,"1"),r?.();};return jsxRuntime.jsxs("div",{role:"alert",className:u,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:S,borderTop:c==="bottom"?`3px solid ${E}`:"none",borderBottom:c==="top"?`3px solid ${E}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...f?{position:"sticky",[c]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${p.glassBorder}`,borderRight:`1px solid ${p.glassBorder}`}:{},...d},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v,marginTop:"1px"},children:z}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsxRuntime.jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),i&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:i}),n&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:D,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:p.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:I=>{I.currentTarget.style.color=p.closeHover;},onMouseLeave:I=>{I.currentTarget.style.color=p.closeColor;},children:jsxRuntime.jsx(react.X,{size:16})})]})};Cf.displayName="Banner";var Bf={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)"}},Df={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"}},If=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,action:i,style:s,className:c})=>{let f=H(),d=Bf[f],u=Df[e],[l,p]=rr.useState(true);if(!l)return null;let g=f==="light",m=g?u.bgLight:u.bg,b=g?u.accentLight:u.accent,E=a??{info:jsxRuntime.jsx(react.Info,{size:20,color:b}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:b}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:b}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:b})}[e],S=()=>{p(false),r?.();};return jsxRuntime.jsxs("div",{role:"status",className:c,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${d.border}`,borderRadius:"12px",boxSizing:"border-box",...s},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:E}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:d.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:d.bodyText},children:o})]}),i&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:i}),n&&jsxRuntime.jsx("button",{type:"button",onClick:S,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:d.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};If.displayName="Notification";var ts={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},os={default:"#E8612D",success:"#00A205",warning:"#F5A623",danger:"#EF3838"},Mf={xs:{height:4,fontSize:"10px"},sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"}},Qi="sm-ui-progress-stripes",es="sm-ui-progress-indeterminate",Pf=()=>{if(typeof document>"u"||document.getElementById(Qi))return;let e=document.createElement("style");e.id=Qi,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Af=()=>{if(typeof document>"u"||document.getElementById(es))return;let e=document.createElement("style");e.id=es,e.textContent="@keyframes sm-ui-progress-indeterminate { 0% { left: -40%; width: 40%; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 40%; } }",document.head.appendChild(e);};function ns(e,t,o){if(!o||o.length===0)return e;let n=[...o].sort((a,i)=>a.value-i.value),r=e;for(let a of n)t>=a.value&&(r=a.variant);return r}var Sv=({value:e,max:t=100,label:o=false,variant:n="default",thresholds:r,size:a="sm",striped:i=false,animated:s=false,indeterminate:c=false,className:f,style:d})=>{let u=H(),l=ts[u],p=Mf[a],g=t>0?Math.max(0,Math.min(100,e/t*100)):0,m=ns(n,e,r),b=os[m];i&&s&&Pf(),c&&Af();let x=i?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{},E=typeof o=="string"?o:o?`${Math.round(g)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":c?void 0:Math.round(e),"aria-valuemin":0,"aria-valuemax":t,style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",...d},className:f,children:[E&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:l.text,userSelect:"none"},children:E})}),jsxRuntime.jsx("div",{style:{width:"100%",height:p.height,backgroundColor:l.trackBg,borderRadius:p.height/2,overflow:"hidden",position:"relative"},children:c?jsxRuntime.jsx("div",{style:{position:"absolute",height:"100%",backgroundColor:b,borderRadius:p.height/2,animation:"sm-ui-progress-indeterminate 1.5s ease-in-out infinite",...x}}):jsxRuntime.jsx("div",{style:{width:`${g}%`,height:"100%",backgroundColor:b,borderRadius:p.height/2,transition:"width 0.3s ease, background-color 0.3s ease",...x}})})]})},kv=({value:e,max:t=100,variant:o="default",thresholds:n,size:r=48,thickness:a=4,showValue:i=false,valueLabel:s,label:c,className:f,style:d})=>{let u=H(),l=ts[u],p=t>0?Math.max(0,Math.min(100,e/t*100)):0,g=ns(o,e,n),m=os[g],b=(r-a)/2,x=2*Math.PI*b,E=x-p/100*x,S=s?s(e,t):i?`${Math.round(p)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":Math.round(e),"aria-valuemin":0,"aria-valuemax":t,"aria-label":c,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...d},className:f,children:[jsxRuntime.jsxs("div",{style:{position:"relative",width:r,height:r},children:[jsxRuntime.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:b,fill:"none",stroke:l.trackBg,strokeWidth:a}),jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:b,fill:"none",stroke:m,strokeWidth:a,strokeLinecap:"round",strokeDasharray:x,strokeDashoffset:E,style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]}),S!=null&&jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(10,r*.22)}px`,color:l.text,userSelect:"none"},children:S})]}),c&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},children:c})]})};var Nf={sm:16,md:24,lg:40},Fv=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:n,style:r})=>{let[a,i]=rr.useState(0),s=rr.useRef(void 0),c=rr.useRef(void 0);rr.useEffect(()=>{let u=l=>{c.current===void 0&&(c.current=l),i((l-c.current)/800*360%360),s.current=requestAnimationFrame(u);};return s.current=requestAnimationFrame(u),()=>{s.current!==void 0&&cancelAnimationFrame(s.current);}},[]);let f=typeof e=="number"?e:Nf[e]??24,d=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:n,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...r},children:jsxRuntime.jsxs("svg",{width:f,height:f,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:d,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:d,strokeWidth:"2",strokeLinecap:"round"})]})})};var Yf={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"}},is=({open:e,onConfirm:t,onCancel:o,title:n,description:r,confirmLabel:a="Potvrdit",cancelLabel:i="Zru\u0161it",variant:s="default",loading:c=false,style:f,className:d})=>{let u=H(),l=Yf[u],[p,g]=rr.useState(false),[m,b]=rr.useState(false),x=s==="danger",E=x?m?l.dangerHover:l.dangerBg:m?l.confirmHover:l.confirmBg,S=x?l.dangerText:l.confirmText;return jsxRuntime.jsx(Sr,{open:e,onClose:o,title:n,size:"sm",className:d,style:f,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:p?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:i}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:c,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:E,border:"none",borderRadius:"6px",cursor:c?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:S,lineHeight:"normal",opacity:c?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:c?"Zpracov\xE1v\xE1m...":a})]}),children:r&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:r})})};is.displayName="ConfirmDialog";var ss=rr.createContext(null),Pv=({children:e})=>{let[t,o]=rr.useState(null),[n,r]=rr.useState(false),a=rr.useRef(null),i=rr.useCallback(c=>new Promise(f=>{a.current?.(false),a.current=f,o(c),r(true);}),[]),s=rr.useCallback(c=>{r(false),a.current?.(c),a.current=null;},[]);return jsxRuntime.jsxs(ss.Provider,{value:{confirm:i},children:[e,jsxRuntime.jsx(is,{open:n,onConfirm:()=>s(true),onCancel:()=>s(false),title:t?.title??"",description:t?.description,confirmLabel:t?.confirmLabel,cancelLabel:t?.cancelLabel,variant:t?.variant})]})},Av=()=>{let e=rr.useContext(ss);if(!e)throw new Error("[sm-ui] useConfirm() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ConfirmProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ConfirmProvider>.");return e.confirm};var jf={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"}},qf={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"}},Kf=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}},Jf=({text:e,children:t,size:o="md",variant:n="icon",label:r="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:i,style:s,className:c})=>{let f=H(),d=jf[f],u=qf[o],[l,p]=rr.useState(false),[g,m]=rr.useState(false),b=rr.useRef(null),x=rr.useCallback(async()=>{await Kf(e)&&(p(true),i?.(),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{p(false),b.current=null;},2e3));},[e,i]),E=l?d.successColor:g?d.iconHover:d.iconColor,S=l?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":l?a:r,onClick:x,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:c,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:g?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:E,...s},children:t}):n==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":l?a:r,onClick:x,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:c,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:g?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:E,...s},children:jsxRuntime.jsx(S,{size:u.iconSize,color:E})}):jsxRuntime.jsxs("button",{type:"button","aria-label":l?a:r,onClick:x,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:c,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:g?d.buttonHover:d.buttonBg,border:`1px solid ${d.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:l?d.successColor:d.buttonText,lineHeight:"normal",...s},children:[jsxRuntime.jsx(S,{size:u.iconSize,color:l?d.successColor:d.buttonText}),l?a:r]})};Jf.displayName="CopyButton";var eg={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"}},Uv=({orientation:e="horizontal",label:t,className:o,style:n})=>{let r=H(),a=eg[r];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...n}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...n},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...n}})};var og={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},ng={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Xv=({direction:e="column",gap:t=8,align:o="stretch",justify:n="start",wrap:r=false,fullWidth:a=false,children:i,className:s,style:c})=>jsxRuntime.jsx("div",{className:s,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:og[o],justifyContent:ng[n],flexWrap:r?"wrap":"nowrap",width:a?"100%":void 0,...c},children:i});var ag={sm:640,md:768,lg:1024,xl:1280},Kv=({maxWidth:e="lg",padding:t=16,centered:o=true,children:n,className:r,style:a})=>{let i=typeof e=="number"?e:ag[e],s=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:r,style:{maxWidth:`${i}px`,width:"100%",padding:s,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:n})};var pg={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)"}},ps="smDragListPulse",ug=`@keyframes ${ps}{0%,100%{opacity:1}50%{opacity:0.5}}`;function Vr(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let n=Vr(o.children,t);if(n)return n}}return null}function Zr(e,t,o){let n=Vr(e,t);if(!n||!n.children)return false;for(let r of n.children)if(r.id===o||Zr([r],r.id,o))return true;return false}function us(e,t){let o=null;return [e.reduce((r,a)=>{if(a.id===t)return o=a,r;if(a.children){let[i,s]=us(a.children,t);s&&(o=s),r.push({...a,children:i.length>0?i:void 0});}else r.push(a);return r},[]),o]}function Yr(e,t,o,n){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],n],expanded:true}:a.children?{...a,children:Yr(a.children,t,o,n)}:a);let r=[];for(let a of e)a.id===t?o==="before"?(r.push(n),r.push(a)):(r.push(a),r.push(n)):a.children?r.push({...a,children:Yr(a.children,t,o,n)}):r.push(a);return r}function fs(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:fs(o.children,t)}:o)}function gs(e,t,o){return e.map(n=>n.id===t?{...n,expanded:o}:n.children?{...n,children:gs(n.children,t,o)}:n)}var ds=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ps} 1.2s ease-in-out infinite`,width:"100%"},children:jsxRuntime.jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),bs=({item:e,depth:t,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:i,onDragOver:s,onDragLeave:c,onDrop:f,onDragEnd:d,onToggleExpand:u,renderItem:l,dragMode:p,tokens:g})=>{let[m,b]=rr.useState(false),[x,E]=rr.useState(false),[S,v]=rr.useState(false),z=rr.useRef(false),D=rr.useRef(null),I=e.children&&e.children.length>0,F=e.expanded??false,h=r===e.id,R=r!==null,B=p==="handle",C=a?.targetId===e.id,M=C&&a?.position==="before",T=C&&a?.position==="after",k=C&&a?.position==="inside",w=h?"transparent":k?g.nestHighlight:x&&!R?g.itemHoverBg:g.itemBg,L=k?g.nestBorder:h?"transparent":g.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(ds,{color:g.dropIndicator})}),jsxRuntime.jsxs("div",{ref:D,draggable:true,onDragStart:A=>{if(B&&!z.current){A.preventDefault();return}if(z.current=false,A.dataTransfer.effectAllowed="move",A.dataTransfer.setData("text/plain",e.id),D.current){let y=D.current.cloneNode(true);y.style.width=`${D.current.offsetWidth}px`,y.style.opacity="0.85",y.style.transform="rotate(1.5deg) scale(1.02)",y.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",y.style.position="fixed",y.style.top="-1000px",document.body.appendChild(y),A.dataTransfer.setDragImage(y,A.nativeEvent.offsetX,A.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(y));}i(e.id);},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),s(A,e.id,t);},onDragLeave:A=>{let y=A.relatedTarget;D.current&&y&&D.current.contains(y)||(A.stopPropagation(),c(A,D.current),E(false));},onDrop:A=>{A.preventDefault(),A.stopPropagation(),f(A);},onDragEnd:d,onMouseEnter:()=>E(true),onMouseLeave:()=>E(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h?"transparent":g.text,cursor:R?"grabbing":B?"default":"grab",opacity:h?.35:1,backgroundColor:w,borderWidth:"1px",borderColor:L,borderStyle:h?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:k?`inset 0 0 0 1px ${g.nestBorder}`:x&&!R?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:k?"scale(1.01)":"scale(1)"},children:[!l&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:R?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:h?"hidden":"visible"},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),onMouseDown:()=>{z.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:m?g.gripHover:g.gripColor})}),k&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:g.dropIndicator})}),I?jsxRuntime.jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),u(e.id);},onMouseEnter:()=>v(true),onMouseLeave:()=>v(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:h?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:S?g.chevronHover:g.chevron,style:{transition:"transform 0.2s ease",transform:F?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:h?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{z.current=true;},style:{cursor:R?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:h,depth:t,isExpanded:F,toggleExpand:()=>u(e.id),hasChildren:!!I}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsxRuntime.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})]})})]}),T&&jsxRuntime.jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(ds,{color:g.dropIndicator})}),I&&F&&jsxRuntime.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=>jsxRuntime.jsx(bs,{item:A,depth:t+1,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:i,onDragOver:s,onDragLeave:c,onDrop:f,onDragEnd:d,onToggleExpand:u,renderItem:l,dragMode:p,tokens:g},A.id))})]})},fg=({items:e,onReorder:t,renderItem:o,allowNesting:n=false,maxDepth:r=3,dragMode:a="full",className:i,style:s})=>{let c=H(),f=pg[c],[d,u]=rr.useState(null),[l,p]=rr.useState(null),g=rr.useRef(null),m=rr.useRef(void 0),b=rr.useRef(void 0),x=rr.useRef(null),E=rr.useCallback(F=>{u(F);},[]),S=rr.useCallback((F,h,R)=>{if(!d||d===h||Zr(e,d,h))return;m.current&&(clearTimeout(m.current),m.current=void 0);let B=F.currentTarget.getBoundingClientRect(),C=F.clientY-B.top,M=B.height,T;n&&R<r?C<M*.25?T="before":C>M*.75?T="after":T="inside":C<M*.35?T="before":C>M*.65?T="after":x.current?.targetId===h?T=x.current.position:T=C<M/2?"before":"after";let k={targetId:h,position:T},w=Vr(e,h);T==="inside"&&w?.children&&w.children.length>0&&!w.expanded?(x.current?.targetId!==h||x.current?.position!=="inside")&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{t(gs(e,h,true));},600)):b.current&&(clearTimeout(b.current),b.current=void 0),x.current=k,p(k);},[d,e,n,r,t]),v=rr.useCallback((F,h)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{p(null),x.current=null;},60),b.current&&(clearTimeout(b.current),b.current=void 0);},[]),z=rr.useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),!d||!l)return;let{targetId:F,position:h}=l;if(d===F||Zr(e,d,F))return;let[R,B]=us(e,d);if(!B)return;let C=Yr(R,F,h,B);t(C),u(null),p(null),x.current=null;},[d,l,e,t]),D=rr.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),u(null),p(null),x.current=null;},[]),I=rr.useCallback(F=>{t(fs(e,F));},[e,t]);return rr.useEffect(()=>()=>{m.current&&clearTimeout(m.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsxs("div",{ref:g,className:i,style:{display:"flex",flexDirection:"column",gap:"6px",...s},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:ug}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.textSecondary,backgroundColor:f.itemBg,borderRadius:"10px",border:`1px solid ${f.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(F=>jsxRuntime.jsx(bs,{item:F,depth:0,allowNesting:n,maxDepth:r,draggedId:d,dropState:l,onDragStart:E,onDragOver:S,onDragLeave:v,onDrop:z,onDragEnd:D,onToggleExpand:I,renderItem:o,dragMode:a,tokens:f},F.id))]})};fg.displayName="DragList";var xg={dark:{insertionLine:"#FC4F00",dragOverlay:"rgba(24,24,24,0.95)",dragBorder:"rgba(255,255,255,0.12)",dragShadow:"0 8px 30px rgba(0,0,0,0.5)",handleColor:"rgba(255,255,255,0.3)",handleHover:"rgba(255,255,255,0.6)"},light:{insertionLine:"#FC4F00",dragOverlay:"rgba(255,255,255,0.95)",dragBorder:"rgba(0,0,0,0.1)",dragShadow:"0 8px 30px rgba(0,0,0,0.15)",handleColor:"rgba(0,0,0,0.2)",handleHover:"rgba(0,0,0,0.5)"}};function hg({items:e,keyExtractor:t,renderItem:o,onReorder:n,direction:r="vertical",handle:a="whole",disabled:i=false,gap:s,style:c,className:f}){let d=H(),u=xg[d],l=r==="vertical",[p,g]=rr.useState(null),[m,b]=rr.useState(null),[x,E]=rr.useState(null),S=rr.useRef(new Map),v=rr.useRef({x:0,y:0}),z=rr.useCallback((I,F)=>{if(i)return;F.preventDefault();let h="touches"in F?{x:F.touches[0].clientX,y:F.touches[0].clientY}:{x:F.clientX,y:F.clientY};v.current=h,g(I),b(I);},[i]);rr.useEffect(()=>{if(p===null)return;let I=h=>{let R="touches"in h?{x:h.touches[0].clientX,y:h.touches[0].clientY}:{x:h.clientX,y:h.clientY},B=p,C=1/0;S.current.forEach((M,T)=>{let k=M.getBoundingClientRect(),w=l?k.top+k.height/2:k.left+k.width/2,L=l?R.y:R.x,A=Math.abs(L-w);A<C&&(C=A,B=T);}),b(B);},F=()=>{if(p!==null&&m!==null&&p!==m){let h=[...e],[R]=h.splice(p,1);h.splice(m,0,R),n(h);}g(null),b(null);};return document.addEventListener("mousemove",I),document.addEventListener("mouseup",F),document.addEventListener("touchmove",I,{passive:false}),document.addEventListener("touchend",F),()=>{document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",F),document.removeEventListener("touchmove",I),document.removeEventListener("touchend",F);}},[p,m,e,n,l]);let D=rr.useCallback((I,F)=>{if(!i){if(F.key===" "||F.key==="Enter")if(F.preventDefault(),x===null)E(I);else {if(x!==I){let h=[...e],[R]=h.splice(x,1);h.splice(I,0,R),n(h);}E(null);}else if(x!==null){let h=l?F.key==="ArrowDown"?1:F.key==="ArrowUp"?-1:0:F.key==="ArrowRight"?1:F.key==="ArrowLeft"?-1:0;if(h!==0){F.preventDefault();let R=Math.max(0,Math.min(e.length-1,x+h));if(R!==x){let B=[...e],[C]=B.splice(x,1);B.splice(R,0,C),n(B),E(R);}}F.key==="Escape"&&E(null);}}},[i,x,e,n,l]);return jsxRuntime.jsx("div",{className:f,style:{display:"flex",flexDirection:l?"column":"row",gap:s??0,position:"relative",...c},children:e.map((I,F)=>{let h=t(I),R=p===F,B=x===F,C=p!==null&&m===F&&p>F,M=p!==null&&m===F&&p<F,T=a==="explicit"?jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:i?"default":"grab",color:u.handleColor,transition:"color 0.12s ease",touchAction:"none"},onMouseDown:w=>z(F,w),onTouchStart:w=>z(F,w),onMouseEnter:w=>{w.currentTarget.style.color=u.handleHover;},onMouseLeave:w=>{w.currentTarget.style.color=u.handleColor;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:16})}):null,k=a==="whole"?{onMouseDown:w=>z(F,w),onTouchStart:w=>z(F,w),style:{cursor:i?"default":"grab",touchAction:"none"}}:{};return jsxRuntime.jsxs("div",{ref:w=>{w?S.current.set(F,w):S.current.delete(F);},tabIndex:i?-1:0,role:"listitem","aria-grabbed":R||B,onKeyDown:w=>D(F,w),...a==="whole"?k:{},style:{position:"relative",opacity:R?.4:1,outline:B?`2px solid ${u.insertionLine}`:"none",outlineOffset:"2px",borderRadius:"4px",transition:"opacity 0.15s ease",...a==="whole"?k.style:{}},children:[C&&jsxRuntime.jsx("div",{style:{position:"absolute",[l?"top":"left"]:-1,[l?"left":"top"]:0,[l?"right":"bottom"]:0,[l?"height":"width"]:"2px",backgroundColor:u.insertionLine,borderRadius:"1px",zIndex:10}}),o(I,T),M&&jsxRuntime.jsx("div",{style:{position:"absolute",[l?"bottom":"right"]:-1,[l?"left":"top"]:0,[l?"right":"bottom"]:0,[l?"height":"width"]:"2px",backgroundColor:u.insertionLine,borderRadius:"1px",zIndex:10}})]},h)})})}hg.displayName="SortableList";var vg={dark:{dividerBg:"rgba(255,255,255,0.06)",dividerHover:"rgba(255,255,255,0.15)",dividerActive:"#FC4F00"},light:{dividerBg:"rgba(0,0,0,0.06)",dividerHover:"rgba(0,0,0,0.12)",dividerActive:"#FC4F00"}},Sg=({orientation:e="horizontal",children:t,defaultSizes:o,minSizes:n,maxSizes:r,onResize:a,persistKey:i,dividerSize:s=4,disabled:c=false,style:f,className:d})=>{let u=H(),l=vg[u],p=rr.useRef(null),g=rr__default.default.Children.count(t),m=e==="horizontal",b=()=>{if(i&&typeof window<"u"){let B=localStorage.getItem(`splitter-${i}`);if(B)try{let C=JSON.parse(B);if(Array.isArray(C)&&C.length===g)return C}catch{}}return o&&o.length===g?o:Array.from({length:g},()=>100/g)},[x,E]=rr.useState(b),[S,v]=rr.useState(null),[z,D]=rr.useState(null),I=rr.useRef(null);rr.useEffect(()=>{i&&typeof window<"u"&&S===null&&localStorage.setItem(`splitter-${i}`,JSON.stringify(x));},[x,i,S]);let F=rr.useCallback(()=>p.current?m?p.current.clientWidth:p.current.clientHeight:0,[m]),h=rr.useCallback((B,C)=>{c||(v(B),I.current={pos:C,sizes:[...x]});},[c,x]);rr.useEffect(()=>{if(S===null)return;let B=m?"col-resize":"row-resize";document.body.style.cursor=B,document.body.style.userSelect="none";let C=T=>{if(!I.current||S===null)return;let k="touches"in T?T.touches[0][m?"clientX":"clientY"]:T[m?"clientX":"clientY"],w=F();if(!w)return;let A=(k-I.current.pos)/w*100,y=[...I.current.sizes],P=S,N=S+1;y[P]=I.current.sizes[P]+A,y[N]=I.current.sizes[N]-A;let $=w/100;if(n){let O=(n[P]??0)/$,U=(n[N]??0)/$;y[P]<O&&(y[N]+=y[P]-O,y[P]=O),y[N]<U&&(y[P]+=y[N]-U,y[N]=U);}if(r){let O=r[P]?r[P]/$:100,U=r[N]?r[N]/$:100;y[P]>O&&(y[N]+=y[P]-O,y[P]=O),y[N]>U&&(y[P]+=y[N]-U,y[N]=U);}y[P]<0||y[N]<0||(E(y),a&&a(y.map(O=>Math.round(O*$))));},M=()=>{v(null),I.current=null,document.body.style.cursor="",document.body.style.userSelect="";};return document.addEventListener("mousemove",C),document.addEventListener("mouseup",M),document.addEventListener("touchmove",C,{passive:false}),document.addEventListener("touchend",M),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",M),document.body.style.cursor="",document.body.style.userSelect="";}},[S,m,F,n,r,a]);let R=rr__default.default.Children.toArray(t);return jsxRuntime.jsx("div",{ref:p,className:d,style:{display:"flex",flexDirection:m?"row":"column",width:"100%",height:"100%",overflow:"hidden",...f},children:R.map((B,C)=>jsxRuntime.jsxs(rr__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:{flex:`0 0 calc(${x[C]??100/g}% - ${(g-1)*s/g}px)`,overflow:"auto",minWidth:0,minHeight:0},children:B}),C<R.length-1&&jsxRuntime.jsx("div",{style:{flex:`0 0 ${s}px`,backgroundColor:S===C?l.dividerActive:z===C?l.dividerHover:l.dividerBg,cursor:c?"default":m?"col-resize":"row-resize",transition:S===C?"none":"background-color 0.15s ease",touchAction:"none"},onMouseDown:M=>h(C,m?M.clientX:M.clientY),onTouchStart:M=>h(C,m?M.touches[0].clientX:M.touches[0].clientY),onMouseEnter:()=>!c&&D(C),onMouseLeave:()=>D(null)})]},C))})};Sg.displayName="Splitter";exports.Accordion=hd;exports.AccordionItem=xd;exports.Alert=av;exports.AppSidebar=Pu;exports.AreaChart=Ci;exports.Avatar=qd;exports.AvatarStack=ep;exports.Badge=Jm;exports.Banner=Cf;exports.BarChart=wi;exports.Breadcrumb=eu;exports.Button=Ds;exports.CHART_PALETTE=Mo;exports.Calendar=pp;exports.Card=ud;exports.Checkbox=Ra;exports.CheckboxGroup=Ta;exports.ColorPicker=vc;exports.Combobox=Cl;exports.CommandMenu=Iu;exports.ConfirmDialog=is;exports.ConfirmProvider=Pv;exports.Container=Kv;exports.CopyButton=Jf;exports.DataGrid=rd;exports.DataList=mp;exports.DatePicker=Ca;exports.DatePickerGroup=Pl;exports.Divider=Uv;exports.DonutChart=Fi;exports.DragList=fg;exports.Drawer=_p;exports.DropdownMenu=vu;exports.EmptyState=$d;exports.FileUpload=Na;exports.FormField=Us;exports.FormWizard=xu;exports.IconButton=Os;exports.ImageCropper=Xc;exports.Input=sa;exports.InputGroup=Xg;exports.LineChart=ki;exports.Link=by;exports.MobileDataCard=cd;exports.Modal=Sr;exports.Navbar=Zu;exports.Notification=If;exports.NumberInput=ll;exports.OTPInput=Pc;exports.Pagination=iu;exports.PhoneInput=Yc;exports.PieChart=Ti;exports.Popover=Fd;exports.ProgressBar=Sv;exports.ProgressCircle=kv;exports.Radio=$n;exports.RadioGroup=Ea;exports.Rating=Tc;exports.SegmentedControl=uc;exports.Select=fa;exports.SelectGroup=ul;exports.Sheet=Kp;exports.SidebarItem=Wu;exports.Skeleton=Re;exports.Slider=La;exports.SortableList=hg;exports.Sparkline=Ei;exports.Spinner=Fv;exports.Splitter=Sg;exports.Spotlight=Fu;exports.Stack=Xv;exports.Stat=Ud;exports.StatusBadge=Fp;exports.Stepper=Br;exports.Switch=Ba;exports.Tab=Sd;exports.TabPanel=kd;exports.Table=td;exports.Tabs=Cd;exports.Tag=Km;exports.TagItem=Qm;exports.Textarea=Ia;exports.Timeline=gp;exports.Toast=_i;exports.ToasterProvider=Ky;exports.Tooltip=Mt;exports.Tree=Sp;exports.useConfirm=Av;exports.useTheme=H;exports.useToast=Jy;//# sourceMappingURL=index.js.map
19
19
  //# sourceMappingURL=index.js.map