@smworks-cz/ui-kit 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +107 -18
- package/dist/index.d.ts +107 -18
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict';var Bo=require('react'),jsxRuntime=require('react/jsx-runtime'),react=require('@phosphor-icons/react'),reactDom=require('react-dom');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var Bo__default=/*#__PURE__*/_interopDefault(Bo);var I=()=>{let[e,t]=Bo.useState("light");return Bo.useEffect(()=>{if(typeof window>"u")return;let r=()=>{let s=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return s==="dark"||s==="light"?s:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),a=s=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(s.matches?"dark":"light");};o.addEventListener("change",a);let n=new MutationObserver(s=>{s.forEach(l=>{l.attributeName==="data-theme"&&t(r());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",a),n.disconnect();}},[]),e};var ve={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},xa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px"}},ma=({size:e=14})=>{let[t,r]=Bo.useState(0),o=Bo.useRef(void 0),a=Bo.useRef(void 0);return Bo.useEffect(()=>{let n=s=>{a.current===void 0&&(a.current=s),r((s-a.current)/800*360%360),o.current=requestAnimationFrame(n);};return o.current=requestAnimationFrame(n),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),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"})]})},ha=Bo__default.default.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:a=false,fullWidth:n=false,children:s,style:l,className:p,...i},f)=>{let[u,c]=Bo.useState(false),d=I()==="dark",g=typeof i.href=="string",b=a||(g?false:!!i.disabled),k=s!=null&&s!=="",R=r!=null,m=(R||a)&&!k,{paddingText:x,paddingSquare:S,fontSize:D,gap:T}=xa[t],h={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:k&&(R||a)?T:void 0,padding:m?S:x,borderRadius:"8px",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:b?"none":void 0},w=(()=>{switch(e){case "primary":return {backgroundColor:u?ve.primaryHover:ve.primary,color:ve.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?d?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:d?ve.white:ve.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?d?ve.secondaryHoverDark:ve.secondaryHoverLight:"transparent",color:d?ve.white:ve.black,border:`1px solid ${u?d?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":d?ve.borderDark:ve.borderLight}`};case "danger":return {backgroundColor:u?"#FF5252":"#EF3838",color:ve.white,border:"1px solid transparent"}}})(),v=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsxRuntime.jsx(ma,{size:parseInt(D)-1}):r}),C=a||R,z=o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&jsxRuntime.jsx("span",{children:s}),C&&v]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&v,k&&jsxRuntime.jsx("span",{children:s})]}),B={style:{...h,...w,...l},className:p,onMouseEnter:A=>{c(true),i.onMouseEnter?.(A);},onMouseLeave:A=>{c(false),i.onMouseLeave?.(A);}};if(g){let{href:A,target:H,rel:L,...N}=i;return jsxRuntime.jsx("a",{ref:f,href:A,target:H,rel:L??(H==="_blank"?"noopener noreferrer":void 0),"aria-disabled":b||void 0,...N,...B,children:z})}let{disabled:E,type:F="button",...P}=i;return jsxRuntime.jsx("button",{ref:f,type:F,disabled:b,"aria-busy":a||void 0,...P,...B,children:z})});ha.displayName="Button";var Ra=({size:e=16,color:t})=>{let[r,o]=Bo.useState(0),a=Bo.useRef(void 0),n=Bo.useRef(void 0);return Bo.useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Rr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},wa={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},wr=Bo__default.default.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:a,loading:n=false,clearable:s=false,passwordToggle:l,size:p="md",fullWidth:i=false,style:f,className:u,inputStyle:c,disabled:y,required:d,value:g,onChange:b,onFocus:k,onBlur:R,type:m,...x},S)=>{let D=I(),T=Rr[D],h=Bo.useId(),w=x.id??h,[v,C]=Bo.useState(false),[z,B]=Bo.useState(false),E=m==="password",F=l??E,P=E&&z?"text":m,A=y||n,H=!!o,L=typeof o=="string"?o:void 0,N=g!=null&&g!=="",Y=s&&N&&!A&&!F,W=wa[p],q=()=>{if(!b)return;b({target:{value:""},currentTarget:{value:""}});},re=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,K=F&&!A?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>B(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:z?jsxRuntime.jsx(react.EyeSlash,{color:T.placeholder,size:W.iconSize}):jsxRuntime.jsx(react.Eye,{color:T.placeholder,size:W.iconSize})}):null,j=n?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:jsxRuntime.jsx(Ra,{size:W.iconSize,color:T.placeholder})}):K||(Y?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:q,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:W.iconSize-2,color:T.placeholder})}):r==="right"&&re?re:null),Q=r==="left"?re:null,U={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:A?T.backgroundDisabled:T.background,border:`1px solid ${H?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:W.fontSize,lineHeight:"normal",color:T.text,cursor:A?"not-allowed":"text",...c},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},X={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,...f},className:u,children:[e&&jsxRuntime.jsxs("label",{htmlFor:w,style:de,children:[e,d&&jsxRuntime.jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:w,style:U,children:[Q,jsxRuntime.jsx("input",{ref:S,id:w,type:P,disabled:y,required:d,readOnly:n||x.readOnly,value:g,onChange:b,style:me,onFocus:G=>{C(true),k?.(G);},onBlur:G=>{C(false),R?.(G);},...x}),j]}),L&&jsxRuntime.jsx("span",{style:{...X,color:T.borderError},children:L}),!L&&a&&jsxRuntime.jsx("span",{style:{...X,color:T.helperText},children:a})]})});wr.displayName="Input";var Ud=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=Bo.useId(),l=t??s,p={display:"flex",flexDirection:"column",gap:"8px",...o},i={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Rr[n].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:p,className:a,children:[jsxRuntime.jsx("label",{htmlFor:l,style:i,children:e}),r??jsxRuntime.jsx(wr,{id:l})]})};var Pa={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},Ma={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},Aa=Bo__default.default.forwardRef(({value:e,onChange:t,min:r,max:o,step:a=1,label:n,error:s,disabled:l=false,size:p="md",variant:i="default",prefix:f,suffix:u,style:c,className:y},d)=>{let g=I(),b=Pa[g],R=Bo.useId(),m=Ma[p],[x,S]=Bo.useState(false),[D,T]=Bo.useState(null),h=!!s,w=typeof s=="string"?s:void 0,v=Bo.useCallback(Q=>{let U=Q;return r!==void 0&&U<r&&(U=r),o!==void 0&&U>o&&(U=o),U},[r,o]),C=Bo.useCallback(()=>{t(v(e+a));},[e,a,t,v]),z=Bo.useCallback(()=>{t(v(e-a));},[e,a,t,v]),B=Bo.useRef(null),E=Bo.useRef(null),F=Bo.useCallback(Q=>{l||(Q(),E.current=setTimeout(()=>{B.current=setInterval(Q,80);},400));},[l]),P=Bo.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null),B.current&&(clearInterval(B.current),B.current=null);},[]);Bo.useEffect(()=>()=>P(),[P]);let A=Q=>{let U=Q.target.value;if(U===""||U==="-")return;let me=parseFloat(U);isNaN(me)||t(v(me));},H=()=>{S(false),t(v(e));},L=r===void 0||e>r,N=o===void 0||e<o,Y={display:"flex",alignItems:"center",backgroundColor:l?b.backgroundDisabled:b.background,border:`1px solid ${h?b.borderError:x?b.borderFocus:b.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:m.height},W=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:m.buttonPadding,border:"none",background:D===Q&&U&&!l?b.buttonHoverBg:b.buttonBg,color:U&&!l?b.buttonText:b.placeholder,cursor:l||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:m.height,userSelect:"none"}),q={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"normal",color:b.text,textAlign:"center",cursor:l?"not-allowed":"text",MozAppearance:"textfield"},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:m.fontSize,color:b.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},j=(Q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&U&&!l?b.buttonHoverBg:"transparent",color:U&&!l?b.buttonText:b.placeholder,cursor:l||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return i==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:y,children:[n&&jsxRuntime.jsx("label",{htmlFor:R,style:re,children:n}),jsxRuntime.jsxs("div",{style:Y,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:m.padding,minWidth:0},children:[f&&jsxRuntime.jsx("span",{style:K,children:f}),jsxRuntime.jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>S(true),onBlur:H,disabled:l,style:{...q,textAlign:"left"}}),u&&jsxRuntime.jsx("span",{style:K,children:u})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${h?b.borderError:x?b.borderFocus:b.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!N,style:j("up",N),onMouseDown:()=>F(C),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!L,style:j("down",L),onMouseDown:()=>F(z),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),w&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:w})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:y,children:[n&&jsxRuntime.jsx("label",{htmlFor:R,style:re,children:n}),jsxRuntime.jsxs("div",{style:Y,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!L,style:W("minus",L),onMouseDown:()=>F(z),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("minus"),children:jsxRuntime.jsx(react.Minus,{size:m.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsxRuntime.jsx("span",{style:K,children:f}),jsxRuntime.jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:A,onFocus:()=>S(true),onBlur:H,disabled:l,style:q}),u&&jsxRuntime.jsx("span",{style:K,children:u})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!N,style:W("plus",N),onMouseDown:()=>F(C),onMouseUp:P,onMouseLeave:()=>{P(),T(null);},onMouseEnter:()=>T("plus"),children:jsxRuntime.jsx(react.Plus,{size:m.iconSize})})]}),w&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:w})]})});Aa.displayName="NumberInput";var $a=({size:e=16,color:t})=>{let[r,o]=Bo.useState(0),a=Bo.useRef(void 0),n=Bo.useRef(void 0);return Bo.useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},zr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},go=180,Ir=({options:e,value:t,onChange:r,multiple:o=false,searchable:a=false,clearable:n=false,disabled:s=false,loading:l=false,error:p,label:i,placeholder:f="Vyberte\u2026",maxDropdownHeight:u=240,style:c,className:y})=>{let d=I(),g=zr[d],b=Bo.useId(),k=Bo.useRef(null),R=Bo.useRef(null),m=Bo.useRef(null),x=Bo.useRef(null),[S,D]=Bo.useState(false),[T,h]=Bo.useState(false),[w,v]=Bo.useState("idle"),[C,z]=Bo.useState(""),[B,E]=Bo.useState(-1),[F,P]=Bo.useState({top:0,left:0,width:0,openAbove:false}),A=s||l,H=!!p,L=typeof p=="string"?p:void 0,N=Bo.useCallback(()=>{D(true),h(true),v("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>v("open"));});},[]),Y=Bo.useCallback(()=>{D(false),v("closing"),z("");let $=setTimeout(()=>{h(false),v("idle");},go);return ()=>clearTimeout($)},[]),W=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],q=$=>W.includes($),re=C?e.filter($=>($.label??$.value).toLowerCase().includes(C.toLowerCase())):e,K=Bo.useCallback(()=>{if(!k.current)return;let $=k.current.getBoundingClientRect(),te=R.current?.offsetHeight??u+60,oe=window.innerHeight-$.bottom-6,le=$.top-6,Se=oe<te&&le>oe;P({top:Se?$.top-6:$.bottom+6,left:$.left,width:$.width,openAbove:Se});},[u]);Bo.useEffect(()=>{if(T)return K(),window.addEventListener("scroll",K,true),window.addEventListener("resize",K),()=>{window.removeEventListener("scroll",K,true),window.removeEventListener("resize",K);}},[T,K]);let j=Bo.useCallback($=>{if(r)if(o){let te=q($)?W.filter(oe=>oe!==$):[...W,$];r(te);}else r($),Y();},[o,r,W,Y]),Q=Bo.useCallback($=>{$.stopPropagation(),r&&(r(o?[]:null),z(""));},[o,r]),U=()=>{A||(S?Y():N(),E(-1));},me=$=>{if(!A)switch($.key){case "ArrowDown":$.preventDefault(),S?E(te=>Math.min(te+1,re.length-1)):(N(),E(0));break;case "ArrowUp":$.preventDefault(),E(te=>Math.max(te-1,0));break;case "Enter":case " ":$.preventDefault(),S&&B>=0&&re[B]&&!re[B].disabled?j(re[B].value):S||(N(),E(0));break;case "Escape":Y();break;case "Tab":Y();break}};Bo.useEffect(()=>{B>=0&&x.current&&x.current.children[B]?.scrollIntoView({block:"nearest"});},[B]),Bo.useEffect(()=>{if(!S)return;let $=te=>{let oe=te.target,le=k.current?.contains(oe),Se=R.current?.contains(oe);!le&&!Se&&Y();};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[S,Y]),Bo.useEffect(()=>{S&&a&&m.current&&m.current.focus();},[S,a]);let de=$=>e.find(oe=>oe.value===$)?.label??$,X=n&&W.length>0&&!A,G=()=>{let $=F.openAbove,te=$?"translateY(8px)":"translateY(-8px)",oe=$?"translateY(6px)":"translateY(-6px)",le={transition:`opacity ${go}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...le,opacity:0,transform:`${te} scale(0.97)`}:w==="open"?{...le,opacity:1,transform:"translateY(0) scale(1)"}:{...le,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},Pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:A?g.backgroundDisabled:g.background,border:`1px solid ${H?g.borderError:S?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"pointer",userSelect:"none",outline:"none"},Me=T?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:R,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:g.dropdownBg,border:`1px solid ${g.dropdownBorder}`,borderRadius:"12px",boxShadow:d==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:F.openAbove?"bottom center":"top center",...G()},children:[a&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${g.divider}`},children:jsxRuntime.jsx("input",{ref:m,type:"text",value:C,onChange:$=>{z($.target.value),E(0);},onKeyDown:me,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:x,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${b}`,style:{maxHeight:u,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
1
|
+
'use strict';var _o=require('react'),jsxRuntime=require('react/jsx-runtime'),react=require('@phosphor-icons/react'),reactDom=require('react-dom');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var _o__default=/*#__PURE__*/_interopDefault(_o);var I=()=>{let[e,t]=_o.useState("light");return _o.useEffect(()=>{if(typeof window>"u")return;let o=()=>{let c=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return c==="dark"||c==="light"?c:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),a=c=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(c.matches?"dark":"light");};r.addEventListener("change",a);let n=new MutationObserver(c=>{c.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",a),n.disconnect();}},[]),e};var he={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},Fa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},Ea=({size:e=14})=>{let[t,o]=_o.useState(0),r=_o.useRef(void 0),a=_o.useRef(void 0);return _o.useEffect(()=>{let n=c=>{a.current===void 0&&(a.current=c),o((c-a.current)/800*360%360),r.current=requestAnimationFrame(n);};return r.current=requestAnimationFrame(n),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),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"})]})},Da=_o__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:a=false,fullWidth:n=false,children:c,style:i,className:d,...s},f)=>{let[p,l]=_o.useState(false),u=I()==="dark",b=typeof s.href=="string",g=a||(b?false:!!s.disabled),w=c!=null&&c!=="",S=o!=null,v=(S||a)&&!w,{paddingText:x,paddingSquare:C,fontSize:B,gap:E,height:h}=Fa[t],R={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:w&&(S||a)?E:void 0,padding:v?C:x,height:h,borderRadius:"8px",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:B,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:g?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?he.primaryHover:he.primary,color:he.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:`1px solid ${p?u?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":u?he.borderDark:he.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:he.white,border:"1px solid transparent"}}})(),T=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsxRuntime.jsx(Ea,{size:parseInt(B)-1}):o}),z=a||S,M=r==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&jsxRuntime.jsx("span",{children:c}),z&&T]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z&&T,w&&jsxRuntime.jsx("span",{children:c})]}),y={style:{...R,...F,...i},className:d,onMouseEnter:N=>{l(true),s.onMouseEnter?.(N);},onMouseLeave:N=>{l(false),s.onMouseLeave?.(N);}};if(b){let{href:N,target:A,rel:L,...V}=s;return jsxRuntime.jsx("a",{ref:f,href:N,target:A,rel:L??(A==="_blank"?"noopener noreferrer":void 0),"aria-disabled":g||void 0,...V,...y,children:M})}let{disabled:D,type:P="button",...H}=s;return jsxRuntime.jsx("button",{ref:f,type:P,disabled:g,"aria-busy":a||void 0,...H,...y,children:M})});Da.displayName="Button";var Aa=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),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"})]})},Nr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},Ha={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},$r=_o__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:a,loading:n=false,clearable:c=false,passwordToggle:i,size:d="md",fullWidth:s=false,style:f,className:p,inputStyle:l,disabled:m,required:u,value:b,onChange:g,onFocus:w,onBlur:S,type:v,...x},C)=>{let B=I(),E=Nr[B],h=_o.useId(),R=x.id??h,[F,T]=_o.useState(false),[z,M]=_o.useState(false),y=v==="password",D=i??y,P=y&&z?"text":v,H=m||n,N=!!r,A=typeof r=="string"?r:void 0,L=b!=null&&b!=="",V=c&&L&&!H&&!D,O=Ha[d],K=()=>{if(!g)return;g({target:{value:""},currentTarget:{value:""}});},te=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:E.placeholder},children:t}):null,U=D&&!H?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:z?jsxRuntime.jsx(react.EyeSlash,{color:E.placeholder,size:O.iconSize}):jsxRuntime.jsx(react.Eye,{color:E.placeholder,size:O.iconSize})}):null,q=n?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:E.placeholder},children:jsxRuntime.jsx(Aa,{size:O.iconSize,color:E.placeholder})}):U||(V?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:K,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:O.iconSize-2,color:E.placeholder})}):o==="right"&&te?te:null),X=o==="left"?te:null,_={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:H?E.backgroundDisabled:E.background,border:`1px solid ${N?E.borderError:F?E.borderFocus:E.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},ue={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:O.fontSize,lineHeight:"normal",color:E.text,cursor:H?"not-allowed":"text",...l},Q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...f},className:p,children:[e&&jsxRuntime.jsxs("label",{htmlFor:R,style:Q,children:[e,u&&jsxRuntime.jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:R,style:_,children:[X,jsxRuntime.jsx("input",{ref:C,id:R,type:P,disabled:m,required:u,readOnly:n||x.readOnly,value:b,onChange:g,style:ue,onFocus:J=>{T(true),w?.(J);},onBlur:J=>{T(false),S?.(J);},...x}),q]}),A&&jsxRuntime.jsx("span",{style:{...j,color:E.borderError},children:A}),!A&&a&&jsxRuntime.jsx("span",{style:{...j,color:E.helperText},children:a})]})});$r.displayName="Input";var ep=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c,d={display:"flex",flexDirection:"column",gap:"8px",...r},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Nr[n].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:d,className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:s,children:e}),o??jsxRuntime.jsx($r,{id:i})]})};var Va={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},Ua={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},qa=_o__default.default.forwardRef(({value:e,onChange:t,min:o,max:r,step:a=1,label:n,error:c,disabled:i=false,size:d="md",variant:s="default",prefix:f,suffix:p,style:l,className:m},u)=>{let b=I(),g=Va[b],S=_o.useId(),v=Ua[d],[x,C]=_o.useState(false),[B,E]=_o.useState(null),h=!!c,R=typeof c=="string"?c:void 0,F=_o.useCallback(X=>{let _=X;return o!==void 0&&_<o&&(_=o),r!==void 0&&_>r&&(_=r),_},[o,r]),T=_o.useCallback(()=>{t(F(e+a));},[e,a,t,F]),z=_o.useCallback(()=>{t(F(e-a));},[e,a,t,F]),M=_o.useRef(null),y=_o.useRef(null),D=_o.useCallback(X=>{i||(X(),y.current=setTimeout(()=>{M.current=setInterval(X,80);},400));},[i]),P=_o.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);_o.useEffect(()=>()=>P(),[P]);let H=X=>{let _=X.target.value;if(_===""||_==="-")return;let ue=parseFloat(_);isNaN(ue)||t(F(ue));},N=()=>{C(false),t(F(e));},A=o===void 0||e>o,L=r===void 0||e<r,V={display:"flex",alignItems:"center",backgroundColor:i?g.backgroundDisabled:g.background,border:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:v.height},O=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:v.buttonPadding,border:"none",background:B===X&&_&&!i?g.buttonHoverBg:g.buttonBg,color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:v.height,userSelect:"none"}),K={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v.fontSize,lineHeight:"normal",color:g.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},U={fontFamily:"'Zalando Sans', sans-serif",fontSize:v.fontSize,color:g.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},q=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:B===X&&_&&!i?g.buttonHoverBg:"transparent",color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return s==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:m,children:[n&&jsxRuntime.jsx("label",{htmlFor:S,style:te,children:n}),jsxRuntime.jsxs("div",{style:V,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:v.padding,minWidth:0},children:[f&&jsxRuntime.jsx("span",{style:U,children:f}),jsxRuntime.jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:{...K,textAlign:"left"}}),p&&jsxRuntime.jsx("span",{style:U,children:p})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:q("up",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!A,style:q("down",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:m,children:[n&&jsxRuntime.jsx("label",{htmlFor:S,style:te,children:n}),jsxRuntime.jsxs("div",{style:V,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!A,style:O("minus",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("minus"),children: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:[f&&jsxRuntime.jsx("span",{style:U,children:f}),jsxRuntime.jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:K}),p&&jsxRuntime.jsx("span",{style:U,children:p})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:O("plus",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("plus"),children:jsxRuntime.jsx(react.Plus,{size:v.iconSize})})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]})});qa.displayName="NumberInput";var Ka=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),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",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Eo=180,Ur=({options:e,value:t,onChange:o,multiple:r=false,searchable:a=false,clearable:n=false,disabled:c=false,loading:i=false,error:d,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:m})=>{let u=I(),b=Vr[u],g=_o.useId(),w=_o.useRef(null),S=_o.useRef(null),v=_o.useRef(null),x=_o.useRef(null),[C,B]=_o.useState(false),[E,h]=_o.useState(false),[R,F]=_o.useState("idle"),[T,z]=_o.useState(""),[M,y]=_o.useState(-1),[D,P]=_o.useState({top:0,left:0,width:0,openAbove:false}),H=c||i,N=!!d,A=typeof d=="string"?d:void 0,L=_o.useCallback(()=>{B(true),h(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),V=_o.useCallback(()=>{B(false),F("closing"),z("");let W=setTimeout(()=>{h(false),F("idle");},Eo);return ()=>clearTimeout(W)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],K=W=>O.includes(W),te=T?e.filter(W=>(W.label??W.value).toLowerCase().includes(T.toLowerCase())):e,U=_o.useCallback(()=>{if(!w.current)return;let W=w.current.getBoundingClientRect(),ne=S.current?.offsetHeight??p+60,ee=window.innerHeight-W.bottom-6,ie=W.top-6,ye=ee<ne&&ie>ee;P({top:ye?W.top-6:W.bottom+6,left:W.left,width:W.width,openAbove:ye});},[p]);_o.useEffect(()=>{if(E)return U(),window.addEventListener("scroll",U,true),window.addEventListener("resize",U),()=>{window.removeEventListener("scroll",U,true),window.removeEventListener("resize",U);}},[E,U]);let q=_o.useCallback(W=>{if(o)if(r){let ne=K(W)?O.filter(ee=>ee!==W):[...O,W];o(ne);}else o(W),V();},[r,o,O,V]),X=_o.useCallback(W=>{W.stopPropagation(),o&&(o(r?[]:null),z(""));},[r,o]),_=()=>{H||(C?V():L(),y(-1));},ue=W=>{if(!H)switch(W.key){case "ArrowDown":W.preventDefault(),C?y(ne=>Math.min(ne+1,te.length-1)):(L(),y(0));break;case "ArrowUp":W.preventDefault(),y(ne=>Math.max(ne-1,0));break;case "Enter":case " ":W.preventDefault(),C&&M>=0&&te[M]&&!te[M].disabled?q(te[M].value):C||(L(),y(0));break;case "Escape":V();break;case "Tab":V();break}};_o.useEffect(()=>{M>=0&&x.current&&x.current.children[M]?.scrollIntoView({block:"nearest"});},[M]),_o.useEffect(()=>{if(!C)return;let W=ne=>{let ee=ne.target,ie=w.current?.contains(ee),ye=S.current?.contains(ee);!ie&&!ye&&V();};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[C,V]),_o.useEffect(()=>{C&&a&&v.current&&v.current.focus();},[C,a]);let Q=W=>e.find(ee=>ee.value===W)?.label??W,j=n&&O.length>0&&!H,J=()=>{let W=D.openAbove,ne=W?"translateY(8px)":"translateY(-8px)",ee=W?"translateY(6px)":"translateY(-6px)",ie={transition:`opacity ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...ie,opacity:0,transform:`${ne} scale(0.97)`}:R==="open"?{...ie,opacity:1,transform:"translateY(0) scale(1)"}:{...ie,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},ge={display:"flex",alignItems:"center",gap:"10px",backgroundColor:H?b.backgroundDisabled:b.background,border:`1px solid ${N?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"pointer",userSelect:"none",outline:"none"},Re=E?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:S,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:u==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom center":"top center",...J()},children:[a&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${b.divider}`},children:jsxRuntime.jsx("input",{ref:v,type:"text",value:T,onChange:W=>{z(W.target.value),y(0);},onKeyDown:ue,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:x,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${g}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
|
|
2
|
+
.sm-select-list-${g}::-webkit-scrollbar {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${g}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${g}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${b.scrollbarThumb};
|
|
10
10
|
border-radius: 3px;
|
|
11
11
|
}
|
|
12
|
-
`}),re.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),re.map(($,te)=>{let oe=q($.value),le=te===B;return jsxRuntime.jsxs("div",{role:"option","aria-selected":oe,"aria-disabled":$.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:oe?500:400,lineHeight:"normal",color:oe?g.optionSelectedText:$.disabled?g.placeholder:g.text,backgroundColor:le?g.optionHover:oe?g.optionSelected:"transparent",cursor:$.disabled?"not-allowed":"pointer",opacity:$.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:te<re.length-1?"2px":0},onClick:()=>{$.disabled||j($.value);},onMouseEnter:()=>E(te),onMouseLeave:()=>E(-1),children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.label??$.value}),oe&&jsxRuntime.jsx(react.Check,{size:16,color:g.optionSelectedText})]},$.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...c},className:y,children:[i&&jsxRuntime.jsx("label",{htmlFor:b,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.text,userSelect:"none"},children:i}),jsxRuntime.jsxs("div",{ref:k,role:"combobox","aria-expanded":S,"aria-haspopup":"listbox",tabIndex:A?-1:0,style:Pe,onClick:U,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:[W.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:g.placeholder,lineHeight:"normal"},children:f}),o?W.map($=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:g.tagBg,color:g.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de($)}),!A&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:te=>{te.stopPropagation(),j($);},children:jsxRuntime.jsx(react.X,{size:14,color:g.tagText})})]},$)):W.length>0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:g.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:de(W[0])})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[X&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Q,children:jsxRuntime.jsx(react.X,{size:14,color:g.placeholder})}),l?jsxRuntime.jsx($a,{size:16,color:g.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:g.placeholder,style:{transition:"transform 0.2s ease",transform:S?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),L&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:L}),Me]})};Ir.displayName="Select";var Wa=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=Bo.useId(),l=t??s;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsxRuntime.jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:zr[n].label,userSelect:"none"},children:e}),r??jsxRuntime.jsx(Ir,{options:[]})]})};Wa.displayName="SelectGroup";var Ga=({size:e=16,color:t})=>{let[r,o]=Bo.useState(0),a=Bo.useRef(void 0),n=Bo.useRef(void 0);return Bo.useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},_a={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},bo=180,Ka={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Xa=Bo__default.default.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:a="Hledat\u2026",label:n,error:s,disabled:l=false,loading:p=false,allowCustom:i=false,onCreate:f,renderOption:u,notFoundContent:c,footer:y,size:d="md",style:g,className:b},k)=>{let R=I(),m=_a[R],S=Bo.useId(),D=Ka[d],T=Bo.useRef(null),h=Bo.useRef(null),w=Bo.useRef(null),v=Bo.useRef(null),[C,z]=Bo.useState(false),[B,E]=Bo.useState(false),[F,P]=Bo.useState("idle"),[A,H]=Bo.useState(""),[L,N]=Bo.useState(-1),[Y,W]=Bo.useState(false),[q,re]=Bo.useState({top:0,left:0,width:0,openAbove:false}),K=l||p,j=!!s,Q=typeof s=="string"?s:void 0;Bo.useEffect(()=>{if(!Y){let Z=e.find(ee=>ee.value===t);H(Z?Z.label??Z.value:t||"");}},[t,e,Y]);let U=A?e.filter(Z=>(Z.label??Z.value).toLowerCase().includes(A.toLowerCase())):e,me=Bo.useCallback(()=>{z(true),E(true),P("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>P("open"));});},[]),de=Bo.useCallback(()=>{z(false),P("closing");let Z=setTimeout(()=>{E(false),P("idle");},bo);return ()=>clearTimeout(Z)},[]),X=Bo.useCallback(()=>{if(!T.current)return;let Z=T.current.getBoundingClientRect(),ee=w.current?.offsetHeight??240,ue=window.innerHeight-Z.bottom-6,ye=Z.top-6,je=ue<ee&&ye>ue;re({top:je?Z.top-6:Z.bottom+6,left:Z.left,width:Z.width,openAbove:je});},[]);Bo.useEffect(()=>{if(B)return X(),window.addEventListener("scroll",X,true),window.addEventListener("resize",X),()=>{window.removeEventListener("scroll",X,true),window.removeEventListener("resize",X);}},[B,X]),Bo.useEffect(()=>{if(!C)return;let Z=ee=>{let ue=ee.target;if(!T.current?.contains(ue)&&!w.current?.contains(ue)){de();let ye=e.find(je=>je.value===t);i||H(ye?ye.label??ye.value:"");}};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[C,de,t,e,i]),Bo.useEffect(()=>{L>=0&&v.current&&v.current.children[L]?.scrollIntoView({block:"nearest"});},[L]);let G=Z=>{let ee=Z.target.value;H(ee),o?.(ee),N(0),C||me();},Pe=Bo.useCallback(Z=>{r(Z);let ee=e.find(ue=>ue.value===Z);H(ee?ee.label??ee.value:Z),de();},[r,e,de]),Me=Z=>{if(!K)switch(Z.key){case "ArrowDown":Z.preventDefault(),C?N(ee=>Math.min(ee+1,U.length-1)):(me(),N(0));break;case "ArrowUp":Z.preventDefault(),N(ee=>Math.max(ee-1,0));break;case "Enter":Z.preventDefault(),C&&L>=0&&U[L]?Pe(U[L].value):i&&A&&(r(A),f?.(A),de());break;case "Escape":de();break;case "Tab":C&&de();break}},$=()=>{W(true),!C&&!K&&me();},te=()=>{W(false),i&&A&&r(A);},oe=()=>{let Z=q.openAbove,ee=Z?"translateY(8px)":"translateY(-8px)",ue=Z?"translateY(6px)":"translateY(-6px)",ye={transition:`opacity ${bo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${bo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return F==="opening"||F==="idle"?{...ye,opacity:0,transform:`${ee} scale(0.97)`}:F==="open"?{...ye,opacity:1,transform:"translateY(0) scale(1)"}:{...ye,opacity:0,transform:`${ue} scale(0.98)`,pointerEvents:"none"}},le={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:K?m.backgroundDisabled:m.background,border:`1px solid ${j?m.borderError:Y?m.borderFocus:m.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:K?.6:1,cursor:K?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D.fontSize,lineHeight:"normal",color:m.text,cursor:K?"not-allowed":"text"},io={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.label,userSelect:"none"},bt=B?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:w,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:m.dropdownBg,border:`1px solid ${m.dropdownBorder}`,borderRadius:"12px",boxShadow:R==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...oe()},children:[jsxRuntime.jsxs("div",{ref:v,role:"listbox",style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[U.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:m.placeholder,textAlign:"center"},children:i&&A?"Stiskn\u011Bte Enter pro potvrzen\xED":c??"\u017D\xE1dn\xE9 v\xFDsledky"}),U.map((Z,ee)=>{let ue=Z.value===t,ye=ee===L;return jsxRuntime.jsx("div",{role:"option","aria-selected":ue,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ue?500:400,lineHeight:"normal",color:ue?m.optionSelectedText:m.text,backgroundColor:ye?m.optionHover:ue?m.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<U.length-1?"2px":0},onClick:()=>Pe(Z.value),onMouseEnter:()=>N(ee),onMouseLeave:()=>N(-1),children:u?u(Z,ye):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Z.label??Z.value}),ue&&jsxRuntime.jsx(react.Check,{size:16,color:m.optionSelectedText})]})},Z.value)})]}),y&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${m.divider}`,padding:"8px 6px"},children:y})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...g},className:b,children:[n&&jsxRuntime.jsx("label",{htmlFor:S,style:io,children:n}),jsxRuntime.jsxs("div",{ref:T,style:le,onClick:()=>h.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:m.placeholder},children:p?jsxRuntime.jsx(Ga,{size:D.iconSize,color:m.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:D.iconSize,color:m.placeholder})}),jsxRuntime.jsx("input",{ref:Z=>{h.current=Z,typeof k=="function"?k(Z):k&&(k.current=Z);},id:S,type:"text",value:A,onChange:G,onFocus:$,onBlur:te,onKeyDown:Me,placeholder:a,disabled:l,readOnly:p,style:Se}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:jsxRuntime.jsx(react.CaretDown,{size:D.iconSize,color:m.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:m.borderError,lineHeight:"normal"},children:Q}),bt]})});Xa.displayName="Combobox";var ts=({size:e=16,color:t})=>{let[r,o]=Bo.useState(0),a=Bo.useRef(void 0),n=Bo.useRef(void 0);return Bo.useEffect(()=>{let s=l=>{n.current===void 0&&(n.current=l),o((l-n.current)/800*360%360),a.current=requestAnimationFrame(s);};return a.current=requestAnimationFrame(s),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Nr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},xo=180,os={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},rs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Mr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function ns(e,t,r){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-r,a<0&&(a+=7);let n=new Date(e,t,1-a),s=[];for(let l=0;l<42;l++){let p=new Date(n);p.setDate(n.getDate()+l),s.push(p);}return s}function ho(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function Ar(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${ho(e)} ${t}:${r}`}function Ne(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Hr(e,t,r){let o=e.getTime(),a=Math.min(t.getTime(),r.getTime()),n=Math.max(t.getTime(),r.getTime());return o>=a&&o<=n}function as(e){return Ne(e,new Date)}var $r=({mode:e="single",showTime:t=false,value:r,onChange:o,label:a,placeholder:n,error:s,helperText:l,disabled:p=false,loading:i=false,clearable:f=false,size:u="md",fullWidth:c=false,required:y,minDate:d,maxDate:g,firstDayOfWeek:b=1,style:k,className:R})=>{let m=I(),x=Nr[m],S=Bo.useId(),D=os[u],T=Bo.useRef(null),h=Bo.useRef(null),[w,v]=Bo.useState(false),[C,z]=Bo.useState(false),[B,E]=Bo.useState("idle"),[F,P]=Bo.useState({top:0,left:0,width:0,openAbove:false}),[A,H]=Bo.useState(null),L=new Date,[N,Y]=Bo.useState(L.getFullYear()),[W,q]=Bo.useState(L.getMonth()),[re,K]=Bo.useState("days"),[j,Q]=Bo.useState(0),U=p||i,me=!!s,de=typeof s=="string"?s:void 0,X=e==="single"&&r instanceof Date?r:null,G=e==="range"&&Array.isArray(r)?r:[null,null],Pe=e==="single"?X!==null:G[0]!==null||G[1]!==null,Me=f&&Pe&&!U,$=(()=>{if(e==="single")return X?t?Ar(X):ho(X):"";let[M,J]=G;if(!M&&!J)return "";let _=t?Ar:ho;return `${M?_(M):"\u2026"} \u2013 ${J?_(J):"\u2026"}`})(),te=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),oe=Bo.useCallback(()=>{let M=e==="single"?X:G[0];M&&(Y(M.getFullYear()),q(M.getMonth())),K("days"),v(true),z(true),E("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>E("open"));});},[e,X,G]),le=Bo.useCallback(()=>{v(false),E("closing");let M=setTimeout(()=>{z(false),E("idle");},xo);return ()=>clearTimeout(M)},[]),Se=Bo.useCallback(()=>{if(!T.current)return;let M=T.current.getBoundingClientRect(),J=h.current?.offsetHeight??380,_=window.innerHeight-M.bottom-6,V=M.top-6,se=_<J&&V>_;P({top:se?M.top-6:M.bottom+6,left:M.left,width:Math.max(M.width,300),openAbove:se});},[]);Bo.useEffect(()=>{if(C)return Se(),window.addEventListener("scroll",Se,true),window.addEventListener("resize",Se),()=>{window.removeEventListener("scroll",Se,true),window.removeEventListener("resize",Se);}},[C,Se]),Bo.useEffect(()=>{if(!w)return;let M=J=>{let _=J.target,V=T.current?.contains(_),se=h.current?.contains(_);!V&&!se&&le();};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[w,le]);let io=M=>{U||(M.key==="Escape"&&w&&(M.preventDefault(),le()),(M.key==="Enter"||M.key===" ")&&!w&&(M.preventDefault(),oe()));},bt=Bo.useCallback(M=>{if(d){let J=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(M<J)return true}if(g){let J=new Date(g.getFullYear(),g.getMonth(),g.getDate());if(M>J)return true}return false},[d,g]),Z=Bo.useCallback(M=>{if(!bt(M)&&o)if(e==="single")t&&X&&M.setHours(X.getHours(),X.getMinutes()),o(new Date(M)),t||le();else if(j===0)t&&G[0]&&M.setHours(G[0].getHours(),G[0].getMinutes()),o([new Date(M),null]),Q(1);else {let J=G[0];t&&G[1]&&M.setHours(G[1].getHours(),G[1].getMinutes());let[_,V]=M>=J?[J,new Date(M)]:[new Date(M),J];o([_,V]),Q(0),t||le();}},[e,t,X,G,j,o,le,bt]),ee=Bo.useCallback((M,J,_)=>{if(!o)return;let V=parseInt(J,10);if(isNaN(V)&&(V=0),M==="hour"&&(V=Math.max(0,Math.min(23,V))),M==="minute"&&(V=Math.max(0,Math.min(59,V))),e==="single"){let se=X?new Date(X):new Date;M==="hour"?se.setHours(V):se.setMinutes(V),o(se);}else {let se=_??0,be=[G[0]?new Date(G[0]):null,G[1]?new Date(G[1]):null],Ye=be[se]??new Date;M==="hour"?Ye.setHours(V):Ye.setMinutes(V),be[se]=Ye,o(be);}},[e,X,G,o]),ue=()=>{W===0?(q(11),Y(M=>M-1)):q(M=>M-1);},ye=()=>{W===11?(q(0),Y(M=>M+1)):q(M=>M+1);},je=M=>{M.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},aa=()=>{let M=F.openAbove,J=M?"translateY(8px)":"translateY(-8px)",_=M?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${xo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${xo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...V,opacity:0,transform:`${J} scale(0.97)`}:B==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},sa=ns(N,W,b),lo=(M,J)=>{let _=M?M.getHours():0,V=M?M.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${x.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:be=>ee("hour",be.target.value,J),style:se,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:x.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(V).padStart(2,"0"),onChange:be=>ee("minute",be.target.value,J),style:se,maxLength:2,"aria-label":"Minuty"})]})},ia=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Mr.map((M,J)=>{let _=J===W;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{q(J),K("days");},style:{background:_?x.daySelected:"transparent",color:_?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:V=>{_||(V.target.style.backgroundColor=x.dayHover);},onMouseLeave:V=>{_||(V.target.style.backgroundColor="transparent");},children:M},J)})}),la=()=>{let M=Math.floor(N/12)*12,J=Array.from({length:12},(_,V)=>M+V);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>Y(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text},children:[M," \u2013 ",M+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Y(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:J.map(_=>{let V=_===N;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{Y(_),K("months");},style:{background:V?x.daySelected:"transparent",color:V?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:se=>{V||(se.target.style.backgroundColor=x.dayHover);},onMouseLeave:se=>{V||(se.target.style.backgroundColor="transparent");},children:_},_)})})]})},ca=C?reactDom.createPortal(jsxRuntime.jsx("div",{ref:h,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:m==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:F.openAbove?"bottom center":"top center",...aa()},children:re==="years"?la():re==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:N})}),ia()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:ue,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>K("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:Mr[W]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>K("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:N})]}),jsxRuntime.jsx("button",{type:"button",onClick:ye,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:rs.map(M=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:x.placeholder,padding:"4px 0",userSelect:"none"},children:M},M))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:sa.map((M,J)=>{let _=M.getMonth()!==W,V=bt(M),se=as(M),be=false,Ye=false,co=false,Ht=false;if(e==="single"&&X)be=Ne(M,X);else if(e==="range"){let[Ae,Nt]=G;Ae&&Ne(M,Ae)&&(Ye=true,be=true),Nt&&Ne(M,Nt)&&(co=true,be=true),Ae&&Nt&&Hr(M,Ae,Nt)&&!Ye&&!co&&(Ht=true),j===1&&Ae&&A&&!V&&(Ne(M,A)&&!Ne(M,Ae)&&(be=true),Hr(M,Ae,A)&&!Ne(M,Ae)&&!Ne(M,A)&&(Ht=true));}let po="transparent",Lt=x.text;return be?(po=x.daySelected,Lt=x.daySelectedText):Ht&&(po=x.dayRangeMiddle),_&&(Lt=be?x.daySelectedText:x.dayOutside),V&&(Lt=x.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:V,onClick:()=>Z(M),onMouseEnter:()=>{V||H(M);},onMouseLeave:()=>H(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:po,color:Lt,border:"none",borderRadius:Ye?"6px 0 0 6px":co?"0 6px 6px 0":Ht?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:be?600:400,cursor:V?"not-allowed":"pointer",opacity:V?.4:1,transition:"background-color 0.1s ease",outline:se&&!be?`1.5px solid ${x.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:M.getDate()},J)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${x.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"\u010Cas:"}),lo(X)]}):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:"12px",color:x.placeholder},children:"Od:"}),lo(G[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Do:"}),lo(G[1],1)]})]})})]})}),document.body):null,da={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:U?x.backgroundDisabled:x.background,border:`1px solid ${me?x.borderError:w?x.borderFocus:x.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},pa={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},hr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...k},className:R,children:[a&&jsxRuntime.jsxs("label",{htmlFor:S,style:pa,children:[a,y&&jsxRuntime.jsx("span",{style:{color:x.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:T,role:"button",tabIndex:U?-1:0,style:da,onClick:()=>{U||(w?le():oe());},onKeyDown:io,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:x.text,lineHeight:"normal"},children:$}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:x.placeholder,lineHeight:"normal"},children:te})}),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:je,children:jsxRuntime.jsx(react.X,{size:D.iconSize-2,color:x.placeholder})}),i?jsxRuntime.jsx(ts,{size:D.iconSize,color:x.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:D.iconSize,color:x.placeholder})]})]}),de&&jsxRuntime.jsx("span",{style:{...hr,color:x.borderError},children:de}),!de&&l&&jsxRuntime.jsx("span",{style:{...hr,color:x.helperText},children:l}),ca]})};$r.displayName="DatePicker";var ss=({label:e,htmlFor:t,children:r,style:o,className:a})=>{let n=I(),s=Bo.useId(),l=t??s;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:a,children:[jsxRuntime.jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Nr[n].label,userSelect:"none"},children:e}),r??jsxRuntime.jsx($r,{})]})};ss.displayName="DatePickerGroup";var Wr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},ds={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Zr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:a,size:n="md",indeterminate:s=false,className:l,style:p})=>{let i=I(),f=Wr[i],u=ds[n],c=Bo.useId(),y=Bo.useRef(null),d=!!a,g=typeof a=="string"?a:void 0;Bo.useEffect(()=>{y.current&&(y.current.indeterminate=s);},[s]);let b=()=>{o||t?.(!e);},k=d?f.borderError:e||s?f.checkBg:f.border,R=e||s?f.checkBg:o?f.backgroundDisabled:f.background,m={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${k}`,backgroundColor:R,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...p},className:l,children:[jsxRuntime.jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:o?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),b();},children:[jsxRuntime.jsx("input",{ref:y,id:c,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":d||void 0}),jsxRuntime.jsxs("span",{style:m,children:[e&&!s&&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:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),s&&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:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),r&&jsxRuntime.jsx("span",{style:x,children:r})]}),g&&jsxRuntime.jsx("span",{style:{...S,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:g})]})};Zr.displayName="Checkbox";var Or=({label:e,children:t,error:r,className:o,style:a})=>{let n=I(),s=Wr[n],l=typeof r=="string"?r:void 0,p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},i={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:o,children:[e&&jsxRuntime.jsx("span",{style:p,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),l&&jsxRuntime.jsx("span",{style:{...i,color:s.borderError},children:l})]})};Or.displayName="CheckboxGroup";var Yr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},fs={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},yo=({value:e,checked:t=false,onChange:r,label:o,disabled:a=false,size:n="md",className:s,style:l})=>{let p=I(),i=Yr[p],f=fs[n],u=Bo.useId(),c=()=>{a||r?.(e);},y=t?i.dotRing:i.border,d=a?i.backgroundDisabled:i.background,g={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${y}`,backgroundColor:d,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:i.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...l},className:s,children:jsxRuntime.jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:k=>{k.preventDefault(),c();},children:[jsxRuntime.jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:a,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:g,children:t&&jsxRuntime.jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:i.dot,transition:"transform 0.15s ease"}})}),o&&jsxRuntime.jsx("span",{style:b,children:o})]})})};yo.displayName="Radio";var Vr=({value:e,onChange:t,label:r,options:o,direction:a="vertical",error:n,helperText:s,size:l="md",className:p,style:i})=>{let f=I(),u=Yr[f],c=!!n,y=typeof n=="string"?n:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":c||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...i},className:p,children:[r&&jsxRuntime.jsx("span",{style:d,children:r}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:o.map(b=>jsxRuntime.jsx(yo,{value:b.value,label:b.label,checked:e===b.value,onChange:t,disabled:b.disabled,size:l},b.value))}),y&&jsxRuntime.jsx("span",{style:{...g,color:u.borderError},children:y}),!y&&s&&jsxRuntime.jsx("span",{style:{...g,color:u.helperText},children:s})]})};Vr.displayName="RadioGroup";var gs={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},bs={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},qr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:a="md",className:n,style:s})=>{let l=I(),p=gs[l],i=bs[a],f=Bo.useId(),u=()=>{o||t?.(!e);},c=1.5,y=2,g=i.trackW-c*2-i.thumb-y,b=e?g:0,k={width:i.trackW,height:i.trackH,borderRadius:i.trackH/2,backgroundColor:e?p.trackOn:p.trackOff,border:`${c}px solid ${e?p.trackOnBorder:p.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},R={width:i.thumb,height:i.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:y,transform:`translateY(-50%) translateX(${b}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:i.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${i.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:n,children:jsxRuntime.jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:i.gap,cursor:o?"not-allowed":"pointer"},onClick:x=>{x.preventDefault(),u();},children:[jsxRuntime.jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:k,children:jsxRuntime.jsx("span",{style:R})}),r&&jsxRuntime.jsx("span",{style:m,children:r})]})})};qr.displayName="Switch";var ks={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Cs={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},_r=Bo__default.default.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:a=false,size:n="md",fullWidth:s=false,required:l,rows:p=4,maxLength:i,resize:f="vertical",autoHeight:u=false,minRows:c,maxRows:y,className:d,style:g,value:b,onChange:k,onFocus:R,onBlur:m,...x},S)=>{let D=I(),T=ks[D],h=Cs[n],w=Bo.useId(),v=x.id??w,[C,z]=Bo.useState(false),B=Bo.useRef(null),E=Bo.useCallback(()=>{let j=B.current;if(!j||!u)return;j.style.height="auto";let Q=getComputedStyle(j),U=parseFloat(Q.lineHeight)||parseFloat(Q.fontSize)*1.5,me=parseFloat(Q.paddingTop)||0,de=parseFloat(Q.paddingBottom)||0,X=me+de,Pe=U*(c??1)+X,Me=y?U*y+X:1/0,$=Math.min(Math.max(j.scrollHeight,Pe),Me);j.style.height=`${$}px`,j.style.overflowY=j.scrollHeight>Me?"auto":"hidden";},[u,c,y]);Bo.useEffect(()=>{E();},[b,E]);let F=Bo.useCallback(j=>{B.current=j,typeof S=="function"?S(j):S&&(S.current=j);},[S]),P=u?"none":f,A=u?c??1:p,H=o||a,L=!!t,N=typeof t=="string"?t:void 0,Y=typeof b=="string"?b.length:0,W={backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${L?T.borderError:C?T.borderFocus:T.border}`,borderRadius:"8px",padding:h.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"1.5",color:T.text,cursor:H?"not-allowed":"text",resize:P,boxSizing:"border-box",overflow:u?"hidden":void 0},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...g},className:d,children:[e&&jsxRuntime.jsxs("label",{htmlFor:v,style:re,children:[e,l&&jsxRuntime.jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:W,children:jsxRuntime.jsx("textarea",{ref:F,id:v,rows:A,maxLength:i,disabled:o,required:l,readOnly:a||x.readOnly,value:b,onChange:k,style:q,onFocus:j=>{z(true),R?.(j);},onBlur:j=>{z(false),m?.(j);},...x})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[N&&jsxRuntime.jsx("span",{style:{...K,color:T.borderError},children:N}),!N&&r&&jsxRuntime.jsx("span",{style:{...K,color:T.helperText},children:r})]}),i!==void 0&&jsxRuntime.jsxs("span",{style:{...K,color:Y>i?T.borderError:T.counter,flexShrink:0},children:[Y,"/",i]})]})]})});_r.displayName="Textarea";var ws={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},Ts={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function jr(e,t,r){return Math.min(Math.max(e,t),r)}function Fs(e,t,r){return Math.round((e-t)/r)*r+t}var Jr=({value:e,onChange:t,min:r=0,max:o=100,step:a=1,label:n,disabled:s=false,showValue:l=false,range:p=false,size:i="md",className:f,style:u})=>{let c=I(),y=ws[c],d=Ts[i],g=Bo.useId(),b=Bo.useRef(null),k=Bo.useRef(null),R=p?e:[r,e],m=C=>(C-r)/(o-r)*100,x=m(R[0]),S=m(R[1]),D=Bo.useCallback(C=>{let z=b.current;if(!z)return r;let B=z.getBoundingClientRect(),E=jr((C-B.left)/B.width,0,1),F=r+E*(o-r);return jr(Fs(F,r,a),r,o)},[r,o,a]),T=Bo.useCallback(C=>{if(s)return;C.preventDefault();let z=D(C.clientX);if(p){let F=e,P=Math.abs(z-F[0]),A=Math.abs(z-F[1]),H=P<=A?"start":"end";k.current=H;let L=H==="start"?[Math.min(z,F[1]),F[1]]:[F[0],Math.max(z,F[0])];t?.(L);}else k.current="end",t?.(z);let B=F=>{let P=D(F.clientX);if(p){let A=e;k.current==="start"?t?.([Math.min(P,A[1]),A[1]]):t?.([A[0],Math.max(P,A[0])]);}else t?.(P);},E=()=>{k.current=null,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",E);};document.addEventListener("mousemove",B),document.addEventListener("mouseup",E);},[s,D,t,p,e]),h={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},w=p?`${R[0]} \u2013 ${R[1]}`:`${e}`,v={width:d.thumb,height:d.thumb,borderRadius:"50%",backgroundColor:y.thumb,border:`2px solid ${y.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:s?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:s?.5:1,...u},className:f,children:[(n||l)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsxRuntime.jsx("label",{htmlFor:g,style:h,children:n}),l&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:y.text,userSelect:"none"},children:w})]}),jsxRuntime.jsxs("div",{ref:b,role:"slider",id:g,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":s||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:d.thumb,cursor:s?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:y.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${p?x:0}%`,width:`${S-(p?x:0)}%`,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:y.trackFill}}),p&&jsxRuntime.jsx("span",{style:{...v,left:`${x}%`}}),jsxRuntime.jsx("span",{style:{...v,left:`${S}%`}})]})]})};Jr.displayName="Slider";var Bs={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Ro(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Ps=0,en=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:a,disabled:n=false,label:s,helperText:l,error:p,buttonStyle:i="default",showFileList:f=true,className:u,style:c})=>{let y=I(),d=Bs[y],g=Bo.useId(),b=Bo.useRef(null),[k,R]=Bo.useState(false),[m,x]=Bo.useState([]),[S,D]=Bo.useState(null),T=!!p||!!S,h=typeof p=="string"?p:S??void 0,w=Bo.useCallback(F=>{let P=Array.from(F);if(D(null),a){let L=P.find(N=>N.size>a);if(L){D(`Soubor \u201E${L.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ro(a)}.`);return}}let A=P.map(L=>({file:L,id:`file-${++Ps}`})),H=o?[...m,...A]:A;x(H),t?.(H.map(L=>L.file));},[m,a,o,t]),v=Bo.useCallback(F=>{F.preventDefault(),R(false),!n&&F.dataTransfer.files.length>0&&w(F.dataTransfer.files);},[n,w]),C=Bo.useCallback(F=>{let P=m.filter(A=>A.id!==F);x(P),t?.(P.map(A=>A.file));},[m,t]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},B={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${T?d.borderError:k?d.borderDrag:d.border}`,borderRadius:"8px",backgroundColor:k?d.backgroundDrag:n?d.backgroundDisabled:d.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},E={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...c},className:u,children:[s&&jsxRuntime.jsx("span",{style:z,children:s}),jsxRuntime.jsx("input",{ref:b,id:g,type:"file",accept:r,multiple:o,disabled:n,onChange:F=>{F.target.files&&F.target.files.length>0&&w(F.target.files),F.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:B,onClick:()=>!n&&b.current?.click(),onDragOver:F=>{F.preventDefault(),n||R(true);},onDragLeave:()=>R(false),onDrop:v,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:d.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):i==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&b.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:F=>{n||(F.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.length===0?"Nahr\xE1t soubor":m.length===1?m[0].file.name:`${m.length} soubor\u016F`})]}):jsxRuntime.jsxs("div",{onClick:()=>!n&&b.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${T?d.borderError:d.border}`,backgroundColor:n?d.backgroundDisabled:d.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:F=>{n||(F.currentTarget.style.borderColor=T?d.borderError:y==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:F=>{F.currentTarget.style.borderColor=T?d.borderError:d.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:m.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:d.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:d.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:m.length>0?d.text:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.length===0?"Vyberte soubor...":m.length===1?m[0].file.name:`${m.length} soubor\u016F`}),m.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(m[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:d.textSecondary})})]}),f&&m.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:m.map(F=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:d.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:d.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:F.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.textSecondary,flexShrink:0},children:Ro(F.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${F.file.name}`,onClick:P=>{P.stopPropagation(),C(F.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&C(F.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:d.removeColor})})]},F.id))}),h&&jsxRuntime.jsx("span",{style:{...E,color:d.borderError},children:h}),!h&&l&&jsxRuntime.jsx("span",{style:{...E,color:d.helperText},children:l})]})};en.displayName="FileUpload";var Hs={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ls={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ns=({data:e,value:t,onChange:r,size:o="md",fullWidth:a=false,orientation:n="horizontal",disabled:s=false,className:l,style:p})=>{let i=I(),f=Hs[i],u=Ls[o],c=n==="vertical",y=e.map(x=>typeof x=="string"?{value:x,label:x}:x),d=y.findIndex(x=>x.value===t),g=Bo.useRef(null),b=Bo.useRef([]),[k,R]=Bo.useState({offset:0,size:0}),m=Bo.useCallback(()=>{let x=g.current,S=b.current[d];if(!x||!S||d<0)return;let D=x.getBoundingClientRect(),T=S.getBoundingClientRect();R(c?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[d,c]);return Bo.useEffect(()=>{m();},[m,t,e,o]),Bo.useEffect(()=>(window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[m]),jsxRuntime.jsxs("div",{ref:g,role:"radiogroup",className:l,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:c?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:s?.5:1,cursor:s?"not-allowed":void 0,...p},children:[d>=0&&k.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...c?{left:u.padding,right:u.padding,top:k.offset,height:k.size}:{top:u.padding,bottom:u.padding,left:k.offset,width:k.size}}}),y.map((x,S)=>{let D=x.value===t,T=s||x.disabled;return jsxRuntime.jsx("button",{ref:h=>{b.current[S]=h;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(x.value);},style:{position:"relative",zIndex:1,flex:a?1:void 0,padding:u.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:u.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:D?500:400,color:T?f.textDisabled:D?f.textActive:f.text,cursor:T?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:h=>{!T&&!D&&(h.currentTarget.style.color=f.textHover);},onMouseLeave:h=>{!T&&!D&&(h.currentTarget.style.color=f.text);},children:x.label??x.value},x.value)})]})};Ns.displayName="SegmentedControl";var Ys={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},Fo=180,Vs=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Eo=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Us=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},qs=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+a*114)/1e3>150},Gs=({value:e,onChange:t,presets:r=Vs,label:o,disabled:a=false,style:n,className:s})=>{let l=I(),p=Ys[l],f=Bo.useId(),u=Bo.useRef(null),c=Bo.useRef(null),[y,d]=Bo.useState(false),[g,b]=Bo.useState(false),[k,R]=Bo.useState("idle"),[m,x]=Bo.useState(e),[S,D]=Bo.useState(false),[T,h]=Bo.useState({top:0,left:0,openAbove:false});Bo.useEffect(()=>{S||x(e);},[e,S]);let w=Bo.useCallback(()=>{a||(d(true),b(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));}));},[a]),v=Bo.useCallback(()=>{d(false),R("closing");let N=setTimeout(()=>{b(false),R("idle");},Fo);return ()=>clearTimeout(N)},[]),C=Bo.useCallback(()=>{if(!u.current)return;let N=u.current.getBoundingClientRect(),Y=220,W=window.innerHeight-N.bottom-8,q=W<Y&&N.top>W;h({top:q?N.top-8:N.bottom+8,left:N.left,openAbove:q});},[]);Bo.useEffect(()=>{if(g)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[g,C]),Bo.useEffect(()=>{if(!y)return;let N=Y=>{let W=Y.target;!u.current?.contains(W)&&!c.current?.contains(W)&&v();};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[y,v]);let z=N=>{let Y=Us(N.target.value);x(Y),Eo(Y)&&t(Y);},B=()=>{D(false),Eo(m)?t(m):x(e);},E=N=>{t(N),x(N),v();},F=()=>{let N=T.openAbove,Y=N?"translateY(8px)":"translateY(-8px)",W=N?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${Fo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Fo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return k==="opening"||k==="idle"?{...q,opacity:0,transform:`${Y} scale(0.97)`}:k==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},P={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?p.backgroundDisabled:p.background,border:`1px solid ${S?p.borderFocus:p.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},A={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Eo(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},H={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},L=g?reactDom.createPortal(jsxRuntime.jsx("div",{ref:c,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},backgroundColor:p.popoverBg,border:`1px solid ${p.popoverBorder}`,borderRadius:"12px",boxShadow:l==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom left":"top left",...F()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((N,Y)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${N}`,onClick:()=>E(N),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:N,border:N===e?"2px solid #FC4F00":`1px solid ${p.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:W=>{W.currentTarget.style.transform="scale(1.1)";},onMouseLeave:W=>{W.currentTarget.style.transform="scale(1)";}},`${N}-${Y}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:s,children:[o&&jsxRuntime.jsx("label",{htmlFor:f,style:H,children:o}),jsxRuntime.jsxs("div",{ref:u,style:P,children:[jsxRuntime.jsx("div",{style:A,onClick:()=>{a||(y?v():w());}}),jsxRuntime.jsx("input",{id:f,type:"text",value:m,onChange:z,onFocus:()=>D(true),onBlur:B,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:p.text,cursor:a?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(y?v():w());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(qs(e)&&l==="light",p.placeholder)})})]}),L]})};Gs.displayName="ColorPicker";var js={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},Js={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Qs=({value:e,onChange:t,max:r=5,size:o="md",readOnly:a=false,label:n,style:s,className:l})=>{let p=I(),i=js[p],f=Bo.useId(),u=Js[o],[c,y]=Bo.useState(null),d=!a&&!!t,g=Bo.useCallback(x=>{d&&t(x+1);},[d,t]),b=Bo.useCallback(x=>{d&&y(x);},[d]),k=Bo.useCallback(()=>{y(null);},[]),R={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},m=Array.from({length:r},(x,S)=>{let D=c!==null?c+1:e,T=S<D,h=c!==null&&S<=c;return jsxRuntime.jsx("span",{role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":d?`Hodnocen\xED ${S+1} z ${r}`:void 0,onClick:()=>g(S),onMouseEnter:()=>b(S),onMouseLeave:k,onKeyDown:w=>{d&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(S));},style:{display:"inline-flex",cursor:d?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:h?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:u.starSize,weight:T?"fill":"regular",color:T?h?i.starHover:i.starFilled:i.starEmpty})},S)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:l,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsxRuntime.jsx("label",{htmlFor:f,style:R,children:n}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:k,children:m})]})};Qs.displayName="Rating";var si={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},ii=({length:e=6,value:t,onChange:r,error:o,disabled:a=false,autoFocus:n=false,label:s,separatorAfter:l,separator:p="-",style:i,className:f})=>{let u=I(),c=si[u],y=Bo.useId(),d=Bo.useRef([]),[g,b]=Bo.useState(null),k=!!o,R=typeof o=="string"?o:void 0,m=t.padEnd(e,"").slice(0,e).split("");Bo.useEffect(()=>{n&&d.current[0]&&d.current[0].focus();},[n]);let x=Bo.useCallback(E=>{E>=0&&E<e&&d.current[E]?.focus();},[e]),S=Bo.useCallback(E=>{let F=E.join("").replace(/[^0-9]/g,"");r(F);},[r]),D=Bo.useCallback((E,F)=>{if(!/^[0-9]$/.test(F))return;let P=[...m];P[E]=F,S(P),E<e-1&&x(E+1);},[m,e,S,x]),T=Bo.useCallback((E,F)=>{switch(F.key){case "Backspace":if(F.preventDefault(),m[E]){let P=[...m];P[E]="",S(P);}else if(E>0){let P=[...m];P[E-1]="",S(P),x(E-1);}break;case "Delete":F.preventDefault();{let P=[...m];P[E]="",S(P);}break;case "ArrowLeft":F.preventDefault(),E>0&&x(E-1);break;case "ArrowRight":F.preventDefault(),E<e-1&&x(E+1);break}},[m,e,S,x]),h=Bo.useCallback((E,F)=>{let A=F.target.value.slice(-1);A&&/^[0-9]$/.test(A)&&D(E,A);},[D]),w=Bo.useCallback(E=>{E.preventDefault();let F=E.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!F)return;let P=[...m];for(let H=0;H<F.length;H++)P[H]=F[H];S(P);let A=Math.min(F.length,e-1);x(A);},[m,e,S,x]),v=Bo.useCallback(E=>{b(E),d.current[E]?.select();},[]),C=Bo.useCallback(()=>{b(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},B=E=>{let F=g===E,P=!!m[E];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:c.text,textAlign:"center",backgroundColor:a?c.backgroundDisabled:P?c.backgroundFilled:c.background,border:`1px solid ${k?c.borderError:F?c.borderFocus:P?c.borderFilled:c.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:c.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:f,children:[s&&jsxRuntime.jsx("label",{htmlFor:`${y}-0`,style:z,children:s}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:w,children:Array.from({length:e},(E,F)=>jsxRuntime.jsxs(Bo__default.default.Fragment,{children:[l&&F>0&&F%l===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:c.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:p}),jsxRuntime.jsx("input",{ref:P=>{d.current[F]=P;},id:`${y}-${F}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:m[F]||"",onChange:P=>h(F,P),onKeyDown:P=>T(F,P),onFocus:()=>v(F),onBlur:C,disabled:a,"aria-label":`\u010C\xEDslice ${F+1} z ${e}`,style:B(F)})]},F))}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:c.borderError,lineHeight:"normal"},children:R})]})};ii.displayName="OTPInput";var li={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},cn="smSkeletonShimmer",ci=`@keyframes ${cn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,nt=({variant:e="text",width:t,height:r,lines:o=1,animate:a=true,className:n,style:s})=>{let l=I(),p=li[l],i=t??(e==="circle"?40:"100%"),f=r??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:p.base,backgroundImage:a?`linear-gradient(90deg, ${p.base} 25%, ${p.shimmer} 50%, ${p.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${cn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof i=="number"?`${i}px`:i,height:typeof f=="number"?`${f}px`:f},c=a?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:ci}}):null;return e==="text"&&o>1?jsxRuntime.jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...s},children:[c,Array.from({length:o}).map((y,d)=>jsxRuntime.jsx("div",{style:{...u,width:d===o-1?"75%":u.width}},d))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[c,jsxRuntime.jsx("div",{className:n,style:{...u,...s}})]})};nt.displayName="Skeleton";var fi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ui=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:s,striped:l=false,hoverable:p=true,className:i,style:f})=>{let u=I(),c=fi[u],y=R=>{if(!R.sortable||!a)return;let m=n===R.key&&s==="asc"?"desc":"asc";a(R.key,m);},d={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",overflow:"hidden",...f},g=R=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",cursor:R.sortable?"pointer":"default",userSelect:"none",width:R.width!=null?typeof R.width=="number"?`${R.width}px`:R.width:void 0}),b={padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:i,style:d,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.map(R=>jsxRuntime.jsx("th",{style:g(R),onClick:()=>y(R),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[R.header,R.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:n===R.key?c.sortActive:c.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},R.key))})}),jsxRuntime.jsx("tbody",{children:r?Array.from({length:5}).map((R,m)=>jsxRuntime.jsx("tr",{children:e.map(x=>jsxRuntime.jsx("td",{style:b,children:jsxRuntime.jsx(nt,{variant:"text",width:"80%"})},x.key))},`skel-${m}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...b,textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:o})}):t.map((R,m)=>jsxRuntime.jsx("tr",{style:{backgroundColor:l&&m%2===1?c.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:x=>{p&&(x.currentTarget.style.backgroundColor=c.rowHover);},onMouseLeave:x=>{p&&(x.currentTarget.style.backgroundColor=l&&m%2===1?c.stripedBg:"transparent");},children:e.map(x=>jsxRuntime.jsx("td",{style:{...b,borderBottom:m===t.length-1?"none":b.borderBottom},children:x.render?x.render(R[x.key],R,m):R[x.key]},x.key))},m))})]})};ui.displayName="Table";var bi={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},un=({checked:e,indeterminate:t,onChange:r,t:o})=>{let a=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),r();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:a?o.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&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:o.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:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},xi=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:a=false,rowKey:n="id",onRowClick:s,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:i,className:f})=>{let u=I(),c=bi[u],[y,d]=Bo.useState(new Set),[g,b]=Bo.useState(null),k=Bo.useMemo(()=>t.map(z=>String(z[n])),[t,n]),R=k.length>0&&k.every(z=>y.has(z)),m=k.some(z=>y.has(z))&&!R,x=Bo.useCallback(()=>{let z=R?new Set:new Set(k);d(z),o?.(Array.from(z));},[R,k,o]),S=Bo.useCallback(z=>{d(B=>{let E=new Set(B);return E.has(z)?E.delete(z):E.add(z),o?.(Array.from(E)),E});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,backgroundColor:c.background},T=z=>({padding:"12px 16px",textAlign:z.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.textSecondary,backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,whiteSpace:"nowrap",userSelect:"none",width:z.width!=null?typeof z.width=="number"?`${z.width}px`:z.width:void 0,minWidth:z.minWidth!=null?`${z.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),h=z=>({padding:"10px 16px",borderBottom:`1px solid ${c.border}`,lineHeight:"normal",textAlign:z.align||"left"}),w={padding:"12px 12px 12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`,width:"40px",...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},v={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${c.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:f,style:{overflow:l?"auto":"hidden",borderRadius:"12px",border:`1px solid ${c.border}`,...i},children:jsxRuntime.jsxs("table",{style:D,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("th",{style:w,children:jsxRuntime.jsx(un,{checked:R,indeterminate:m,onChange:x,t:c})}),e.map(z=>jsxRuntime.jsx("th",{style:T(z),children:z.header},z.key))]})}),jsxRuntime.jsx("tbody",{children:a?Array.from({length:5}).map((z,B)=>jsxRuntime.jsxs("tr",{children:[r&&jsxRuntime.jsx("td",{style:v,children:jsxRuntime.jsx(nt,{variant:"rect",width:16,height:16})}),e.map(E=>jsxRuntime.jsx("td",{style:h(E),children:jsxRuntime.jsx(nt,{variant:"text",width:"80%"})},E.key))]},`skel-${B}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(r?1:0),style:{textAlign:"center",padding:"32px 16px",color:c.textSecondary,borderBottom:"none"},children:p})}):t.map((z,B)=>{let E=String(z[n]),F=y.has(E),P=g===E,A=B===t.length-1,H="transparent";return F?H=c.selectedRowBg:P&&(H=c.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:H,cursor:s?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>b(E),onMouseLeave:()=>b(null),onClick:()=>s?.(z),children:[r&&jsxRuntime.jsx("td",{style:{...v,borderBottom:A?"none":v.borderBottom},children:jsxRuntime.jsx(un,{checked:F,onChange:()=>S(E),t:c})}),e.map(L=>jsxRuntime.jsx("td",{style:{...h(L),borderBottom:A?"none":h(L).borderBottom},children:L.render?L.render(z[L.key],z,B):z[L.key]},L.key))]},E)})})]})})};xi.displayName="DataGrid";var mi={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},hi={none:"0",sm:"12px",md:"20px",lg:"28px"},yi=({title:e,subtitle:t,header:r,footer:o,children:a,hoverable:n=false,bordered:s=true,padding:l="md",className:p,style:i})=>{let f=I(),u=mi[f],c=hi[l],y={backgroundColor:u.background,border:s?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:n?"pointer":void 0,...i},d=r??(e||t?jsxRuntime.jsxs("div",{style:{padding:c,paddingBottom:a||o?"0":c},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:p,style:y,onMouseEnter:g=>{n&&(g.currentTarget.style.borderColor=u.borderHover,g.currentTarget.style.transform="translateY(-2px)",g.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:g=>{n&&(g.currentTarget.style.borderColor=s?u.border:"transparent",g.currentTarget.style.transform="translateY(0)",g.currentTarget.style.boxShadow="none");},children:[d,a&&jsxRuntime.jsx("div",{style:{padding:c},children:a}),o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsxRuntime.jsx("div",{style:{padding:c},children:o})]})]})};yi.displayName="Card";var xn={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},Ri=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:a,_open:n,_onToggle:s})=>{let l=I(),p=xn[l],[i,f]=Bo.useState(r),u=a?!!n:i,c=Bo.useRef(null),[y,d]=Bo.useState(0);Bo.useEffect(()=>{c.current&&d(c.current.scrollHeight);},[t,u]);let g=Bo.useCallback(()=>{o||(a&&s?s():f(b=>!b));},[o,a,s]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:o,onClick:g,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?p.textDisabled:p.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:b=>{o||(b.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:o?p.chevronDisabled:p.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:c,style:{overflow:"hidden",maxHeight:u?`${y}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:p.textSecondary},children:t})})]})};Ri.displayName="AccordionItem";var wi=({children:e,multiple:t=false,className:r,style:o})=>{let a=I(),n=xn[a],s=Bo__default.default.Children.toArray(e).filter(f=>Bo__default.default.isValidElement(f)),[l,p]=Bo.useState(()=>{let f=new Set;return s.forEach((u,c)=>{u.props.defaultOpen&&f.add(c);}),f}),i=Bo.useCallback(f=>{p(u=>{let c=new Set(u);return c.has(f)?c.delete(f):(t||c.clear(),c.add(f)),c});},[t]);return jsxRuntime.jsx("div",{className:r,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...o},children:s.map((f,u)=>Bo__default.default.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>i(u)}))})};wi.displayName="Accordion";var Ti={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Fi={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ei=()=>null;Ei.displayName="Tab";var Di=()=>null;Di.displayName="TabPanel";var zi=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:a=false,size:n="md",className:s,style:l})=>{let p=I(),i=Ti[p],f=Fi[n],u=Bo__default.default.Children.toArray(r),c=u.filter(g=>Bo__default.default.isValidElement(g)&&g.type?.displayName==="Tab"),d=u.filter(g=>Bo__default.default.isValidElement(g)&&g.type?.displayName==="TabPanel").find(g=>g.props.value===e);return jsxRuntime.jsxs("div",{className:s,style:l,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${i.border}`:"none"},children:c.map(g=>{let b=g.props.value===e,k=g.props.disabled,R=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:b?500:400,color:k?i.textDisabled:b?i.text:i.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${b?i.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:k?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:b?500:400,color:k?i.textDisabled:b?i.pillText:i.textInactive,backgroundColor:b?i.pillBg:i.pillInactiveBg,border:"none",borderRadius:"8px",cursor:k?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:k,style:R,onClick:()=>{k||t(g.props.value);},onMouseEnter:m=>{!k&&!b&&(m.currentTarget.style.backgroundColor=i.hoverBg);},onMouseLeave:m=>{k||(m.currentTarget.style.backgroundColor=o==="pills"&&b?i.pillBg:"transparent");},children:[g.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:g.props.icon}),g.props.label]},g.props.value)})}),d&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:d.props.children})]})};zi.displayName="Tabs";var Pi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Mi=({content:e,children:t,position:r="top",delay:o=200,className:a,style:n})=>{let s=I(),l=Pi[s],[p,i]=Bo.useState(false),[f,u]=Bo.useState({top:0,left:0}),c=Bo.useRef(null),y=Bo.useRef(null),d=Bo.useRef(void 0),g=6,b=8,k=Bo.useCallback(()=>{let D=c.current,T=y.current;if(!D||!T)return;let h=D.getBoundingClientRect(),w=T.getBoundingClientRect(),v=0,C=0;switch(r){case "top":v=h.top-w.height-b,C=h.left+h.width/2-w.width/2;break;case "bottom":v=h.bottom+b,C=h.left+h.width/2-w.width/2;break;case "left":v=h.top+h.height/2-w.height/2,C=h.left-w.width-b;break;case "right":v=h.top+h.height/2-w.height/2,C=h.right+b;break}u({top:v,left:C});},[r]);Bo.useEffect(()=>{p&&requestAnimationFrame(k);},[p,k]);let R=Bo.useCallback(()=>{d.current=setTimeout(()=>i(true),o);},[o]),m=Bo.useCallback(()=>{d.current&&clearTimeout(d.current),i(false);},[]);Bo.useEffect(()=>()=>{d.current&&clearTimeout(d.current);},[]);let x=(()=>{let D={position:"absolute",width:0,height:0,border:`${g}px solid transparent`};switch(r){case "top":return {...D,bottom:-g,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-g,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-g,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-g,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),S=p?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:y,className:a,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:l.background,color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...n},children:[e,jsxRuntime.jsx("div",{style:x})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Bo__default.default.cloneElement(t,{ref:c,onMouseEnter:D=>{R(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{m(),t.props.onMouseLeave?.(D);}}),S]})};Mi.displayName="Tooltip";var $i={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},$o=180,qt=8,Wi=({content:e,children:t,position:r="bottom",trigger:o="click",className:a,style:n})=>{let s=I(),l=$i[s],[p,i]=Bo.useState(false),[f,u]=Bo.useState(false),[c,y]=Bo.useState("idle"),[d,g]=Bo.useState({top:0,left:0}),b=Bo.useRef(null),k=Bo.useRef(null),R=Bo.useRef(void 0),m=Bo.useCallback(()=>{i(true),u(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[]),x=Bo.useCallback(()=>{i(false),y("closing");let C=setTimeout(()=>{u(false),y("idle");},$o);return ()=>clearTimeout(C)},[]),S=Bo.useCallback(()=>{let C=b.current,z=k.current;if(!C||!z)return;let B=C.getBoundingClientRect(),E=z.getBoundingClientRect(),F=0,P=0;switch(r){case "top":F=B.top-E.height-qt,P=B.left+B.width/2-E.width/2;break;case "bottom":F=B.bottom+qt,P=B.left+B.width/2-E.width/2;break;case "left":F=B.top+B.height/2-E.height/2,P=B.left-E.width-qt;break;case "right":F=B.top+B.height/2-E.height/2,P=B.right+qt;break}g({top:F,left:P});},[r]);Bo.useEffect(()=>{if(f)return requestAnimationFrame(S),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[f,S]),Bo.useEffect(()=>{if(!p)return;let C=z=>{let B=z.target;!b.current?.contains(B)&&!k.current?.contains(B)&&x();};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[p,x]),Bo.useEffect(()=>{if(!p)return;let C=z=>{z.key==="Escape"&&x();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[p,x]);let D=()=>{let C={transition:`opacity ${$o}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${$o}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},B=r==="top"||r==="bottom"?"Y":"X";return c==="opening"||c==="idle"?{...C,opacity:0,transform:`translate${B}(${z[r]}) scale(0.97)`}:c==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`translate${B}(${z[r]}) scale(0.98)`,pointerEvents:"none"}},T=Bo.useCallback(()=>{o==="click"&&(p?x():m());},[o,p,x,m]),h=Bo.useCallback(()=>{o==="hover"&&(R.current&&clearTimeout(R.current),p||m());},[o,p,m]),w=Bo.useCallback(()=>{o==="hover"&&(R.current=setTimeout(()=>{x();},150));},[o,x]);Bo.useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]);let v=f?reactDom.createPortal(jsxRuntime.jsx("div",{ref:k,className:a,onMouseEnter:()=>{o==="hover"&&R.current&&clearTimeout(R.current);},onMouseLeave:w,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"16px",backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...n},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Bo__default.default.cloneElement(t,{ref:b,onClick:C=>{T(),t.props.onClick?.(C);},onMouseEnter:C=>{h(),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{w(),t.props.onMouseLeave?.(C);}}),v]})};Wi.displayName="Popover";var Vi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Ui=({icon:e,title:t,description:r,action:o,className:a,style:n})=>{let s=I(),l=Vi[s];return jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsxRuntime.jsx("div",{style:{fontSize:"48px",lineHeight:1,color:l.iconColor,marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:l.text},children:t}),r&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:l.textSecondary,maxWidth:"360px"},children:r}),o&&jsxRuntime.jsx("div",{style:{marginTop:"8px"},children:o})]})};Ui.displayName="EmptyState";var Ki={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},Xi=({label:e,value:t,change:r,changeLabel:o,icon:a,trend:n="neutral",className:s,style:l})=>{let p=I(),i=Ki[p],f=n==="up"?i.trendUp:n==="down"?i.trendDown:i.trendNeutral,u=c=>`${c>0?"+":""}${c.toFixed(1)} %`;return jsxRuntime.jsxs("div",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",padding:"16px 20px",...l},children:[a&&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:a}),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}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:i.text},children:t}),r!==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:f},children:[n==="up"&&jsxRuntime.jsx(react.TrendUpIcon,{size:14,color:f}),n==="down"&&jsxRuntime.jsx(react.TrendDownIcon,{size:14,color:f}),jsxRuntime.jsx("span",{children:u(r)}),o&&jsxRuntime.jsx("span",{style:{color:i.label,marginLeft:"2px"},children:o})]})]})]})};Xi.displayName="Stat";var ji=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],yu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:a,"aria-label":n})=>{let s=ji(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(s*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:l,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:p,children:e.toUpperCase()})})};var kn={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Zo=({onClick:e,title:t,color:r,children:o})=>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:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),Ru=({label:e,onRemove:t,style:r,className:o})=>{let a=kn[I()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.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:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},wu=({label:e,style:t,className:r})=>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:r,children:e}),Tu=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:a=true,style:n,className:s})=>{let l=kn[I()],p=t||r||o;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:l.itemBg,border:`1px solid ${l.itemBorder}`,borderRadius:"8px",...n},className:s,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:l.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),a&&p&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(Zo,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),r&&jsxRuntime.jsx(Zo,{onClick:r,title:"Upravit",color:l.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(Zo,{onClick:o,title:"Smazat",color:l.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var rl={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)"}},nl=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Kt=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],Yo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Uo=e=>{let t=new Date(e),r=t.getDay(),o=(r===0?-6:1)-r;return t.setDate(t.getDate()+o),t.setHours(0,0,0,0),t},al=(e,t)=>{let r=new Date(e,t,1),o=Uo(r),a=[],n=new Date(o);for(let s=0;s<42;s++)a.push(new Date(n)),n.setDate(n.getDate()+1);return a},sl=e=>{let t=Uo(e),r=[];for(let o=0;o<7;o++){let a=new Date(t);a.setDate(t.getDate()+o),r.push(a);}return r},il=(e,t,r)=>{if(t){let o=new Date(t);if(o.setHours(0,0,0,0),e<o)return true}if(r){let o=new Date(r);if(o.setHours(23,59,59,999),e>o)return true}return false},ll=({value:e,onChange:t,view:r="month",events:o=[],minDate:a,maxDate:n,style:s,className:l})=>{let p=I(),i=rl[p],f=Bo.useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,c]=Bo.useState(()=>e?e.getMonth():f.getMonth()),[y,d]=Bo.useState(()=>e?e.getFullYear():f.getFullYear()),[g,b]=Bo.useState(()=>Uo(e||f)),[k,R]=Bo.useState(null),m=Bo.useMemo(()=>r==="week"?sl(g):al(y,u),[r,y,u,g]),x=Bo.useCallback(()=>{r==="week"?b(v=>{let C=new Date(v);return C.setDate(C.getDate()-7),C}):c(v=>v===0?(d(C=>C-1),11):v-1);},[r]),S=Bo.useCallback(()=>{r==="week"?b(v=>{let C=new Date(v);return C.setDate(C.getDate()+7),C}):c(v=>v===11?(d(C=>C+1),0):v+1);},[r]),D=v=>o.filter(C=>Yo(C.date,v)),T=r==="week"?(()=>{let v=new Date(g);return v.setDate(v.getDate()+6),g.getMonth()===v.getMonth()?`${g.getDate()}. \u2013 ${v.getDate()}. ${Kt[v.getMonth()]} ${v.getFullYear()}`:`${g.getDate()}. ${Kt[g.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${Kt[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${Kt[u]} ${y}`,h={backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,overflow:"hidden",userSelect:"none",...s},w={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:i.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:l,style:h,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`},children:[jsxRuntime.jsx("button",{style:w,onClick:x,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeftIcon,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsxRuntime.jsx("button",{style:w,onClick:S,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRightIcon,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:nl.map(v=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.textMuted,padding:"6px 0 8px"},children:v},v))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:m.map((v,C)=>{let z=Yo(v,f),B=e?Yo(v,e):false,E=r==="month"&&v.getMonth()!==u,F=il(v,a,n),P=v.toISOString(),A=k===P,H=D(v),L="transparent",N=E?i.outsideText:i.text,Y="2px solid transparent";return B?(L=i.selectedBg,N=i.selectedText):z?(L=i.todayBg,Y=`2px solid ${i.todayBorder}`):A&&!F&&(L=i.hover),F&&(N=i.textMuted),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:Y,background:L,color:N,fontSize:"13px",fontWeight:z?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:F?"default":"pointer",opacity:F?.4:1,transition:"background-color 0.12s ease"},disabled:F,onClick:()=>{!F&&t&&t(v);},onMouseEnter:()=>!F&&R(P),onMouseLeave:()=>R(null),children:v.getDate()}),H.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:H.slice(0,3).map((W,q)=>jsxRuntime.jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||i.eventDot}},q))})]},C)})})]})};ll.displayName="Calendar";var cl={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},dl=({items:e,orientation:t="vertical",style:r,className:o})=>{let a=I(),n=cl[a];return t==="horizontal"?jsxRuntime.jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...r},children:e.map((s,l)=>{let p=l===e.length-1,i=s.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:p?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[l>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),l===0&&jsxRuntime.jsx("div",{style:{flex:1}}),s.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:i,flexShrink:0},children:s.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${i}`,backgroundColor:n.dotBg,flexShrink:0}}),!p&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),p&&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:s.title}),s.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:s.description})]})]},l)})}):jsxRuntime.jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...r},children:e.map((s,l)=>{let p=l===e.length-1,i=s.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:s.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[s.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:i,flexShrink:0},children:s.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${i}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!p&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:s.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:s.title}),s.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:s.date})]}),s.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:s.description})]})]},l)})})};dl.displayName="Timeline";var pl={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},fl=({items:e,columns:t=1,striped:r=false,style:o,className:a})=>{let n=I(),s=pl[n],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},i=y=>l<=1?y:Math.floor(y/l),f=y=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${s.border}`,backgroundColor:r&&i(y)%2===1?s.stripedBg:s.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:s.textMuted,flexShrink:0,letterSpacing:"0.01em"},c={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:a,style:p,children:e.map((y,d)=>jsxRuntime.jsxs("div",{style:f(d),children:[jsxRuntime.jsx("span",{style:u,children:y.label}),jsxRuntime.jsx("span",{style:c,children:y.value})]},d))})};fl.displayName="DataList";var xl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Tn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:s})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),i=o===e.id,[f,u]=Bo.useState(false),c="transparent";return i?c=s.selectedBg:f&&(c=s.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:c,borderLeft:i?`2px solid ${s.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>n?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:y=>{y.stopPropagation(),l&&a(e.id);},children:l&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:p?s.iconExpanded:s.iconColor,style:{transform:p?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:i?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:i?500:400,color:i?s.selectedText:s.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),l&&p&&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:s.line}}),e.children.map(y=>jsxRuntime.jsx(Tn,{node:y,depth:t+1,expanded:r,selectedId:o,onToggle:a,onSelect:n,t:s},y.id))]})]})},ml=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:a,className:n})=>{let s=I(),l=xl[s],[p,i]=Bo.useState(()=>new Set(o)),f=Bo.useCallback(c=>{i(y=>{let d=new Set(y);return d.has(c)?d.delete(c):d.add(c),d});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,...a};return jsxRuntime.jsx("div",{className:n,style:u,role:"tree",children:e.map(c=>jsxRuntime.jsx(Tn,{node:c,depth:0,expanded:p,selectedId:r,onToggle:f,onSelect:t,t:l},c.id))})};ml.displayName="Tree";var yl={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},vl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Sl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},_o=false,kl=()=>{if(_o||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){_o=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
12
|
+
`}),te.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((W,ne)=>{let ee=K(W.value),ie=ne===M;return jsxRuntime.jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":W.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ee?500:400,lineHeight:"normal",color:ee?b.optionSelectedText:W.disabled?b.placeholder:b.text,backgroundColor:ie?b.optionHover:ee?b.optionSelected:"transparent",cursor:W.disabled?"not-allowed":"pointer",opacity:W.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ne<te.length-1?"2px":0},onClick:()=>{W.disabled||q(W.value);},onMouseEnter:()=>y(ne),onMouseLeave:()=>y(-1),children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.label??W.value}),ee&&jsxRuntime.jsx(react.Check,{size:16,color:b.optionSelectedText})]},W.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:m,children:[s&&jsxRuntime.jsx("label",{htmlFor:g,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.text,userSelect:"none"},children:s}),jsxRuntime.jsxs("div",{ref:w,role:"combobox","aria-expanded":C,"aria-haspopup":"listbox",tabIndex:H?-1:0,style:ge,onClick:_,onKeyDown:ue,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[O.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:b.placeholder,lineHeight:"normal"},children:f}),r?O.map(W=>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:Q(W)}),!H&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ne=>{ne.stopPropagation(),q(W);},children:jsxRuntime.jsx(react.X,{size:14,color:b.tagText})})]},W)):O.length>0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:b.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q(O[0])})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&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})}),i?jsxRuntime.jsx(Ka,{size:16,color:b.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:b.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),A&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:A}),Re]})};Ur.displayName="Select";var ja=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[n].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Ur,{options:[]})]})};ja.displayName="SelectGroup";var ns=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),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"})]})},as={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Do=180,ss={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},is=_o__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:a="Hledat\u2026",label:n,error:c,disabled:i=false,loading:d=false,multiple:s=false,clearable:f=false,onOpenChange:p,onSelect:l,onDeselect:m,onClear:u,onFocus:b,onBlur:g,allowCustom:w=false,onCreate:S,renderOption:v,notFoundContent:x,footer:C,size:B="md",style:E,className:h},R)=>{let F=I(),T=as[F],M=_o.useId(),y=ss[B],D=_o.useRef(null),P=_o.useRef(null),H=_o.useRef(null),N=_o.useRef(null),[A,L]=_o.useState(false),[V,O]=_o.useState(false),[K,te]=_o.useState("idle"),[U,q]=_o.useState(""),[X,_]=_o.useState(-1),[ue,Q]=_o.useState(false),[j,J]=_o.useState({top:0,left:0,width:0,openAbove:false}),ge=i||d,Re=!!c,W=typeof c=="string"?c:void 0,ne=f&&!ge,ee=s?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ie=k=>ee.includes(k),ye=k=>{let $=e.find(Y=>Y.value===k);return $?$.label??$.value:k};_o.useEffect(()=>{if(!s&&!ue){let k=e.find($=>$.value===t);q(k?k.label??k.value:(typeof t=="string"?t:"")||"");}},[t,e,ue,s]);let He=U?e.filter(k=>(k.label??k.value).toLowerCase().includes(U.toLowerCase())):e,Ue=_o.useCallback(()=>{L(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Se=_o.useCallback(()=>{L(false),te("closing"),p?.(false);let k=setTimeout(()=>{O(false),te("idle");},Do);return ()=>clearTimeout(k)},[p]),Pe=_o.useCallback(()=>{if(!D.current)return;let k=D.current.getBoundingClientRect(),$=H.current?.offsetHeight??240,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;J({top:re?k.top-6:k.bottom+6,left:k.left,width:k.width,openAbove:re});},[]);_o.useEffect(()=>{if(V)return Pe(),window.addEventListener("scroll",Pe,true),window.addEventListener("resize",Pe),()=>{window.removeEventListener("scroll",Pe,true),window.removeEventListener("resize",Pe);}},[V,Pe]),_o.useEffect(()=>{if(!A)return;let k=$=>{let Y=$.target;if(!D.current?.contains(Y)&&!H.current?.contains(Y))if(Se(),s)q("");else {let Z=e.find(re=>re.value===t);w||q(Z?Z.label??Z.value:"");}};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[A,Se,t,e,w,s]),_o.useEffect(()=>{X>=0&&N.current&&N.current.children[X]?.scrollIntoView({block:"nearest"});},[X]);let bo=k=>{let $=k.target.value;q($),r?.($),_(0),A||Ue();},Zt=_o.useCallback(k=>{let $=e.find(Y=>Y.value===k)||{value:k};if(s){if(ie(k)){let Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);}else {let Y=[...ee,k];o(Y),l?.(k,$);}q("");}else o(k),l?.(k,$),q($.label??$.value),Se();},[o,e,Se,s,ee,l,m]),xo=_o.useCallback(k=>{if(!s)return;let $=e.find(Z=>Z.value===k)||{value:k},Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);},[s,ee,o,e,m]),mo=_o.useCallback(k=>{k.stopPropagation(),o(s?[]:""),q(""),u?.();},[s,o,u]),ho=k=>{if(!ge)switch(k.key){case "ArrowDown":k.preventDefault(),A?_($=>Math.min($+1,He.length-1)):(Ue(),_(0));break;case "ArrowUp":k.preventDefault(),_($=>Math.max($-1,0));break;case "Enter":k.preventDefault(),A&&X>=0&&He[X]?Zt(He[X].value):w&&U&&(s?(o([...ee,U]),S?.(U),q("")):(o(U),S?.(U),Se()));break;case "Backspace":if(s&&U===""&&ee.length>0){let $=ee.slice(0,-1);o($);}break;case "Escape":Se();break;case "Tab":A&&Se();break}},vt=k=>{Q(true),b?.(k),!A&&!ge&&Ue();},yo=k=>{let $=k.relatedTarget;$&&(H.current?.contains($)||D.current?.contains($))||(Q(false),g?.(k),!s&&w&&U&&o(U),s&&q(""));},vo=()=>{let k=j.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${Do}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Do}ms cubic-bezier(0.16, 1, 0.3, 1)`};return K==="opening"||K==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:K==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},So={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:ge?T.backgroundDisabled:T.background,border:`1px solid ${Re?T.borderError:ue?T.borderFocus:T.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:ge?.6:1,cursor:ge?"not-allowed":"text",flexWrap:"nowrap"},ko={flex:1,minWidth:s?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:T.text,cursor:ge?"not-allowed":"text"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},Yt=V?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:H,style:{position:"fixed",...j.openAbove?{bottom:window.innerHeight-j.top,left:j.left}:{top:j.top,left:j.left},width:j.width,backgroundColor:T.dropdownBg,border:`1px solid ${T.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:j.openAbove?"bottom center":"top center",...vo()},onMouseDown:k=>{k.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:N,role:"listbox","aria-multiselectable":s,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[He.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:T.placeholder,textAlign:"center"},children:w&&U?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof x=="function"?x(Se):x??"\u017D\xE1dn\xE9 v\xFDsledky"}),He.map((k,$)=>{let Y=ie(k.value),Z=$===X;return jsxRuntime.jsx("div",{role:"option","aria-selected":Y,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Y?500:400,lineHeight:"normal",color:Y?T.optionSelectedText:T.text,backgroundColor:Z?T.optionHover:Y?T.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:$<He.length-1?"2px":0},onClick:()=>Zt(k.value),onMouseEnter:()=>_($),onMouseLeave:()=>_(-1),children:v?v(k,Z):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label??k.value}),Y&&jsxRuntime.jsx(react.Check,{size:16,color:T.optionSelectedText})]})},k.value)})]}),C&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${T.divider}`,padding:"8px 6px"},children:typeof C=="function"?C(Se):C})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...E},className:h,children:[n&&jsxRuntime.jsx("label",{htmlFor:M,style:Co,children:n}),jsxRuntime.jsxs("div",{ref:D,style:So,onClick:()=>P.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:d?jsxRuntime.jsx(ns,{size:y.iconSize,color:T.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:y.iconSize,color:T.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[s&&ee.map(k=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:T.tagBg,color:T.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ye(k)}),!ge&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:$=>{$.stopPropagation(),xo(k);},children:jsxRuntime.jsx(react.X,{size:14,color:T.tagText})})]},k)),jsxRuntime.jsx("input",{ref:k=>{P.current=k,typeof R=="function"?R(k):R&&(R.current=k);},id:M,type:"text",value:U,onChange:bo,onFocus:vt,onBlur:yo,onKeyDown:ho,placeholder:s&&ee.length>0?"":a,disabled:i,readOnly:d,style:ko})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ne&&ee.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:mo,children:jsxRuntime.jsx(react.X,{size:14,color:T.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:y.iconSize,color:T.placeholder,style:{transition:"transform 0.2s ease",transform:A?"rotate(180deg)":"rotate(0deg)"}})]})]}),W&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:T.borderError,lineHeight:"normal"},children:W}),Yt]})});is.displayName="Combobox";var fs=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),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"})]})},Qr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},zo=180,us={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},gs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Xr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function bs(e,t,o){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-o,a<0&&(a+=7);let n=new Date(e,t,1-a),c=[];for(let i=0;i<42;i++){let d=new Date(n);d.setDate(n.getDate()+i),c.push(d);}return c}function Bo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Kr(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Bo(e)} ${t}:${o}`}function We(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jr(e,t,o){let r=e.getTime(),a=Math.min(t.getTime(),o.getTime()),n=Math.max(t.getTime(),o.getTime());return r>=a&&r<=n}function xs(e){return We(e,new Date)}var en=({mode:e="single",showTime:t=false,value:o,onChange:r,label:a,placeholder:n,error:c,helperText:i,disabled:d=false,loading:s=false,clearable:f=false,size:p="md",fullWidth:l=false,required:m,minDate:u,maxDate:b,firstDayOfWeek:g=1,style:w,className:S})=>{let v=I(),x=Qr[v],C=_o.useId(),B=us[p],E=_o.useRef(null),h=_o.useRef(null),[R,F]=_o.useState(false),[T,z]=_o.useState(false),[M,y]=_o.useState("idle"),[D,P]=_o.useState({top:0,left:0,width:0,openAbove:false}),[H,N]=_o.useState(null),A=new Date,[L,V]=_o.useState(A.getFullYear()),[O,K]=_o.useState(A.getMonth()),[te,U]=_o.useState("days"),[q,X]=_o.useState(0),_=d||s,ue=!!c,Q=typeof c=="string"?c:void 0,j=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],ge=e==="single"?j!==null:J[0]!==null||J[1]!==null,Re=f&&ge&&!_,W=(()=>{if(e==="single")return j?t?Kr(j):Bo(j):"";let[k,$]=J;if(!k&&!$)return "";let Y=t?Kr:Bo;return `${k?Y(k):"\u2026"} \u2013 ${$?Y($):"\u2026"}`})(),ne=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),ee=_o.useCallback(()=>{let k=e==="single"?j:J[0];k&&(V(k.getFullYear()),K(k.getMonth())),U("days"),F(true),z(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[e,j,J]),ie=_o.useCallback(()=>{F(false),y("closing");let k=setTimeout(()=>{z(false),y("idle");},zo);return ()=>clearTimeout(k)},[]),ye=_o.useCallback(()=>{if(!E.current)return;let k=E.current.getBoundingClientRect(),$=h.current?.offsetHeight??380,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;P({top:re?k.top-6:k.bottom+6,left:k.left,width:Math.max(k.width,300),openAbove:re});},[]);_o.useEffect(()=>{if(T)return ye(),window.addEventListener("scroll",ye,true),window.addEventListener("resize",ye),()=>{window.removeEventListener("scroll",ye,true),window.removeEventListener("resize",ye);}},[T,ye]),_o.useEffect(()=>{if(!R)return;let k=$=>{let Y=$.target,Z=E.current?.contains(Y),re=h.current?.contains(Y);!Z&&!re&&ie();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[R,ie]);let He=k=>{_||(k.key==="Escape"&&R&&(k.preventDefault(),ie()),(k.key==="Enter"||k.key===" ")&&!R&&(k.preventDefault(),ee()));},Ue=_o.useCallback(k=>{if(u){let $=new Date(u.getFullYear(),u.getMonth(),u.getDate());if(k<$)return true}if(b){let $=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(k>$)return true}return false},[u,b]),Se=_o.useCallback(k=>{if(!Ue(k)&&r)if(e==="single")t&&j&&k.setHours(j.getHours(),j.getMinutes()),r(new Date(k)),t||ie();else if(q===0)t&&J[0]&&k.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(k),null]),X(1);else {let $=J[0];t&&J[1]&&k.setHours(J[1].getHours(),J[1].getMinutes());let[Y,Z]=k>=$?[$,new Date(k)]:[new Date(k),$];r([Y,Z]),X(0),t||ie();}},[e,t,j,J,q,r,ie,Ue]),Pe=_o.useCallback((k,$,Y)=>{if(!r)return;let Z=parseInt($,10);if(isNaN(Z)&&(Z=0),k==="hour"&&(Z=Math.max(0,Math.min(23,Z))),k==="minute"&&(Z=Math.max(0,Math.min(59,Z))),e==="single"){let re=j?new Date(j):new Date;k==="hour"?re.setHours(Z):re.setMinutes(Z),r(re);}else {let re=Y??0,xe=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],qe=xe[re]??new Date;k==="hour"?qe.setHours(Z):qe.setMinutes(Z),xe[re]=qe,r(xe);}},[e,j,J,r]),bo=()=>{O===0?(K(11),V(k=>k-1)):K(k=>k-1);},Zt=()=>{O===11?(K(0),V(k=>k+1)):K(k=>k+1);},xo=k=>{k.stopPropagation(),r&&(r(e==="single"?null:[null,null]),X(0));},mo=()=>{let k=D.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return M==="opening"||M==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:M==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},ho=bs(L,O,g),vt=(k,$)=>{let Y=k?k.getHours():0,Z=k?k.getMinutes():0,re={width:"42px",background:"transparent",border:`1px solid ${x.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(Y).padStart(2,"0"),onChange:xe=>Pe("hour",xe.target.value,$),style:re,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:x.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(Z).padStart(2,"0"),onChange:xe=>Pe("minute",xe.target.value,$),style:re,maxLength:2,"aria-label":"Minuty"})]})},yo=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Xr.map((k,$)=>{let Y=$===O;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{K($),U("days");},style:{background:Y?x.daySelected:"transparent",color:Y?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:Z=>{Y||(Z.target.style.backgroundColor=x.dayHover);},onMouseLeave:Z=>{Y||(Z.target.style.backgroundColor="transparent");},children:k},$)})}),vo=()=>{let k=Math.floor(L/12)*12,$=Array.from({length:12},(Y,Z)=>k+Z);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>V(Y=>Y-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text},children:[k," \u2013 ",k+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>V(Y=>Y+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:$.map(Y=>{let Z=Y===L;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{V(Y),U("months");},style:{background:Z?x.daySelected:"transparent",color:Z?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:re=>{Z||(re.target.style.backgroundColor=x.dayHover);},onMouseLeave:re=>{Z||(re.target.style.backgroundColor="transparent");},children:Y},Y)})})]})},So=T?reactDom.createPortal(jsxRuntime.jsx("div",{ref:h,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:v==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom center":"top center",...mo()},children:te==="years"?vo():te==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),yo()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:bo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>U("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:Xr[O]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsxRuntime.jsx("button",{type:"button",onClick:Zt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:gs.map(k=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:x.placeholder,padding:"4px 0",userSelect:"none"},children:k},k))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:ho.map((k,$)=>{let Y=k.getMonth()!==O,Z=Ue(k),re=xs(k),xe=false,qe=false,wo=false,Vt=false;if(e==="single"&&j)xe=We(k,j);else if(e==="range"){let[Le,qt]=J;Le&&We(k,Le)&&(qe=true,xe=true),qt&&We(k,qt)&&(wo=true,xe=true),Le&&qt&&jr(k,Le,qt)&&!qe&&!wo&&(Vt=true),q===1&&Le&&H&&!Z&&(We(k,H)&&!We(k,Le)&&(xe=true),jr(k,Le,H)&&!We(k,Le)&&!We(k,H)&&(Vt=true));}let Ro="transparent",Ut=x.text;return xe?(Ro=x.daySelected,Ut=x.daySelectedText):Vt&&(Ro=x.dayRangeMiddle),Y&&(Ut=xe?x.daySelectedText:x.dayOutside),Z&&(Ut=x.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:Z,onClick:()=>Se(k),onMouseEnter:()=>{Z||N(k);},onMouseLeave:()=>N(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Ro,color:Ut,border:"none",borderRadius:qe?"6px 0 0 6px":wo?"0 6px 6px 0":Vt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:xe?600:400,cursor:Z?"not-allowed":"pointer",opacity:Z?.4:1,transition:"background-color 0.1s ease",outline:re&&!xe?`1.5px solid ${x.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:k.getDate()},$)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${x.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"\u010Cas:"}),vt(j)]}):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:"12px",color:x.placeholder},children:"Od:"}),vt(J[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Do:"}),vt(J[1],1)]})]})})]})}),document.body):null,ko={display:"flex",alignItems:"center",gap:B.gap,backgroundColor:_?x.backgroundDisabled:x.background,border:`1px solid ${ue?x.borderError:R?x.borderFocus:x.border}`,borderRadius:"8px",padding:B.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:_?.6:1,cursor:_?"not-allowed":"pointer",userSelect:"none",outline:"none"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},Yt={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...w},className:S,children:[a&&jsxRuntime.jsxs("label",{htmlFor:C,style:Co,children:[a,m&&jsxRuntime.jsx("span",{style:{color:x.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:E,role:"button",tabIndex:_?-1:0,style:ko,onClick:()=>{_||(R?ie():ee());},onKeyDown:He,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.text,lineHeight:"normal"},children:W}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.placeholder,lineHeight:"normal"},children:ne})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Re&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:xo,children:jsxRuntime.jsx(react.X,{size:B.iconSize-2,color:x.placeholder})}),s?jsxRuntime.jsx(fs,{size:B.iconSize,color:x.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:B.iconSize,color:x.placeholder})]})]}),Q&&jsxRuntime.jsx("span",{style:{...Yt,color:x.borderError},children:Q}),!Q&&i&&jsxRuntime.jsx("span",{style:{...Yt,color:x.helperText},children:i}),So]})};en.displayName="DatePicker";var ms=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Qr[n].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(en,{})]})};ms.displayName="DatePickerGroup";var tn={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Ss={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},on=({checked:e=false,onChange:t,label:o,disabled:r=false,error:a,size:n="md",indeterminate:c=false,className:i,style:d})=>{let s=I(),f=tn[s],p=Ss[n],l=_o.useId(),m=_o.useRef(null),u=!!a,b=typeof a=="string"?a:void 0;_o.useEffect(()=>{m.current&&(m.current.indeterminate=c);},[c]);let g=()=>{r||t?.(!e);},w=u?f.borderError:e||c?f.checkBg:f.border,S=e||c?f.checkBg:r?f.backgroundDisabled:f.background,v={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${w}`,backgroundColor:S,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:r?.5:1},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:f.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},C={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...d},className:i,children:[jsxRuntime.jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:B=>{B.preventDefault(),g();},children:[jsxRuntime.jsx("input",{ref:m,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":u||void 0}),jsxRuntime.jsxs("span",{style:v,children:[e&&!c&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),c&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:x,children:o})]}),b&&jsxRuntime.jsx("span",{style:{...C,color:f.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:b})]})};on.displayName="Checkbox";var rn=({label:e,children:t,error:o,className:r,style:a})=>{let n=I(),c=tn[n],i=typeof o=="string"?o:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:r,children:[e&&jsxRuntime.jsx("span",{style:d,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsxRuntime.jsx("span",{style:{...s,color:c.borderError},children:i})]})};rn.displayName="CheckboxGroup";var nn={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},Cs={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},Po=({value:e,checked:t=false,onChange:o,label:r,disabled:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=nn[d],f=Cs[n],p=_o.useId(),l=()=>{a||o?.(e);},m=t?s.dotRing:s.border,u=a?s.backgroundDisabled:s.background,b={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${m}`,backgroundColor:u,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...i},className:c,children:jsxRuntime.jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:w=>{w.preventDefault(),l();},children:[jsxRuntime.jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:a,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:b,children:t&&jsxRuntime.jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),r&&jsxRuntime.jsx("span",{style:g,children:r})]})})};Po.displayName="Radio";var an=({value:e,onChange:t,label:o,options:r,direction:a="vertical",error:n,helperText:c,size:i="md",className:d,style:s})=>{let f=I(),p=nn[f],l=!!n,m=typeof n=="string"?n:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...s},className:d,children:[o&&jsxRuntime.jsx("span",{style:u,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:r.map(g=>jsxRuntime.jsx(Po,{value:g.value,label:g.label,checked:e===g.value,onChange:t,disabled:g.disabled,size:i},g.value))}),m&&jsxRuntime.jsx("span",{style:{...b,color:p.borderError},children:m}),!m&&c&&jsxRuntime.jsx("span",{style:{...b,color:p.helperText},children:c})]})};an.displayName="RadioGroup";var Rs={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Ts={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},ln=({checked:e=false,onChange:t,label:o,disabled:r=false,size:a="md",className:n,style:c})=>{let i=I(),d=Rs[i],s=Ts[a],f=_o.useId(),p=()=>{r||t?.(!e);},l=1.5,m=2,b=s.trackW-l*2-s.thumb-m,g=e?b:0,w={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${l}px solid ${e?d.trackOnBorder:d.trackOffBorder}`,position:"relative",cursor:r?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:r?.5:1,boxSizing:"border-box"},S={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:m,transform:`translateY(-50%) translateX(${g}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...c},className:n,children:jsxRuntime.jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:r?"not-allowed":"pointer"},onClick:x=>{x.preventDefault(),p();},children:[jsxRuntime.jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:w,children:jsxRuntime.jsx("span",{style:S})}),o&&jsxRuntime.jsx("span",{style:v,children:o})]})})};ln.displayName="Switch";var Ps={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Ms={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},dn=_o__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:a=false,size:n="md",fullWidth:c=false,required:i,rows:d=4,maxLength:s,resize:f="vertical",autoHeight:p=false,minRows:l,maxRows:m,className:u,style:b,value:g,onChange:w,onFocus:S,onBlur:v,...x},C)=>{let B=I(),E=Ps[B],h=Ms[n],R=_o.useId(),F=x.id??R,[T,z]=_o.useState(false),M=_o.useRef(null),y=_o.useCallback(()=>{let q=M.current;if(!q||!p)return;q.style.height="auto";let X=getComputedStyle(q),_=parseFloat(X.lineHeight)||parseFloat(X.fontSize)*1.5,ue=parseFloat(X.paddingTop)||0,Q=parseFloat(X.paddingBottom)||0,j=ue+Q,ge=_*(l??1)+j,Re=m?_*m+j:1/0,W=Math.min(Math.max(q.scrollHeight,ge),Re);q.style.height=`${W}px`,q.style.overflowY=q.scrollHeight>Re?"auto":"hidden";},[p,l,m]);_o.useEffect(()=>{y();},[g,y]);let D=_o.useCallback(q=>{M.current=q,typeof C=="function"?C(q):C&&(C.current=q);},[C]),P=p?"none":f,H=p?l??1:d,N=r||a,A=!!t,L=typeof t=="string"?t:void 0,V=typeof g=="string"?g.length:0,O={backgroundColor:N?E.backgroundDisabled:E.background,border:`1px solid ${A?E.borderError:T?E.borderFocus:E.border}`,borderRadius:"8px",padding:h.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},K={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"1.5",color:E.text,cursor:N?"not-allowed":"text",resize:P,boxSizing:"border-box",overflow:p?"hidden":void 0},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},U={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...b},className:u,children:[e&&jsxRuntime.jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsxRuntime.jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:O,children:jsxRuntime.jsx("textarea",{ref:D,id:F,rows:H,maxLength:s,disabled:r,required:i,readOnly:a||x.readOnly,value:g,onChange:w,style:K,onFocus:q=>{z(true),S?.(q);},onBlur:q=>{z(false),v?.(q);},...x})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[L&&jsxRuntime.jsx("span",{style:{...U,color:E.borderError},children:L}),!L&&o&&jsxRuntime.jsx("span",{style:{...U,color:E.helperText},children:o})]}),s!==void 0&&jsxRuntime.jsxs("span",{style:{...U,color:V>s?E.borderError:E.counter,flexShrink:0},children:[V,"/",s]})]})]})});dn.displayName="Textarea";var Hs={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},Ls={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function un(e,t,o){return Math.min(Math.max(e,t),o)}function Ns(e,t,o){return Math.round((e-t)/o)*o+t}var gn=({value:e,onChange:t,min:o=0,max:r=100,step:a=1,label:n,disabled:c=false,showValue:i=false,range:d=false,size:s="md",className:f,style:p})=>{let l=I(),m=Hs[l],u=Ls[s],b=_o.useId(),g=_o.useRef(null),w=_o.useRef(null),S=d?e:[o,e],v=T=>(T-o)/(r-o)*100,x=v(S[0]),C=v(S[1]),B=_o.useCallback(T=>{let z=g.current;if(!z)return o;let M=z.getBoundingClientRect(),y=un((T-M.left)/M.width,0,1),D=o+y*(r-o);return un(Ns(D,o,a),o,r)},[o,r,a]),E=_o.useCallback(T=>{if(c)return;T.preventDefault();let z=B(T.clientX);if(d){let D=e,P=Math.abs(z-D[0]),H=Math.abs(z-D[1]),N=P<=H?"start":"end";w.current=N;let A=N==="start"?[Math.min(z,D[1]),D[1]]:[D[0],Math.max(z,D[0])];t?.(A);}else w.current="end",t?.(z);let M=D=>{let P=B(D.clientX);if(d){let H=e;w.current==="start"?t?.([Math.min(P,H[1]),H[1]]):t?.([H[0],Math.max(P,H[0])]);}else t?.(P);},y=()=>{w.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",y);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",y);},[c,B,t,d,e]),h={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.label,userSelect:"none"},R=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,F={width:u.thumb,height:u.thumb,borderRadius:"50%",backgroundColor:m.thumb,border:`2px solid ${m.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:c?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:c?.5:1,...p},className:f,children:[(n||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsxRuntime.jsx("label",{htmlFor:b,style:h,children:n}),i&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:m.text,userSelect:"none"},children:R})]}),jsxRuntime.jsxs("div",{ref:g,role:"slider",id:b,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":d?void 0:e,"aria-disabled":c||void 0,onMouseDown:E,style:{position:"relative",width:"100%",height:u.thumb,cursor:c?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${d?x:0}%`,width:`${C-(d?x:0)}%`,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackFill}}),d&&jsxRuntime.jsx("span",{style:{...F,left:`${x}%`}}),jsxRuntime.jsx("span",{style:{...F,left:`${C}%`}})]})]})};gn.displayName="Slider";var Ys={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function No(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Vs=0,xn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:a,disabled:n=false,label:c,helperText:i,error:d,value:s,buttonStyle:f="default",showFileList:p=true,buttonLabel:l,className:m,style:u})=>{let b=I(),g=Ys[b],w=_o.useId(),S=_o.useRef(null),[v,x]=_o.useState(false),[C,B]=_o.useState([]),[E,h]=_o.useState(null),R=s!==void 0,F=R?s.map((A,L)=>({file:A,id:`controlled-${L}`})):C,T=!!d||!!E,z=typeof d=="string"?d:E??void 0,M=_o.useCallback(A=>{let L=Array.from(A);if(h(null),a){let V=L.find(O=>O.size>a);if(V){h(`Soubor \u201E${V.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${No(a)}.`);return}}if(R){let O=r?[...s||[],...L]:L;t?.(O);}else {let V=L.map(K=>({file:K,id:`file-${++Vs}`})),O=r?[...C,...V]:V;B(O),t?.(O.map(K=>K.file));}},[R,s,C,a,r,t]),y=_o.useCallback(A=>{A.preventDefault(),x(false),!n&&A.dataTransfer.files.length>0&&M(A.dataTransfer.files);},[n,M]),D=_o.useCallback(A=>{if(R){let L=(s||[]).filter((V,O)=>`controlled-${O}`!==A);t?.(L);}else {let L=C.filter(V=>V.id!==A);B(L),t?.(L.map(V=>V.file));}},[R,s,C,t]),P={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},H={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${T?g.borderError:v?g.borderDrag:g.border}`,borderRadius:"8px",backgroundColor:v?g.backgroundDrag:n?g.backgroundDisabled:g.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...u},className:m,children:[c&&jsxRuntime.jsx("span",{style:P,children:c}),jsxRuntime.jsx("input",{ref:S,id:w,type:"file",accept:o,multiple:r,disabled:n,onChange:A=>{A.target.files&&A.target.files.length>0&&M(A.target.files),A.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:H,onClick:()=>!n&&S.current?.click(),onDragOver:A=>{A.preventDefault(),n||x(true);},onDragLeave:()=>x(false),onDrop:y,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:g.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):f==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&S.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:A=>{n||(A.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:A=>{A.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!n&&S.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${T?g.borderError:g.border}`,backgroundColor:n?g.backgroundDisabled:g.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:A=>{n||(A.currentTarget.style.borderColor=T?g.borderError:b==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:A=>{A.currentTarget.style.borderColor=T?g.borderError:g.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:F.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:g.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:g.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?g.text:g.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.textSecondary,flexShrink:0},children:No(F[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:g.textSecondary})})]}),p&&F.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(A=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:g.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:g.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.textSecondary,flexShrink:0},children:No(A.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${A.file.name}`,onClick:L=>{L.stopPropagation(),D(A.id);},onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&D(A.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:g.removeColor})})]},A.id))}),z&&jsxRuntime.jsx("span",{style:{...N,color:g.borderError},children:z}),!z&&i&&jsxRuntime.jsx("span",{style:{...N,color:g.helperText},children:i})]})};xn.displayName="FileUpload";var _s={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Gs={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Xs=({data:e,value:t,onChange:o,size:r="md",fullWidth:a=false,orientation:n="horizontal",disabled:c=false,className:i,style:d})=>{let s=I(),f=_s[s],p=Gs[r],l=n==="vertical",m=e.map(x=>typeof x=="string"?{value:x,label:x}:x),u=m.findIndex(x=>x.value===t),b=_o.useRef(null),g=_o.useRef([]),[w,S]=_o.useState({offset:0,size:0}),v=_o.useCallback(()=>{let x=b.current,C=g.current[u];if(!x||!C||u<0)return;let B=x.getBoundingClientRect(),E=C.getBoundingClientRect();S(l?{offset:E.top-B.top,size:E.height}:{offset:E.left-B.left,size:E.width});},[u,l]);return _o.useEffect(()=>{v();},[v,t,e,r]),_o.useEffect(()=>(window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)),[v]),jsxRuntime.jsxs("div",{ref:b,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:c?.5:1,cursor:c?"not-allowed":void 0,...d},children:[u>=0&&w.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:p.padding,right:p.padding,top:w.offset,height:w.size}:{top:p.padding,bottom:p.padding,left:w.offset,width:w.size}}}),m.map((x,C)=>{let B=x.value===t,E=c||x.disabled;return jsxRuntime.jsxs("button",{ref:h=>{g.current[C]=h;},type:"button",role:"radio","aria-checked":B,disabled:E,onClick:()=>{E||o(x.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:a?1:void 0,padding:p.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:p.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:B?500:400,color:E?f.textDisabled:B?f.textActive:f.text,cursor:E?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:h=>{!E&&!B&&(h.currentTarget.style.color=f.textHover);},onMouseLeave:h=>{!E&&!B&&(h.currentTarget.style.color=f.text);},children:[x.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:x.icon}),(x.label||!x.icon&&x.value)&&jsxRuntime.jsx("span",{children:x.label??x.value})]},x.value)})]})};Xs.displayName="SegmentedControl";var Qs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},Zo=180,ei=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Yo=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),ti=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},oi=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),r=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+a*114)/1e3>150},ri=({value:e,onChange:t,presets:o=ei,label:r,disabled:a=false,style:n,className:c})=>{let i=I(),d=Qs[i],f=_o.useId(),p=_o.useRef(null),l=_o.useRef(null),[m,u]=_o.useState(false),[b,g]=_o.useState(false),[w,S]=_o.useState("idle"),[v,x]=_o.useState(e),[C,B]=_o.useState(false),[E,h]=_o.useState({top:0,left:0,openAbove:false});_o.useEffect(()=>{C||x(e);},[e,C]);let R=_o.useCallback(()=>{a||(u(true),g(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}));},[a]),F=_o.useCallback(()=>{u(false),S("closing");let L=setTimeout(()=>{g(false),S("idle");},Zo);return ()=>clearTimeout(L)},[]),T=_o.useCallback(()=>{if(!p.current)return;let L=p.current.getBoundingClientRect(),V=220,O=window.innerHeight-L.bottom-8,K=O<V&&L.top>O;h({top:K?L.top-8:L.bottom+8,left:L.left,openAbove:K});},[]);_o.useEffect(()=>{if(b)return T(),window.addEventListener("scroll",T,true),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",T,true),window.removeEventListener("resize",T);}},[b,T]),_o.useEffect(()=>{if(!m)return;let L=V=>{let O=V.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[m,F]);let z=L=>{let V=ti(L.target.value);x(V),Yo(V)&&t(V);},M=()=>{B(false),Yo(v)?t(v):x(e);},y=L=>{t(L),x(L),F();},D=()=>{let L=E.openAbove,V=L?"translateY(8px)":"translateY(-8px)",O=L?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...K,opacity:0,transform:`${V} scale(0.97)`}:w==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},P={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?d.backgroundDisabled:d.background,border:`1px solid ${C?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Yo(e)?e:"#cccccc",border:`1px solid ${d.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},N={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},A=b?reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,style:{position:"fixed",...E.openAbove?{bottom:window.innerHeight-E.top,left:E.left}:{top:E.top,left:E.left},backgroundColor:d.popoverBg,border:`1px solid ${d.popoverBorder}`,borderRadius:"12px",boxShadow:i==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:E.openAbove?"bottom left":"top left",...D()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((L,V)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>y(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${d.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${L}-${V}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:c,children:[r&&jsxRuntime.jsx("label",{htmlFor:f,style:N,children:r}),jsxRuntime.jsxs("div",{ref:p,style:P,children:[jsxRuntime.jsx("div",{style:H,onClick:()=>{a||(m?F():R());}}),jsxRuntime.jsx("input",{id:f,type:"text",value:v,onChange:z,onFocus:()=>B(true),onBlur:M,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:d.text,cursor:a?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(m?F():R());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(oi(e)&&i==="light",d.placeholder)})})]}),A]})};ri.displayName="ColorPicker";var ii={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},li={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},ci=({value:e,onChange:t,max:o=5,size:r="md",readOnly:a=false,label:n,style:c,className:i})=>{let d=I(),s=ii[d],f=_o.useId(),p=li[r],[l,m]=_o.useState(null),u=!a&&!!t,b=_o.useCallback(x=>{u&&t(x+1);},[u,t]),g=_o.useCallback(x=>{u&&m(x);},[u]),w=_o.useCallback(()=>{m(null);},[]),S={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},v=Array.from({length:o},(x,C)=>{let B=l!==null?l+1:e,E=C<B,h=l!==null&&C<=l;return jsxRuntime.jsx("span",{role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?`Hodnocen\xED ${C+1} z ${o}`:void 0,onClick:()=>b(C),onMouseEnter:()=>g(C),onMouseLeave:w,onKeyDown:R=>{u&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),b(C));},style:{display:"inline-flex",cursor:u?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:h?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:p.starSize,weight:E?"fill":"regular",color:E?h?s.starHover:s.starFilled:s.starEmpty})},C)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:i,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsxRuntime.jsx("label",{htmlFor:f,style:S,children:n}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:w,children:v})]})};ci.displayName="Rating";var xi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},mi=({length:e=6,value:t,onChange:o,error:r,disabled:a=false,autoFocus:n=false,label:c,separatorAfter:i,separator:d="-",style:s,className:f})=>{let p=I(),l=xi[p],m=_o.useId(),u=_o.useRef([]),[b,g]=_o.useState(null),w=!!r,S=typeof r=="string"?r:void 0,v=t.padEnd(e,"").slice(0,e).split("");_o.useEffect(()=>{n&&u.current[0]&&u.current[0].focus();},[n]);let x=_o.useCallback(y=>{y>=0&&y<e&&u.current[y]?.focus();},[e]),C=_o.useCallback(y=>{let D=y.join("").replace(/[^0-9]/g,"");o(D);},[o]),B=_o.useCallback((y,D)=>{if(!/^[0-9]$/.test(D))return;let P=[...v];P[y]=D,C(P),y<e-1&&x(y+1);},[v,e,C,x]),E=_o.useCallback((y,D)=>{switch(D.key){case "Backspace":if(D.preventDefault(),v[y]){let P=[...v];P[y]="",C(P);}else if(y>0){let P=[...v];P[y-1]="",C(P),x(y-1);}break;case "Delete":D.preventDefault();{let P=[...v];P[y]="",C(P);}break;case "ArrowLeft":D.preventDefault(),y>0&&x(y-1);break;case "ArrowRight":D.preventDefault(),y<e-1&&x(y+1);break}},[v,e,C,x]),h=_o.useCallback((y,D)=>{let H=D.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&B(y,H);},[B]),R=_o.useCallback(y=>{y.preventDefault();let D=y.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!D)return;let P=[...v];for(let N=0;N<D.length;N++)P[N]=D[N];C(P);let H=Math.min(D.length,e-1);x(H);},[v,e,C,x]),F=_o.useCallback(y=>{g(y),u.current[y]?.select();},[]),T=_o.useCallback(()=>{g(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},M=y=>{let D=b===y,P=!!v[y];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:l.text,textAlign:"center",backgroundColor:a?l.backgroundDisabled:P?l.backgroundFilled:l.background,border:`1px solid ${w?l.borderError:D?l.borderFocus:P?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:l.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[c&&jsxRuntime.jsx("label",{htmlFor:`${m}-0`,style:z,children:c}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:R,children:Array.from({length:e},(y,D)=>jsxRuntime.jsxs(_o__default.default.Fragment,{children:[i&&D>0&&D%i===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:d}),jsxRuntime.jsx("input",{ref:P=>{u.current[D]=P;},id:`${m}-${D}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:v[D]||"",onChange:P=>h(D,P),onKeyDown:P=>E(D,P),onFocus:()=>F(D),onBlur:T,disabled:a,"aria-label":`\u010C\xEDslice ${D+1} z ${e}`,style:M(D)})]},D))}),S&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:S})]})};mi.displayName="OTPInput";var hi={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},wn="smSkeletonShimmer",yi=`@keyframes ${wn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,lt=({variant:e="text",width:t,height:o,lines:r=1,animate:a=true,className:n,style:c})=>{let i=I(),d=hi[i],s=t??(e==="circle"?40:"100%"),f=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:d.base,backgroundImage:a?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${wn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof s=="number"?`${s}px`:s,height:typeof f=="number"?`${f}px`:f},l=a?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:yi}}):null;return e==="text"&&r>1?jsxRuntime.jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...c},children:[l,Array.from({length:r}).map((m,u)=>jsxRuntime.jsx("div",{style:{...p,width:u===r-1?"75%":p.width}},u))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx("div",{className:n,style:{...p,...c}})]})};lt.displayName="Skeleton";var ki={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},Ci=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:c,striped:i=false,hoverable:d=true,className:s,style:f})=>{let p=I(),l=ki[p],m=S=>{if(!S.sortable||!a)return;let v=n===S.key&&c==="asc"?"desc":"asc";a(S.key,v);},u={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",overflow:"hidden",...f},b=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),g={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:s,style:u,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.map(S=>jsxRuntime.jsx("th",{style:b(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:n===S.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((S,v)=>jsxRuntime.jsx("tr",{children:e.map(x=>jsxRuntime.jsx("td",{style:g,children:jsxRuntime.jsx(lt,{variant:"text",width:"80%"})},x.key))},`skel-${v}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...g,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((S,v)=>jsxRuntime.jsx("tr",{style:{backgroundColor:i&&v%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:x=>{d&&(x.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:x=>{d&&(x.currentTarget.style.backgroundColor=i&&v%2===1?l.stripedBg:"transparent");},children:e.map(x=>jsxRuntime.jsx("td",{style:{...g,borderBottom:v===t.length-1?"none":g.borderBottom},children:x.render?x.render(S[x.key],S,v):S[x.key]},x.key))},v))})]})};Ci.displayName="Table";var Ri={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},En=({checked:e,indeterminate:t,onChange:o,t:r})=>{let a=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),o();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:a?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&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:r.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:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},Ti=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:a=false,rowKey:n="id",onRowClick:c,stickyHeader:i=false,emptyText:d="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let p=I(),l=Ri[p],[m,u]=_o.useState(new Set),[b,g]=_o.useState(null),w=_o.useMemo(()=>t.map(z=>String(z[n])),[t,n]),S=w.length>0&&w.every(z=>m.has(z)),v=w.some(z=>m.has(z))&&!S,x=_o.useCallback(()=>{let z=S?new Set:new Set(w);u(z),r?.(Array.from(z));},[S,w,r]),C=_o.useCallback(z=>{u(M=>{let y=new Set(M);return y.has(z)?y.delete(z):y.add(z),r?.(Array.from(y)),y});},[r]),B={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},E=z=>({padding:"12px 16px",textAlign:z.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",userSelect:"none",width:z.width!=null?typeof z.width=="number"?`${z.width}px`:z.width:void 0,minWidth:z.minWidth!=null?`${z.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),h=z=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:z.align||"left"}),R={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:f,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...s},children:jsxRuntime.jsxs("table",{style:B,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:R,children:jsxRuntime.jsx(En,{checked:S,indeterminate:v,onChange:x,t:l})}),e.map(z=>jsxRuntime.jsx("th",{style:E(z),children:z.header},z.key))]})}),jsxRuntime.jsx("tbody",{children:a?Array.from({length:5}).map((z,M)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:F,children:jsxRuntime.jsx(lt,{variant:"rect",width:16,height:16})}),e.map(y=>jsxRuntime.jsx("td",{style:h(y),children:jsxRuntime.jsx(lt,{variant:"text",width:"80%"})},y.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:d})}):t.map((z,M)=>{let y=String(z[n]),D=m.has(y),P=b===y,H=M===t.length-1,N="transparent";return D?N=l.selectedRowBg:P&&(N=l.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:N,cursor:c?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>g(y),onMouseLeave:()=>g(null),onClick:()=>c?.(z),children:[o&&jsxRuntime.jsx("td",{style:{...F,borderBottom:H?"none":F.borderBottom},children:jsxRuntime.jsx(En,{checked:D,onChange:()=>C(y),t:l})}),e.map(A=>jsxRuntime.jsx("td",{style:{...h(A),borderBottom:H?"none":h(A).borderBottom},children:A.render?A.render(z[A.key],z,M):z[A.key]},A.key))]},y)})})]})})};Ti.displayName="DataGrid";var Fi={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},Ei={none:"0",sm:"12px",md:"20px",lg:"28px"},Di=({title:e,subtitle:t,header:o,footer:r,children:a,hoverable:n=false,bordered:c=true,padding:i="md",className:d,style:s})=>{let f=I(),p=Fi[f],l=Ei[i],m={backgroundColor:p.background,border:c?`1px solid ${p.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:n?"pointer":void 0,...s},u=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:l,paddingBottom:a||r?"0":l},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:d,style:m,onMouseEnter:b=>{n&&(b.currentTarget.style.borderColor=p.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{n&&(b.currentTarget.style.borderColor=c?p.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[u,a&&jsxRuntime.jsx("div",{style:{padding:l},children:a}),r&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsxRuntime.jsx("div",{style:{padding:l},children:r})]})]})};Di.displayName="Card";var In={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},Mi=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:a,_open:n,_onToggle:c})=>{let i=I(),d=In[i],[s,f]=_o.useState(o),p=a?!!n:s,l=_o.useRef(null),[m,u]=_o.useState(0);_o.useEffect(()=>{l.current&&u(l.current.scrollHeight);},[t,p]);let b=_o.useCallback(()=>{r||(a&&c?c():f(g=>!g));},[r,a,c]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:r,onClick:b,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:r?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:r?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:g=>{r||(g.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:r?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${m}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:d.textSecondary},children:t})})]})};Mi.displayName="AccordionItem";var Ai=({children:e,multiple:t=false,className:o,style:r})=>{let a=I(),n=In[a],c=_o__default.default.Children.toArray(e).filter(f=>_o__default.default.isValidElement(f)),[i,d]=_o.useState(()=>{let f=new Set;return c.forEach((p,l)=>{p.props.defaultOpen&&f.add(l);}),f}),s=_o.useCallback(f=>{d(p=>{let l=new Set(p);return l.has(f)?l.delete(f):(t||l.clear(),l.add(f)),l});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...r},children:c.map((f,p)=>_o__default.default.cloneElement(f,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>s(p)}))})};Ai.displayName="Accordion";var Hi={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Li={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ni=()=>null;Ni.displayName="Tab";var $i=()=>null;$i.displayName="TabPanel";var Wi=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=Hi[d],f=Li[n],p=_o__default.default.Children.toArray(o),l=p.filter(b=>_o__default.default.isValidElement(b)&&b.type?.displayName==="Tab"),u=p.filter(b=>_o__default.default.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxRuntime.jsxs("div",{className:c,style:i,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${s.border}`:"none"},children:l.map(b=>{let g=b.props.value===e,w=b.props.disabled,S=r==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${g?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.pillText:s.textInactive,backgroundColor:g?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:w,style:S,onClick:()=>{w||t(b.props.value);},onMouseEnter:v=>{!w&&!g&&(v.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:v=>{w||(v.currentTarget.style.backgroundColor=r==="pills"&&g?s.pillBg:"transparent");},children:[b.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),u&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:u.props.children})]})};Wi.displayName="Tabs";var Yi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Qo=({content:e,children:t,position:o="top",delay:r=200,className:a,style:n})=>{let c=I(),i=Yi[c],[d,s]=_o.useState(false),[f,p]=_o.useState({top:0,left:0}),l=_o.useRef(null),m=_o.useRef(null),u=_o.useRef(void 0),b=6,g=8,w=_o.useCallback(()=>{let B=l.current,E=m.current;if(!B||!E)return;let h=B.getBoundingClientRect(),R=E.getBoundingClientRect(),F=0,T=0;switch(o){case "top":F=h.top-R.height-g,T=h.left+h.width/2-R.width/2;break;case "bottom":F=h.bottom+g,T=h.left+h.width/2-R.width/2;break;case "left":F=h.top+h.height/2-R.height/2,T=h.left-R.width-g;break;case "right":F=h.top+h.height/2-R.height/2,T=h.right+g;break}p({top:F,left:T});},[o]);_o.useEffect(()=>{d&&requestAnimationFrame(w);},[d,w]);let S=_o.useCallback(()=>{u.current=setTimeout(()=>s(true),r);},[r]),v=_o.useCallback(()=>{u.current&&clearTimeout(u.current),s(false);},[]);_o.useEffect(()=>()=>{u.current&&clearTimeout(u.current);},[]);let x=(()=>{let B={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(o){case "top":return {...B,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...B,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...B,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...B,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),C=d?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:m,className:a,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...n},children:[e,jsxRuntime.jsx("div",{style:x})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[_o__default.default.cloneElement(t,{ref:l,onMouseEnter:B=>{S(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{v(),t.props.onMouseLeave?.(B);}}),C]})};Qo.displayName="Tooltip";var Gi={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},tr=180,Qt=8,Xi=({content:e,children:t,position:o="bottom",trigger:r="click",className:a,style:n})=>{let c=I(),i=Gi[c],[d,s]=_o.useState(false),[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),[u,b]=_o.useState({top:0,left:0}),g=_o.useRef(null),w=_o.useRef(null),S=_o.useRef(void 0),v=_o.useCallback(()=>{s(true),p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),x=_o.useCallback(()=>{s(false),m("closing");let T=setTimeout(()=>{p(false),m("idle");},tr);return ()=>clearTimeout(T)},[]),C=_o.useCallback(()=>{let T=g.current,z=w.current;if(!T||!z)return;let M=T.getBoundingClientRect(),y=z.getBoundingClientRect(),D=0,P=0;switch(o){case "top":D=M.top-y.height-Qt,P=M.left+M.width/2-y.width/2;break;case "bottom":D=M.bottom+Qt,P=M.left+M.width/2-y.width/2;break;case "left":D=M.top+M.height/2-y.height/2,P=M.left-y.width-Qt;break;case "right":D=M.top+M.height/2-y.height/2,P=M.right+Qt;break}b({top:D,left:P});},[o]);_o.useEffect(()=>{if(f)return requestAnimationFrame(C),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[f,C]),_o.useEffect(()=>{if(!d)return;let T=z=>{let M=z.target;!g.current?.contains(M)&&!w.current?.contains(M)&&x();};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[d,x]),_o.useEffect(()=>{if(!d)return;let T=z=>{z.key==="Escape"&&x();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,x]);let B=()=>{let T={transition:`opacity ${tr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${tr}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.97)`}:l==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.98)`,pointerEvents:"none"}},E=_o.useCallback(()=>{r==="click"&&(d?x():v());},[r,d,x,v]),h=_o.useCallback(()=>{r==="hover"&&(S.current&&clearTimeout(S.current),d||v());},[r,d,v]),R=_o.useCallback(()=>{r==="hover"&&(S.current=setTimeout(()=>{x();},150));},[r,x]);_o.useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let F=f?reactDom.createPortal(jsxRuntime.jsx("div",{ref:w,className:a,onMouseEnter:()=>{r==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:R,style:{position:"fixed",top:u.top,left:u.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...B(),...n},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[_o__default.default.cloneElement(t,{ref:g,onClick:T=>{E(),t.props.onClick?.(T);},onMouseEnter:T=>{h(),t.props.onMouseEnter?.(T);},onMouseLeave:T=>{R(),t.props.onMouseLeave?.(T);}}),F]})};Xi.displayName="Popover";var Qi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},el=({icon:e,title:t,description:o,action:r,className:a,style:n})=>{let c=I(),i=Qi[c];return jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsxRuntime.jsx("div",{style:{fontSize:"48px",lineHeight:1,color:i.iconColor,marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&jsxRuntime.jsx("div",{style:{marginTop:"8px"},children:r})]})};el.displayName="EmptyState";var nl={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},al=({label:e,value:t,change:o,changeLabel:r,icon:a,trend:n="neutral",className:c,style:i})=>{let d=I(),s=nl[d],f=n==="up"?s.trendUp:n==="down"?s.trendDown:s.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxRuntime.jsxs("div",{className:c,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:a}),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:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),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:f},children:[n==="up"&&jsxRuntime.jsx(react.TrendUpIcon,{size:14,color:f}),n==="down"&&jsxRuntime.jsx(react.TrendDownIcon,{size:14,color:f}),jsxRuntime.jsx("span",{children:p(o)}),r&&jsxRuntime.jsx("span",{style:{color:s.label,marginLeft:"2px"},children:r})]})]})]})};al.displayName="Stat";var sl=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],Eu=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:a,"aria-label":n})=>{let c=sl(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,height:c,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(c*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:i,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:d,children:e.toUpperCase()})})};var Ln={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},rr=({onClick:e,title:t,color:o,children:r})=>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:r}),Pu=({label:e,onRemove:t,style:o,className:r})=>{let a=Ln[I()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...o},className:r,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.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:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Mu=({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}),Au=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:a=true,style:n,className:c})=>{let i=Ln[I()],d=t||o||r;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...n},className:c,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),a&&d&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(rr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(rr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),r&&jsxRuntime.jsx(rr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var dl={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},Wn={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},je=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),pl=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,ze=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},ar=(e,t=1)=>{let o=new Date(e),r=o.getDay(),a=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+a),o.setHours(0,0,0,0),o},On=(e,t,o=1)=>{let r=new Date(e,t,1),a=ar(r,o),n=[],c=new Date(a);for(let i=0;i<42;i++)n.push(new Date(c)),c.setDate(c.getDate()+1);return n},fl=(e,t=1)=>{let o=ar(e,t),r=[];for(let a=0;a<7;a++){let n=new Date(o);n.setDate(o.getDate()+a),r.push(n);}return r},Zn=(e,t,o)=>{if(t){let r=new Date(t);if(r.setHours(0,0,0,0),e<r)return true}if(o){let r=new Date(o);if(r.setHours(23,59,59,999),e>r)return true}return false};function ul(e,t){let o=[],r=new Map,a=ze(e[0]),n=ze(e[6]),c=t.filter(i=>{let d=ze(i.date);return (i.endDate?ze(i.endDate):d)>=a&&d<=n}).sort((i,d)=>{let s=ze(i.date).getTime(),f=ze(d.date).getTime();if(s!==f)return s-f;let p=i.endDate?ze(i.endDate).getTime():s;return (d.endDate?ze(d.endDate).getTime():f)-f-(p-s)});for(let i of c){let d=ze(i.date),s=i.endDate?ze(i.endDate):d,f=d<a?a:d,p=s>n?n:s,l=e.findIndex(S=>je(S,f)),m=e.findIndex(S=>je(S,p));if(l===-1||m===-1)continue;let u=m-l+1,b=d>=a,g=0;for(;;){r.has(g)||r.set(g,new Set);let S=r.get(g),v=true;for(let x=l;x<=m;x++)if(S.has(x)){v=false;break}if(v)break;g++;}let w=r.get(g);for(let S=l;S<=m;S++)w.add(S);o.push({event:i,row:g,startCol:l,span:u,isStart:b});}return o}var gl=({value:e,onChange:t,view:o="month",events:r=[],minDate:a,maxDate:n,style:c,className:i,firstDay:d=1,locale:s="cs",initialDate:f,t:p,today:l})=>{let m=Wn[s],u=f||e||l,[b,g]=_o.useState(()=>u.getMonth()),[w,S]=_o.useState(()=>u.getFullYear()),[v,x]=_o.useState(()=>ar(u,d)),[C,B]=_o.useState(null),E=_o.useMemo(()=>o==="week"?fl(v,d):On(w,b,d),[o,w,b,v,d]),h=_o.useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()-7),D}):g(y=>y===0?(S(D=>D-1),11):y-1);},[o]),R=_o.useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()+7),D}):g(y=>y===11?(S(D=>D+1),0):y+1);},[o]),F=y=>r.filter(D=>je(D.date,y)),T=o==="week"?(()=>{let y=new Date(v);return y.setDate(y.getDate()+6),v.getMonth()===y.getMonth()?`${v.getDate()}. \u2013 ${y.getDate()}. ${m.months[y.getMonth()]} ${y.getFullYear()}`:`${v.getDate()}. ${m.months[v.getMonth()].slice(0,3)} \u2013 ${y.getDate()}. ${m.months[y.getMonth()].slice(0,3)} ${y.getFullYear()}`})():`${m.months[b]} ${w}`,z={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...c},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:p.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:i,style:z,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[jsxRuntime.jsx("button",{style:M,onClick:h,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsxRuntime.jsx("button",{style:M,onClick:R,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:m.daysFull.map(y=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:p.textMuted,padding:"6px 0 8px"},children:y},y))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:E.map((y,D)=>{let P=je(y,l),H=e?je(y,e):false,N=o==="month"&&y.getMonth()!==b,A=Zn(y,a,n),L=y.toISOString(),V=C===L,O=F(y),K="transparent",te=N?p.outsideText:p.text,U="2px solid transparent";return H?(K=p.selectedBg,te=p.selectedText):P?(K=p.todayBg,U=`2px solid ${p.todayBorder}`):V&&!A&&(K=p.hover),A&&(te=p.textMuted),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:U,background:K,color:te,fontSize:"13px",fontWeight:P?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:A?"default":"pointer",opacity:A?.4:1,transition:"background-color 0.12s ease"},disabled:A,onClick:()=>{!A&&t&&t(y);},onMouseEnter:()=>!A&&B(L),onMouseLeave:()=>B(null),children:y.getDate()}),O.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map((q,X)=>jsxRuntime.jsx("div",{title:q.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:q.color||p.eventDot}},X))})]},D)})})]})},to=24,dt=2,bl=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:a=true,onNavigate:n,minDate:c,maxDate:i,style:d,className:s,firstDay:f=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:m,t:u,today:b})=>{let g=Wn[p],w=m||e||b,[S,v]=_o.useState(()=>w.getMonth()),[x,C]=_o.useState(()=>w.getFullYear()),[B,E]=_o.useState(null),h=_o.useMemo(()=>On(x,S,f),[x,S,f]),R=_o.useMemo(()=>{let P=[];for(let H=0;H<h.length;H+=7)P.push(h.slice(H,H+7));return P},[h]),F=_o.useMemo(()=>{let P=R[R.length-1];return P&&P.every(H=>H.getMonth()!==S)?R.slice(0,-1):R},[R,S]),T=_o.useCallback(()=>{let P=S-1,H=x;P<0&&(P=11,H--),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),z=_o.useCallback(()=>{let P=S+1,H=x;P>11&&(P=0,H++),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),M=`${g.months[S]} ${x}`,D={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:s,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:u.text,userSelect:"none",...d},children:[a&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:D,onClick:T,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children: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:D,onClick:z,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.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 ${u.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:u.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${u.cellBorder}`},children:g.days.map((P,H)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:u.text,padding:"10px 0",borderRight:H<6?`1px solid ${u.cellBorder}`:"none"},children:P},P))}),F.map((P,H)=>{let N=ul(P,o),A=N.length>0?Math.max(...N.map(U=>U.row))+1:0,L=P.map((U,q)=>{let X=N.filter(_=>q>=_.startCol&&q<_.startCol+_.span);return Math.max(0,X.filter(_=>_.row>=l).length)}),O=Math.min(A,l)*(to+dt)+dt,te=L.some(U=>U>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:H<F.length-1?`1px solid ${u.cellBorder}`:"none"},children:P.map((U,q)=>{let X=je(U,b),_=U.getMonth()!==S,ue=e?je(U,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:q<6?`1px solid ${u.cellBorder}`:"none",backgroundColor:X?u.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Zn(U,c,i)&&t(U);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:X?700:400,color:_?u.outsideText:X?"#FC4F00":u.text},children:ue?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[U.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[U.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${O}px`},children:N.filter(Q=>Q.startCol===q&&Q.row<l).map((Q,j)=>{let J=Q.event.id||`${pl(Q.event.date)}-${Q.event.title}`,ge=B===J,Re=Q.event.color||u.eventBarDefault,W=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${dt+Q.row*(to+dt)}px`,left:"2px",width:Q.span>1?`calc(${Q.span*100}% - 4px)`:"calc(100% - 4px)",height:`${to}px`,backgroundColor:Re,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:ge?2:1,opacity:ge?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:Q.event.tooltip?void 0:Q.event.title,onClick:ne=>{ne.stopPropagation(),r&&r(Q.event);},onMouseEnter:()=>E(J),onMouseLeave:()=>E(null),children:[Q.isStart&&Q.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:Q.event.emoji}),Q.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:Q.event.textColor||u.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Q.event.title})]},j);return Q.event.tooltip?jsxRuntime.jsx(Qo,{content:Q.event.tooltip,children:W},j):W})}),L[q]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:u.moreText,textAlign:"center",padding:"2px 0"},children:["+",L[q]]})]},q)})},H)})]})]})},xl=e=>{let t=I(),o=dl[t],r=_o.useMemo(()=>{let a=new Date;return a.setHours(0,0,0,0),a},[]);return e.fullSize?jsxRuntime.jsx(bl,{...e,t:o,today:r}):jsxRuntime.jsx(gl,{...e,t:o,today:r})};xl.displayName="Calendar";var hl={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},yl=({items:e,orientation:t="vertical",style:o,className:r})=>{let a=I(),n=hl[a];return t==="horizontal"?jsxRuntime.jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:d?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),i===0&&jsxRuntime.jsx("div",{style:{flex:1}}),c.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0}}),!d&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),d&&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:c.title}),c.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:c.date}),c.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:c.description})]})]},i)})}):jsxRuntime.jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:d?0:"4px",minHeight:c.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[c.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!d&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:c.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:c.title}),c.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:c.date})]}),c.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:c.description})]})]},i)})})};yl.displayName="Timeline";var vl={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},Sl=({items:e,columns:t=1,striped:o=false,style:r,className:a})=>{let n=I(),c=vl[n],i=Math.max(1,Math.round(t)),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},s=m=>i<=1?m:Math.floor(m/i),f=m=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${c.border}`,backgroundColor:o&&s(m)%2===1?c.stripedBg:c.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:c.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:a,style:d,children:e.map((m,u)=>jsxRuntime.jsxs("div",{style:f(u),children:[jsxRuntime.jsx("span",{style:p,children:m.label}),jsxRuntime.jsx("span",{style:l,children:m.value})]},u))})};Sl.displayName="DataList";var Rl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Vn=({node:e,depth:t,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c})=>{let i=e.children&&e.children.length>0,d=o.has(e.id),s=r===e.id,[f,p]=_o.useState(false),l="transparent";return s?l=c.selectedBg:f&&(l=c.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:s?`2px solid ${c.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>n?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:m=>{m.stopPropagation(),i&&a(e.id);},children:i&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:d?c.iconExpanded:c.iconColor,style:{transform:d?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:s?c.selectedBorder:c.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?c.selectedText:c.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&d&&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:c.line}}),e.children.map(m=>jsxRuntime.jsx(Vn,{node:m,depth:t+1,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c},m.id))]})]})},Tl=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:a,className:n})=>{let c=I(),i=Rl[c],[d,s]=_o.useState(()=>new Set(r)),f=_o.useCallback(l=>{s(m=>{let u=new Set(m);return u.has(l)?u.delete(l):u.add(l),u});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...a};return jsxRuntime.jsx("div",{className:n,style:p,role:"tree",children:e.map(l=>jsxRuntime.jsx(Vn,{node:l,depth:0,expanded:d,selectedId:o,onToggle:f,onSelect:t,t:i},l.id))})};Tl.displayName="Tree";var El={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Dl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},zl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},lr=false,Il=()=>{if(lr||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){lr=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
13
13
|
@keyframes sm-statusbadge-pulse {
|
|
14
14
|
0% { transform: scale(1); opacity: 1; }
|
|
15
15
|
50% { transform: scale(1.8); opacity: 0; }
|
|
16
16
|
100% { transform: scale(1.8); opacity: 0; }
|
|
17
17
|
}
|
|
18
|
-
`,document.head.appendChild(t),_o=true;},Cl=({status:e,label:t,size:r="md",pulse:o=false,color:a,style:n,className:s})=>{let l=I(),p=yl[l],i=Sl[r],f=a||vl[e]||"#888888";return o&&kl(),jsxRuntime.jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:i.gap,...n},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${i.dot}px`,height:`${i.dot}px`,flexShrink:0},children:[o&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:i.fontSize,fontWeight:400,color:p.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Cl.displayName="StatusBadge";var Tl={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},jt=180,Fl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},jo=({open:e,onClose:t,title:r,children:o,footer:a,size:n="md",closeOnOverlay:s=true,closeOnEscape:l=true,showClose:p=true,className:i,style:f})=>{let u=I(),c=Tl[u],y=Fl[n],[d,g]=Bo.useState(false),[b,k]=Bo.useState("idle"),R=Bo.useRef(null),m=Bo.useRef(null);Bo.useEffect(()=>{if(e)m.current=document.activeElement,g(true),k("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>k("open"));}),document.body.style.overflow="hidden";else if(d){k("closing");let T=setTimeout(()=>{g(false),k("idle"),document.body.style.overflow="",m.current instanceof HTMLElement&&m.current.focus();},jt);return ()=>clearTimeout(T)}},[e]),Bo.useEffect(()=>()=>{document.body.style.overflow="";},[]),Bo.useEffect(()=>{if(!d||!l)return;let T=h=>{h.key==="Escape"&&t();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,l,t]),Bo.useEffect(()=>{if(!d||!R.current)return;let T=R.current,h='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',w=v=>{if(v.key!=="Tab")return;let C=T.querySelectorAll(h);if(C.length===0){v.preventDefault();return}let z=C[0],B=C[C.length-1];v.shiftKey?document.activeElement===z&&(v.preventDefault(),B.focus()):document.activeElement===B&&(v.preventDefault(),z.focus());};return document.addEventListener("keydown",w),T.focus(),()=>document.removeEventListener("keydown",w)},[d]);let x=()=>{let T={transition:`opacity ${jt}ms ease`};return b==="opening"||b==="idle"?{...T,opacity:0}:b==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},S=()=>{let T={transition:`opacity ${jt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${jt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return b==="opening"||b==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:b==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!d)return null;let D=n==="fullscreen";return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...x()},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:s?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:y.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":y.maxHeight,backgroundColor:c.cardBg,border:D?"none":`1px solid ${c.cardBorder}`,borderRadius:D?0:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...S(),...f},children:[(r||p)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:r}),p&&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:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:T=>{T.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:c.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:o}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:a})]})]}),document.body)};jo.displayName="Modal";var Il={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Qo=220,Bl=({open:e,onClose:t,position:r="right",title:o,children:a,footer:n,width:s=400,showClose:l=true,closeOnOverlay:p=true,className:i,style:f})=>{let u=I(),c=Il[u],[y,d]=Bo.useState(false),[g,b]=Bo.useState("idle"),k=Bo.useRef(null),R=typeof s=="number"?`${s}px`:s;Bo.useEffect(()=>{if(e)d(true),b("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));}),document.body.style.overflow="hidden";else if(y){b("closing");let S=setTimeout(()=>{d(false),b("idle"),document.body.style.overflow="";},Qo);return ()=>clearTimeout(S)}},[e]),Bo.useEffect(()=>()=>{document.body.style.overflow="";},[]),Bo.useEffect(()=>{if(!y)return;let S=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[y,t]);let m=S=>{let D=r==="right"?"100%":"-100%";return S==="opening"||S==="idle"?D:S==="open"?"0%":D},x=()=>g==="open"?1:0;return y?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:x(),transition:`opacity ${Qo}ms ease`,...g==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-label":o,className:i,style:{position:"absolute",top:0,bottom:0,[r]:0,width:R,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,borderLeft:r==="right"?`1px solid ${c.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${c.panelBorder}`:"none",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${m(g)})`,transition:`transform ${Qo}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||l)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[o&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:o}),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:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:c.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:a}),n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${c.divider}`},children:n})]})]}),document.body):null};Bl.displayName="Drawer";var Hl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},or=180,Ll=({open:e,onClose:t,children:r,side:o="bottom",title:a,showClose:n=true,style:s,className:l})=>{let p=I(),i=Hl[p],[f,u]=Bo.useState(false),[c,y]=Bo.useState("idle"),d=Bo.useRef(null);Bo.useEffect(()=>{if(e)u(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));}),document.body.style.overflow="hidden";else if(f){y("closing");let S=setTimeout(()=>{u(false),y("idle"),document.body.style.overflow="";},or);return ()=>clearTimeout(S)}},[e]),Bo.useEffect(()=>()=>{document.body.style.overflow="";},[]),Bo.useEffect(()=>{if(!f)return;let S=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[f,t]);let k=S=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return S==="opening"||S==="idle"?D[o]:S==="open"?"translate(0, 0)":D[o]},R=()=>c==="open"?1:0,m={};o==="bottom"?(m.bottom=0,m.left=0,m.right=0,m.maxHeight="85vh",m.borderTopLeftRadius="16px",m.borderTopRightRadius="16px"):o==="top"?(m.top=0,m.left=0,m.right=0,m.maxHeight="85vh",m.borderBottomLeftRadius="16px",m.borderBottomRightRadius="16px"):o==="right"?(m.top=0,m.bottom=0,m.right=0,m.width="400px",m.maxWidth="100vw"):o==="left"&&(m.top=0,m.bottom=0,m.left=0,m.width="400px",m.maxWidth="100vw");let x={};return o==="bottom"?x.borderTop=`1px solid ${i.panelBorder}`:o==="top"?x.borderBottom=`1px solid ${i.panelBorder}`:o==="right"?x.borderLeft=`1px solid ${i.panelBorder}`:o==="left"&&(x.borderRight=`1px solid ${i.panelBorder}`),f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:R(),transition:`opacity ${or}ms ease`,...c==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":a,className:l,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:k(c),transition:`transform ${or}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...m,...x,...s},children:[o==="bottom"&&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:i.handleBg}})}),(a||n)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:o==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[a&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:a}),n&&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:S=>{S.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:S=>{S.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})]})]}),document.body):null};Ll.displayName="Sheet";var $l={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Wl=({items:e,separator:t="/",className:r,style:o})=>{let a=I(),n=$l[a];return jsxRuntime.jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((s,l)=>{let p=l===e.length-1;return jsxRuntime.jsxs(Bo__default.default.Fragment,{children:[l>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),p?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[s.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]}):jsxRuntime.jsxs("a",{href:s.href??"#",onClick:s.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:i=>{i.currentTarget.style.color=n.linkHover;},onMouseLeave:i=>{i.currentTarget.style.color=n.text;},children:[s.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]})]},l)})})};Wl.displayName="Breadcrumb";var Yl={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Vl={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Ul(e,t,r,o,a){let n=[],s=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&n.push(1),s>2&&(o&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let p=s;p<=l;p++)n.includes(p)||n.push(p);return l<t-1&&n.push("ellipsis-end"),(a||e+r>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var ql=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:a=true,showLast:n=true,size:s="md",className:l,style:p})=>{let i=I(),f=Yl[i],u=Vl[s];if(t<=0)return null;let c=Ul(e,t,o,a,n),y={display:"inline-flex",alignItems:"center",justifyContent:"center",width:u.size,height:u.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...p},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...y,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:d=>{e>1&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:u.iconSize,color:e<=1?f.disabledText:f.text})}),c.map((d,g)=>{if(d==="ellipsis-start"||d==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...y,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},d);let b=d===e;return jsxRuntime.jsx("button",{type:"button","aria-current":b?"page":void 0,"aria-label":`Str\xE1nka ${d}`,onClick:()=>r(d),style:{...y,color:b?f.activeText:f.text,backgroundColor:b?f.activeBg:"transparent",fontWeight:b?600:500},onMouseEnter:k=>{b||(k.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:k=>{b||(k.currentTarget.style.backgroundColor="transparent");},children:d},d)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...y,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:d=>{e<t&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:u.iconSize,color:e>=t?f.disabledText:f.text})})]})};ql.displayName="Pagination";var Xl={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},jl=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:a,className:n,style:s})=>{let l=I(),p=Xl[l],[i,f]=Bo.useState(null),u=r==="horizontal",c=32,y=d=>!o||!a?false:o==="completed"?d<=t:true;return jsxRuntime.jsx("div",{className:n,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...s},children:e.map((d,g)=>{let b=g<t,k=g===t,R=g>t,m=g===e.length-1,x=y(g),S=i===g&&x,D=b?p.completedBg:S?p.hoverBg:p.activeBg,T=b?p.completedBg:k||S?p.activeBorder:p.futureBorder,h=b?p.completedText:k||S?p.activeText:p.futureText,w=S?p.activeText:R?p.labelFuture:p.labelText,v=R?p.descFuture:p.descText,C=b?p.lineCompleted:p.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:m?"0 0 auto":"1 1 0",minWidth:0,cursor:x?"pointer":"default"},onClick:()=>x&&a?.(g),onMouseEnter:()=>f(g),onMouseLeave:()=>f(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:c,height:c,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${T}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:b?jsxRuntime.jsx(react.CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:h,lineHeight:1,transition:"color 0.2s ease"},children:g+1})}),!m&&jsxRuntime.jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:C,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:C,margin:"6px 0",marginLeft:`${c/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:u?"center":"left",minHeight:u||m?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:k||S?600:500,color:w,lineHeight:"normal",transition:"color 0.2s ease"},children:d.label}),d.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:v,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:d.description})]})]},g)})})};jl.displayName="Stepper";var Ql={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},lr=180,ec=({trigger:e,items:t,position:r="bottom-left",className:o,style:a})=>{let n=I(),s=Ql[n],l=Bo.useRef(null),p=Bo.useRef(null),[i,f]=Bo.useState(false),[u,c]=Bo.useState(false),[y,d]=Bo.useState("idle"),[g,b]=Bo.useState({top:0,left:0,openAbove:false}),[k,R]=Bo.useState(-1),m=Bo.useCallback(()=>{f(true),c(true),d("opening"),R(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>d("open"));});},[]),x=Bo.useCallback(()=>{f(false),d("closing");let h=setTimeout(()=>{c(false),d("idle");},lr);return ()=>clearTimeout(h)},[]),S=Bo.useCallback(()=>{if(!l.current)return;let h=l.current.getBoundingClientRect(),w=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,C=window.innerHeight-h.bottom-6,z=h.top-6,B=C<w&&z>C,E;r==="bottom-right"?(E=h.right-v,E<4&&(E=4)):(E=h.left,E+v>window.innerWidth-4&&(E=window.innerWidth-v-4)),b({top:B?h.top-6:h.bottom+6,left:E,openAbove:B});},[r]);Bo.useEffect(()=>{if(u)return S(),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[u,S]),Bo.useEffect(()=>{if(!i)return;let h=w=>{let v=w.target,C=l.current?.contains(v),z=p.current?.contains(v);!C&&!z&&x();};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[i,x]),Bo.useEffect(()=>{if(!i)return;let h=t.map((v,C)=>({item:v,idx:C})).filter(({item:v})=>!v.divider&&!v.disabled),w=v=>{switch(v.key){case "Escape":v.preventDefault(),x();break;case "ArrowDown":{v.preventDefault();let C=h.findIndex(({idx:B})=>B===k),z=C<h.length-1?C+1:0;R(h[z]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let C=h.findIndex(({idx:B})=>B===k),z=C>0?C-1:h.length-1;R(h[z]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),k>=0){let C=t[k];C&&!C.divider&&!C.disabled&&(C.onClick?.(),x());}break}};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[i,k,t,x]);let D=()=>{let h=g.openAbove,w=h?"translateY(8px)":"translateY(-8px)",v=h?"translateY(6px)":"translateY(-6px)",C={transition:`opacity ${lr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${lr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return y==="opening"||y==="idle"?{...C,opacity:0,transform:`${w} scale(0.97)`}:y==="open"?{...C,opacity:1,transform:"translateY(0) scale(1)"}:{...C,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?reactDom.createPortal(jsxRuntime.jsx("div",{ref:p,role:"menu",style:{position:"fixed",...g.openAbove?{bottom:window.innerHeight-g.top,left:g.left}:{top:g.top,left:g.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:g.openAbove?"bottom center":"top center",...D()},children:t.map((h,w)=>{if(h.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},w);let v=h.danger,C=h.disabled,z=w===k,B=C?s.textDisabled:v?s.dangerText:s.text,E=v?s.dangerHover:s.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":C,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:B,backgroundColor:z?E:"transparent",cursor:C?"not-allowed":"pointer",opacity:C?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{C||(h.onClick?.(),x());},onMouseEnter:()=>{C||R(w);},onMouseLeave:()=>R(-1),children:[h.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:h.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label})]},w)})}),document.body):null;return jsxRuntime.jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:l,onClick:()=>{i?x():m();},style:{display:"inline-flex",cursor:"pointer"},children:e}),T]})};ec.displayName="DropdownMenu";var oc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Zg=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:a,style:n,className:s,onMouseEnter:l,onMouseLeave:p,target:i,rel:f,...u})=>{let c=I(),y=oc[c],[d,g]=Bo.useState(false),b=e==="danger"?y.danger:y.default,k={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:d?y.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:b,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},R=o&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:k,className:s,target:i,rel:f??(i==="_blank"?"noopener noreferrer":void 0),onMouseEnter:m=>{g(true),l?.(m);},onMouseLeave:m=>{g(false),p?.(m);},...u,children:r==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a,R]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R,a]})})};var sc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Qt=180,ic=({open:e,onClose:t,value:r,onChange:o,results:a,placeholder:n="Hledat...",className:s,style:l})=>{let p=I(),i=sc[p],[f,u]=Bo.useState(false),[c,y]=Bo.useState("idle"),[d,g]=Bo.useState(-1),b=Bo.useRef(null),k=Bo.useRef(null);Bo.useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let w=document.createElement("style");w.id=h,w.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(w);},[]);let R=a;Bo.useEffect(()=>{if(e)u(true),y("opening"),g(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});else if(f){y("closing");let h=setTimeout(()=>{u(false),y("idle");},Qt);return ()=>clearTimeout(h)}},[e]),Bo.useEffect(()=>{f&&c==="open"&&b.current?.focus();},[f,c]),Bo.useEffect(()=>{g(-1);},[a]),Bo.useEffect(()=>{if(d<0||!k.current)return;let h=k.current.querySelector(`[data-spotlight-index="${d}"]`);h&&h.scrollIntoView({block:"nearest"});},[d]);let m=Bo.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),g(w=>{let v=w+1;return v>=R.length?0:v});break}case "ArrowUp":{h.preventDefault(),g(w=>{let v=w-1;return v<0?R.length-1:v});break}case "Enter":{h.preventDefault(),d>=0&&d<R.length&&(R[d].onSelect(),t());break}}},[R,d,t]),x=[],S=new Map;R.forEach((h,w)=>{let v=S.get(h.category);v||(v=[],S.set(h.category,v),x.push({category:h.category,items:v})),v.push({...h,flatIndex:w});});let D=()=>{let h={transition:`opacity ${Qt}ms ease`};return c==="opening"||c==="idle"?{...h,opacity:0}:c==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},T=()=>{let h={transition:`opacity ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:m,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.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:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...T(),...l},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsxRuntime.jsx("input",{ref:b,type:"text",value:r,onChange:h=>o(h.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:k,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:x.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(h=>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:i.categoryText,userSelect:"none"},children:h.category}),h.items.map(w=>{let v=w.flatIndex===d;return jsxRuntime.jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":w.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{w.onSelect(),t();},onMouseEnter:()=>g(w.flatIndex),onMouseLeave:()=>g(-1),children:[w.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:w.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.label}),w.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:w.description})]})]},w.id)})]},h.category))})]})]}),document.body):null};ic.displayName="Spotlight";var pc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},to=180,fc=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let s=I(),l=pc[s],[p,i]=Bo.useState(false),[f,u]=Bo.useState("idle"),[c,y]=Bo.useState(""),[d,g]=Bo.useState(-1),b=Bo.useRef(null),k=Bo.useRef(null);Bo.useEffect(()=>{let h="sm-commandmenu-scrollbar-hide";if(document.getElementById(h))return;let w=document.createElement("style");w.id=h,w.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(w);},[]);let R=r.map(h=>({...h,items:h.items.filter(w=>w.label.toLowerCase().includes(c.toLowerCase())||w.description?.toLowerCase().includes(c.toLowerCase()))})).filter(h=>h.items.length>0),m=R.flatMap(h=>h.items);Bo.useEffect(()=>{if(e)y(""),g(-1),i(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let h=setTimeout(()=>{i(false),u("idle");},to);return ()=>clearTimeout(h)}},[e]),Bo.useEffect(()=>{p&&f==="open"&&b.current?.focus();},[p,f]),Bo.useEffect(()=>{g(-1);},[c]),Bo.useEffect(()=>{if(d<0||!k.current)return;let h=k.current.querySelector(`[data-cmd-index="${d}"]`);h&&h.scrollIntoView({block:"nearest"});},[d]);let x=Bo.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),g(w=>{let v=w+1;return v>=m.length?0:v});break}case "ArrowUp":{h.preventDefault(),g(w=>{let v=w-1;return v<0?m.length-1:v});break}case "Enter":{h.preventDefault(),d>=0&&d<m.length&&(m[d].onSelect(),t());break}}},[m,d,t]),S=()=>{let h={transition:`opacity ${to}ms ease`};return f==="opening"||f==="idle"?{...h,opacity:0}:f==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},D=()=>{let h={transition:`opacity ${to}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${to}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},T=0;return p?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...S()},onKeyDown:x,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:n,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:l.cardBg,border:`1px solid ${l.cardBorder}`,borderRadius:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...D(),...a},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${l.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:l.textSecondary}),jsxRuntime.jsx("input",{ref:b,type:"text",value:c,onChange:h=>y(h.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:l.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:k,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:R.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):R.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.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:l.categoryText,userSelect:"none"},children:h.label}),h.items.map(w=>{let v=T++,C=v===d;return jsxRuntime.jsxs("div",{role:"option","aria-selected":C,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:C?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{w.onSelect(),t();},onMouseEnter:()=>g(v),onMouseLeave:()=>g(-1),children:[w.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:C?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:w.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.label}),w.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:l.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:w.description})]}),w.shortcut&&jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:w.shortcut})]},w.id)})]},h.label))})]})]}),document.body):null};fc.displayName="CommandMenu";var uc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},gc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:a=64,style:n,className:s})=>{let l=I(),p=uc[l],i=t?a:o;return jsxRuntime.jsx("aside",{className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:`${i}px`,minWidth:`${i}px`,height:"100%",backgroundColor:p.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${p.border}`,boxSizing:"border-box",overflow:"hidden",transition:"width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1)",...n},children: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 180ms cubic-bezier(0.16, 1, 0.3, 1)"},children:e})})};gc.displayName="AppSidebar";var yc={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},vc=({label:e,icon:t,active:r=false,defaultExpanded:o=false,expanded:a,onExpandedChange:n,onClick:s,children:l,collapsed:p=false,disabled:i=false,style:f,className:u})=>{let c=I(),y=yc[c],d=Bo__default.default.Children.count(l)>0,g=a!==void 0,[b,k]=Bo.useState(o),R=g?a:b,[m,x]=Bo.useState(false),S=Bo.useRef(null),[D,T]=Bo.useState(0);Bo.useEffect(()=>{S.current&&T(S.current.scrollHeight);},[l,R]);let h=Bo.useCallback(()=>{g?n?.(!a):k(B=>{let E=!B;return n?.(E),E});},[g,a,n]),w=Bo.useCallback(()=>{i||(d&&h(),s?.());},[i,d,h,s]),v=i?`${y.text}66`:r?y.textActive:m?y.textHover:y.text,C=i?`${y.icon}66`:r?y.iconActive:m?y.iconHover:y.icon,z=r?y.activeBg:m&&!i?y.hoverBg:"transparent";return p?jsxRuntime.jsx("button",{type:"button",onClick:w,disabled:i,title:e,className:u,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:C,cursor:i?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:v},children:e[0]})}):jsxRuntime.jsxs("div",{className:u,style:f,children:[jsxRuntime.jsxs("button",{type:"button",onClick:w,disabled:i,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:v,cursor:i?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:r?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:C,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),d&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:m?y.chevronHover:y.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:R?"rotate(0deg)":"rotate(-90deg)"}})]}),d&&jsxRuntime.jsx("div",{ref:S,style:{overflow:"hidden",maxHeight:R?`${D}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:l})})]})};vc.displayName="SidebarItem";var Sc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},kc=({logo:e,children:t,actions:r,sticky:o=true,glass:a=true,style:n,className:s})=>{let l=I(),p=Sc[l];return jsxRuntime.jsxs("header",{className:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?p.background:p.backgroundSolid,borderBottom:`1px solid ${p.border}`,boxShadow:p.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&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}),r&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};kc.displayName="Navbar";var Ec={info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"}},Dc={info: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"})},On=({variant:e="info",title:t,content:r,icon:o,onClose:a,role:n="alert",style:s,className:l})=>{let{border:p,background:i}=Ec[e],f=o??Dc[e];return jsxRuntime.jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:i,border:`2px solid ${p}`,borderRadius:"8px",boxSizing:"border-box",...s},className:l,children:[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:"#ffffff"},children:f}),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:"#ffffff",lineHeight:"normal"},children:t}),r&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:"#ffffff",lineHeight:"normal"},children:r})]})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:"#ffffff",opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var Yn=3,Pc=.06,Vn=12,ro=320,Un=Bo.createContext(null),Mc=0,Ac=()=>`sm-toast-${++Mc}-${Date.now()}`,S0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:a=16,maxToasts:n=5,duration:s=4e3})=>{let[l,p]=Bo.useState([]),i=Bo.useCallback(c=>{p(y=>y.map(d=>d.id===c?{...d,lifecycle:"leaving"}:d)),setTimeout(()=>{p(y=>y.filter(d=>d.id!==c));},ro+100);},[]),f=Bo.useCallback(c=>{let y=Ac(),d=c.duration??s,g={id:y,variant:c.variant??"info",title:c.title,content:c.content,icon:c.icon,duration:d,lifecycle:"entering",height:0};return p(b=>{let k=[...b,g];return k.length>n?k.slice(k.length-n):k}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(b=>b.map(k=>k.id===y?{...k,lifecycle:"visible"}:k));});}),d>0&&setTimeout(()=>i(y),d),y},[n,i,s]),u=Bo.useCallback((c,y)=>{p(d=>d.map(g=>g.id===c&&g.height!==y?{...g,height:y}:g));},[]);return jsxRuntime.jsxs(Un.Provider,{value:{toast:f,dismiss:i},children:[e,l.length>0&&jsxRuntime.jsx(Lc,{toasts:l,position:t,toastWidth:r,gap:o,offset:a,onDismiss:i,onHeightMeasured:u})]})},Hc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:a,isBottom:n,appeared:s,toastWidth:l,onDismiss:p,onHeightMeasured:i})=>{let f=t.lifecycle==="leaving",u=!s||f,c=a?1:Math.max(.7,1-r*Pc),y=a?0:r*Vn,d=n?-y:y,b=u?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${c}) translateY(${d}px)`,k=u?0:a?1:Math.max(.4,1-r*.18),R=!a&&r>=Yn,m=o-r,x=Bo.useCallback(S=>{S&&t.height===0&&i(t.id,S.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:x,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:b,opacity:R?0:k,zIndex:m,transition:[`transform ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${ro}ms ease`].join(", "),pointerEvents:r===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(On,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>p(t.id),style:{width:l,maxWidth:"100%",boxSizing:"border-box"}})})},Lc=({toasts:e,position:t,toastWidth:r,gap:o,offset:a,onDismiss:n,onHeightMeasured:s})=>{let[l,p]=Bo.useState(false),[i,f]=Bo.useState(new Set),u=t.startsWith("bottom"),c=t.endsWith("right"),y=t.endsWith("center");Bo.useEffect(()=>{f(x=>{let S=new Set(x);return e.forEach(D=>{D.lifecycle==="visible"&&S.add(D.id);}),[...S].forEach(D=>{e.find(T=>T.id===D)||S.delete(D);}),S});},[e]);let b=(e[e.length-1]?.height||80)+Math.min(e.length-1,Yn-1)*Vn,k=e.reduce((x,S)=>x+(S.height||80),0)+Math.max(0,e.length-1)*o,R=l?k:b,m=y?{left:"50%",transform:"translateX(-50%)"}:c?{right:a}:{left:a};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${a*2}px)`,height:R,...u?{bottom:a}:{top:a},...m,transition:`height ${ro}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),"aria-live":"polite","aria-atomic":"false",children:e.map((x,S)=>{let D=e.length-1-S,T=i.has(x.id),h=x.lifecycle==="leaving",w=!T||h,v;if(l&&!w){let z=e.slice(S+1).reduce((E,F)=>E+(F.height||80)+o,0);v=`translateY(${u?-z:z}px)`;}return jsxRuntime.jsx(Hc,{item:x,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:n,onHeightMeasured:s,expandedTransformOverride:v},x.id)})})},k0=()=>{let e=Bo.useContext(Un);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var Uc={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},qc={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},D0=({variant:e="info",title:t,children:r,icon:o,closable:a=false,onClose:n,className:s,style:l})=>{let p=I(),i=Uc[p],f=qc[e],[u,c]=Bo.useState(true);if(!u)return null;let y=p==="light",d=y?f.borderLight:f.border,g=y?f.backgroundLight:f.background,b=y?f.iconColorLight:f.iconColor,R=o??{info: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],m=()=>{c(false),n?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:g,borderLeft:`4px solid ${d}`,borderRadius:"4px",boxSizing:"border-box",...l},className:s,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),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:i.titleText},children:t}),r&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:i.descriptionText},children:r})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:m,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:i.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var Qc={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},ed={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},td=({variant:e="info",title:t,children:r,closable:o=false,onClose:a,icon:n,action:s,style:l,className:p})=>{let i=I(),f=Qc[i],u=ed[e],[c,y]=Bo.useState(true);if(!c)return null;let d=i==="light",g=d?u.bgLight:u.bg,b=d?u.accentLight:u.accent,R=n??{info: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],m=()=>{y(false),a?.();};return jsxRuntime.jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:g,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...l},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),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}),r&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:r})]}),s&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),o&&jsxRuntime.jsx("button",{type:"button",onClick:m,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};td.displayName="Notification";var Kn={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},od={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},_n="sm-ui-progress-stripes",rd=()=>{if(typeof document>"u"||document.getElementById(_n))return;let e=document.createElement("style");e.id=_n,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},$0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:a,striped:n=false,animated:s=false,className:l,style:p})=>{let i=I(),f=Kn[i],u=od[t],c=Math.max(0,Math.min(100,e));n&&s&&rd();let y=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...p},className:l,children:[(a||o)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),o&&jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(c),"%"]})]}),jsxRuntime.jsx("div",{style:{width:"100%",height:u.height,backgroundColor:f.trackBg,borderRadius:u.height/2,overflow:"hidden"},children:jsxRuntime.jsx("div",{style:{width:`${c}%`,height:"100%",backgroundColor:r,borderRadius:u.height/2,transition:"width 0.3s ease",...y}})})]})},W0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:a=false,label:n,className:s,style:l})=>{let p=I(),i=Kn[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,c=2*Math.PI*u,y=c-f/100*c;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...l},className:s,children:[jsxRuntime.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:i.trackBg,strokeWidth:r}),jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:c,strokeDashoffset:y,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxRuntime.jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:i.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},children:n})]})};var sd={sm:16,md:24,lg:40},U0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:a})=>{let[n,s]=Bo.useState(0),l=Bo.useRef(void 0),p=Bo.useRef(void 0);Bo.useEffect(()=>{let u=c=>{p.current===void 0&&(p.current=c),s((c-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let i=typeof e=="number"?e:sd[e]??24,f=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxRuntime.jsxs("svg",{width:i,height:i,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var ld={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},cd=({open:e,onConfirm:t,onCancel:r,title:o,description:a,confirmLabel:n="Potvrdit",cancelLabel:s="Zru\u0161it",variant:l="default",loading:p=false,style:i,className:f})=>{let u=I(),c=ld[u],[y,d]=Bo.useState(false),[g,b]=Bo.useState(false),k=l==="danger",R=k?g?c.dangerHover:c.dangerBg:g?c.confirmHover:c.confirmBg,m=k?c.dangerText:c.confirmText;return jsxRuntime.jsx(jo,{open:e,onClose:r,title:o,size:"sm",className:f,style:i,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:r,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:y?c.cancelHover:c.cancelBg,border:`1px solid ${c.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:s}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:R,border:"none",borderRadius:"6px",cursor:p?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:m,lineHeight:"normal",opacity:p?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:p?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.descriptionText},children:a})})};cd.displayName="ConfirmDialog";var xd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},md={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},hd=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return false}},yd=({text:e,children:t,size:r="md",variant:o="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:s,style:l,className:p})=>{let i=I(),f=xd[i],u=md[r],[c,y]=Bo.useState(false),[d,g]=Bo.useState(false),b=Bo.useRef(null),k=Bo.useCallback(async()=>{await hd(e)&&(y(true),s?.(),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{y(false),b.current=null;},2e3));},[e,s]),R=c?f.successColor:d?f.iconHover:f.iconColor,m=c?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:R,...l},children:t}):o==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),className:p,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:R,...l},children:jsxRuntime.jsx(m,{size:u.iconSize,color:R})}):jsxRuntime.jsxs("button",{type:"button","aria-label":c?n:a,onClick:k,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:d?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:c?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsxRuntime.jsx(m,{size:u.iconSize,color:c?f.successColor:f.buttonText}),c?n:a]})};yd.displayName="CopyButton";var Sd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},db=({orientation:e="horizontal",label:t,className:r,style:o})=>{let a=I(),n=Sd[a];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.border,flexShrink:0,...o}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...o}})};var Cd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Rd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},ub=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:a=false,fullWidth:n=false,children:s,className:l,style:p})=>jsxRuntime.jsx("div",{className:l,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Cd[r],justifyContent:Rd[o],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...p},children:s});var Td={sm:640,md:768,lg:1024,xl:1280},xb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:a,style:n})=>{let s=typeof e=="number"?e:Td[e],l=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:a,style:{maxWidth:`${s}px`,width:"100%",padding:l,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:o})};var Bd={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ea="smDragListPulse",Pd=`@keyframes ${ea}{0%,100%{opacity:1}50%{opacity:0.5}}`;function mr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=mr(r.children,t);if(o)return o}}return null}function br(e,t,r){let o=mr(e,t);if(!o||!o.children)return false;for(let a of o.children)if(a.id===r||br([a],a.id,r))return true;return false}function ta(e,t){let r=null;return [e.reduce((a,n)=>{if(n.id===t)return r=n,a;if(n.children){let[s,l]=ta(n.children,t);l&&(r=l),a.push({...n,children:s.length>0?s:void 0});}else a.push(n);return a},[]),r]}function xr(e,t,r,o){if(r==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],o],expanded:true}:n.children?{...n,children:xr(n.children,t,r,o)}:n);let a=[];for(let n of e)n.id===t?r==="before"?(a.push(o),a.push(n)):(a.push(n),a.push(o)):n.children?a.push({...n,children:xr(n.children,t,r,o)}):a.push(n);return a}function oa(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:oa(r.children,t)}:r)}function ra(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:ra(o.children,t,r)}:o)}var Qn=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ea} 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}})}),na=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:s,onDragOver:l,onDragLeave:p,onDrop:i,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:y,tokens:d})=>{let[g,b]=Bo.useState(false),[k,R]=Bo.useState(false),[m,x]=Bo.useState(false),S=Bo.useRef(false),D=Bo.useRef(null),T=e.children&&e.children.length>0,h=e.expanded??false,w=a===e.id,v=a!==null,C=y==="handle",z=n?.targetId===e.id,B=z&&n?.position==="before",E=z&&n?.position==="after",F=z&&n?.position==="inside",P=w?"transparent":F?d.nestHighlight:k&&!v?d.itemHoverBg:d.itemBg,A=F?d.nestBorder:w?"transparent":d.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[B&&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(Qn,{color:d.dropIndicator})}),jsxRuntime.jsxs("div",{ref:D,draggable:true,onDragStart:H=>{if(C&&!S.current){H.preventDefault();return}if(S.current=false,H.dataTransfer.effectAllowed="move",H.dataTransfer.setData("text/plain",e.id),D.current){let L=D.current.cloneNode(true);L.style.width=`${D.current.offsetWidth}px`,L.style.opacity="0.85",L.style.transform="rotate(1.5deg) scale(1.02)",L.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",L.style.position="fixed",L.style.top="-1000px",document.body.appendChild(L),H.dataTransfer.setDragImage(L,H.nativeEvent.offsetX,H.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(L));}s(e.id);},onDragOver:H=>{H.preventDefault(),H.stopPropagation(),l(H,e.id,t);},onDragLeave:H=>{let L=H.relatedTarget;D.current&&L&&D.current.contains(L)||(H.stopPropagation(),p(H,D.current),R(false));},onDrop:H=>{H.preventDefault(),H.stopPropagation(),i(H);},onDragEnd:f,onMouseEnter:()=>R(true),onMouseLeave:()=>R(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:w?"transparent":d.text,cursor:v?"grabbing":C?"default":"grab",opacity:w?.35:1,backgroundColor:P,borderWidth:"1px",borderColor:A,borderStyle:w?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:F?`inset 0 0 0 1px ${d.nestBorder}`:k&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:F?"scale(1.01)":"scale(1)"},children:[!c&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:v?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:w?"hidden":"visible"},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),onMouseDown:()=>{S.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:g?d.gripHover:d.gripColor})}),F&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:d.dropIndicator})}),T?jsxRuntime.jsx("button",{type:"button",onClick:H=>{H.stopPropagation(),u(e.id);},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:w?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:m?d.chevronHover:d.chevron,style:{transition:"transform 0.2s ease",transform:h?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:w?"hidden":"visible"},children:c?c(e,{handleProps:{onMouseDown:()=>{S.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:w,depth:t,isExpanded:h,toggleExpand:()=>u(e.id),hasChildren:!!T}):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})]})})]}),E&&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(Qn,{color:d.dropIndicator})}),T&&h&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${d.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(H=>jsxRuntime.jsx(na,{item:H,depth:t+1,allowNesting:r,maxDepth:o,draggedId:a,dropState:n,onDragStart:s,onDragOver:l,onDragLeave:p,onDrop:i,onDragEnd:f,onToggleExpand:u,renderItem:c,dragMode:y,tokens:d},H.id))})]})},Md=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:a=3,dragMode:n="full",className:s,style:l})=>{let p=I(),i=Bd[p],[f,u]=Bo.useState(null),[c,y]=Bo.useState(null),d=Bo.useRef(null),g=Bo.useRef(void 0),b=Bo.useRef(void 0),k=Bo.useRef(null),R=Bo.useCallback(h=>{u(h);},[]),m=Bo.useCallback((h,w,v)=>{if(!f||f===w||br(e,f,w))return;g.current&&(clearTimeout(g.current),g.current=void 0);let C=h.currentTarget.getBoundingClientRect(),z=h.clientY-C.top,B=C.height,E;o&&v<a?z<B*.25?E="before":z>B*.75?E="after":E="inside":z<B*.35?E="before":z>B*.65?E="after":k.current?.targetId===w?E=k.current.position:E=z<B/2?"before":"after";let F={targetId:w,position:E},P=mr(e,w);E==="inside"&&P?.children&&P.children.length>0&&!P.expanded?(k.current?.targetId!==w||k.current?.position!=="inside")&&(b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{t(ra(e,w,true));},600)):b.current&&(clearTimeout(b.current),b.current=void 0),k.current=F,y(F);},[f,e,o,a,t]),x=Bo.useCallback((h,w)=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{y(null),k.current=null;},60),b.current&&(clearTimeout(b.current),b.current=void 0);},[]),S=Bo.useCallback(()=>{if(g.current&&(clearTimeout(g.current),g.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),!f||!c)return;let{targetId:h,position:w}=c;if(f===h||br(e,f,h))return;let[v,C]=ta(e,f);if(!C)return;let z=xr(v,h,w,C);t(z),u(null),y(null),k.current=null;},[f,c,e,t]),D=Bo.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=void 0),b.current&&(clearTimeout(b.current),b.current=void 0),u(null),y(null),k.current=null;},[]),T=Bo.useCallback(h=>{t(oa(e,h));},[e,t]);return Bo.useEffect(()=>()=>{g.current&&clearTimeout(g.current),b.current&&clearTimeout(b.current);},[]),jsxRuntime.jsxs("div",{ref:d,className:s,style:{display:"flex",flexDirection:"column",gap:"6px",...l},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Pd}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.textSecondary,backgroundColor:i.itemBg,borderRadius:"10px",border:`1px solid ${i.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(h=>jsxRuntime.jsx(na,{item:h,depth:0,allowNesting:o,maxDepth:a,draggedId:f,dropState:c,onDragStart:R,onDragOver:m,onDragLeave:x,onDrop:S,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:n,tokens:i},h.id))]})};Md.displayName="DragList";exports.Accordion=wi;exports.AccordionItem=Ri;exports.Alert=D0;exports.AppSidebar=gc;exports.Avatar=yu;exports.Badge=wu;exports.Breadcrumb=Wl;exports.Button=ha;exports.Calendar=ll;exports.Card=yi;exports.Checkbox=Zr;exports.CheckboxGroup=Or;exports.ColorPicker=Gs;exports.Combobox=Xa;exports.CommandMenu=fc;exports.ConfirmDialog=cd;exports.Container=xb;exports.CopyButton=yd;exports.DataGrid=xi;exports.DataList=fl;exports.DatePicker=$r;exports.DatePickerGroup=ss;exports.Divider=db;exports.DragList=Md;exports.Drawer=Bl;exports.DropdownMenu=ec;exports.EmptyState=Ui;exports.FileUpload=en;exports.Input=wr;exports.InputGroup=Ud;exports.Link=Zg;exports.Modal=jo;exports.Navbar=kc;exports.Notification=td;exports.NumberInput=Aa;exports.OTPInput=ii;exports.Pagination=ql;exports.Popover=Wi;exports.ProgressBar=$0;exports.ProgressCircle=W0;exports.Radio=yo;exports.RadioGroup=Vr;exports.Rating=Qs;exports.SegmentedControl=Ns;exports.Select=Ir;exports.SelectGroup=Wa;exports.Sheet=Ll;exports.SidebarItem=vc;exports.Skeleton=nt;exports.Slider=Jr;exports.Spinner=U0;exports.Spotlight=ic;exports.Stack=ub;exports.Stat=Xi;exports.StatusBadge=Cl;exports.Stepper=jl;exports.Switch=qr;exports.Tab=Ei;exports.TabPanel=Di;exports.Table=ui;exports.Tabs=zi;exports.Tag=Ru;exports.TagItem=Tu;exports.Textarea=_r;exports.Timeline=dl;exports.Toast=On;exports.ToasterProvider=S0;exports.Tooltip=Mi;exports.Tree=ml;exports.useTheme=I;exports.useToast=k0;//# sourceMappingURL=index.js.map
|
|
18
|
+
`,document.head.appendChild(t),lr=true;},Bl=({status:e,label:t,size:o="md",pulse:r=false,color:a,style:n,className:c})=>{let i=I(),d=El[i],s=zl[o],f=a||Dl[e]||"#888888";return r&&Il(),jsxRuntime.jsxs("span",{className:c,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...n},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[r&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,fontWeight:400,color:d.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Bl.displayName="StatusBadge";var Al={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},no=180,Hl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},pr=({open:e,onClose:t,title:o,children:r,footer:a,size:n="md",closeOnOverlay:c=true,closeOnEscape:i=true,showClose:d=true,className:s,style:f})=>{let p=I(),l=Al[p],m=Hl[n],[u,b]=_o.useState(false),[g,w]=_o.useState("idle"),S=_o.useRef(null),v=_o.useRef(null);_o.useEffect(()=>{if(e)v.current=document.activeElement,b(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}),document.body.style.overflow="hidden";else if(u){w("closing");let E=setTimeout(()=>{b(false),w("idle"),document.body.style.overflow="",v.current instanceof HTMLElement&&v.current.focus();},no);return ()=>clearTimeout(E)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!u||!i)return;let E=h=>{h.key==="Escape"&&t();};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[u,i,t]),_o.useEffect(()=>{if(!u||!S.current)return;let E=S.current,h='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',R=F=>{if(F.key!=="Tab")return;let T=E.querySelectorAll(h);if(T.length===0){F.preventDefault();return}let z=T[0],M=T[T.length-1];F.shiftKey?document.activeElement===z&&(F.preventDefault(),M.focus()):document.activeElement===M&&(F.preventDefault(),z.focus());};return document.addEventListener("keydown",R),E.focus(),()=>document.removeEventListener("keydown",R)},[u]);let x=()=>{let E={transition:`opacity ${no}ms ease`};return g==="opening"||g==="idle"?{...E,opacity:0}:g==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},C=()=>{let E={transition:`opacity ${no}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${no}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...E,opacity:0,transform:"scale(0.95)"}:g==="open"?{...E,opacity:1,transform:"scale(1)"}:{...E,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!u)return null;let B=n==="fullscreen";return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:B?"stretch":"center",justifyContent:"center",...x()},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:c?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:m.width,maxWidth:B?void 0:"calc(100vw - 32px)",maxHeight:B?"100vh":m.maxHeight,backgroundColor:l.cardBg,border:B?"none":`1px solid ${l.cardBorder}`,borderRadius:B?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...C(),...f},children:[(o||d)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:o}),d&&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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:a})]})]}),document.body)};pr.displayName="Modal";var Wl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},ur=220,Ol=({open:e,onClose:t,position:o="right",title:r,children:a,footer:n,width:c=400,showClose:i=true,closeOnOverlay:d=true,className:s,style:f})=>{let p=I(),l=Wl[p],[m,u]=_o.useState(false),[b,g]=_o.useState("idle"),w=_o.useRef(null),S=typeof c=="number"?`${c}px`:c;_o.useEffect(()=>{if(e)u(true),g("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));}),document.body.style.overflow="hidden";else if(m){g("closing");let C=setTimeout(()=>{u(false),g("idle"),document.body.style.overflow="";},ur);return ()=>clearTimeout(C)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!m)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[m,t]);let v=C=>{let B=o==="right"?"100%":"-100%";return C==="opening"||C==="idle"?B:C==="open"?"0%":B},x=()=>b==="open"?1:0;return m?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:x(),transition:`opacity ${ur}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",top:0,bottom:0,[o]:0,width:S,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:l.panelBg,borderLeft:o==="right"?`1px solid ${l.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${l.panelBorder}`:"none",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${v(b)})`,transition:`transform ${ur}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(r||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:C=>{C.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:a}),n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:n})]})]}),document.body):null};Ol.displayName="Drawer";var Ul={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},xr=180,ql=({open:e,onClose:t,children:o,side:r="bottom",title:a,showClose:n=true,style:c,className:i})=>{let d=I(),s=Ul[d],[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),u=_o.useRef(null);_o.useEffect(()=>{if(e)p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(f){m("closing");let C=setTimeout(()=>{p(false),m("idle"),document.body.style.overflow="";},xr);return ()=>clearTimeout(C)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!f)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[f,t]);let w=C=>{let B={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return C==="opening"||C==="idle"?B[r]:C==="open"?"translate(0, 0)":B[r]},S=()=>l==="open"?1:0,v={};r==="bottom"?(v.bottom=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderTopLeftRadius="16px",v.borderTopRightRadius="16px"):r==="top"?(v.top=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderBottomLeftRadius="16px",v.borderBottomRightRadius="16px"):r==="right"?(v.top=0,v.bottom=0,v.right=0,v.width="400px",v.maxWidth="100vw"):r==="left"&&(v.top=0,v.bottom=0,v.left=0,v.width="400px",v.maxWidth="100vw");let x={};return r==="bottom"?x.borderTop=`1px solid ${s.panelBorder}`:r==="top"?x.borderBottom=`1px solid ${s.panelBorder}`:r==="right"?x.borderLeft=`1px solid ${s.panelBorder}`:r==="left"&&(x.borderRight=`1px solid ${s.panelBorder}`),f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:S(),transition:`opacity ${xr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":a,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:w(l),transition:`transform ${xr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...v,...x,...c},children:[r==="bottom"&&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:s.handleBg}})}),(a||n)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[a&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:a}),n&&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:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:C=>{C.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:s.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:o})]})]}),document.body):null};ql.displayName="Sheet";var Gl={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Xl=({items:e,separator:t="/",className:o,style:r})=>{let a=I(),n=Gl[a];return 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",...r},children:e.map((c,i)=>{let d=i===e.length-1;return jsxRuntime.jsxs(_o__default.default.Fragment,{children:[i>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),d?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[c.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]}):jsxRuntime.jsxs("a",{href:c.href??"#",onClick:c.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:s=>{s.currentTarget.style.color=n.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=n.text;},children:[c.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]})]},i)})})};Xl.displayName="Breadcrumb";var Jl={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Ql={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ec(e,t,o,r,a){let n=[],c=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&n.push(1),c>2&&(r&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let d=c;d<=i;d++)n.includes(d)||n.push(d);return i<t-1&&n.push("ellipsis-end"),(a||e+o>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var tc=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:a=true,showLast:n=true,size:c="md",className:i,style:d})=>{let s=I(),f=Jl[s],p=Ql[c];if(t<=0)return null;let l=ec(e,t,r,a,n),m={display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.size,height:p.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...d},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...m,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:u=>{e>1&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:p.iconSize,color:e<=1?f.disabledText:f.text})}),l.map((u,b)=>{if(u==="ellipsis-start"||u==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...m,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},u);let g=u===e;return jsxRuntime.jsx("button",{type:"button","aria-current":g?"page":void 0,"aria-label":`Str\xE1nka ${u}`,onClick:()=>o(u),style:{...m,color:g?f.activeText:f.text,backgroundColor:g?f.activeBg:"transparent",fontWeight:g?600:500},onMouseEnter:w=>{g||(w.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:w=>{g||(w.currentTarget.style.backgroundColor="transparent");},children:u},u)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...m,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:u=>{e<t&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:p.iconSize,color:e>=t?f.disabledText:f.text})})]})};tc.displayName="Pagination";var ac={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},sc=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:a,className:n,style:c})=>{let i=I(),d=ac[i],[s,f]=_o.useState(null),p=o==="horizontal",l=32,m=u=>!r||!a?false:r==="completed"?u<=t:true;return jsxRuntime.jsx("div",{className:n,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...c},children:e.map((u,b)=>{let g=b<t,w=b===t,S=b>t,v=b===e.length-1,x=m(b),C=s===b&&x,B=g?d.completedBg:C?d.hoverBg:d.activeBg,E=g?d.completedBg:w||C?d.activeBorder:d.futureBorder,h=g?d.completedText:w||C?d.activeText:d.futureText,R=C?d.activeText:S?d.labelFuture:d.labelText,F=S?d.descFuture:d.descText,T=g?d.lineCompleted:d.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:v?"0 0 auto":"1 1 0",minWidth:0,cursor:x?"pointer":"default"},onClick:()=>x&&a?.(b),onMouseEnter:()=>f(b),onMouseLeave:()=>f(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:B,border:`2px solid ${E}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:g?jsxRuntime.jsx(react.CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:h,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!v&&jsxRuntime.jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:T,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:T,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||v?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:w||C?600:500,color:R,lineHeight:"normal",transition:"color 0.2s ease"},children:u.label}),u.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:u.description})]})]},b)})})};sc.displayName="Stepper";var lc={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},kr=180,cc=({trigger:e,items:t,position:o="bottom-left",className:r,style:a})=>{let n=I(),c=lc[n],i=_o.useRef(null),d=_o.useRef(null),[s,f]=_o.useState(false),[p,l]=_o.useState(false),[m,u]=_o.useState("idle"),[b,g]=_o.useState({top:0,left:0,openAbove:false}),[w,S]=_o.useState(-1),v=_o.useCallback(()=>{f(true),l(true),u("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),x=_o.useCallback(()=>{f(false),u("closing");let h=setTimeout(()=>{l(false),u("idle");},kr);return ()=>clearTimeout(h)},[]),C=_o.useCallback(()=>{if(!i.current)return;let h=i.current.getBoundingClientRect(),R=d.current?.offsetHeight??200,F=d.current?.offsetWidth??200,T=window.innerHeight-h.bottom-6,z=h.top-6,M=T<R&&z>T,y;o==="bottom-right"?(y=h.right-F,y<4&&(y=4)):(y=h.left,y+F>window.innerWidth-4&&(y=window.innerWidth-F-4)),g({top:M?h.top-6:h.bottom+6,left:y,openAbove:M});},[o]);_o.useEffect(()=>{if(p)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[p,C]),_o.useEffect(()=>{if(!s)return;let h=R=>{let F=R.target,T=i.current?.contains(F),z=d.current?.contains(F);!T&&!z&&x();};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,x]),_o.useEffect(()=>{if(!s)return;let h=t.map((F,T)=>({item:F,idx:T})).filter(({item:F})=>!F.divider&&!F.disabled),R=F=>{switch(F.key){case "Escape":F.preventDefault(),x();break;case "ArrowDown":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T<h.length-1?T+1:0;S(h[z]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T>0?T-1:h.length-1;S(h[z]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),w>=0){let T=t[w];T&&!T.divider&&!T.disabled&&(T.onClick?.(),x());}break}};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[s,w,t,x]);let B=()=>{let h=b.openAbove,R=h?"translateY(8px)":"translateY(-8px)",F=h?"translateY(6px)":"translateY(-6px)",T={transition:`opacity ${kr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${kr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...T,opacity:0,transform:`${R} scale(0.97)`}:m==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},E=p?reactDom.createPortal(jsxRuntime.jsx("div",{ref:d,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:c.dropdownBg,border:`1px solid ${c.dropdownBorder}`,borderRadius:"12px",boxShadow:c.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...B()},children:t.map((h,R)=>{if(h.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:c.divider,margin:"4px 6px"}},R);let F=h.danger,T=h.disabled,z=R===w,M=T?c.textDisabled:F?c.dangerText:c.text,y=F?c.dangerHover:c.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":T,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:M,backgroundColor:z?y:"transparent",cursor:T?"not-allowed":"pointer",opacity:T?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{T||(h.onClick?.(),x());},onMouseEnter:()=>{T||S(R);},onMouseLeave:()=>S(-1),children:[h.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:h.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label})]},R)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:i,onClick:()=>{s?x():v();},style:{display:"inline-flex",cursor:"pointer"},children:e}),E]})};cc.displayName="DropdownMenu";var pc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},jg=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:a,style:n,className:c,onMouseEnter:i,onMouseLeave:d,target:s,rel:f,...p})=>{let l=I(),m=pc[l],[u,b]=_o.useState(false),g=e==="danger"?m.danger:m.default,w={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:u?m.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:g,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},S=r&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:w,className:c,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:v=>{b(true),i?.(v);},onMouseLeave:v=>{b(false),d?.(v);},...p,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a,S]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,a]})})};var bc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},so=180,xc=({open:e,onClose:t,value:o,onChange:r,results:a,placeholder:n="Hledat...",className:c,style:i})=>{let d=I(),s=bc[d],[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),[u,b]=_o.useState(-1),g=_o.useRef(null),w=_o.useRef(null);_o.useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=a;_o.useEffect(()=>{if(e)p(true),m("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});else if(f){m("closing");let h=setTimeout(()=>{p(false),m("idle");},so);return ()=>clearTimeout(h)}},[e]),_o.useEffect(()=>{f&&l==="open"&&g.current?.focus();},[f,l]),_o.useEffect(()=>{b(-1);},[a]),_o.useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let v=_o.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=S.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?S.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<S.length&&(S[u].onSelect(),t());break}}},[S,u,t]),x=[],C=new Map;S.forEach((h,R)=>{let F=C.get(h.category);F||(F=[],C.set(h.category,F),x.push({category:h.category,items:F})),F.push({...h,flatIndex:R});});let B=()=>{let h={transition:`opacity ${so}ms ease`};return l==="opening"||l==="idle"?{...h,opacity:0}:l==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},E=()=>{let h={transition:`opacity ${so}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${so}ms cubic-bezier(0.16, 1, 0.3, 1)`};return l==="opening"||l==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:l==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...B()},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:c,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...i},children:[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:g,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),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:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:x.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"}):x.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:s.categoryText,userSelect:"none"},children:h.category}),h.items.map(R=>{let F=R.flatIndex===u;return jsxRuntime.jsxs("div",{role:"option","aria-selected":F,"data-spotlight-index":R.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:F?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(R.flatIndex),onMouseLeave:()=>b(-1),children:[R.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:F?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:R.icon}),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:R.label}),R.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:R.description})]})]},R.id)})]},h.category))})]})]}),document.body):null};xc.displayName="Spotlight";var vc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},lo=180,Sc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let c=I(),i=vc[c],[d,s]=_o.useState(false),[f,p]=_o.useState("idle"),[l,m]=_o.useState(""),[u,b]=_o.useState(-1),g=_o.useRef(null),w=_o.useRef(null);_o.useEffect(()=>{let h="sm-commandmenu-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=o.map(h=>({...h,items:h.items.filter(R=>R.label.toLowerCase().includes(l.toLowerCase())||R.description?.toLowerCase().includes(l.toLowerCase()))})).filter(h=>h.items.length>0),v=S.flatMap(h=>h.items);_o.useEffect(()=>{if(e)m(""),b(-1),s(true),p("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>p("open"));});else if(d){p("closing");let h=setTimeout(()=>{s(false),p("idle");},lo);return ()=>clearTimeout(h)}},[e]),_o.useEffect(()=>{d&&f==="open"&&g.current?.focus();},[d,f]),_o.useEffect(()=>{b(-1);},[l]),_o.useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-cmd-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let x=_o.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=v.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?v.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<v.length&&(v[u].onSelect(),t());break}}},[v,u,t]),C=()=>{let h={transition:`opacity ${lo}ms ease`};return f==="opening"||f==="idle"?{...h,opacity:0}:f==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},B=()=>{let h={transition:`opacity ${lo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${lo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},E=0;return d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...C()},onKeyDown:x,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:n,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...B(),...a},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsxRuntime.jsx("input",{ref:g,type:"text",value:l,onChange:h=>m(h.target.value),placeholder:r,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:w,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:S.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):S.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.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:i.categoryText,userSelect:"none"},children:h.label}),h.items.map(R=>{let F=E++,T=F===u;return jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(F),onMouseLeave:()=>b(-1),children:[R.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:R.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.label}),R.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:R.description})]}),R.shortcut&&jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:R.shortcut})]},R.id)})]},h.label))})]})]}),document.body):null};Sc.displayName="CommandMenu";var kc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},wr=250,Cc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:a=64,style:n,className:c})=>{let i=I(),d=kc[i],s=t?a:r;return jsxRuntime.jsx("aside",{className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:`${s}px`,minWidth:`${s}px`,height:"100%",backgroundColor:d.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${d.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${wr}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`,...n},children: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 ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cc.displayName="AppSidebar";var Ec={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},Dc=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:a,onExpandedChange:n,onClick:c,children:i,collapsed:d=false,disabled:s=false,style:f,className:p})=>{let l=I(),m=Ec[l],u=_o__default.default.Children.count(i)>0,b=a!==void 0,[g,w]=_o.useState(r),S=b?a:g,[v,x]=_o.useState(false),C=_o.useRef(null),[B,E]=_o.useState(0);_o.useEffect(()=>{C.current&&E(C.current.scrollHeight);},[i,S]);let h=_o.useCallback(()=>{b?n?.(!a):w(M=>{let y=!M;return n?.(y),y});},[b,a,n]),R=_o.useCallback(()=>{s||(u&&h(),c?.());},[s,u,h,c]),F=s?`${m.text}66`:o?m.textActive:v?m.textHover:m.text,T=s?`${m.icon}66`:o?m.iconActive:v?m.iconHover:m.icon,z=o?m.activeBg:v&&!s?m.hoverBg:"transparent";return d?jsxRuntime.jsx("button",{type:"button",onClick:R,disabled:s,title:e,className:p,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:T,cursor:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxRuntime.jsxs("div",{className:p,style:f,children:[jsxRuntime.jsxs("button",{type:"button",onClick:R,disabled:s,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:F,cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),u&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:v?m.chevronHover:m.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:S?"rotate(0deg)":"rotate(-90deg)"}})]}),u&&jsxRuntime.jsx("div",{ref:C,style:{overflow:"hidden",maxHeight:S?`${B}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:i})})]})};Dc.displayName="SidebarItem";var zc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Ic=({logo:e,children:t,actions:o,sticky:r=true,glass:a=true,style:n,className:c})=>{let i=I(),d=zc[i];return jsxRuntime.jsxs("header",{className:c,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?d.background:d.backgroundSolid,borderBottom:`1px solid ${d.border}`,boxShadow:d.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&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})]})};Ic.displayName="Navbar";var Lc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Nc={info: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"})},sa=({variant:e="info",title:t,content:o,icon:r,onClose:a,role:n="alert",style:c,className:i})=>{let d=I(),s=Lc[d],{border:f,background:p}=s[e],l=r??Nc[e];return jsxRuntime.jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:p,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...c},className:i,children:[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:s.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:s.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:o})]})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:s.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ia=3,Zc=.06,la=12,po=320,ca=_o.createContext(null),Yc=0,Vc=()=>`sm-toast-${++Yc}-${Date.now()}`,B0=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:a=16,maxToasts:n=5,duration:c=4e3})=>{let[i,d]=_o.useState([]),s=_o.useCallback(l=>{d(m=>m.map(u=>u.id===l?{...u,lifecycle:"leaving"}:u)),setTimeout(()=>{d(m=>m.filter(u=>u.id!==l));},po+100);},[]),f=_o.useCallback(l=>{let m=Vc(),u=l.duration??c,b={id:m,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:u,lifecycle:"entering",height:0};return d(g=>{let w=[...g,b];return w.length>n?w.slice(w.length-n):w}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(g=>g.map(w=>w.id===m?{...w,lifecycle:"visible"}:w));});}),u>0&&setTimeout(()=>s(m),u),m},[n,s,c]),p=_o.useCallback((l,m)=>{d(u=>u.map(b=>b.id===l&&b.height!==m?{...b,height:m}:b));},[]);return jsxRuntime.jsxs(ca.Provider,{value:{toast:f,dismiss:s},children:[e,i.length>0&&jsxRuntime.jsx(qc,{toasts:i,position:t,toastWidth:o,gap:r,offset:a,onDismiss:s,onHeightMeasured:p})]})},Uc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:a,isBottom:n,appeared:c,toastWidth:i,onDismiss:d,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",p=!c||f,l=a?1:Math.max(.7,1-o*Zc),m=a?0:o*la,u=n?-m:m,g=p?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${u}px)`,w=p?0:a?1:Math.max(.4,1-o*.18),S=!a&&o>=ia,v=r-o,x=_o.useCallback(C=>{C&&t.height===0&&s(t.id,C.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:x,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:g,opacity:S?0:w,zIndex:v,transition:[`transform ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${po}ms ease`].join(", "),pointerEvents:o===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(sa,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},qc=({toasts:e,position:t,toastWidth:o,gap:r,offset:a,onDismiss:n,onHeightMeasured:c})=>{let[i,d]=_o.useState(false),[s,f]=_o.useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),m=t.endsWith("center");_o.useEffect(()=>{f(x=>{let C=new Set(x);return e.forEach(B=>{B.lifecycle==="visible"&&C.add(B.id);}),[...C].forEach(B=>{e.find(E=>E.id===B)||C.delete(B);}),C});},[e]);let g=(e[e.length-1]?.height||80)+Math.min(e.length-1,ia-1)*la,w=e.reduce((x,C)=>x+(C.height||80),0)+Math.max(0,e.length-1)*r,S=i?w:g,v=m?{left:"50%",transform:"translateX(-50%)"}:l?{right:a}:{left:a};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${a*2}px)`,height:S,...p?{bottom:a}:{top:a},...v,transition:`height ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((x,C)=>{let B=e.length-1-C,E=s.has(x.id),h=x.lifecycle==="leaving",R=!E||h,F;if(i&&!R){let z=e.slice(C+1).reduce((y,D)=>y+(D.height||80)+r,0);F=`translateY(${p?-z:z}px)`;}return jsxRuntime.jsx(Uc,{item:x,depthIndex:B,stackSize:e.length,expanded:i,isBottom:p,appeared:E,toastWidth:o,onDismiss:n,onHeightMeasured:c,expandedTransformOverride:F},x.id)})})},P0=()=>{let e=_o.useContext(ca);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var ed={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},td={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},W0=({variant:e="info",title:t,children:o,icon:r,closable:a=false,onClose:n,className:c,style:i})=>{let d=I(),s=ed[d],f=td[e],[p,l]=_o.useState(true);if(!p)return null;let m=d==="light",u=m?f.borderLight:f.border,b=m?f.backgroundLight:f.background,g=m?f.iconColorLight:f.iconColor,S=r??{info:jsxRuntime.jsx(react.Info,{size:24,color:g}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:g}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:g}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:g})}[e],v=()=>{l(false),n?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${u}`,borderRadius:"4px",boxSizing:"border-box",...i},className:c,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),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:s.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:o})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:v,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:s.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ld={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},cd={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},dd=({variant:e="info",title:t,children:o,closable:r=false,onClose:a,icon:n,action:c,style:i,className:d})=>{let s=I(),f=ld[s],p=cd[e],[l,m]=_o.useState(true);if(!l)return null;let u=s==="light",b=u?p.bgLight:p.bg,g=u?p.accentLight:p.accent,S=n??{info:jsxRuntime.jsx(react.Info,{size:20,color:g}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:g}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:g}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:g})}[e],v=()=>{m(false),a?.();};return jsxRuntime.jsxs("div",{role:"status",className:d,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:b,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),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.bodyText},children:o})]}),c&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:c}),r&&jsxRuntime.jsx("button",{type:"button",onClick:v,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};dd.displayName="Notification";var ua={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},pd={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},fa="sm-ui-progress-stripes",fd=()=>{if(typeof document>"u"||document.getElementById(fa))return;let e=document.createElement("style");e.id=fa,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},K0=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:a,striped:n=false,animated:c=false,className:i,style:d})=>{let s=I(),f=ua[s],p=pd[t],l=Math.max(0,Math.min(100,e));n&&c&&fd();let m=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...c?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:i,children:[(a||r)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),r&&jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsxRuntime.jsx("div",{style:{width:"100%",height:p.height,backgroundColor:f.trackBg,borderRadius:p.height/2,overflow:"hidden"},children:jsxRuntime.jsx("div",{style:{width:`${l}%`,height:"100%",backgroundColor:o,borderRadius:p.height/2,transition:"width 0.3s ease",...m}})})]})},j0=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:a=false,label:n,className:c,style:i})=>{let d=I(),s=ua[d],f=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,m=l-f/100*l;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},className:c,children:[jsxRuntime.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:s.trackBg,strokeWidth:o}),jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:m,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxRuntime.jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:n})]})};var bd={sm:16,md:24,lg:40},ob=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:a})=>{let[n,c]=_o.useState(0),i=_o.useRef(void 0),d=_o.useRef(void 0);_o.useEffect(()=>{let p=l=>{d.current===void 0&&(d.current=l),c((l-d.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let s=typeof e=="number"?e:bd[e]??24,f=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxRuntime.jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var md={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},hd=({open:e,onConfirm:t,onCancel:o,title:r,description:a,confirmLabel:n="Potvrdit",cancelLabel:c="Zru\u0161it",variant:i="default",loading:d=false,style:s,className:f})=>{let p=I(),l=md[p],[m,u]=_o.useState(false),[b,g]=_o.useState(false),w=i==="danger",S=w?b?l.dangerHover:l.dangerBg:b?l.confirmHover:l.confirmBg,v=w?l.dangerText:l.confirmText;return jsxRuntime.jsx(pr,{open:e,onClose:o,title:r,size:"sm",className:f,style:s,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:m?l.cancelHover:l.cancelBg,border:`1px solid ${l.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:c}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:d,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:S,border:"none",borderRadius:"6px",cursor:d?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:v,lineHeight:"normal",opacity:d?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:d?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:a})})};hd.displayName="ConfirmDialog";var Rd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},Td={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Fd=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},Ed=({text:e,children:t,size:o="md",variant:r="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:c,style:i,className:d})=>{let s=I(),f=Rd[s],p=Td[o],[l,m]=_o.useState(false),[u,b]=_o.useState(false),g=_o.useRef(null),w=_o.useCallback(async()=>{await Fd(e)&&(m(true),c?.(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(false),g.current=null;},2e3));},[e,c]),S=l?f.successColor:u?f.iconHover:f.iconColor,v=l?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:S,...i},children:t}):r==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:S,...i},children:jsxRuntime.jsx(v,{size:p.iconSize,color:S})}):jsxRuntime.jsxs("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:u?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,color:l?f.successColor:f.buttonText,lineHeight:"normal",...i},children:[jsxRuntime.jsx(v,{size:p.iconSize,color:l?f.successColor:f.buttonText}),l?n:a]})};Ed.displayName="CopyButton";var zd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Sb=({orientation:e="horizontal",label:t,className:o,style:r})=>{let a=I(),n=zd[a];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.border,flexShrink:0,...r}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...r}})};var Bd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Pd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},wb=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:a=false,fullWidth:n=false,children:c,className:i,style:d})=>jsxRuntime.jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Bd[o],justifyContent:Pd[r],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...d},children:c});var Ad={sm:640,md:768,lg:1024,xl:1280},Fb=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:a,style:n})=>{let c=typeof e=="number"?e:Ad[e],i=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:a,style:{maxWidth:`${c}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:r})};var Od={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ha="smDragListPulse",Zd=`@keyframes ${ha}{0%,100%{opacity:1}50%{opacity:0.5}}`;function Br(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=Br(o.children,t);if(r)return r}}return null}function zr(e,t,o){let r=Br(e,t);if(!r||!r.children)return false;for(let a of r.children)if(a.id===o||zr([a],a.id,o))return true;return false}function ya(e,t){let o=null;return [e.reduce((a,n)=>{if(n.id===t)return o=n,a;if(n.children){let[c,i]=ya(n.children,t);i&&(o=i),a.push({...n,children:c.length>0?c:void 0});}else a.push(n);return a},[]),o]}function Ir(e,t,o,r){if(o==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],r],expanded:true}:n.children?{...n,children:Ir(n.children,t,o,r)}:n);let a=[];for(let n of e)n.id===t?o==="before"?(a.push(r),a.push(n)):(a.push(n),a.push(r)):n.children?a.push({...n,children:Ir(n.children,t,o,r)}):a.push(n);return a}function va(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:va(o.children,t)}:o)}function Sa(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Sa(r.children,t,o)}:r)}var ma=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ha} 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}})}),ka=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u})=>{let[b,g]=_o.useState(false),[w,S]=_o.useState(false),[v,x]=_o.useState(false),C=_o.useRef(false),B=_o.useRef(null),E=e.children&&e.children.length>0,h=e.expanded??false,R=a===e.id,F=a!==null,T=m==="handle",z=n?.targetId===e.id,M=z&&n?.position==="before",y=z&&n?.position==="after",D=z&&n?.position==="inside",P=R?"transparent":D?u.nestHighlight:w&&!F?u.itemHoverBg:u.itemBg,H=D?u.nestBorder:R?"transparent":u.itemBorder;return 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(ma,{color:u.dropIndicator})}),jsxRuntime.jsxs("div",{ref:B,draggable:true,onDragStart:N=>{if(T&&!C.current){N.preventDefault();return}if(C.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),B.current){let A=B.current.cloneNode(true);A.style.width=`${B.current.offsetWidth}px`,A.style.opacity="0.85",A.style.transform="rotate(1.5deg) scale(1.02)",A.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",A.style.position="fixed",A.style.top="-1000px",document.body.appendChild(A),N.dataTransfer.setDragImage(A,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(A));}c(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),i(N,e.id,t);},onDragLeave:N=>{let A=N.relatedTarget;B.current&&A&&B.current.contains(A)||(N.stopPropagation(),d(N,B.current),S(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),s(N);},onDragEnd:f,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:R?"transparent":u.text,cursor:F?"grabbing":T?"default":"grab",opacity:R?.35:1,backgroundColor:P,borderWidth:"1px",borderColor:H,borderStyle:R?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:D?`inset 0 0 0 1px ${u.nestBorder}`:w&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:D?"scale(1.01)":"scale(1)"},children:[!l&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:R?"hidden":"visible"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onMouseDown:()=>{C.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:b?u.gripHover:u.gripColor})}),D&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:u.dropIndicator})}),E?jsxRuntime.jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),p(e.id);},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:R?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v?u.chevronHover:u.chevron,style:{transition:"transform 0.2s ease",transform:h?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:R?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{C.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:R,depth:t,isExpanded:h,toggleExpand:()=>p(e.id),hasChildren:!!E}):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})]})})]}),y&&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(ma,{color:u.dropIndicator})}),E&&h&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${u.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsxRuntime.jsx(ka,{item:N,depth:t+1,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u},N.id))})]})},Yd=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:a=3,dragMode:n="full",className:c,style:i})=>{let d=I(),s=Od[d],[f,p]=_o.useState(null),[l,m]=_o.useState(null),u=_o.useRef(null),b=_o.useRef(void 0),g=_o.useRef(void 0),w=_o.useRef(null),S=_o.useCallback(h=>{p(h);},[]),v=_o.useCallback((h,R,F)=>{if(!f||f===R||zr(e,f,R))return;b.current&&(clearTimeout(b.current),b.current=void 0);let T=h.currentTarget.getBoundingClientRect(),z=h.clientY-T.top,M=T.height,y;r&&F<a?z<M*.25?y="before":z>M*.75?y="after":y="inside":z<M*.35?y="before":z>M*.65?y="after":w.current?.targetId===R?y=w.current.position:y=z<M/2?"before":"after";let D={targetId:R,position:y},P=Br(e,R);y==="inside"&&P?.children&&P.children.length>0&&!P.expanded?(w.current?.targetId!==R||w.current?.position!=="inside")&&(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t(Sa(e,R,true));},600)):g.current&&(clearTimeout(g.current),g.current=void 0),w.current=D,m(D);},[f,e,r,a,t]),x=_o.useCallback((h,R)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{m(null),w.current=null;},60),g.current&&(clearTimeout(g.current),g.current=void 0);},[]),C=_o.useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),!f||!l)return;let{targetId:h,position:R}=l;if(f===h||zr(e,f,h))return;let[F,T]=ya(e,f);if(!T)return;let z=Ir(F,h,R,T);t(z),p(null),m(null),w.current=null;},[f,l,e,t]),B=_o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),p(null),m(null),w.current=null;},[]),E=_o.useCallback(h=>{t(va(e,h));},[e,t]);return _o.useEffect(()=>()=>{b.current&&clearTimeout(b.current),g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsxs("div",{ref:u,className:c,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Zd}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,backgroundColor:s.itemBg,borderRadius:"10px",border:`1px solid ${s.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(h=>jsxRuntime.jsx(ka,{item:h,depth:0,allowNesting:r,maxDepth:a,draggedId:f,dropState:l,onDragStart:S,onDragOver:v,onDragLeave:x,onDrop:C,onDragEnd:B,onToggleExpand:E,renderItem:o,dragMode:n,tokens:s},h.id))]})};Yd.displayName="DragList";exports.Accordion=Ai;exports.AccordionItem=Mi;exports.Alert=W0;exports.AppSidebar=Cc;exports.Avatar=Eu;exports.Badge=Mu;exports.Breadcrumb=Xl;exports.Button=Da;exports.Calendar=xl;exports.Card=Di;exports.Checkbox=on;exports.CheckboxGroup=rn;exports.ColorPicker=ri;exports.Combobox=is;exports.CommandMenu=Sc;exports.ConfirmDialog=hd;exports.Container=Fb;exports.CopyButton=Ed;exports.DataGrid=Ti;exports.DataList=Sl;exports.DatePicker=en;exports.DatePickerGroup=ms;exports.Divider=Sb;exports.DragList=Yd;exports.Drawer=Ol;exports.DropdownMenu=cc;exports.EmptyState=el;exports.FileUpload=xn;exports.Input=$r;exports.InputGroup=ep;exports.Link=jg;exports.Modal=pr;exports.Navbar=Ic;exports.Notification=dd;exports.NumberInput=qa;exports.OTPInput=mi;exports.Pagination=tc;exports.Popover=Xi;exports.ProgressBar=K0;exports.ProgressCircle=j0;exports.Radio=Po;exports.RadioGroup=an;exports.Rating=ci;exports.SegmentedControl=Xs;exports.Select=Ur;exports.SelectGroup=ja;exports.Sheet=ql;exports.SidebarItem=Dc;exports.Skeleton=lt;exports.Slider=gn;exports.Spinner=ob;exports.Spotlight=xc;exports.Stack=wb;exports.Stat=al;exports.StatusBadge=Bl;exports.Stepper=sc;exports.Switch=ln;exports.Tab=Ni;exports.TabPanel=$i;exports.Table=Ci;exports.Tabs=Wi;exports.Tag=Pu;exports.TagItem=Au;exports.Textarea=dn;exports.Timeline=yl;exports.Toast=sa;exports.ToasterProvider=B0;exports.Tooltip=Qo;exports.Tree=Tl;exports.useTheme=I;exports.useToast=P0;//# sourceMappingURL=index.js.map
|
|
19
19
|
//# sourceMappingURL=index.js.map
|