@smworks-cz/ui-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ 'use strict';var $t=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 $t__default=/*#__PURE__*/_interopDefault($t);var F=()=>{let[e,t]=$t.useState("light");return $t.useEffect(()=>{if(typeof window>"u")return;let r=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),n=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};o.addEventListener("change",n);let a=new MutationObserver(l=>{l.forEach(u=>{u.attributeName==="data-theme"&&t(r());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",n),a.disconnect();}},[]),e};var le={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},jo={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px"}},Jo=({size:e=14})=>{let[t,r]=$t.useState(0),o=$t.useRef(void 0),n=$t.useRef(void 0);return $t.useEffect(()=>{let a=l=>{n.current===void 0&&(n.current=l),r((l-n.current)/800*360%360),o.current=requestAnimationFrame(a);};return o.current=requestAnimationFrame(a),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),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"})]})},Qo=$t__default.default.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:l,style:u,className:d,...c},p)=>{let[g,i]=$t.useState(false),s=F()==="dark",b=typeof c.href=="string",m=n||(b?false:!!c.disabled),h=l!=null&&l!=="",S=r!=null,z=(S||n)&&!h,{paddingText:f,paddingSquare:w,fontSize:E,gap:v}=jo[t],x={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:h&&(S||n)?v:void 0,padding:z?w:f,borderRadius:"8px",cursor:m?"not-allowed":"pointer",opacity:m?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E,lineHeight:"normal",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:m?"none":void 0},C=(()=>{switch(e){case "primary":return {backgroundColor:g?le.primaryHover:le.primary,color:le.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:"1px solid transparent"};case "outline":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:`1px solid ${g?s?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":s?le.borderDark:le.borderLight}`}}})(),T=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsxRuntime.jsx(Jo,{size:parseInt(E)-1}):r}),k=n||S,P=o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[h&&jsxRuntime.jsx("span",{children:l}),k&&T]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[k&&T,h&&jsxRuntime.jsx("span",{children:l})]}),R={style:{...x,...C,...u},className:d,onMouseEnter:W=>{i(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{i(false),c.onMouseLeave?.(W);}};if(b){let{href:W,target:M,rel:Y,..._}=c;return jsxRuntime.jsx("a",{ref:p,href:W,target:M,rel:Y??(M==="_blank"?"noopener noreferrer":void 0),"aria-disabled":m||void 0,..._,...R,children:P})}let{disabled:I,type:B="button",...N}=c;return jsxRuntime.jsx("button",{ref:p,type:B,disabled:m,"aria-busy":n||void 0,...N,...R,children:P})});Qo.displayName="Button";var an=({size:e=16,color:t})=>{let[r,o]=$t.useState(0),n=$t.useRef(void 0),a=$t.useRef(void 0);return $t.useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),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"})]})},vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},sn={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Sr=$t__default.default.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:l=false,passwordToggle:u,size:d="md",fullWidth:c=false,style:p,className:g,inputStyle:i,disabled:y,required:s,value:b,onChange:m,onFocus:h,onBlur:S,type:z,...f},w)=>{let E=F(),v=vr[E],x=$t.useId(),C=f.id??x,[T,k]=$t.useState(false),[P,R]=$t.useState(false),I=z==="password",B=u??I,N=I&&P?"text":z,W=y||a,M=!!o,Y=typeof o=="string"?o:void 0,_=b!=null&&b!=="",X=l&&_&&!W&&!B,J=sn[d],te=()=>{if(!m)return;m({target:{value:""},currentTarget:{value:""}});},ie=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,oe=B&&!W?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":P?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>R(O=>!O),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:P?jsxRuntime.jsx(react.EyeSlash,{color:v.placeholder,size:J.iconSize}):jsxRuntime.jsx(react.Eye,{color:v.placeholder,size:J.iconSize})}):null,U=a?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsxRuntime.jsx(an,{size:J.iconSize,color:v.placeholder})}):oe||(X?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:te,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:J.iconSize-2,color:v.placeholder})}):r==="right"&&ie?ie:null),ce=r==="left"?ie:null,se={display:"flex",alignItems:"center",gap:J.gap,backgroundColor:W?v.backgroundDisabled:v.background,border:`1px solid ${M?v.borderError:T?v.borderFocus:v.border}`,borderRadius:"8px",padding:J.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:J.fontSize,lineHeight:"normal",color:v.text,cursor:W?"not-allowed":"text",...i},ye={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},V={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...p},className:g,children:[e&&jsxRuntime.jsxs("label",{htmlFor:C,style:ye,children:[e,s&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{style:se,children:[ce,jsxRuntime.jsx("input",{ref:w,id:C,type:N,disabled:y,required:s,readOnly:a||f.readOnly,value:b,onChange:m,style:Se,onFocus:O=>{k(true),h?.(O);},onBlur:O=>{k(false),S?.(O);},...f}),U]}),Y&&jsxRuntime.jsx("span",{style:{...V,color:v.borderError},children:Y}),!Y&&n&&jsxRuntime.jsx("span",{style:{...V,color:v.helperText},children:n})]})});Sr.displayName="Input";var Rs=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=$t.useId(),u=t??l,d={display:"flex",flexDirection:"column",gap:"8px",...o},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:vr[a].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:d,className:n,children:[jsxRuntime.jsx("label",{htmlFor:u,style:c,children:e}),r??jsxRuntime.jsx(Sr,{id:u})]})};var pn=({size:e=16,color:t})=>{let[r,o]=$t.useState(0),n=$t.useRef(void 0),a=$t.useRef(void 0);return $t.useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),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",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Dt=180,wr=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:l=false,loading:u=false,error:d,placeholder:c="Vyberte\u2026",maxDropdownHeight:p=240,style:g,className:i})=>{let y=F(),s=Rr[y],b=$t.useId(),m=$t.useRef(null),h=$t.useRef(null),S=$t.useRef(null),z=$t.useRef(null),[f,w]=$t.useState(false),[E,v]=$t.useState(false),[x,C]=$t.useState("idle"),[T,k]=$t.useState(""),[P,R]=$t.useState(-1),[I,B]=$t.useState({top:0,left:0,width:0,openAbove:false}),N=l||u,W=!!d,M=typeof d=="string"?d:void 0,Y=$t.useCallback(()=>{w(true),v(true),C("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>C("open"));});},[]),_=$t.useCallback(()=>{w(false),C("closing"),k("");let A=setTimeout(()=>{v(false),C("idle");},Dt);return ()=>clearTimeout(A)},[]),X=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],J=A=>X.includes(A),te=T?e.filter(A=>(A.label??A.value).toLowerCase().includes(T.toLowerCase())):e,ie=$t.useCallback(()=>{if(!m.current)return;let A=m.current.getBoundingClientRect(),q=h.current?.offsetHeight??p+60,Q=window.innerHeight-A.bottom-6,de=A.top-6,pe=Q<q&&de>Q;B({top:pe?A.top-6:A.bottom+6,left:A.left,width:A.width,openAbove:pe});},[p]);$t.useEffect(()=>{if(E)return ie(),window.addEventListener("scroll",ie,true),window.addEventListener("resize",ie),()=>{window.removeEventListener("scroll",ie,true),window.removeEventListener("resize",ie);}},[E,ie]);let oe=$t.useCallback(A=>{if(r)if(o){let q=J(A)?X.filter(Q=>Q!==A):[...X,A];r(q);}else r(A),_();},[o,r,X,_]),U=$t.useCallback(A=>{A.stopPropagation(),r&&(r(o?[]:null),k(""));},[o,r]),ce=()=>{N||(f?_():Y(),R(-1));},se=A=>{if(!N)switch(A.key){case "ArrowDown":A.preventDefault(),f?R(q=>Math.min(q+1,te.length-1)):(Y(),R(0));break;case "ArrowUp":A.preventDefault(),R(q=>Math.max(q-1,0));break;case "Enter":case " ":A.preventDefault(),f&&P>=0&&te[P]&&!te[P].disabled?oe(te[P].value):f||(Y(),R(0));break;case "Escape":_();break;case "Tab":_();break}};$t.useEffect(()=>{P>=0&&z.current&&z.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),$t.useEffect(()=>{if(!f)return;let A=q=>{let Q=q.target,de=m.current?.contains(Q),pe=h.current?.contains(Q);!de&&!pe&&_();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[f,_]),$t.useEffect(()=>{f&&n&&S.current&&S.current.focus();},[f,n]);let Se=A=>e.find(Q=>Q.value===A)?.label??A,ye=a&&X.length>0&&!N,V=()=>{let A=I.openAbove,q=A?"translateY(8px)":"translateY(-8px)",Q=A?"translateY(6px)":"translateY(-6px)",de={transition:`opacity ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...de,opacity:0,transform:`${q} scale(0.97)`}:x==="open"?{...de,opacity:1,transform:"translateY(0) scale(1)"}:{...de,opacity:0,transform:`${Q} scale(0.98)`,pointerEvents:"none"}},O={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?s.backgroundDisabled:s.background,border:`1px solid ${W?s.borderError:f?s.borderFocus:s.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",minHeight:"40px",userSelect:"none",outline:"none"},Ye=E?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:h,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...V()},children:[n&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${s.divider}`},children:jsxRuntime.jsx("input",{ref:S,type:"text",value:T,onChange:A=>{k(A.target.value),R(0);},onKeyDown:se,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:z,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${b}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
2
+ .sm-select-list-${b}::-webkit-scrollbar {
3
+ width: 6px;
4
+ }
5
+ .sm-select-list-${b}::-webkit-scrollbar-track {
6
+ background: transparent;
7
+ }
8
+ .sm-select-list-${b}::-webkit-scrollbar-thumb {
9
+ background: ${s.scrollbarThumb};
10
+ border-radius: 3px;
11
+ }
12
+ `}),te.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:s.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((A,q)=>{let Q=J(A.value),de=q===P;return jsxRuntime.jsxs("div",{role:"option","aria-selected":Q,"aria-disabled":A.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Q?500:400,lineHeight:"normal",color:Q?s.optionSelectedText:A.disabled?s.placeholder:s.text,backgroundColor:de?s.optionHover:Q?s.optionSelected:"transparent",cursor:A.disabled?"not-allowed":"pointer",opacity:A.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:q<te.length-1?"2px":0},onClick:()=>{A.disabled||oe(A.value);},onMouseEnter:()=>R(q),onMouseLeave:()=>R(-1),children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.label??A.value}),Q&&jsxRuntime.jsx(react.Check,{size:16,color:s.optionSelectedText})]},A.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...g},className:i,children:[jsxRuntime.jsxs("div",{ref:m,role:"combobox","aria-expanded":f,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:O,onClick:ce,onKeyDown:se,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[X.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.placeholder,lineHeight:"normal"},children:c}),o?X.map(A=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:s.tagBg,color:s.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Se(A)}),!N&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:q=>{q.stopPropagation(),oe(A);},children:jsxRuntime.jsx(react.X,{size:14,color:s.tagText})})]},A)):X.length>0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Se(X[0])})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ye&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:U,children:jsxRuntime.jsx(react.X,{size:14,color:s.placeholder})}),u?jsxRuntime.jsx(pn,{size:16,color:s.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:s.placeholder,style:{transition:"transform 0.2s ease",transform:f?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),M&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:M}),Ye]})};wr.displayName="Select";var fn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=$t.useId(),u=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsxRuntime.jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Rr[a].label,userSelect:"none"},children:e}),r??jsxRuntime.jsx(wr,{options:[]})]})};fn.displayName="SelectGroup";var mn=({size:e=16,color:t})=>{let[r,o]=$t.useState(0),n=$t.useRef(void 0),a=$t.useRef(void 0);return $t.useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),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"})]})},Ir={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},zt=180,xn={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},hn=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Dr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function yn(e,t,r){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-r,n<0&&(n+=7);let a=new Date(e,t,1-n),l=[];for(let u=0;u<42;u++){let d=new Date(a);d.setDate(a.getDate()+u),l.push(d);}return l}function Pt(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function zr(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${Pt(e)} ${t}:${r}`}function Re(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Fr(e,t,r){let o=e.getTime(),n=Math.min(t.getTime(),r.getTime()),a=Math.max(t.getTime(),r.getTime());return o>=n&&o<=a}function vn(e){return Re(e,new Date)}var Ar=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:l,helperText:u,disabled:d=false,loading:c=false,clearable:p=false,size:g="md",fullWidth:i=false,required:y,minDate:s,maxDate:b,firstDayOfWeek:m=1,style:h,className:S})=>{let z=F(),f=Ir[z],w=$t.useId(),E=xn[g],v=$t.useRef(null),x=$t.useRef(null),[C,T]=$t.useState(false),[k,P]=$t.useState(false),[R,I]=$t.useState("idle"),[B,N]=$t.useState({top:0,left:0,width:0,openAbove:false}),[W,M]=$t.useState(null),Y=new Date,[_,X]=$t.useState(Y.getFullYear()),[J,te]=$t.useState(Y.getMonth()),[ie,oe]=$t.useState("days"),[U,ce]=$t.useState(0),se=d||c,Se=!!l,ye=typeof l=="string"?l:void 0,V=e==="single"&&r instanceof Date?r:null,O=e==="range"&&Array.isArray(r)?r:[null,null],Ye=e==="single"?V!==null:O[0]!==null||O[1]!==null,A=p&&Ye&&!se,q=(()=>{if(e==="single")return V?t?zr(V):Pt(V):"";let[D,Z]=O;if(!D&&!Z)return "";let $=t?zr:Pt;return `${D?$(D):"\u2026"} \u2013 ${Z?$(Z):"\u2026"}`})(),Q=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),de=$t.useCallback(()=>{let D=e==="single"?V:O[0];D&&(X(D.getFullYear()),te(D.getMonth())),oe("days"),T(true),P(true),I("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>I("open"));});},[e,V,O]),pe=$t.useCallback(()=>{T(false),I("closing");let D=setTimeout(()=>{P(false),I("idle");},zt);return ()=>clearTimeout(D)},[]),Fe=$t.useCallback(()=>{if(!v.current)return;let D=v.current.getBoundingClientRect(),Z=x.current?.offsetHeight??380,$=window.innerHeight-D.bottom-6,L=D.top-6,G=$<Z&&L>$;N({top:G?D.top-6:D.bottom+6,left:D.left,width:Math.max(D.width,300),openAbove:G});},[]);$t.useEffect(()=>{if(k)return Fe(),window.addEventListener("scroll",Fe,true),window.addEventListener("resize",Fe),()=>{window.removeEventListener("scroll",Fe,true),window.removeEventListener("resize",Fe);}},[k,Fe]),$t.useEffect(()=>{if(!C)return;let D=Z=>{let $=Z.target,L=v.current?.contains($),G=x.current?.contains($);!L&&!G&&pe();};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[C,pe]);let Mo=D=>{se||(D.key==="Escape"&&C&&(D.preventDefault(),pe()),(D.key==="Enter"||D.key===" ")&&!C&&(D.preventDefault(),de()));},kt=$t.useCallback(D=>{if(s){let Z=new Date(s.getFullYear(),s.getMonth(),s.getDate());if(D<Z)return true}if(b){let Z=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(D>Z)return true}return false},[s,b]),Ho=$t.useCallback(D=>{if(!kt(D)&&o)if(e==="single")t&&V&&D.setHours(V.getHours(),V.getMinutes()),o(new Date(D)),t||pe();else if(U===0)t&&O[0]&&D.setHours(O[0].getHours(),O[0].getMinutes()),o([new Date(D),null]),ce(1);else {let Z=O[0];t&&O[1]&&D.setHours(O[1].getHours(),O[1].getMinutes());let[$,L]=D>=Z?[Z,new Date(D)]:[new Date(D),Z];o([$,L]),ce(0),t||pe();}},[e,t,V,O,U,o,pe,kt]),ur=$t.useCallback((D,Z,$)=>{if(!o)return;let L=parseInt(Z,10);if(isNaN(L)&&(L=0),D==="hour"&&(L=Math.max(0,Math.min(23,L))),D==="minute"&&(L=Math.max(0,Math.min(59,L))),e==="single"){let G=V?new Date(V):new Date;D==="hour"?G.setHours(L):G.setMinutes(L),o(G);}else {let G=$??0,ne=[O[0]?new Date(O[0]):null,O[1]?new Date(O[1]):null],Te=ne[G]??new Date;D==="hour"?Te.setHours(L):Te.setMinutes(L),ne[G]=Te,o(ne);}},[e,V,O,o]),Lo=()=>{J===0?(te(11),X(D=>D-1)):te(D=>D-1);},No=()=>{J===11?(te(0),X(D=>D+1)):te(D=>D+1);},Wo=D=>{D.stopPropagation(),o&&(o(e==="single"?null:[null,null]),ce(0));},$o=()=>{let D=B.openAbove,Z=D?"translateY(8px)":"translateY(-8px)",$=D?"translateY(6px)":"translateY(-6px)",L={transition:`opacity ${zt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...L,opacity:0,transform:`${Z} scale(0.97)`}:R==="open"?{...L,opacity:1,transform:"translateY(0) scale(1)"}:{...L,opacity:0,transform:`${$} scale(0.98)`,pointerEvents:"none"}},Oo=yn(_,J,m),Ct=(D,Z)=>{let $=D?D.getHours():0,L=D?D.getMinutes():0,G={width:"42px",background:"transparent",border:`1px solid ${f.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String($).padStart(2,"0"),onChange:ne=>ur("hour",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:f.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(L).padStart(2,"0"),onChange:ne=>ur("minute",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Minuty"})]})},Zo=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Dr.map((D,Z)=>{let $=Z===J;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{te(Z),oe("days");},style:{background:$?f.daySelected:"transparent",color:$?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:L=>{$||(L.target.style.backgroundColor=f.dayHover);},onMouseLeave:L=>{$||(L.target.style.backgroundColor="transparent");},children:D},Z)})}),Yo=()=>{let D=Math.floor(_/12)*12,Z=Array.from({length:12},($,L)=>D+L);return 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:()=>X($=>$-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:f.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.text},children:[D," \u2013 ",D+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>X($=>$+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:f.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Z.map($=>{let L=$===_;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{X($),oe("months");},style:{background:L?f.daySelected:"transparent",color:L?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:G=>{L||(G.target.style.backgroundColor=f.dayHover);},onMouseLeave:G=>{L||(G.target.style.backgroundColor="transparent");},children:$},$)})})]})},Vo=k?reactDom.createPortal(jsxRuntime.jsx("div",{ref:x,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:f.dropdownBg,border:`1px solid ${f.dropdownBorder}`,borderRadius:"12px",boxShadow:z==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:B.openAbove?"bottom center":"top center",...$o()},children:ie==="years"?Yo():ie==="months"?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:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})}),Zo()]}):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:Lo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:f.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>oe("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:Dr[J]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})]}),jsxRuntime.jsx("button",{type:"button",onClick:No,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:f.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:hn.map(D=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:f.placeholder,padding:"4px 0",userSelect:"none"},children:D},D))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Oo.map((D,Z)=>{let $=D.getMonth()!==J,L=kt(D),G=vn(D),ne=false,Te=false,Rt=false,nt=false;if(e==="single"&&V)ne=Re(D,V);else if(e==="range"){let[ke,it]=O;ke&&Re(D,ke)&&(Te=true,ne=true),it&&Re(D,it)&&(Rt=true,ne=true),ke&&it&&Fr(D,ke,it)&&!Te&&!Rt&&(nt=true),U===1&&ke&&W&&!L&&(Re(D,W)&&!Re(D,ke)&&(ne=true),Fr(D,ke,W)&&!Re(D,ke)&&!Re(D,W)&&(nt=true));}let wt="transparent",at=f.text;return ne?(wt=f.daySelected,at=f.daySelectedText):nt&&(wt=f.dayRangeMiddle),$&&(at=ne?f.daySelectedText:f.dayOutside),L&&(at=f.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:L,onClick:()=>Ho(D),onMouseEnter:()=>{L||M(D);},onMouseLeave:()=>M(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:wt,color:at,border:"none",borderRadius:Te?"6px 0 0 6px":Rt?"0 6px 6px 0":nt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ne?600:400,cursor:L?"not-allowed":"pointer",opacity:L?.4:1,transition:"background-color 0.1s ease",outline:G&&!ne?`1.5px solid ${f.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:D.getDate()},Z)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${f.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"\u010Cas:"}),Ct(V)]}):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:f.placeholder},children:"Od:"}),Ct(O[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:f.placeholder},children:"Do:"}),Ct(O[1],1)]})]})})]})}),document.body):null,Uo={display:"flex",alignItems:"center",gap:E.gap,backgroundColor:se?f.backgroundDisabled:f.background,border:`1px solid ${Se?f.borderError:C?f.borderFocus:f.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:se?.6:1,cursor:se?"not-allowed":"pointer",userSelect:"none",outline:"none"},qo={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},gr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...h},className:S,children:[n&&jsxRuntime.jsxs("label",{htmlFor:w,style:qo,children:[n,y&&jsxRuntime.jsx("span",{style:{color:f.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:v,role:"button",tabIndex:se?-1:0,style:Uo,onClick:()=>{se||(C?pe():de());},onKeyDown:Mo,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.text,lineHeight:"normal"},children:q}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.placeholder,lineHeight:"normal"},children:Q})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[A&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Wo,children:jsxRuntime.jsx(react.X,{size:E.iconSize-2,color:f.placeholder})}),c?jsxRuntime.jsx(mn,{size:E.iconSize,color:f.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:E.iconSize,color:f.placeholder})]})]}),ye&&jsxRuntime.jsx("span",{style:{...gr,color:f.borderError},children:ye}),!ye&&u&&jsxRuntime.jsx("span",{style:{...gr,color:f.helperText},children:u}),Vo]})};Ar.displayName="DatePicker";var Sn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=$t.useId(),u=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsxRuntime.jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ir[a].label,userSelect:"none"},children:e}),r??jsxRuntime.jsx(Ar,{})]})};Sn.displayName="DatePickerGroup";var Br={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},wn={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Mr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:l=false,className:u,style:d})=>{let c=F(),p=Br[c],g=wn[a],i=$t.useId(),y=$t.useRef(null),s=!!n,b=typeof n=="string"?n:void 0;$t.useEffect(()=>{y.current&&(y.current.indeterminate=l);},[l]);let m=()=>{o||t?.(!e);},h=s?p.borderError:e||l?p.checkBg:p.border,S=e||l?p.checkBg:o?p.backgroundDisabled:p.background,z={width:g.box,height:g.box,borderRadius:g.radius,border:`1.5px solid ${h}`,backgroundColor:S,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},w={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...d},className:u,children:[jsxRuntime.jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:g.gap,cursor:o?"not-allowed":"pointer"},onClick:E=>{E.preventDefault(),m();},children:[jsxRuntime.jsx("input",{ref:y,id:i,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":s||void 0}),jsxRuntime.jsxs("span",{style:z,children:[e&&!l&&jsxRuntime.jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsxRuntime.jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round"})})]}),r&&jsxRuntime.jsx("span",{style:f,children:r})]}),b&&jsxRuntime.jsx("span",{style:{...w,color:p.borderError,marginLeft:`${g.box+parseInt(g.gap)}px`},children:b})]})};Mr.displayName="Checkbox";var Hr=({label:e,children:t,error:r,className:o,style:n})=>{let a=F(),l=Br[a],u=typeof r=="string"?r:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:o,children:[e&&jsxRuntime.jsx("span",{style:d,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),u&&jsxRuntime.jsx("span",{style:{...c,color:l.borderError},children:u})]})};Hr.displayName="CheckboxGroup";var Lr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},En={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},It=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=Lr[d],p=En[a],g=$t.useId(),i=()=>{n||r?.(e);},y=t?c.dotRing:c.border,s=n?c.backgroundDisabled:c.background,b={width:p.box,height:p.box,borderRadius:"50%",border:`1.5px solid ${y}`,backgroundColor:s,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...u},className:l,children:jsxRuntime.jsxs("label",{htmlFor:g,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:n?"not-allowed":"pointer"},onClick:h=>{h.preventDefault(),i();},children:[jsxRuntime.jsx("input",{id:g,type:"radio",value:e,checked:t,disabled:n,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:b,children:t&&jsxRuntime.jsx("span",{style:{width:p.dot,height:p.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),o&&jsxRuntime.jsx("span",{style:m,children:o})]})})};It.displayName="Radio";var Nr=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:l,size:u="md",className:d,style:c})=>{let p=F(),g=Lr[p],i=!!a,y=typeof a=="string"?a:void 0,s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:d,children:[r&&jsxRuntime.jsx("span",{style:s,children:r}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(m=>jsxRuntime.jsx(It,{value:m.value,label:m.label,checked:e===m.value,onChange:t,disabled:m.disabled,size:u},m.value))}),y&&jsxRuntime.jsx("span",{style:{...b,color:g.borderError},children:y}),!y&&l&&jsxRuntime.jsx("span",{style:{...b,color:g.helperText},children:l})]})};Nr.displayName="RadioGroup";var zn={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Fn={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},$r=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:l})=>{let u=F(),d=zn[u],c=Fn[n],p=$t.useId(),g=()=>{o||t?.(!e);},i=1.5,y=2,b=c.trackW-i*2-c.thumb-y,m=e?b:0,h={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${i}px solid ${e?d.trackOnBorder:d.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},S={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:y,transform:`translateY(-50%) translateX(${m}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},z={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:d.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxRuntime.jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:o?"not-allowed":"pointer"},onClick:f=>{f.preventDefault(),g();},children:[jsxRuntime.jsx("input",{id:p,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:h,children:jsxRuntime.jsx("span",{style:S})}),r&&jsxRuntime.jsx("span",{style:z,children:r})]})})};$r.displayName="Switch";var Ln={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Nn={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Zr=$t__default.default.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:l=false,required:u,rows:d=4,maxLength:c,resize:p="vertical",autoHeight:g=false,minRows:i,maxRows:y,className:s,style:b,value:m,onChange:h,onFocus:S,onBlur:z,...f},w)=>{let E=F(),v=Ln[E],x=Nn[a],C=$t.useId(),T=f.id??C,[k,P]=$t.useState(false),R=$t.useRef(null),I=$t.useCallback(()=>{let U=R.current;if(!U||!g)return;U.style.height="auto";let ce=getComputedStyle(U),se=parseFloat(ce.lineHeight)||parseFloat(ce.fontSize)*1.5,Se=parseFloat(ce.paddingTop)||0,ye=parseFloat(ce.paddingBottom)||0,V=Se+ye,Ye=se*(i??1)+V,A=y?se*y+V:1/0,q=Math.min(Math.max(U.scrollHeight,Ye),A);U.style.height=`${q}px`,U.style.overflowY=U.scrollHeight>A?"auto":"hidden";},[g,i,y]);$t.useEffect(()=>{I();},[m,I]);let B=$t.useCallback(U=>{R.current=U,typeof w=="function"?w(U):w&&(w.current=U);},[w]),N=g?"none":p,W=g?i??1:d,M=o||n,Y=!!t,_=typeof t=="string"?t:void 0,X=typeof m=="string"?m.length:0,J={backgroundColor:M?v.backgroundDisabled:v.background,border:`1px solid ${Y?v.borderError:k?v.borderFocus:v.border}`,borderRadius:"8px",padding:x.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:M?.6:1,cursor:M?"not-allowed":"text"},te={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:x.fontSize,lineHeight:"1.5",color:v.text,cursor:M?"not-allowed":"text",resize:N,boxSizing:"border-box",overflow:g?"hidden":void 0},ie={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},oe={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...b},className:s,children:[e&&jsxRuntime.jsxs("label",{htmlFor:T,style:ie,children:[e,u&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:J,children:jsxRuntime.jsx("textarea",{ref:B,id:T,rows:W,maxLength:c,disabled:o,required:u,readOnly:n||f.readOnly,value:m,onChange:h,style:te,onFocus:U=>{P(true),S?.(U);},onBlur:U=>{P(false),z?.(U);},...f})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[_&&jsxRuntime.jsx("span",{style:{...oe,color:v.borderError},children:_}),!_&&r&&jsxRuntime.jsx("span",{style:{...oe,color:v.helperText},children:r})]}),c!==void 0&&jsxRuntime.jsxs("span",{style:{...oe,color:X>c?v.borderError:v.counter,flexShrink:0},children:[X,"/",c]})]})]})});Zr.displayName="Textarea";var $n={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},On={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Ur(e,t,r){return Math.min(Math.max(e,t),r)}function Zn(e,t,r){return Math.round((e-t)/r)*r+t}var qr=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:l=false,showValue:u=false,range:d=false,size:c="md",className:p,style:g})=>{let i=F(),y=$n[i],s=On[c],b=$t.useId(),m=$t.useRef(null),h=$t.useRef(null),S=d?e:[r,e],z=k=>(k-r)/(o-r)*100,f=z(S[0]),w=z(S[1]),E=$t.useCallback(k=>{let P=m.current;if(!P)return r;let R=P.getBoundingClientRect(),I=Ur((k-R.left)/R.width,0,1),B=r+I*(o-r);return Ur(Zn(B,r,n),r,o)},[r,o,n]),v=$t.useCallback(k=>{if(l)return;k.preventDefault();let P=E(k.clientX);if(d){let B=e,N=Math.abs(P-B[0]),W=Math.abs(P-B[1]),M=N<=W?"start":"end";h.current=M;let Y=M==="start"?[Math.min(P,B[1]),B[1]]:[B[0],Math.max(P,B[0])];t?.(Y);}else h.current="end",t?.(P);let R=B=>{let N=E(B.clientX);if(d){let W=e;h.current==="start"?t?.([Math.min(N,W[1]),W[1]]):t?.([W[0],Math.max(N,W[0])]);}else t?.(N);},I=()=>{h.current=null,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",I);};document.addEventListener("mousemove",R),document.addEventListener("mouseup",I);},[l,E,t,d,e]),x={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},C=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,T={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:y.thumb,border:`2px solid ${y.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...g},className:p,children:[(a||u)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("label",{htmlFor:b,style:x,children:a}),u&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:y.text,userSelect:"none"},children:C})]}),jsxRuntime.jsxs("div",{ref:m,role:"slider",id:b,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":d?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:s.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${d?f:0}%`,width:`${w-(d?f:0)}%`,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackFill}}),d&&jsxRuntime.jsx("span",{style:{...T,left:`${f}%`}}),jsxRuntime.jsx("span",{style:{...T,left:`${w}%`}})]})]})};qr.displayName="Slider";var _n={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Ht(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Xn=0,Gr=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:l,helperText:u,error:d,className:c,style:p})=>{let g=F(),i=_n[g],y=$t.useId(),s=$t.useRef(null),[b,m]=$t.useState(false),[h,S]=$t.useState([]),[z,f]=$t.useState(null),w=!!d||!!z,E=typeof d=="string"?d:z??void 0,v=$t.useCallback(R=>{let I=Array.from(R);if(f(null),n){let W=I.find(M=>M.size>n);if(W){f(`Soubor \u201E${W.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ht(n)}.`);return}}let B=I.map(W=>({file:W,id:`file-${++Xn}`})),N=o?[...h,...B]:B;S(N),t?.(N.map(W=>W.file));},[h,n,o,t]),x=$t.useCallback(R=>{R.preventDefault(),m(false),!a&&R.dataTransfer.files.length>0&&v(R.dataTransfer.files);},[a,v]),C=$t.useCallback(R=>{let I=h.filter(B=>B.id!==R);S(I),t?.(I.map(B=>B.file));},[h,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},k={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${w?i.borderError:b?i.borderDrag:i.border}`,borderRadius:"8px",backgroundColor:b?i.backgroundDrag:a?i.backgroundDisabled:i.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},P={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...p},className:c,children:[l&&jsxRuntime.jsx("span",{style:T,children:l}),jsxRuntime.jsx("input",{ref:s,id:y,type:"file",accept:r,multiple:o,disabled:a,onChange:R=>{R.target.files&&R.target.files.length>0&&v(R.target.files),R.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:k,onClick:()=>!a&&s.current?.click(),onDragOver:R=>{R.preventDefault(),a||m(true);},onDragLeave:()=>m(false),onDrop:x,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:i.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):jsxRuntime.jsxs("div",{onClick:()=>!a&&s.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${w?i.borderError:i.border}`,backgroundColor:a?i.backgroundDisabled:i.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:R=>{a||(R.currentTarget.style.borderColor=w?i.borderError:g==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:R=>{R.currentTarget.style.borderColor=w?i.borderError:i.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:h.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:i.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:i.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h.length>0?i.text:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.length===0?"Vyberte soubor...":h.length===1?h[0].file.name:`${h.length} soubor\u016F`}),h.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(h[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:i.textSecondary})})]}),h.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:h.map(R=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:i.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:i.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(R.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${R.file.name}`,onClick:I=>{I.stopPropagation(),C(R.id);},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&C(R.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:i.removeColor})})]},R.id))}),E&&jsxRuntime.jsx("span",{style:{...P,color:i.borderError},children:E}),!E&&u&&jsxRuntime.jsx("span",{style:{...P,color:i.helperText},children:u})]})};Gr.displayName="FileUpload";var Gn={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},jr="smSkeletonShimmer",Kn=`@keyframes ${jr}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,Nt=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:l})=>{let u=F(),d=Gn[u],c=t??(e==="circle"?40:"100%"),p=r??(e==="circle"?40:e==="text"?"1em":100),g={backgroundColor:d.base,backgroundImage:n?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jr} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof p=="number"?`${p}px`:p},i=n?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Kn}}):null;return e==="text"&&o>1?jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:o}).map((y,s)=>jsxRuntime.jsx("div",{style:{...g,width:s===o-1?"75%":g.width}},s))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,jsxRuntime.jsx("div",{className:a,style:{...g,...l}})]})};Nt.displayName="Skeleton";var Qn={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ea=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:l,striped:u=false,hoverable:d=true,className:c,style:p})=>{let g=F(),i=Qn[g],y=S=>{if(!S.sortable||!n)return;let z=a===S.key&&l==="asc"?"desc":"asc";n(S.key,z);},s={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",overflow:"hidden",...p},b=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),m={padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:c,style:s,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.map(S=>jsxRuntime.jsx("th",{style:b(S),onClick:()=>y(S),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:a===S.key?i.sortActive:i.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsxRuntime.jsx("tbody",{children:r?Array.from({length:5}).map((S,z)=>jsxRuntime.jsx("tr",{children:e.map(f=>jsxRuntime.jsx("td",{style:m,children:jsxRuntime.jsx(Nt,{variant:"text",width:"80%"})},f.key))},`skel-${z}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...m,textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:o})}):t.map((S,z)=>jsxRuntime.jsx("tr",{style:{backgroundColor:u&&z%2===1?i.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:f=>{d&&(f.currentTarget.style.backgroundColor=i.rowHover);},onMouseLeave:f=>{d&&(f.currentTarget.style.backgroundColor=u&&z%2===1?i.stripedBg:"transparent");},children:e.map(f=>jsxRuntime.jsx("td",{style:{...m,borderBottom:z===t.length-1?"none":m.borderBottom},children:f.render?f.render(S[f.key],S,z):S[f.key]},f.key))},z))})]})};ea.displayName="Table";var ta={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},ra={none:"0",sm:"12px",md:"20px",lg:"28px"},oa=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:l=true,padding:u="md",className:d,style:c})=>{let p=F(),g=ta[p],i=ra[u],y={backgroundColor:g.background,border:l?`1px solid ${g.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},s=r??(e||t?jsxRuntime.jsxs("div",{style:{padding:i,paddingBottom:n||o?"0":i},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:g.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:g.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:d,style:y,onMouseEnter:b=>{a&&(b.currentTarget.style.borderColor=g.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=p==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{a&&(b.currentTarget.style.borderColor=l?g.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[s,n&&jsxRuntime.jsx("div",{style:{padding:i},children:n}),o&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${g.divider}`}}),jsxRuntime.jsx("div",{style:{padding:i},children:o})]})]})};oa.displayName="Card";var to={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},la=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:l})=>{let u=F(),d=to[u],[c,p]=$t.useState(r),g=n?!!a:c,i=$t.useRef(null),[y,s]=$t.useState(0);$t.useEffect(()=>{i.current&&s(i.current.scrollHeight);},[t,g]);let b=$t.useCallback(()=>{o||(n&&l?l():p(m=>!m));},[o,n,l]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:o,onClick:b,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:m=>{o||(m.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:o?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:g?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:g?`${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:d.textSecondary},children:t})})]})};la.displayName="AccordionItem";var ca=({children:e,multiple:t=false,className:r,style:o})=>{let n=F(),a=to[n],l=$t__default.default.Children.toArray(e).filter(p=>$t__default.default.isValidElement(p)),[u,d]=$t.useState(()=>{let p=new Set;return l.forEach((g,i)=>{g.props.defaultOpen&&p.add(i);}),p}),c=$t.useCallback(p=>{d(g=>{let i=new Set(g);return i.has(p)?i.delete(p):(t||i.clear(),i.add(p)),i});},[t]);return jsxRuntime.jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:l.map((p,g)=>$t__default.default.cloneElement(p,{key:g,_controlled:true,_open:u.has(g),_onToggle:()=>c(g)}))})};ca.displayName="Accordion";var da={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},pa={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},fa=()=>null;fa.displayName="Tab";var ua=()=>null;ua.displayName="TabPanel";var ga=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=da[d],p=pa[a],g=$t__default.default.Children.toArray(r),i=g.filter(b=>$t__default.default.isValidElement(b)&&b.type?.displayName==="Tab"),s=g.filter(b=>$t__default.default.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxRuntime.jsxs("div",{className:l,style:u,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${c.border}`:"none"},children:i.map(b=>{let m=b.props.value===e,h=b.props.disabled,S=o==="underline"?{padding:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${m?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:h?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.pillText:c.textInactive,backgroundColor:m?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:h?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:h,style:S,onClick:()=>{h||t(b.props.value);},onMouseEnter:z=>{!h&&!m&&(z.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:z=>{h||(z.currentTarget.style.backgroundColor=o==="pills"&&m?c.pillBg:"transparent");},children:[b.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),s&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:s.props.children})]})};ga.displayName="Tabs";var xa={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ha=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let l=F(),u=xa[l],[d,c]=$t.useState(false),[p,g]=$t.useState({top:0,left:0}),i=$t.useRef(null),y=$t.useRef(null),s=$t.useRef(void 0),b=6,m=8,h=$t.useCallback(()=>{let E=i.current,v=y.current;if(!E||!v)return;let x=E.getBoundingClientRect(),C=v.getBoundingClientRect(),T=0,k=0;switch(r){case "top":T=x.top-C.height-m,k=x.left+x.width/2-C.width/2;break;case "bottom":T=x.bottom+m,k=x.left+x.width/2-C.width/2;break;case "left":T=x.top+x.height/2-C.height/2,k=x.left-C.width-m;break;case "right":T=x.top+x.height/2-C.height/2,k=x.right+m;break}g({top:T,left:k});},[r]);$t.useEffect(()=>{d&&requestAnimationFrame(h);},[d,h]);let S=$t.useCallback(()=>{s.current=setTimeout(()=>c(true),o);},[o]),z=$t.useCallback(()=>{s.current&&clearTimeout(s.current),c(false);},[]);$t.useEffect(()=>()=>{s.current&&clearTimeout(s.current);},[]);let f=(()=>{let E={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(r){case "top":return {...E,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:u.background,borderBottomWidth:0};case "bottom":return {...E,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:u.background,borderTopWidth:0};case "left":return {...E,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:u.background,borderRightWidth:0};case "right":return {...E,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:u.background,borderLeftWidth:0}}})(),w=d?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:y,className:n,style:{position:"fixed",top:p.top,left:p.left,zIndex:99999,padding:"6px 12px",backgroundColor:u.background,color:u.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsxRuntime.jsx("div",{style:f})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$t__default.default.cloneElement(t,{ref:i,onMouseEnter:E=>{S(),t.props.onMouseEnter?.(E);},onMouseLeave:E=>{z(),t.props.onMouseLeave?.(E);}}),w]})};ha.displayName="Tooltip";var Ca={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},_t=180,ut=8,Ra=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let l=F(),u=Ca[l],[d,c]=$t.useState(false),[p,g]=$t.useState(false),[i,y]=$t.useState("idle"),[s,b]=$t.useState({top:0,left:0}),m=$t.useRef(null),h=$t.useRef(null),S=$t.useRef(void 0),z=$t.useCallback(()=>{c(true),g(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[]),f=$t.useCallback(()=>{c(false),y("closing");let k=setTimeout(()=>{g(false),y("idle");},_t);return ()=>clearTimeout(k)},[]),w=$t.useCallback(()=>{let k=m.current,P=h.current;if(!k||!P)return;let R=k.getBoundingClientRect(),I=P.getBoundingClientRect(),B=0,N=0;switch(r){case "top":B=R.top-I.height-ut,N=R.left+R.width/2-I.width/2;break;case "bottom":B=R.bottom+ut,N=R.left+R.width/2-I.width/2;break;case "left":B=R.top+R.height/2-I.height/2,N=R.left-I.width-ut;break;case "right":B=R.top+R.height/2-I.height/2,N=R.right+ut;break}b({top:B,left:N});},[r]);$t.useEffect(()=>{if(p)return requestAnimationFrame(w),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[p,w]),$t.useEffect(()=>{if(!d)return;let k=P=>{let R=P.target;!m.current?.contains(R)&&!h.current?.contains(R)&&f();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[d,f]),$t.useEffect(()=>{if(!d)return;let k=P=>{P.key==="Escape"&&f();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[d,f]);let E=()=>{let k={transition:`opacity ${_t}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${_t}ms cubic-bezier(0.16, 1, 0.3, 1)`},P={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},R=r==="top"||r==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.97)`}:i==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.98)`,pointerEvents:"none"}},v=$t.useCallback(()=>{o==="click"&&(d?f():z());},[o,d,f,z]),x=$t.useCallback(()=>{o==="hover"&&(S.current&&clearTimeout(S.current),d||z());},[o,d,z]),C=$t.useCallback(()=>{o==="hover"&&(S.current=setTimeout(()=>{f();},150));},[o,f]);$t.useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let T=p?reactDom.createPortal(jsxRuntime.jsx("div",{ref:h,className:n,onMouseEnter:()=>{o==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:C,style:{position:"fixed",top:s.top,left:s.left,zIndex:99999,padding:"16px",backgroundColor:u.background,border:`1px solid ${u.border}`,borderRadius:"12px",color:u.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...E(),...a},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[$t__default.default.cloneElement(t,{ref:m,onClick:k=>{v(),t.props.onClick?.(k);},onMouseEnter:k=>{x(),t.props.onMouseEnter?.(k);},onMouseLeave:k=>{C(),t.props.onMouseLeave?.(k);}}),T]})};Ra.displayName="Popover";var Da={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},za=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let l=F(),u=Da[l];return jsxRuntime.jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...a},children:[e&&jsxRuntime.jsx("div",{style:{fontSize:"48px",lineHeight:1,color:u.iconColor,marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:u.text},children:t}),r&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:u.textSecondary,maxWidth:"360px"},children:r}),o&&jsxRuntime.jsx("div",{style:{marginTop:"8px"},children:o})]})};za.displayName="EmptyState";var Aa={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},Ba=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:l,style:u})=>{let d=F(),c=Aa[d],p=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,g=i=>`${i>0?"+":""}${i.toFixed(1)} %`;return jsxRuntime.jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...u},children:[n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:c.iconColor,flexShrink:0,color:c.text},children:n}),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:c.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:c.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:p},children:[a==="up"&&jsxRuntime.jsx(react.TrendUpIcon,{size:14,color:p}),a==="down"&&jsxRuntime.jsx(react.TrendDownIcon,{size:14,color:p}),jsxRuntime.jsx("span",{children:g(r)}),o&&jsxRuntime.jsx("span",{style:{color:c.label,marginLeft:"2px"},children:o})]})]})]})};Ba.displayName="Stat";var Ma=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],fc=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let l=Ma(t),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:u,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:d,children:e.toUpperCase()})})};var so={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Gt=({onClick:e,title:t,color:r,children:o})=>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}),xc=({label:e,onRemove:t,style:r,className:o})=>{let n=so[F()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...r},className:o,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:n.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:n.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},hc=({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}),yc=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:l})=>{let u=so[F()],d=t||r||o;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:u.itemBg,border:`1px solid ${u.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:u.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&d&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(Gt,{onClick:t,title:"Filtrovat",color:u.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),r&&jsxRuntime.jsx(Gt,{onClick:r,title:"Upravit",color:u.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(Gt,{onClick:o,title:"Smazat",color:u.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var Oa={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},mt=180,Za={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Ya=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:l=true,closeOnEscape:u=true,showClose:d=true,className:c,style:p})=>{let g=F(),i=Oa[g],y=Za[a],[s,b]=$t.useState(false),[m,h]=$t.useState("idle"),S=$t.useRef(null),z=$t.useRef(null);$t.useEffect(()=>{if(e)z.current=document.activeElement,b(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(s){h("closing");let v=setTimeout(()=>{b(false),h("idle"),document.body.style.overflow="",z.current instanceof HTMLElement&&z.current.focus();},mt);return ()=>clearTimeout(v)}},[e]),$t.useEffect(()=>()=>{document.body.style.overflow="";},[]),$t.useEffect(()=>{if(!s||!u)return;let v=x=>{x.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s,u,t]),$t.useEffect(()=>{if(!s||!S.current)return;let v=S.current,x='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=T=>{if(T.key!=="Tab")return;let k=v.querySelectorAll(x);if(k.length===0){T.preventDefault();return}let P=k[0],R=k[k.length-1];T.shiftKey?document.activeElement===P&&(T.preventDefault(),R.focus()):document.activeElement===R&&(T.preventDefault(),P.focus());};return document.addEventListener("keydown",C),v.focus(),()=>document.removeEventListener("keydown",C)},[s]);let f=()=>{let v={transition:`opacity ${mt}ms ease`};return m==="opening"||m==="idle"?{...v,opacity:0}:m==="open"?{...v,opacity:1}:{...v,opacity:0,pointerEvents:"none"}},w=()=>{let v={transition:`opacity ${mt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${mt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...v,opacity:0,transform:"scale(0.95)"}:m==="open"?{...v,opacity:1,transform:"scale(1)"}:{...v,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!s)return null;let E=a==="fullscreen";return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:E?"stretch":"center",justifyContent:"center",...f()},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:l?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:y.width,maxWidth:E?void 0:"calc(100vw - 32px)",maxHeight:E?"100vh":y.maxHeight,backgroundColor:i.cardBg,border:E?"none":`1px solid ${i.cardBorder}`,borderRadius:E?0:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...w(),...p},children:[(r||d)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:r}),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:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children: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:o}),n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:n})]})]}),document.body)};Ya.displayName="Modal";var _a={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Qt=220,Xa=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:l=400,showClose:u=true,closeOnOverlay:d=true,className:c,style:p})=>{let g=F(),i=_a[g],[y,s]=$t.useState(false),[b,m]=$t.useState("idle"),h=$t.useRef(null),S=typeof l=="number"?`${l}px`:l;$t.useEffect(()=>{if(e)s(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(y){m("closing");let w=setTimeout(()=>{s(false),m("idle"),document.body.style.overflow="";},Qt);return ()=>clearTimeout(w)}},[e]),$t.useEffect(()=>()=>{document.body.style.overflow="";},[]),$t.useEffect(()=>{if(!y)return;let w=E=>{E.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[y,t]);let z=w=>{let E=r==="right"?"100%":"-100%";return w==="opening"||w==="idle"?E:w==="open"?"0%":E},f=()=>b==="open"?1:0;return y?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:f(),transition:`opacity ${Qt}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-label":o,className:c,style:{position:"absolute",top:0,bottom:0,[r]:0,width:S,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:r==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${z(b)})`,transition:`transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...p},children:[(o||u)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[o&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:o}),u&&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:w=>{w.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:w=>{w.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:n}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:a})]})]}),document.body):null};Xa.displayName="Drawer";var Ka={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},ja=({items:e,separator:t="/",className:r,style:o})=>{let n=F(),a=Ka[n];return 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((l,u)=>{let d=u===e.length-1;return jsxRuntime.jsxs($t__default.default.Fragment,{children:[u>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),d?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxRuntime.jsxs("a",{href:l.href??"#",onClick:l.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:c=>{c.currentTarget.style.color=a.linkHover;},onMouseLeave:c=>{c.currentTarget.style.color=a.text;},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},u)})})};ja.displayName="Breadcrumb";var ei={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},ti={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ri(e,t,r,o,n){let a=[],l=Math.max(2,e-r),u=Math.min(t-1,e+r);(o||e-r<=1)&&a.push(1),l>2&&(o&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let d=l;d<=u;d++)a.includes(d)||a.push(d);return u<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var oi=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:l="md",className:u,style:d})=>{let c=F(),p=ei[c],g=ti[l];if(t<=0)return null;let i=ri(e,t,o,n,a),y={display:"inline-flex",alignItems:"center",justifyContent:"center",width:g.size,height:g.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:u,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:()=>r(e-1),style:{...y,color:e<=1?p.disabledText:p.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:s=>{e>1&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:g.iconSize,color:e<=1?p.disabledText:p.text})}),i.map((s,b)=>{if(s==="ellipsis-start"||s==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...y,cursor:"default",color:p.text},"aria-hidden":"true",children:"..."},s);let m=s===e;return jsxRuntime.jsx("button",{type:"button","aria-current":m?"page":void 0,"aria-label":`Str\xE1nka ${s}`,onClick:()=>r(s),style:{...y,color:m?p.activeText:p.text,backgroundColor:m?p.activeBg:"transparent",fontWeight:m?600:500},onMouseEnter:h=>{m||(h.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:h=>{m||(h.currentTarget.style.backgroundColor="transparent");},children:s},s)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...y,color:e>=t?p.disabledText:p.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:s=>{e<t&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:g.iconSize,color:e>=t?p.disabledText:p.text})})]})};oi.displayName="Pagination";var si={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},li=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:l})=>{let u=F(),d=si[u],[c,p]=$t.useState(null),g=r==="horizontal",i=32,y=s=>!o||!n?false:o==="completed"?s<=t:true;return jsxRuntime.jsx("div",{className:a,style:{display:"flex",flexDirection:g?"row":"column",alignItems:g?"flex-start":"stretch",gap:0,...l},children:e.map((s,b)=>{let m=b<t,h=b===t,S=b>t,z=b===e.length-1,f=y(b),w=c===b&&f,E=m?d.completedBg:w?d.hoverBg:d.activeBg,v=m?d.completedBg:h||w?d.activeBorder:d.futureBorder,x=m?d.completedText:h||w?d.activeText:d.futureText,C=w?d.activeText:S?d.labelFuture:d.labelText,T=S?d.descFuture:d.descText,k=m?d.lineCompleted:d.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:g?"column":"row",alignItems:g?"center":"flex-start",flex:z?"0 0 auto":"1 1 0",minWidth:0,cursor:f?"pointer":"default"},onClick:()=>f&&n?.(b),onMouseEnter:()=>p(b),onMouseLeave:()=>p(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:g?"row":"column",alignItems:"center",width:g?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:E,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:m?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:x,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!z&&jsxRuntime.jsx("div",{style:g?{flex:1,height:"2px",backgroundColor:k,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:k,margin:"6px 0",marginLeft:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:g?"10px":0,marginLeft:g?0:"14px",paddingTop:g?0:"4px",textAlign:g?"center":"left",minHeight:g||z?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:h||w?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:s.label}),s.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:T,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:s.description})]})]},b)})})};li.displayName="Stepper";var di={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},ar=180,pi=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=F(),l=di[a],u=$t.useRef(null),d=$t.useRef(null),[c,p]=$t.useState(false),[g,i]=$t.useState(false),[y,s]=$t.useState("idle"),[b,m]=$t.useState({top:0,left:0,openAbove:false}),[h,S]=$t.useState(-1),z=$t.useCallback(()=>{p(true),i(true),s("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>s("open"));});},[]),f=$t.useCallback(()=>{p(false),s("closing");let x=setTimeout(()=>{i(false),s("idle");},ar);return ()=>clearTimeout(x)},[]),w=$t.useCallback(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=d.current?.offsetHeight??200,T=d.current?.offsetWidth??200,k=window.innerHeight-x.bottom-6,P=x.top-6,R=k<C&&P>k,I;r==="bottom-right"?(I=x.right-T,I<4&&(I=4)):(I=x.left,I+T>window.innerWidth-4&&(I=window.innerWidth-T-4)),m({top:R?x.top-6:x.bottom+6,left:I,openAbove:R});},[r]);$t.useEffect(()=>{if(g)return w(),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[g,w]),$t.useEffect(()=>{if(!c)return;let x=C=>{let T=C.target,k=u.current?.contains(T),P=d.current?.contains(T);!k&&!P&&f();};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[c,f]),$t.useEffect(()=>{if(!c)return;let x=t.map((T,k)=>({item:T,idx:k})).filter(({item:T})=>!T.divider&&!T.disabled),C=T=>{switch(T.key){case "Escape":T.preventDefault(),f();break;case "ArrowDown":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k<x.length-1?k+1:0;S(x[P]?.idx??-1);break}case "ArrowUp":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k>0?k-1:x.length-1;S(x[P]?.idx??-1);break}case "Enter":case " ":if(T.preventDefault(),h>=0){let k=t[h];k&&!k.divider&&!k.disabled&&(k.onClick?.(),f());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[c,h,t,f]);let E=()=>{let x=b.openAbove,C=x?"translateY(8px)":"translateY(-8px)",T=x?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`};return y==="opening"||y==="idle"?{...k,opacity:0,transform:`${C} scale(0.97)`}:y==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${T} scale(0.98)`,pointerEvents:"none"}},v=g?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:l.dropdownBg,border:`1px solid ${l.dropdownBorder}`,borderRadius:"12px",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...E()},children:t.map((x,C)=>{if(x.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:l.divider,margin:"4px 6px"}},C);let T=x.danger,k=x.disabled,P=C===h,R=k?l.textDisabled:T?l.dangerText:l.text,I=T?l.dangerHover:l.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":k,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:R,backgroundColor:P?I:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{k||(x.onClick?.(),f());},onMouseEnter:()=>{k||S(C);},onMouseLeave:()=>S(-1),children:[x.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:x.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.label})]},C)})}),document.body):null;return jsxRuntime.jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsxRuntime.jsx("div",{ref:u,onClick:()=>{c?f():z();},style:{display:"inline-flex",cursor:"pointer"},children:e}),v]})};pi.displayName="DropdownMenu";var ui={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},id=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:l,onMouseEnter:u,onMouseLeave:d,target:c,rel:p,...g})=>{let i=F(),y=ui[i],[s,b]=$t.useState(false),m=e==="danger"?y.danger:y.default,h={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:s?y.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:m,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},S=o&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:h,className:l,target:c,rel:p??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:z=>{b(true),u?.(z);},onMouseLeave:z=>{b(false),d?.(z);},...g,children:r==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,S]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,n]})})};var xi={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},ht=180,hi=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:l,style:u})=>{let d=F(),c=xi[d],[p,g]=$t.useState(false),[i,y]=$t.useState("idle"),[s,b]=$t.useState(-1),m=$t.useRef(null),h=$t.useRef(null);$t.useEffect(()=>{let x="sm-spotlight-scrollbar-hide";if(document.getElementById(x))return;let C=document.createElement("style");C.id=x,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let S=n;$t.useEffect(()=>{if(e)g(true),y("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});else if(p){y("closing");let x=setTimeout(()=>{g(false),y("idle");},ht);return ()=>clearTimeout(x)}},[e]),$t.useEffect(()=>{p&&i==="open"&&m.current?.focus();},[p,i]),$t.useEffect(()=>{b(-1);},[n]),$t.useEffect(()=>{if(s<0||!h.current)return;let x=h.current.querySelector(`[data-spotlight-index="${s}"]`);x&&x.scrollIntoView({block:"nearest"});},[s]);let z=$t.useCallback(x=>{switch(x.key){case "Escape":x.preventDefault(),t();break;case "ArrowDown":{x.preventDefault(),b(C=>{let T=C+1;return T>=S.length?0:T});break}case "ArrowUp":{x.preventDefault(),b(C=>{let T=C-1;return T<0?S.length-1:T});break}case "Enter":{x.preventDefault(),s>=0&&s<S.length&&(S[s].onSelect(),t());break}}},[S,s,t]),f=[],w=new Map;S.forEach((x,C)=>{let T=w.get(x.category);T||(T=[],w.set(x.category,T),f.push({category:x.category,items:T})),T.push({...x,flatIndex:C});});let E=()=>{let x={transition:`opacity ${ht}ms ease`};return i==="opening"||i==="idle"?{...x,opacity:0}:i==="open"?{...x,opacity:1}:{...x,opacity:0,pointerEvents:"none"}},v=()=>{let x={transition:`opacity ${ht}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ht}ms cubic-bezier(0.16, 1, 0.3, 1)`};return i==="opening"||i==="idle"?{...x,opacity:0,transform:"scale(0.95) translateY(-10px)"}:i==="open"?{...x,opacity:1,transform:"scale(1) translateY(0)"}:{...x,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return p?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...E()},onKeyDown:z,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...v(),...u},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:c.textSecondary}),jsxRuntime.jsx("input",{ref:m,type:"text",value:r,onChange:x=>o(x.target.value),placeholder:a,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:h,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:f.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):f.map(x=>jsxRuntime.jsxs("div",{role:"group","aria-label":x.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:x.category}),x.items.map(C=>{let T=C.flatIndex===s;return jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>b(C.flatIndex),onMouseLeave:()=>b(-1),children:[C.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]})]},C.id)})]},x.category))})]})]}),document.body):null};hi.displayName="Spotlight";var Si={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},ki={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ci=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:l=false,className:u,style:d})=>{let c=F(),p=Si[c],g=ki[o],i=a==="vertical",y=e.map(f=>typeof f=="string"?{value:f,label:f}:f),s=y.findIndex(f=>f.value===t),b=$t.useRef(null),m=$t.useRef([]),[h,S]=$t.useState({offset:0,size:0}),z=$t.useCallback(()=>{let f=b.current,w=m.current[s];if(!f||!w||s<0)return;let E=f.getBoundingClientRect(),v=w.getBoundingClientRect();S(i?{offset:v.top-E.top,size:v.height}:{offset:v.left-E.left,size:v.width});},[s,i]);return $t.useEffect(()=>{z();},[z,t,e,o]),$t.useEffect(()=>(window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)),[z]),jsxRuntime.jsxs("div",{ref:b,role:"radiogroup",className:u,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:p.bg,border:`1px solid ${p.border}`,borderRadius:g.borderRadius,padding:g.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...d},children:[s>=0&&h.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:g.itemRadius,backgroundColor:p.indicator,border:`1px solid ${p.indicatorBorder}`,boxShadow:p.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:g.padding,right:g.padding,top:h.offset,height:h.size}:{top:g.padding,bottom:g.padding,left:h.offset,width:h.size}}}),y.map((f,w)=>{let E=f.value===t,v=l||f.disabled;return jsxRuntime.jsx("button",{ref:x=>{m.current[w]=x;},type:"button",role:"radio","aria-checked":E,disabled:v,onClick:()=>{v||r(f.value);},style:{position:"relative",zIndex:1,flex:n?1:void 0,padding:g.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:g.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,fontWeight:E?500:400,color:v?p.textDisabled:E?p.textActive:p.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:x=>{!v&&!E&&(x.currentTarget.style.color=p.textHover);},onMouseLeave:x=>{!v&&!E&&(x.currentTarget.style.color=p.text);},children:f.label??f.value},f.value)})]})};Ci.displayName="SegmentedControl";var zi={info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"}},Fi={info: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"})},So=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:l,className:u})=>{let{border:d,background:c}=zi[e],p=o??Fi[e];return jsxRuntime.jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:c,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...l},className:u,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:p}),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})]})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:n,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:"#ffffff",opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ko=3,Bi=.06,Co=12,vt=320,Ro=$t.createContext(null),Mi=0,Hi=()=>`sm-toast-${++Mi}-${Date.now()}`,Ed=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:l=4e3})=>{let[u,d]=$t.useState([]),c=$t.useCallback(i=>{d(y=>y.map(s=>s.id===i?{...s,lifecycle:"leaving"}:s)),setTimeout(()=>{d(y=>y.filter(s=>s.id!==i));},vt+100);},[]),p=$t.useCallback(i=>{let y=Hi(),s=i.duration??l,b={id:y,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:s,lifecycle:"entering",height:0};return d(m=>{let h=[...m,b];return h.length>a?h.slice(h.length-a):h}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(m=>m.map(h=>h.id===y?{...h,lifecycle:"visible"}:h));});}),s>0&&setTimeout(()=>c(y),s),y},[a,c,l]),g=$t.useCallback((i,y)=>{d(s=>s.map(b=>b.id===i&&b.height!==y?{...b,height:y}:b));},[]);return jsxRuntime.jsxs(Ro.Provider,{value:{toast:p,dismiss:c},children:[e,u.length>0&&jsxRuntime.jsx(Ni,{toasts:u,position:t,toastWidth:r,gap:o,offset:n,onDismiss:c,onHeightMeasured:g})]})},Li=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:l,toastWidth:u,onDismiss:d,onHeightMeasured:c})=>{let p=t.lifecycle==="leaving",g=!l||p,i=n?1:Math.max(.7,1-r*Bi),y=n?0:r*Co,s=a?-y:y,m=g?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${s}px)`,h=g?0:n?1:Math.max(.4,1-r*.18),S=!n&&r>=ko,z=o-r,f=$t.useCallback(w=>{w&&t.height===0&&c(t.id,w.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:f,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:m,opacity:S?0:h,zIndex:z,transition:[`transform ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${vt}ms ease`].join(", "),pointerEvents:r===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(So,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:u,maxWidth:"100%",boxSizing:"border-box"}})})},Ni=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:l})=>{let[u,d]=$t.useState(false),[c,p]=$t.useState(new Set),g=t.startsWith("bottom"),i=t.endsWith("right"),y=t.endsWith("center");$t.useEffect(()=>{p(f=>{let w=new Set(f);return e.forEach(E=>{E.lifecycle==="visible"&&w.add(E.id);}),[...w].forEach(E=>{e.find(v=>v.id===E)||w.delete(E);}),w});},[e]);let m=(e[e.length-1]?.height||80)+Math.min(e.length-1,ko-1)*Co,h=e.reduce((f,w)=>f+(w.height||80),0)+Math.max(0,e.length-1)*o,S=u?h:m,z=y?{left:"50%",transform:"translateX(-50%)"}:i?{right:n}:{left:n};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:S,...g?{bottom:n}:{top:n},...z,transition:`height ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((f,w)=>{let E=e.length-1-w,v=c.has(f.id),x=f.lifecycle==="leaving",C=!v||x,T;if(u&&!C){let P=e.slice(w+1).reduce((I,B)=>I+(B.height||80)+o,0);T=`translateY(${g?-P:P}px)`;}return jsxRuntime.jsx(Li,{item:f,depthIndex:E,stackSize:e.length,expanded:u,isBottom:g,appeared:v,toastWidth:r,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:T},f.id)})})},Dd=()=>{let e=$t.useContext(Ro);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var qi={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},_i={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},Md=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:l,style:u})=>{let d=F(),c=qi[d],p=_i[e],[g,i]=$t.useState(true);if(!g)return null;let y=d==="light",s=y?p.borderLight:p.border,b=y?p.backgroundLight:p.background,m=y?p.iconColorLight:p.iconColor,S=o??{info:jsxRuntime.jsx(react.Info,{size:24,color:m}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:m}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:m}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:m})}[e],z=()=>{i(false),a?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${s}`,borderRadius:"4px",boxSizing:"border-box",...u},className:l,children:[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:c.titleText},children:t}),r&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:r})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:z,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var Eo={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},Xi={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},To="sm-ui-progress-stripes",Gi=()=>{if(typeof document>"u"||document.getElementById(To))return;let e=document.createElement("style");e.id=To,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Wd=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:l=false,className:u,style:d})=>{let c=F(),p=Eo[c],g=Xi[t],i=Math.max(0,Math.min(100,e));a&&l&&Gi();let y=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...l?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:u,children:[(n||o)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},children:n}),o&&jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:g.fontSize,color:p.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(i),"%"]})]}),jsxRuntime.jsx("div",{style:{width:"100%",height:g.height,backgroundColor:p.trackBg,borderRadius:g.height/2,overflow:"hidden"},children:jsxRuntime.jsx("div",{style:{width:`${i}%`,height:"100%",backgroundColor:r,borderRadius:g.height/2,transition:"width 0.3s ease",...y}})})]})},$d=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:l,style:u})=>{let d=F(),c=Eo[d],p=Math.max(0,Math.min(100,e)),g=(t-r)/2,i=2*Math.PI*g,y=i-p/100*i;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":p,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...u},className:l,children:[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:g,fill:"none",stroke:c.trackBg,strokeWidth:r}),jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:g,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:y,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),n&&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:c.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(p),"%"]}),a&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},children:a})]})};var Ji={sm:16,md:24,lg:40},Ud=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,l]=$t.useState(0),u=$t.useRef(void 0),d=$t.useRef(void 0);$t.useEffect(()=>{let g=i=>{d.current===void 0&&(d.current=i),l((i-d.current)/800*360%360),u.current=requestAnimationFrame(g);};return u.current=requestAnimationFrame(g),()=>{u.current!==void 0&&cancelAnimationFrame(u.current);}},[]);let c=typeof e=="number"?e:Ji[e]??24,p=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":r,className:o,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...n},children:jsxRuntime.jsxs("svg",{width:c,height:c,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:p,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:p,strokeWidth:"2",strokeLinecap:"round"})]})})};var es={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Gd=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=F(),a=es[n];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.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:a.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...o}})};var rs={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},os={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Jd=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:l,className:u,style:d})=>jsxRuntime.jsx("div",{className:u,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:rs[r],justifyContent:os[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...d},children:l});var as={sm:640,md:768,lg:1024,xl:1280},tp=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let l=typeof e=="number"?e:as[e],u=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:n,style:{maxWidth:`${l}px`,width:"100%",padding:u,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var ps={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},Fo="smDragListPulse",fs=`@keyframes ${Fo}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=fr(r.children,t);if(o)return o}}return null}function dr(e,t,r){let o=fr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||dr([n],n.id,r))return true;return false}function Po(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[l,u]=Po(a.children,t);u&&(r=u),n.push({...a,children:l.length>0?l:void 0});}else n.push(a);return n},[]),r]}function pr(e,t,r,o){if(r==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],o],expanded:true}:a.children?{...a,children:pr(a.children,t,r,o)}:a);let n=[];for(let a of e)a.id===t?r==="before"?(n.push(o),n.push(a)):(n.push(a),n.push(o)):a.children?n.push({...a,children:pr(a.children,t,r,o)}):n.push(a);return n}function Io(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Io(r.children,t)}:r)}function Ao(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Ao(o.children,t,r)}:o)}var zo=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${Fo} 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}})}),Bo=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s})=>{let[b,m]=$t.useState(false),[h,S]=$t.useState(false),[z,f]=$t.useState(false),w=$t.useRef(false),E=$t.useRef(null),v=e.children&&e.children.length>0,x=e.expanded??false,C=n===e.id,T=n!==null,k=y==="handle",P=a?.targetId===e.id,R=P&&a?.position==="before",I=P&&a?.position==="after",B=P&&a?.position==="inside",N=C?"transparent":B?s.nestHighlight:h&&!T?s.itemHoverBg:s.itemBg,W=B?s.nestBorder:C?"transparent":s.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[R&&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(zo,{color:s.dropIndicator})}),jsxRuntime.jsxs("div",{ref:E,draggable:true,onDragStart:M=>{if(k&&!w.current){M.preventDefault();return}if(w.current=false,M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",e.id),E.current){let Y=E.current.cloneNode(true);Y.style.width=`${E.current.offsetWidth}px`,Y.style.opacity="0.85",Y.style.transform="rotate(1.5deg) scale(1.02)",Y.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",Y.style.position="fixed",Y.style.top="-1000px",document.body.appendChild(Y),M.dataTransfer.setDragImage(Y,M.nativeEvent.offsetX,M.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(Y));}l(e.id);},onDragOver:M=>{M.preventDefault(),M.stopPropagation(),u(M,e.id,t);},onDragLeave:M=>{let Y=M.relatedTarget;E.current&&Y&&E.current.contains(Y)||(M.stopPropagation(),d(M,E.current),S(false));},onDrop:M=>{M.preventDefault(),M.stopPropagation(),c(M);},onDragEnd:p,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":s.text,cursor:T?"grabbing":k?"default":"grab",opacity:C?.35:1,backgroundColor:N,borderWidth:"1px",borderColor:W,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:B?`inset 0 0 0 1px ${s.nestBorder}`:h&&!T?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!i&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:T?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),onMouseDown:()=>{w.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:b?s.gripHover:s.gripColor})}),B&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:s.dropIndicator})}),v?jsxRuntime.jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),g(e.id);},onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:z?s.chevronHover:s.chevron,style:{transition:"transform 0.2s ease",transform:x?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:i?i(e,{handleProps:{onMouseDown:()=>{w.current=true;},style:{cursor:T?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:x,toggleExpand:()=>g(e.id),hasChildren:!!v}):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})]})})]}),I&&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(zo,{color:s.dropIndicator})}),v&&x&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${s.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(M=>jsxRuntime.jsx(Bo,{item:M,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s},M.id))})]})},us=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:l,style:u})=>{let d=F(),c=ps[d],[p,g]=$t.useState(null),[i,y]=$t.useState(null),s=$t.useRef(null),b=$t.useRef(void 0),m=$t.useRef(void 0),h=$t.useRef(null),S=$t.useCallback(x=>{g(x);},[]),z=$t.useCallback((x,C,T)=>{if(!p||p===C||dr(e,p,C))return;b.current&&(clearTimeout(b.current),b.current=void 0);let k=x.currentTarget.getBoundingClientRect(),P=x.clientY-k.top,R=k.height,I;o&&T<n?P<R*.25?I="before":P>R*.75?I="after":I="inside":P<R*.35?I="before":P>R*.65?I="after":h.current?.targetId===C?I=h.current.position:I=P<R/2?"before":"after";let B={targetId:C,position:I},N=fr(e,C);I==="inside"&&N?.children&&N.children.length>0&&!N.expanded?(h.current?.targetId!==C||h.current?.position!=="inside")&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{t(Ao(e,C,true));},600)):m.current&&(clearTimeout(m.current),m.current=void 0),h.current=B,y(B);},[p,e,o,n,t]),f=$t.useCallback((x,C)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{y(null),h.current=null;},60),m.current&&(clearTimeout(m.current),m.current=void 0);},[]),w=$t.useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),!p||!i)return;let{targetId:x,position:C}=i;if(p===x||dr(e,p,x))return;let[T,k]=Po(e,p);if(!k)return;let P=pr(T,x,C,k);t(P),g(null),y(null),h.current=null;},[p,i,e,t]),E=$t.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),g(null),y(null),h.current=null;},[]),v=$t.useCallback(x=>{t(Io(e,x));},[e,t]);return $t.useEffect(()=>()=>{b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current);},[]),jsxRuntime.jsxs("div",{ref:s,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...u},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:fs}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.textSecondary,backgroundColor:c.itemBg,borderRadius:"10px",border:`1px solid ${c.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(x=>jsxRuntime.jsx(Bo,{item:x,depth:0,allowNesting:o,maxDepth:n,draggedId:p,dropState:i,onDragStart:S,onDragOver:z,onDragLeave:f,onDrop:w,onDragEnd:E,onToggleExpand:v,renderItem:r,dragMode:a,tokens:c},x.id))]})};us.displayName="DragList";exports.Accordion=ca;exports.AccordionItem=la;exports.Alert=Md;exports.Avatar=fc;exports.Badge=hc;exports.Breadcrumb=ja;exports.Button=Qo;exports.Card=oa;exports.Checkbox=Mr;exports.CheckboxGroup=Hr;exports.Container=tp;exports.DatePicker=Ar;exports.DatePickerGroup=Sn;exports.Divider=Gd;exports.DragList=us;exports.Drawer=Xa;exports.DropdownMenu=pi;exports.EmptyState=za;exports.FileUpload=Gr;exports.Input=Sr;exports.InputGroup=Rs;exports.Link=id;exports.Modal=Ya;exports.Pagination=oi;exports.Popover=Ra;exports.ProgressBar=Wd;exports.ProgressCircle=$d;exports.Radio=It;exports.RadioGroup=Nr;exports.SegmentedControl=Ci;exports.Select=wr;exports.SelectGroup=fn;exports.Skeleton=Nt;exports.Slider=qr;exports.Spinner=Ud;exports.Spotlight=hi;exports.Stack=Jd;exports.Stat=Ba;exports.Stepper=li;exports.Switch=$r;exports.Tab=fa;exports.TabPanel=ua;exports.Table=ea;exports.Tabs=ga;exports.Tag=xc;exports.TagItem=yc;exports.Textarea=Zr;exports.Toast=So;exports.ToasterProvider=Ed;exports.Tooltip=ha;exports.useTheme=F;exports.useToast=Dd;//# sourceMappingURL=index.js.map
13
+ //# sourceMappingURL=index.js.map