@smworks-cz/ui-kit 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
- 'use strict';var ur=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 ur__default=/*#__PURE__*/_interopDefault(ur);var P=()=>{let[e,t]=ur.useState("light");return ur.useEffect(()=>{if(typeof window>"u")return;let o=()=>{let s=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return s==="dark"||s==="light"?s:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),n=s=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(s.matches?"dark":"light");};r.addEventListener("change",n);let a=new MutationObserver(s=>{s.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",n),a.disconnect();}},[]),e};var ke={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},ns={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},as=({size:e=14})=>{let[t,o]=ur.useState(0),r=ur.useRef(void 0),n=ur.useRef(void 0);return ur.useEffect(()=>{let a=s=>{n.current===void 0&&(n.current=s),o((s-n.current)/800*360%360),r.current=requestAnimationFrame(a);};return r.current=requestAnimationFrame(a),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),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"})]})},ss=ur__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:n=false,fullWidth:a=false,children:s,style:i,className:u,...c},d)=>{let[p,l]=ur.useState(false),b=P()==="dark",m=typeof c.href=="string",f=n||(m?false:!!c.disabled),C=s!=null&&s!=="",w=o!=null,y=(w||n)&&!C,{paddingText:g,paddingSquare:v,fontSize:M,gap:D,height:k}=ns[t],h={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:C&&(w||n)?D:void 0,padding:y?v:g,height:k,borderRadius:"8px",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:M,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:f?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?ke.primaryHover:ke.primary,color:ke.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:`1px solid ${p?b?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":b?ke.borderDark:ke.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:ke.white,border:"1px solid transparent"}}})(),S=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsxRuntime.jsx(as,{size:parseInt(M)-1}):o}),I=n||w,L=r==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[C&&jsxRuntime.jsx("span",{children:s}),I&&S]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[I&&S,C&&jsxRuntime.jsx("span",{children:s})]}),R={style:{...h,...F,...i},className:u,onMouseEnter:W=>{l(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{l(false),c.onMouseLeave?.(W);}};if(m){let{href:W,target:z,rel:A,...Z}=c;return jsxRuntime.jsx("a",{ref:d,href:W,target:z,rel:A??(z==="_blank"?"noopener noreferrer":void 0),"aria-disabled":f||void 0,...Z,...R,children:L})}let{disabled:T,type:E="button",...N}=c;return jsxRuntime.jsx("button",{ref:d,type:E,disabled:f,"aria-busy":n||void 0,...N,...R,children:L})});ss.displayName="Button";var fs=({size:e=16,color:t})=>{let[o,r]=ur.useState(0),n=ur.useRef(void 0),a=ur.useRef(void 0);return ur.useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},sn={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},us={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ln=ur__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:n,loading:a=false,clearable:s=false,passwordToggle:i,size:u="md",fullWidth:c=false,style:d,className:p,inputStyle:l,disabled:x,required:b,value:m,onChange:f,onFocus:C,onBlur:w,type:y,...g},v)=>{let M=P(),D=sn[M],k=ur.useId(),h=g.id??k,[F,S]=ur.useState(false),[I,L]=ur.useState(false),R=y==="password",T=i??R,E=R&&I?"text":y,N=x||a,W=!!r,z=typeof r=="string"?r:void 0,A=m!=null&&m!=="",Z=s&&A&&!N&&!T,O=us[u],X=()=>{if(!f)return;f({target:{value:""},currentTarget:{value:""}});},te=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:D.placeholder},children:t}):null,Y=T&&!N?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":I?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>L(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:I?jsxRuntime.jsx(react.EyeSlash,{color:D.placeholder,size:O.iconSize}):jsxRuntime.jsx(react.Eye,{color:D.placeholder,size:O.iconSize})}):null,$=a?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:D.placeholder},children:jsxRuntime.jsx(fs,{size:O.iconSize,color:D.placeholder})}):Y||(Z?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:X,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:O.iconSize-2,color:D.placeholder})}):o==="right"&&te?te:null),j=o==="left"?te:null,U={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:N?D.backgroundDisabled:D.background,border:`1px solid ${W?D.borderError:F?D.borderFocus:D.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},re={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:O.fontSize,lineHeight:"normal",color:D.text,cursor:N?"not-allowed":"text",...l},K={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},q={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...d},className:p,children:[e&&jsxRuntime.jsxs("label",{htmlFor:h,style:K,children:[e,b&&jsxRuntime.jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:h,style:U,children:[j,jsxRuntime.jsx("input",{ref:v,id:h,type:E,disabled:x,required:b,readOnly:a||g.readOnly,value:m,onChange:f,style:re,onFocus:J=>{S(true),C?.(J);},onBlur:J=>{S(false),w?.(J);},...g}),$]}),z&&jsxRuntime.jsx("span",{style:{...q,color:D.borderError},children:z}),!z&&n&&jsxRuntime.jsx("span",{style:{...q,color:D.helperText},children:n})]})});ln.displayName="Input";var gf=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=ur.useId(),i=t??s,u={display:"flex",flexDirection:"column",gap:"8px",...r},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:sn[a].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:u,className:n,children:[jsxRuntime.jsx("label",{htmlFor:i,style:c,children:e}),o??jsxRuntime.jsx(ln,{id:i})]})};var Ss={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},ks={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},Cs=ur__default.default.forwardRef(({value:e,onChange:t,min:o,max:r,step:n=1,label:a,error:s,disabled:i=false,size:u="md",variant:c="default",prefix:d,suffix:p,style:l,className:x},b)=>{let m=P(),f=Ss[m],w=ur.useId(),y=ks[u],[g,v]=ur.useState(false),[M,D]=ur.useState(null),k=!!s,h=typeof s=="string"?s:void 0,F=ur.useCallback(j=>{let U=j;return o!==void 0&&U<o&&(U=o),r!==void 0&&U>r&&(U=r),U},[o,r]),S=ur.useCallback(()=>{t(F(e+n));},[e,n,t,F]),I=ur.useCallback(()=>{t(F(e-n));},[e,n,t,F]),L=ur.useRef(null),R=ur.useRef(null),T=ur.useCallback(j=>{i||(j(),R.current=setTimeout(()=>{L.current=setInterval(j,80);},400));},[i]),E=ur.useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),L.current&&(clearInterval(L.current),L.current=null);},[]);ur.useEffect(()=>()=>E(),[E]);let N=j=>{let U=j.target.value;if(U===""||U==="-")return;let re=parseFloat(U);isNaN(re)||t(F(re));},W=()=>{v(false),t(F(e));},z=o===void 0||e>o,A=r===void 0||e<r,Z={display:"flex",alignItems:"center",backgroundColor:i?f.backgroundDisabled:f.background,border:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:y.height},O=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:M===j&&U&&!i?f.buttonHoverBg:f.buttonBg,color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),X={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:f.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},Y={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:f.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:M===j&&U&&!i?f.buttonHoverBg:"transparent",color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return c==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsxRuntime.jsx("label",{htmlFor:w,style:te,children:a}),jsxRuntime.jsxs("div",{style:Z,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[d&&jsxRuntime.jsx("span",{style:Y,children:d}),jsxRuntime.jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:{...X,textAlign:"left"}}),p&&jsxRuntime.jsx("span",{style:Y,children:p})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:$("up",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:$("down",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),h&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsxRuntime.jsx("label",{htmlFor:w,style:te,children:a}),jsxRuntime.jsxs("div",{style:Z,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:O("minus",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("minus"),children:jsxRuntime.jsx(react.Minus,{size:y.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[d&&jsxRuntime.jsx("span",{style:Y,children:d}),jsxRuntime.jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:X}),p&&jsxRuntime.jsx("span",{style:Y,children:p})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:O("plus",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("plus"),children:jsxRuntime.jsx(react.Plus,{size:y.iconSize})})]}),h&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]})});Cs.displayName="NumberInput";var Fs=({size:e=16,color:t})=>{let[o,r]=ur.useState(0),n=ur.useRef(void 0),a=ur.useRef(void 0);return ur.useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},un={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Yo=180,gn=({options:e,value:t,onChange:o,multiple:r=false,searchable:n=false,clearable:a=false,disabled:s=false,loading:i=false,error:u,label:c,placeholder:d="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:x})=>{let b=P(),m=un[b],f=ur.useId(),C=ur.useRef(null),w=ur.useRef(null),y=ur.useRef(null),g=ur.useRef(null),[v,M]=ur.useState(false),[D,k]=ur.useState(false),[h,F]=ur.useState("idle"),[S,I]=ur.useState(""),[L,R]=ur.useState(-1),[T,E]=ur.useState({top:0,left:0,width:0,openAbove:false}),N=s||i,W=!!u,z=typeof u=="string"?u:void 0,A=ur.useCallback(()=>{M(true),k(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),Z=ur.useCallback(()=>{M(false),F("closing"),I("");let H=setTimeout(()=>{k(false),F("idle");},Yo);return ()=>clearTimeout(H)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],X=H=>O.includes(H),te=S?e.filter(H=>(H.label??H.value).toLowerCase().includes(S.toLowerCase())):e,Y=ur.useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??p+60,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;E({top:he?H.top-6:H.bottom+6,left:H.left,width:H.width,openAbove:he});},[p]);ur.useEffect(()=>{if(D)return Y(),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[D,Y]);let $=ur.useCallback(H=>{if(o)if(r){let Q=X(H)?O.filter(ee=>ee!==H):[...O,H];o(Q);}else o(H),Z();},[r,o,O,Z]),j=ur.useCallback(H=>{H.stopPropagation(),o&&(o(r?[]:null),I(""));},[r,o]),U=()=>{N||(v?Z():A(),R(-1));},re=H=>{if(!N)switch(H.key){case "ArrowDown":H.preventDefault(),v?R(Q=>Math.min(Q+1,te.length-1)):(A(),R(0));break;case "ArrowUp":H.preventDefault(),R(Q=>Math.max(Q-1,0));break;case "Enter":case " ":H.preventDefault(),v&&L>=0&&te[L]&&!te[L].disabled?$(te[L].value):v||(A(),R(0));break;case "Escape":Z();break;case "Tab":Z();break}};ur.useEffect(()=>{L>=0&&g.current&&g.current.children[L]?.scrollIntoView({block:"nearest"});},[L]),ur.useEffect(()=>{if(!v)return;let H=Q=>{let ee=Q.target,ne=C.current?.contains(ee),he=w.current?.contains(ee);!ne&&!he&&Z();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,Z]),ur.useEffect(()=>{v&&n&&y.current&&y.current.focus();},[v,n]);let K=H=>e.find(ee=>ee.value===H)?.label??H,q=a&&O.length>0&&!N,J=()=>{let H=T.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:h==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?m.backgroundDisabled:m.background,border:`1px solid ${W?m.borderError:v?m.borderFocus:m.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",userSelect:"none",outline:"none"},we=D?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:w,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:m.dropdownBg,border:`1px solid ${m.dropdownBorder}`,borderRadius:"12px",boxShadow:b==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom center":"top center",...J()},children:[n&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${m.divider}`},children:jsxRuntime.jsx("input",{ref:y,type:"text",value:S,onChange:H=>{I(H.target.value),R(0);},onKeyDown:re,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:m.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:g,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${f}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
2
- .sm-select-list-${f}::-webkit-scrollbar {
1
+ 'use strict';var zn=require('react'),jsxRuntime=require('react/jsx-runtime'),reactDom=require('react-dom'),react=require('@phosphor-icons/react');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var zn__default=/*#__PURE__*/_interopDefault(zn);var A=()=>{let[e,t]=zn.useState("light");return zn.useEffect(()=>{if(typeof window>"u")return;let o=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let n=window.matchMedia("(prefers-color-scheme: dark)"),r=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};n.addEventListener("change",r);let a=new MutationObserver(l=>{l.forEach(s=>{s.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{n.removeEventListener("change",r),a.disconnect();}},[]),e};var Ie={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},Ii={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},Pi=({size:e=14})=>{let[t,o]=zn.useState(0),n=zn.useRef(void 0),r=zn.useRef(void 0);return zn.useEffect(()=>{let a=l=>{r.current===void 0&&(r.current=l),o((l-r.current)/800*360%360),n.current=requestAnimationFrame(a);};return n.current=requestAnimationFrame(a),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Mi=zn__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:n="left",loading:r=false,loadingPosition:a="replace",fullWidth:l=false,children:s,style:g,className:b,...c},d)=>{let[i,u]=zn.useState(false),m=A()==="dark",p=typeof c.href=="string",R=r||(p?false:!!c.disabled),z=s!=null&&s!=="",h=o!=null,S=(h||r)&&!z,{paddingText:x,paddingSquare:I,fontSize:v,gap:E,height:y}=Ii[t],D={display:l?"flex":"inline-flex",width:l?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:z&&(h||r)?E:void 0,padding:S?I:x,height:y,borderRadius:"8px",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:R?"none":void 0},B=(()=>{switch(e){case "primary":return {backgroundColor:i?Ie.primaryHover:Ie.primary,color:Ie.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:"1px solid transparent"};case "outline":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:`1px solid ${i?m?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":m?Ie.borderDark:Ie.borderLight}`};case "danger":return {backgroundColor:i?"#FF5252":"#EF3838",color:Ie.white,border:"1px solid transparent"}}})(),k=a==="after-text",M=jsxRuntime.jsx(Pi,{size:parseInt(v)-1}),F=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:r&&!k?M:o}),w=r&&k?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:M}):null,T=r&&!k||h,L=n==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z&&jsxRuntime.jsx("span",{children:s}),w,T&&F]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[T&&F,z&&jsxRuntime.jsx("span",{children:s}),w]}),N={style:{...D,...B,...g},className:b,onMouseEnter:W=>{u(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{u(false),c.onMouseLeave?.(W);}};if(p){let{href:W,target:V,rel:q,...Z}=c;return jsxRuntime.jsx("a",{ref:d,href:W,target:V,rel:q??(V==="_blank"?"noopener noreferrer":void 0),"aria-disabled":R||void 0,...Z,...N,children:L})}let{disabled:C,type:P="button",...H}=c;return jsxRuntime.jsx("button",{ref:d,type:P,disabled:R,"aria-busy":r||void 0,...H,...N,children:L})});Mi.displayName="Button";var Li={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ht=({content:e,children:t,position:o="top",mode:n="anchor",autoFlip:r=true,offset:a=[0,0],delay:l=0,openDelay:s,closeDelay:g=0,className:b,style:c})=>{let d=A(),i=Li[d],[u,f]=zn.useState(false),[m,p]=zn.useState({top:0,left:0}),[R,z]=zn.useState(o),h=zn.useRef(null),S=zn.useRef(null),x=zn.useRef(void 0),I=zn.useRef(void 0),v=zn.useRef({x:0,y:0}),E=6,y=8,D=s??l,B=zn.useCallback((C,P,H)=>{if(!r)return C;let W=window.innerWidth,V=window.innerHeight;switch(C){case "top":if(P.top-H.height-y<0)return "bottom";break;case "bottom":if(P.bottom+H.height+y>V)return "top";break;case "left":if(P.left-H.width-y<0)return "right";break;case "right":if(P.right+H.width+y>W)return "left";break}return C},[r]),k=zn.useCallback(()=>{let C=h.current,P=S.current;if(!C||!P)return;let H=C.getBoundingClientRect(),W=P.getBoundingClientRect(),V=B(o,H,W);z(V);let q=0,Z=0,[$,G]=a;switch(V){case "top":q=H.top-W.height-y+G,Z=H.left+H.width/2-W.width/2+$;break;case "bottom":q=H.bottom+y+G,Z=H.left+H.width/2-W.width/2+$;break;case "left":q=H.top+H.height/2-W.height/2+G,Z=H.left-W.width-y+$;break;case "right":q=H.top+H.height/2-W.height/2+G,Z=H.right+y+$;break}let X=window.innerWidth,ee=window.innerHeight;Z=Math.max(4,Math.min(Z,X-W.width-4)),q=Math.max(4,Math.min(q,ee-W.height-4)),p({top:q,left:Z});},[o,a,B]),M=zn.useCallback(()=>{let C=S.current;if(!C)return;let P=C.getBoundingClientRect(),[H,W]=a,V=v.current.x,q=v.current.y,Z=0,$=0;switch(o){case "top":Z=q-P.height-y+W,$=V-P.width/2+H;break;case "bottom":Z=q+y+16+W,$=V-P.width/2+H;break;case "left":Z=q-P.height/2+W,$=V-P.width-y+H;break;case "right":Z=q-P.height/2+W,$=V+y+H;break}let G=window.innerWidth,X=window.innerHeight;$=Math.max(4,Math.min($,G-P.width-4)),Z=Math.max(4,Math.min(Z,X-P.height-4)),p({top:Z,left:$}),z(o);},[o,a]);zn.useEffect(()=>{u&&requestAnimationFrame(()=>{n==="cursor"?M():k();});},[u,n,k,M]);let F=zn.useCallback(C=>{v.current={x:C.clientX,y:C.clientY},n==="cursor"&&u&&M();},[n,u,M]),w=zn.useCallback(C=>{v.current={x:C.clientX,y:C.clientY},I.current&&(clearTimeout(I.current),I.current=void 0),x.current=setTimeout(()=>f(true),D);},[D]),T=zn.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g>0?I.current=setTimeout(()=>f(false),g):f(false);},[g]);zn.useEffect(()=>()=>{x.current&&clearTimeout(x.current),I.current&&clearTimeout(I.current);},[]);let L=(()=>{if(n==="cursor")return {display:"none"};let C={position:"absolute",width:0,height:0,border:`${E}px solid transparent`};switch(R){case "top":return {...C,bottom:-E,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...C,top:-E,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...C,right:-E,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...C,left:-E,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),N=u?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:S,className:b,style:{position:"fixed",top:m.top,left:m.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...c},children:[e,jsxRuntime.jsx("div",{style:L})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[zn__default.default.cloneElement(t,{ref:h,onMouseEnter:C=>{w(C),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{T(),t.props.onMouseLeave?.(C);},onMouseMove:C=>{F(C),t.props.onMouseMove?.(C);}}),N]})};ht.displayName="Tooltip";var Oi=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Zi={dark:{defaultBg:"transparent",defaultHover:"rgba(255,255,255,0.08)",defaultColor:"#ffffff",ghostBg:"transparent",ghostHover:"rgba(255,255,255,0.06)",ghostColor:"#ACACAC",outlineBg:"transparent",outlineHover:"rgba(255,255,255,0.06)",outlineColor:"#ffffff",outlineBorder:"rgba(255,255,255,0.3)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.12)",dangerColor:"#EF3838"},light:{defaultBg:"transparent",defaultHover:"rgba(0,0,0,0.06)",defaultColor:"#1a1a1a",ghostBg:"transparent",ghostHover:"rgba(0,0,0,0.04)",ghostColor:"#888888",outlineBg:"transparent",outlineHover:"rgba(0,0,0,0.04)",outlineColor:"#1a1a1a",outlineBorder:"rgba(0,0,0,0.2)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.08)",dangerColor:"#EF3838"}},Yi={xs:{size:24,iconSize:12,radius:"4px"},sm:{size:28,iconSize:14,radius:"6px"},md:{size:36,iconSize:16,radius:"8px"},lg:{size:44,iconSize:20,radius:"8px"}},Vi=({icon:e,onClick:t,label:o,variant:n="default",size:r="md",disabled:a=false,loading:l=false,tooltip:s,style:g,className:b})=>{let c=A(),d=Zi[c],i=Yi[r],[u,f]=zn.useState(false),m={default:{bg:u?d.defaultHover:d.defaultBg,color:d.defaultColor,border:"none"},ghost:{bg:u?d.ghostHover:d.ghostBg,color:d.ghostColor,border:"none"},outline:{bg:u?d.outlineHover:d.outlineBg,color:d.outlineColor,border:`1px solid ${d.outlineBorder}`},danger:{bg:u?d.dangerHover:d.dangerBg,color:d.dangerColor,border:"none"}}[n],p=jsxRuntime.jsx("button",{type:"button","aria-label":o,disabled:a||l,onClick:t,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),className:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:i.size,height:i.size,borderRadius:i.radius,backgroundColor:m.bg,color:m.color,border:m.border,cursor:a||l?"not-allowed":"pointer",opacity:a?.4:1,transition:"background-color 0.12s ease",outline:"none",padding:0,flexShrink:0,boxSizing:"border-box",...g},children:l?jsxRuntime.jsx(Oi,{size:i.iconSize}):e});return s?jsxRuntime.jsx(ht,{content:s,children:p}):p};Vi.displayName="IconButton";var Gi={dark:{label:"#ffffff",helperText:"#ACACAC",errorText:"#EF3838",required:"#EF3838"},light:{label:"#1a1a1a",helperText:"#888888",errorText:"#EF3838",required:"#EF3838"}},_i=({label:e,required:t=false,helperText:o,error:n,children:r,inline:a=false,labelWidth:l="120px",style:s,className:g})=>{let b=A(),c=Gi[b],d=zn.useId(),i=typeof l=="number"?`${l}px`:l,u=e?jsxRuntime.jsxs("label",{htmlFor:d,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none",display:"flex",alignItems:"center",gap:"2px",...a?{width:i,flexShrink:0,paddingTop:"10px"}:{}},children:[e,t&&jsxRuntime.jsx("span",{style:{color:c.required,marginLeft:"2px"},children:"*"})]}):null,f=n||o;return jsxRuntime.jsxs("div",{className:g,style:{display:"flex",flexDirection:a?"row":"column",gap:a?"12px":"6px",...s},children:[u,jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px",minWidth:0},children:[r,f&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:n?c.errorText:c.helperText},children:n||o})]})]})};_i.displayName="FormField";var es=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Er={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},ts={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},zr=zn__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:n,helperText:r,loading:a=false,clearable:l=false,passwordToggle:s,size:g="md",fullWidth:b=false,style:c,className:d,inputStyle:i,disabled:u,required:f,value:m,onChange:p,onFocus:R,onBlur:z,type:h,...S},x)=>{let I=A(),v=Er[I],E=zn.useId(),y=S.id??E,[D,B]=zn.useState(false),[k,M]=zn.useState(false),F=h==="password",w=s??F,T=F&&k?"text":h,L=u||a,N=!!n,C=typeof n=="string"?n:void 0,P=m!=null&&m!=="",H=l&&P&&!L&&!w,W=ts[g],V=()=>{if(!p)return;p({target:{value:""},currentTarget:{value:""}});},q=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,Z=w&&!L?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":k?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(re=>!re),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:k?jsxRuntime.jsx(react.EyeSlash,{color:v.placeholder,size:W.iconSize}):jsxRuntime.jsx(react.Eye,{color:v.placeholder,size:W.iconSize})}):null,$=a?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsxRuntime.jsx(es,{size:W.iconSize,color:v.placeholder})}):Z||(H?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:V,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:W.iconSize-2,color:v.placeholder})}):o==="right"&&q?q:null),G=o==="left"?q:null,X={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:L?v.backgroundDisabled:v.background,border:`1px solid ${N?v.borderError:D?v.borderFocus:v.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},ee={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:W.fontSize,lineHeight:"normal",color:v.text,cursor:L?"not-allowed":"text",...i},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},te={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:b?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:b?"100%":void 0,...c},className:d,children:[e&&jsxRuntime.jsxs("label",{htmlFor:y,style:J,children:[e,f&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:y,style:X,children:[G,jsxRuntime.jsx("input",{ref:x,id:y,type:T,disabled:u,required:f,readOnly:a||S.readOnly,value:m,onChange:p,style:ee,onFocus:re=>{B(true),R?.(re);},onBlur:re=>{B(false),z?.(re);},...S}),$]}),C&&jsxRuntime.jsx("span",{style:{...te,color:v.borderError},children:C}),!C&&r&&jsxRuntime.jsx("span",{style:{...te,color:v.helperText},children:r})]})});zr.displayName="Input";var Hf=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l,g={display:"flex",flexDirection:"column",gap:"8px",...n},b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Er[a].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:g,className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:b,children:e}),o??jsxRuntime.jsx(zr,{id:s})]})};var cs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},ds={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},ps=zn__default.default.forwardRef(({value:e,onChange:t,min:o,max:n,step:r=1,label:a,error:l,disabled:s=false,size:g="md",variant:b="default",prefix:c,suffix:d,style:i,className:u},f)=>{let m=A(),p=cs[m],z=zn.useId(),h=ds[g],[S,x]=zn.useState(false),[I,v]=zn.useState(null),E=!!l,y=typeof l=="string"?l:void 0,D=zn.useCallback(G=>{let X=G;return o!==void 0&&X<o&&(X=o),n!==void 0&&X>n&&(X=n),X},[o,n]),B=zn.useCallback(()=>{t(D(e+r));},[e,r,t,D]),k=zn.useCallback(()=>{t(D(e-r));},[e,r,t,D]),M=zn.useRef(null),F=zn.useRef(null),w=zn.useCallback(G=>{s||(G(),F.current=setTimeout(()=>{M.current=setInterval(G,80);},400));},[s]),T=zn.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);zn.useEffect(()=>()=>T(),[T]);let L=G=>{let X=G.target.value;if(X===""||X==="-")return;let ee=parseFloat(X);isNaN(ee)||t(D(ee));},N=()=>{x(false),t(D(e));},C=o===void 0||e>o,P=n===void 0||e<n,H={display:"flex",alignItems:"center",backgroundColor:s?p.backgroundDisabled:p.background,border:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden",height:h.height},W=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:h.buttonPadding,border:"none",background:I===G&&X&&!s?p.buttonHoverBg:p.buttonBg,color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:h.height,userSelect:"none"}),V={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"normal",color:p.text,textAlign:"center",cursor:s?"not-allowed":"text",MozAppearance:"textfield"},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:h.fontSize,color:p.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:I===G&&X&&!s?p.buttonHoverBg:"transparent",color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return b==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsxRuntime.jsx("label",{htmlFor:z,style:q,children:a}),jsxRuntime.jsxs("div",{style:H,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:h.padding,minWidth:0},children:[c&&jsxRuntime.jsx("span",{style:Z,children:c}),jsxRuntime.jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:{...V,textAlign:"left"}}),d&&jsxRuntime.jsx("span",{style:Z,children:d})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:$("up",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:$("down",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsxRuntime.jsx("label",{htmlFor:z,style:q,children:a}),jsxRuntime.jsxs("div",{style:H,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:W("minus",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("minus"),children:jsxRuntime.jsx(react.Minus,{size:h.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[c&&jsxRuntime.jsx("span",{style:Z,children:c}),jsxRuntime.jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:V}),d&&jsxRuntime.jsx("span",{style:Z,children:d})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:W("plus",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("plus"),children:jsxRuntime.jsx(react.Plus,{size:h.iconSize})})]}),y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]})});ps.displayName="NumberInput";var Pr=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ar={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},rn=180,Hr=({options:e,value:t,onChange:o,multiple:n=false,searchable:r=false,clearable:a=false,disabled:l=false,loading:s=false,error:g,onSearch:b,creatable:c=false,onCreateOption:d,chipDisplay:i="inline",renderOption:u,renderValue:f,label:m,placeholder:p="Vyberte\u2026",maxDropdownHeight:R=240,style:z,className:h})=>{let S=A(),x=Ar[S],I=zn.useId(),v=zn.useRef(null),E=zn.useRef(null),y=zn.useRef(null),D=zn.useRef(null),[B,k]=zn.useState(false),[M,F]=zn.useState(false),[w,T]=zn.useState("idle"),[L,N]=zn.useState(""),[C,P]=zn.useState(-1),[H,W]=zn.useState({top:0,left:0,width:0,openAbove:false}),V=l||s,q=!!g,Z=typeof g=="string"?g:void 0,$=zn.useCallback(()=>{k(true),F(true),T("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>T("open"));});},[]),G=zn.useCallback(()=>{k(false),T("closing"),N("");let _=setTimeout(()=>{F(false),T("idle");},rn);return ()=>clearTimeout(_)},[]),X=n?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],ee=_=>X.includes(_),[J,te]=zn.useState(null),[re,be]=zn.useState(false),we=zn.useRef(void 0);zn.useEffect(()=>{if(!b||!L){te(null);return}return be(true),we.current&&clearTimeout(we.current),we.current=setTimeout(()=>{b(L).then(_=>{te(_),be(false);}).catch(()=>{te([]),be(false);});},300),()=>{we.current&&clearTimeout(we.current);}},[L,b]);let Y=b?J??e:L?e.filter(_=>(_.label??_.value).toLowerCase().includes(L.toLowerCase())):e,j=zn.useCallback(()=>{if(!v.current)return;let _=v.current.getBoundingClientRect(),se=E.current?.offsetHeight??R+60,le=window.innerHeight-_.bottom-6,Ae=_.top-6,st=le<se&&Ae>le;W({top:st?_.top-6:_.bottom+6,left:_.left,width:_.width,openAbove:st});},[R]);zn.useEffect(()=>{if(M)return j(),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[M,j]);let ie=zn.useCallback(_=>{if(o)if(n){let se=ee(_)?X.filter(le=>le!==_):[...X,_];o(se);}else o(_),G();},[n,o,X,G]),Me=zn.useCallback(_=>{_.stopPropagation(),o&&(o(n?[]:null),N(""));},[n,o]),Je=()=>{V||(B?G():$(),P(-1));},We=_=>{if(!V)switch(_.key){case "ArrowDown":_.preventDefault(),B?P(se=>Math.min(se+1,Y.length-1)):($(),P(0));break;case "ArrowUp":_.preventDefault(),P(se=>Math.max(se-1,0));break;case "Enter":case " ":_.preventDefault(),B&&C>=0&&Y[C]&&!Y[C].disabled?ie(Y[C].value):B||($(),P(0));break;case "Escape":G();break;case "Tab":G();break}};zn.useEffect(()=>{C>=0&&D.current&&D.current.children[C]?.scrollIntoView({block:"nearest"});},[C]),zn.useEffect(()=>{if(!B)return;let _=se=>{let le=se.target,Ae=v.current?.contains(le),st=E.current?.contains(le);!Ae&&!st&&G();};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[B,G]),zn.useEffect(()=>{B&&r&&y.current&&y.current.focus();},[B,r]);let Qe=_=>e.find(le=>le.value===_)?.label??_,he=a&&X.length>0&&!V,ze=()=>{let _=H.openAbove,se=_?"translateY(8px)":"translateY(-8px)",le=_?"translateY(6px)":"translateY(-6px)",Ae={transition:`opacity ${rn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...Ae,opacity:0,transform:`${se} scale(0.97)`}:w==="open"?{...Ae,opacity:1,transform:"translateY(0) scale(1)"}:{...Ae,opacity:0,transform:`${le} scale(0.98)`,pointerEvents:"none"}},Ut={display:"flex",alignItems:"center",gap:"10px",backgroundColor:V?x.backgroundDisabled:x.background,border:`1px solid ${q?x.borderError:B?x.borderFocus:x.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},it=M?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:E,style:{position:"fixed",...H.openAbove?{bottom:window.innerHeight-H.top,left:H.left}:{top:H.top,left:H.left},width:H.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:S==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:H.openAbove?"bottom center":"top center",...ze()},children:[r&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${x.divider}`},children:jsxRuntime.jsx("input",{ref:y,type:"text",value:L,onChange:_=>{N(_.target.value),P(0);},onKeyDown:We,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:D,role:"listbox","aria-multiselectable":n,className:`sm-select-list-${I}`,style:{maxHeight:R,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
2
+ .sm-select-list-${I}::-webkit-scrollbar {
3
3
  width: 6px;
4
4
  }
5
- .sm-select-list-${f}::-webkit-scrollbar-track {
5
+ .sm-select-list-${I}::-webkit-scrollbar-track {
6
6
  background: transparent;
7
7
  }
8
- .sm-select-list-${f}::-webkit-scrollbar-thumb {
9
- background: ${m.scrollbarThumb};
8
+ .sm-select-list-${I}::-webkit-scrollbar-thumb {
9
+ background: ${x.scrollbarThumb};
10
10
  border-radius: 3px;
11
11
  }
12
- `}),te.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:m.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((H,Q)=>{let ee=X(H.value),ne=Q===L;return jsxRuntime.jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":H.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ee?500:400,lineHeight:"normal",color:ee?m.optionSelectedText:H.disabled?m.placeholder:m.text,backgroundColor:ne?m.optionHover:ee?m.optionSelected:"transparent",cursor:H.disabled?"not-allowed":"pointer",opacity:H.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:Q<te.length-1?"2px":0},onClick:()=>{H.disabled||$(H.value);},onMouseEnter:()=>R(Q),onMouseLeave:()=>R(-1),children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H.label??H.value}),ee&&jsxRuntime.jsx(react.Check,{size:16,color:m.optionSelectedText})]},H.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:x,children:[c&&jsxRuntime.jsx("label",{htmlFor:f,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.text,userSelect:"none"},children:c}),jsxRuntime.jsxs("div",{ref:C,role:"combobox","aria-expanded":v,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:pe,onClick:U,onKeyDown:re,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[O.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.placeholder,lineHeight:"normal"},children:d}),r?O.map(H=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:m.tagBg,color:m.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(H)}),!N&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:Q=>{Q.stopPropagation(),$(H);},children:jsxRuntime.jsx(react.X,{size:14,color:m.tagText})})]},H)):O.length>0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(O[0])})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[q&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:j,children:jsxRuntime.jsx(react.X,{size:14,color:m.placeholder})}),i?jsxRuntime.jsx(Fs,{size:16,color:m.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:m.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),z&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:m.borderError,lineHeight:"normal"},children:z}),we]})};gn.displayName="Select";var Es=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=ur.useId(),i=t??s;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:un[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(gn,{options:[]})]})};Es.displayName="SelectGroup";var As=({size:e=16,color:t})=>{let[o,r]=ur.useState(0),n=ur.useRef(void 0),a=ur.useRef(void 0);return ur.useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Hs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Vo=180,Ls={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ns=ur__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:n="Hledat\u2026",label:a,error:s,disabled:i=false,loading:u=false,multiple:c=false,clearable:d=false,onOpenChange:p,onSelect:l,onDeselect:x,onClear:b,onFocus:m,onBlur:f,allowCustom:C=false,onCreate:w,renderOption:y,notFoundContent:g,footer:v,size:M="md",style:D,className:k},h)=>{let F=P(),S=Hs[F],L=ur.useId(),R=Ls[M],T=ur.useRef(null),E=ur.useRef(null),N=ur.useRef(null),W=ur.useRef(null),[z,A]=ur.useState(false),[Z,O]=ur.useState(false),[X,te]=ur.useState("idle"),[Y,$]=ur.useState(""),[j,U]=ur.useState(-1),[re,K]=ur.useState(false),[q,J]=ur.useState({top:0,left:0,width:0,openAbove:false}),pe=i||u,we=!!s,H=typeof s=="string"?s:void 0,Q=d&&!pe,ee=c?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ne=B=>ee.includes(B),he=B=>{let V=e.find(G=>G.value===B);return V?V.label??V.value:B};ur.useEffect(()=>{if(!c&&!re){let B=e.find(V=>V.value===t);$(B?B.label??B.value:(typeof t=="string"?t:"")||"");}},[t,e,re,c]);let Ye=Y?e.filter(B=>(B.label??B.value).toLowerCase().includes(Y.toLowerCase())):e,Qe=ur.useCallback(()=>{A(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Ee=ur.useCallback(()=>{A(false),te("closing"),p?.(false);let B=setTimeout(()=>{O(false),te("idle");},Vo);return ()=>clearTimeout(B)},[p]),$e=ur.useCallback(()=>{if(!T.current)return;let B=T.current.getBoundingClientRect(),V=N.current?.offsetHeight??240,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;J({top:se?B.top-6:B.bottom+6,left:B.left,width:B.width,openAbove:se});},[]);ur.useEffect(()=>{if(Z)return $e(),window.addEventListener("scroll",$e,true),window.addEventListener("resize",$e),()=>{window.removeEventListener("scroll",$e,true),window.removeEventListener("resize",$e);}},[Z,$e]),ur.useEffect(()=>{if(!z)return;let B=V=>{let G=V.target;if(!T.current?.contains(G)&&!N.current?.contains(G))if(Ee(),c)$("");else {let _=e.find(se=>se.value===t);C||$(_?_.label??_.value:"");}};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[z,Ee,t,e,C,c]),ur.useEffect(()=>{j>=0&&W.current&&W.current.children[j]?.scrollIntoView({block:"nearest"});},[j]);let Do=B=>{let V=B.target.value;$(V),r?.(V),U(0),z||Qe();},Qt=ur.useCallback(B=>{let V=e.find(G=>G.value===B)||{value:B};if(c){if(ne(B)){let G=ee.filter(_=>_!==B);o(G),x?.(B,V);}else {let G=[...ee,B];o(G),l?.(B,V);}$("");}else o(B),l?.(B,V),$(V.label??V.value),Ee();},[o,e,Ee,c,ee,l,x]),zo=ur.useCallback(B=>{if(!c)return;let V=e.find(_=>_.value===B)||{value:B},G=ee.filter(_=>_!==B);o(G),x?.(B,V);},[c,ee,o,e,x]),Io=ur.useCallback(B=>{B.stopPropagation(),o(c?[]:""),$(""),b?.();},[c,o,b]),Po=B=>{if(!pe)switch(B.key){case "ArrowDown":B.preventDefault(),z?U(V=>Math.min(V+1,Ye.length-1)):(Qe(),U(0));break;case "ArrowUp":B.preventDefault(),U(V=>Math.max(V-1,0));break;case "Enter":B.preventDefault(),z&&j>=0&&Ye[j]?Qt(Ye[j].value):C&&Y&&(c?(o([...ee,Y]),w?.(Y),$("")):(o(Y),w?.(Y),Ee()));break;case "Backspace":if(c&&Y===""&&ee.length>0){let V=ee.slice(0,-1);o(V);}break;case "Escape":Ee();break;case "Tab":z&&Ee();break}},zt=B=>{K(true),m?.(B),!z&&!pe&&Qe();},Mo=B=>{let V=B.relatedTarget;V&&(N.current?.contains(V)||T.current?.contains(V))||(K(false),f?.(B),!c&&C&&Y&&o(Y),c&&$(""));},Ao=()=>{let B=q.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return X==="opening"||X==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:X==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Ho={display:"flex",alignItems:"center",gap:R.gap,backgroundColor:pe?S.backgroundDisabled:S.background,border:`1px solid ${we?S.borderError:re?S.borderFocus:S.border}`,borderRadius:"8px",padding:R.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:pe?.6:1,cursor:pe?"not-allowed":"text",flexWrap:"nowrap"},Lo={flex:1,minWidth:c?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:R.fontSize,lineHeight:"normal",color:S.text,cursor:pe?"not-allowed":"text"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:S.label,userSelect:"none"},eo=Z?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:N,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:S.dropdownBg,border:`1px solid ${S.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...Ao()},onMouseDown:B=>{B.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:W,role:"listbox","aria-multiselectable":c,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[Ye.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:S.placeholder,textAlign:"center"},children:C&&Y?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof g=="function"?g(Ee):g??"\u017D\xE1dn\xE9 v\xFDsledky"}),Ye.map((B,V)=>{let G=ne(B.value),_=V===j;return jsxRuntime.jsx("div",{role:"option","aria-selected":G,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:G?500:400,lineHeight:"normal",color:G?S.optionSelectedText:S.text,backgroundColor:_?S.optionHover:G?S.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:V<Ye.length-1?"2px":0},onClick:()=>Qt(B.value),onMouseEnter:()=>U(V),onMouseLeave:()=>U(-1),children:y?y(B,_):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.label??B.value}),G&&jsxRuntime.jsx(react.Check,{size:16,color:S.optionSelectedText})]})},B.value)})]}),v&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${S.divider}`,padding:"8px 6px"},children:typeof v=="function"?v(Ee):v})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...D},className:k,children:[a&&jsxRuntime.jsx("label",{htmlFor:L,style:No,children:a}),jsxRuntime.jsxs("div",{ref:T,style:Ho,onClick:()=>E.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S.placeholder},children:u?jsxRuntime.jsx(As,{size:R.iconSize,color:S.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:R.iconSize,color:S.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[c&&ee.map(B=>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:he(B)}),!pe&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:V=>{V.stopPropagation(),zo(B);},children:jsxRuntime.jsx(react.X,{size:14,color:S.tagText})})]},B)),jsxRuntime.jsx("input",{ref:B=>{E.current=B,typeof h=="function"?h(B):h&&(h.current=B);},id:L,type:"text",value:Y,onChange:Do,onFocus:zt,onBlur:Mo,onKeyDown:Po,placeholder:c&&ee.length>0?"":n,disabled:i,readOnly:u,style:Lo})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Q&&ee.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Io,children:jsxRuntime.jsx(react.X,{size:14,color:S.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:R.iconSize,color:S.placeholder,style:{transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]})]}),H&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:S.borderError,lineHeight:"normal"},children:H}),eo]})});Ns.displayName="Combobox";var Ys=({size:e=16,color:t})=>{let[o,r]=ur.useState(0),n=ur.useRef(void 0),a=ur.useRef(void 0);return ur.useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},kn={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Uo=180,Vs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Us=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],hn=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function _s(e,t,o){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-o,n<0&&(n+=7);let a=new Date(e,t,1-n),s=[];for(let i=0;i<42;i++){let u=new Date(a);u.setDate(a.getDate()+i),s.push(u);}return s}function Xo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function yn(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Xo(e)} ${t}:${o}`}function Xe(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function vn(e,t,o){let r=e.getTime(),n=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return r>=n&&r<=a}function Xs(e){return Xe(e,new Date)}var Cn=({mode:e="single",showTime:t=false,value:o,onChange:r,label:n,placeholder:a,error:s,helperText:i,disabled:u=false,loading:c=false,clearable:d=false,size:p="md",fullWidth:l=false,required:x,minDate:b,maxDate:m,firstDayOfWeek:f=1,style:C,className:w})=>{let y=P(),g=kn[y],v=ur.useId(),M=Vs[p],D=ur.useRef(null),k=ur.useRef(null),[h,F]=ur.useState(false),[S,I]=ur.useState(false),[L,R]=ur.useState("idle"),[T,E]=ur.useState({top:0,left:0,width:0,openAbove:false}),[N,W]=ur.useState(null),z=new Date,[A,Z]=ur.useState(z.getFullYear()),[O,X]=ur.useState(z.getMonth()),[te,Y]=ur.useState("days"),[$,j]=ur.useState(0),U=u||c,re=!!s,K=typeof s=="string"?s:void 0,q=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],pe=e==="single"?q!==null:J[0]!==null||J[1]!==null,we=d&&pe&&!U,H=(()=>{if(e==="single")return q?t?yn(q):Xo(q):"";let[B,V]=J;if(!B&&!V)return "";let G=t?yn:Xo;return `${B?G(B):"\u2026"} \u2013 ${V?G(V):"\u2026"}`})(),Q=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),ee=ur.useCallback(()=>{let B=e==="single"?q:J[0];B&&(Z(B.getFullYear()),X(B.getMonth())),Y("days"),F(true),I(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));});},[e,q,J]),ne=ur.useCallback(()=>{F(false),R("closing");let B=setTimeout(()=>{I(false),R("idle");},Uo);return ()=>clearTimeout(B)},[]),he=ur.useCallback(()=>{if(!D.current)return;let B=D.current.getBoundingClientRect(),V=k.current?.offsetHeight??380,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;E({top:se?B.top-6:B.bottom+6,left:B.left,width:Math.max(B.width,300),openAbove:se});},[]);ur.useEffect(()=>{if(S)return he(),window.addEventListener("scroll",he,true),window.addEventListener("resize",he),()=>{window.removeEventListener("scroll",he,true),window.removeEventListener("resize",he);}},[S,he]),ur.useEffect(()=>{if(!h)return;let B=V=>{let G=V.target,_=D.current?.contains(G),se=k.current?.contains(G);!_&&!se&&ne();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[h,ne]);let Ye=B=>{U||(B.key==="Escape"&&h&&(B.preventDefault(),ne()),(B.key==="Enter"||B.key===" ")&&!h&&(B.preventDefault(),ee()));},Qe=ur.useCallback(B=>{if(b){let V=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(B<V)return true}if(m){let V=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(B>V)return true}return false},[b,m]),Ee=ur.useCallback(B=>{if(!Qe(B)&&r)if(e==="single")t&&q&&B.setHours(q.getHours(),q.getMinutes()),r(new Date(B)),t||ne();else if($===0)t&&J[0]&&B.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(B),null]),j(1);else {let V=J[0];t&&J[1]&&B.setHours(J[1].getHours(),J[1].getMinutes());let[G,_]=B>=V?[V,new Date(B)]:[new Date(B),V];r([G,_]),j(0),t||ne();}},[e,t,q,J,$,r,ne,Qe]),$e=ur.useCallback((B,V,G)=>{if(!r)return;let _=parseInt(V,10);if(isNaN(_)&&(_=0),B==="hour"&&(_=Math.max(0,Math.min(23,_))),B==="minute"&&(_=Math.max(0,Math.min(59,_))),e==="single"){let se=q?new Date(q):new Date;B==="hour"?se.setHours(_):se.setMinutes(_),r(se);}else {let se=G??0,ye=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],et=ye[se]??new Date;B==="hour"?et.setHours(_):et.setMinutes(_),ye[se]=et,r(ye);}},[e,q,J,r]),Do=()=>{O===0?(X(11),Z(B=>B-1)):X(B=>B-1);},Qt=()=>{O===11?(X(0),Z(B=>B+1)):X(B=>B+1);},zo=B=>{B.stopPropagation(),r&&(r(e==="single"?null:[null,null]),j(0));},Io=()=>{let B=T.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:L==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Po=_s(A,O,f),zt=(B,V)=>{let G=B?B.getHours():0,_=B?B.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${g.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(G).padStart(2,"0"),onChange:ye=>$e("hour",ye.target.value,V),style:se,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:g.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:ye=>$e("minute",ye.target.value,V),style:se,maxLength:2,"aria-label":"Minuty"})]})},Mo=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:hn.map((B,V)=>{let G=V===O;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{X(V),Y("days");},style:{background:G?g.daySelected:"transparent",color:G?g.daySelectedText:g.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:_=>{G||(_.target.style.backgroundColor=g.dayHover);},onMouseLeave:_=>{G||(_.target.style.backgroundColor="transparent");},children:B},V)})}),Ao=()=>{let B=Math.floor(A/12)*12,V=Array.from({length:12},(G,_)=>B+_);return 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:()=>Z(G=>G-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:g.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text},children:[B," \u2013 ",B+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Z(G=>G+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:g.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:V.map(G=>{let _=G===A;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{Z(G),Y("months");},style:{background:_?g.daySelected:"transparent",color:_?g.daySelectedText:g.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:se=>{_||(se.target.style.backgroundColor=g.dayHover);},onMouseLeave:se=>{_||(se.target.style.backgroundColor="transparent");},children:G},G)})})]})},Ho=S?reactDom.createPortal(jsxRuntime.jsx("div",{ref:k,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:g.dropdownBg,border:`1px solid ${g.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom center":"top center",...Io()},children:te==="years"?Ao():te==="months"?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:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})}),Mo()]}):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:Do,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:g.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>Y("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:hn[O]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})]}),jsxRuntime.jsx("button",{type:"button",onClick:Qt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:g.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Us.map(B=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:g.placeholder,padding:"4px 0",userSelect:"none"},children:B},B))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Po.map((B,V)=>{let G=B.getMonth()!==O,_=Qe(B),se=Xs(B),ye=false,et=false,$o=false,to=false;if(e==="single"&&q)ye=Xe(B,q);else if(e==="range"){let[Ve,ro]=J;Ve&&Xe(B,Ve)&&(et=true,ye=true),ro&&Xe(B,ro)&&($o=true,ye=true),Ve&&ro&&vn(B,Ve,ro)&&!et&&!$o&&(to=true),$===1&&Ve&&N&&!_&&(Xe(B,N)&&!Xe(B,Ve)&&(ye=true),vn(B,Ve,N)&&!Xe(B,Ve)&&!Xe(B,N)&&(to=true));}let Wo="transparent",oo=g.text;return ye?(Wo=g.daySelected,oo=g.daySelectedText):to&&(Wo=g.dayRangeMiddle),G&&(oo=ye?g.daySelectedText:g.dayOutside),_&&(oo=g.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:_,onClick:()=>Ee(B),onMouseEnter:()=>{_||W(B);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Wo,color:oo,border:"none",borderRadius:et?"6px 0 0 6px":$o?"0 6px 6px 0":to?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ye?600:400,cursor:_?"not-allowed":"pointer",opacity:_?.4:1,transition:"background-color 0.1s ease",outline:se&&!ye?`1.5px solid ${g.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:B.getDate()},V)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${g.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"\u010Cas:"}),zt(q)]}):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:g.placeholder},children:"Od:"}),zt(J[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Do:"}),zt(J[1],1)]})]})})]})}),document.body):null,Lo={display:"flex",alignItems:"center",gap:M.gap,backgroundColor:U?g.backgroundDisabled:g.background,border:`1px solid ${re?g.borderError:h?g.borderFocus:g.border}`,borderRadius:"8px",padding:M.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},eo={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...C},className:w,children:[n&&jsxRuntime.jsxs("label",{htmlFor:v,style:No,children:[n,x&&jsxRuntime.jsx("span",{style:{color:g.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:D,role:"button",tabIndex:U?-1:0,style:Lo,onClick:()=>{U||(h?ne():ee());},onKeyDown:Ye,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.text,lineHeight:"normal"},children:H}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.placeholder,lineHeight:"normal"},children:Q})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[we&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:zo,children:jsxRuntime.jsx(react.X,{size:M.iconSize-2,color:g.placeholder})}),c?jsxRuntime.jsx(Ys,{size:M.iconSize,color:g.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:M.iconSize,color:g.placeholder})]})]}),K&&jsxRuntime.jsx("span",{style:{...eo,color:g.borderError},children:K}),!K&&i&&jsxRuntime.jsx("span",{style:{...eo,color:g.helperText},children:i}),Ho]})};Cn.displayName="DatePicker";var Gs=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=ur.useId(),i=t??s;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:kn[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Cn,{})]})};Gs.displayName="DatePickerGroup";var wn={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Js={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Rn=({checked:e=false,onChange:t,label:o,disabled:r=false,error:n,size:a="md",indeterminate:s=false,className:i,style:u})=>{let c=P(),d=wn[c],p=Js[a],l=ur.useId(),x=ur.useRef(null),b=!!n,m=typeof n=="string"?n:void 0;ur.useEffect(()=>{x.current&&(x.current.indeterminate=s);},[s]);let f=()=>{r||t?.(!e);},C=b?d.borderError:e||s?d.checkBg:d.border,w=e||s?d.checkBg:r?d.backgroundDisabled:d.background,y={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${C}`,backgroundColor:w,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:r?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...u},className:i,children:[jsxRuntime.jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:M=>{M.preventDefault(),f();},children:[jsxRuntime.jsx("input",{ref:x,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":b||void 0}),jsxRuntime.jsxs("span",{style:y,children:[e&&!s&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),s&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:g,children:o})]}),m&&jsxRuntime.jsx("span",{style:{...v,color:d.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:m})]})};Rn.displayName="Checkbox";var Tn=({label:e,children:t,error:o,className:r,style:n})=>{let a=P(),s=wn[a],i=typeof o=="string"?o:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[e&&jsxRuntime.jsx("span",{style:u,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsxRuntime.jsx("span",{style:{...c,color:s.borderError},children:i})]})};Tn.displayName="CheckboxGroup";var Fn={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},ei={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},Go=({value:e,checked:t=false,onChange:o,label:r,disabled:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Fn[u],d=ei[a],p=ur.useId(),l=()=>{n||o?.(e);},x=t?c.dotRing:c.border,b=n?c.backgroundDisabled:c.background,m={width:d.box,height:d.box,borderRadius:"50%",border:`1.5px solid ${x}`,backgroundColor:b,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...i},className:s,children:jsxRuntime.jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:C=>{C.preventDefault(),l();},children:[jsxRuntime.jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:n,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:m,children:t&&jsxRuntime.jsx("span",{style:{width:d.dot,height:d.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),r&&jsxRuntime.jsx("span",{style:f,children:r})]})})};Go.displayName="Radio";var En=({value:e,onChange:t,label:o,options:r,direction:n="vertical",error:a,helperText:s,size:i="md",className:u,style:c})=>{let d=P(),p=Fn[d],l=!!a,x=typeof a=="string"?a:void 0,b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:u,children:[o&&jsxRuntime.jsx("span",{style:b,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:r.map(f=>jsxRuntime.jsx(Go,{value:f.value,label:f.label,checked:e===f.value,onChange:t,disabled:f.disabled,size:i},f.value))}),x&&jsxRuntime.jsx("span",{style:{...m,color:p.borderError},children:x}),!x&&s&&jsxRuntime.jsx("span",{style:{...m,color:p.helperText},children:s})]})};En.displayName="RadioGroup";var oi={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},ri={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Dn=({checked:e=false,onChange:t,label:o,disabled:r=false,size:n="md",className:a,style:s})=>{let i=P(),u=oi[i],c=ri[n],d=ur.useId(),p=()=>{r||t?.(!e);},l=1.5,x=2,m=c.trackW-l*2-c.thumb-x,f=e?m:0,C={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?u.trackOn:u.trackOff,border:`${l}px solid ${e?u.trackOnBorder:u.trackOffBorder}`,position:"relative",cursor:r?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:r?.5:1,boxSizing:"border-box"},w={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:u.thumb,position:"absolute",top:"50%",left:x,transform:`translateY(-50%) translateX(${f}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:u.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:a,children:jsxRuntime.jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:g=>{g.preventDefault(),p();},children:[jsxRuntime.jsx("input",{id:d,type:"checkbox",role:"switch",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:C,children:jsxRuntime.jsx("span",{style:w})}),o&&jsxRuntime.jsx("span",{style:y,children:o})]})})};Dn.displayName="Switch";var ci={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},pi={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},In=ur__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:n=false,size:a="md",fullWidth:s=false,required:i,rows:u=4,maxLength:c,resize:d="vertical",autoHeight:p=false,minRows:l,maxRows:x,className:b,style:m,value:f,onChange:C,onFocus:w,onBlur:y,...g},v)=>{let M=P(),D=ci[M],k=pi[a],h=ur.useId(),F=g.id??h,[S,I]=ur.useState(false),L=ur.useRef(null),R=ur.useCallback(()=>{let $=L.current;if(!$||!p)return;$.style.height="auto";let j=getComputedStyle($),U=parseFloat(j.lineHeight)||parseFloat(j.fontSize)*1.5,re=parseFloat(j.paddingTop)||0,K=parseFloat(j.paddingBottom)||0,q=re+K,pe=U*(l??1)+q,we=x?U*x+q:1/0,H=Math.min(Math.max($.scrollHeight,pe),we);$.style.height=`${H}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[p,l,x]);ur.useEffect(()=>{R();},[f,R]);let T=ur.useCallback($=>{L.current=$,typeof v=="function"?v($):v&&(v.current=$);},[v]),E=p?"none":d,N=p?l??1:u,W=r||n,z=!!t,A=typeof t=="string"?t:void 0,Z=typeof f=="string"?f.length:0,O={backgroundColor:W?D.backgroundDisabled:D.background,border:`1px solid ${z?D.borderError:S?D.borderFocus:D.border}`,borderRadius:"8px",padding:k.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},X={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:k.fontSize,lineHeight:"1.5",color:D.text,cursor:W?"not-allowed":"text",resize:E,boxSizing:"border-box",overflow:p?"hidden":void 0},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},Y={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...m},className:b,children:[e&&jsxRuntime.jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsxRuntime.jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:O,children:jsxRuntime.jsx("textarea",{ref:T,id:F,rows:N,maxLength:c,disabled:r,required:i,readOnly:n||g.readOnly,value:f,onChange:C,style:X,onFocus:$=>{I(true),w?.($);},onBlur:$=>{I(false),y?.($);},...g})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[A&&jsxRuntime.jsx("span",{style:{...Y,color:D.borderError},children:A}),!A&&o&&jsxRuntime.jsx("span",{style:{...Y,color:D.helperText},children:o})]}),c!==void 0&&jsxRuntime.jsxs("span",{style:{...Y,color:Z>c?D.borderError:D.counter,flexShrink:0},children:[Z,"/",c]})]})]})});In.displayName="Textarea";var ui={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},gi={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function An(e,t,o){return Math.min(Math.max(e,t),o)}function bi(e,t,o){return Math.round((e-t)/o)*o+t}var Hn=({value:e,onChange:t,min:o=0,max:r=100,step:n=1,label:a,disabled:s=false,showValue:i=false,range:u=false,size:c="md",className:d,style:p})=>{let l=P(),x=ui[l],b=gi[c],m=ur.useId(),f=ur.useRef(null),C=ur.useRef(null),w=u?e:[o,e],y=S=>(S-o)/(r-o)*100,g=y(w[0]),v=y(w[1]),M=ur.useCallback(S=>{let I=f.current;if(!I)return o;let L=I.getBoundingClientRect(),R=An((S-L.left)/L.width,0,1),T=o+R*(r-o);return An(bi(T,o,n),o,r)},[o,r,n]),D=ur.useCallback(S=>{if(s)return;S.preventDefault();let I=M(S.clientX);if(u){let T=e,E=Math.abs(I-T[0]),N=Math.abs(I-T[1]),W=E<=N?"start":"end";C.current=W;let z=W==="start"?[Math.min(I,T[1]),T[1]]:[T[0],Math.max(I,T[0])];t?.(z);}else C.current="end",t?.(I);let L=T=>{let E=M(T.clientX);if(u){let N=e;C.current==="start"?t?.([Math.min(E,N[1]),N[1]]):t?.([N[0],Math.max(E,N[0])]);}else t?.(E);},R=()=>{C.current=null,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",R);};document.addEventListener("mousemove",L),document.addEventListener("mouseup",R);},[s,M,t,u,e]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},h=u?`${w[0]} \u2013 ${w[1]}`:`${e}`,F={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:x.thumb,border:`2px solid ${x.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:s?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:s?.5:1,...p},className:d,children:[(a||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("label",{htmlFor:m,style:k,children:a}),i&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,userSelect:"none"},children:h})]}),jsxRuntime.jsxs("div",{ref:f,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":u?void 0:e,"aria-disabled":s||void 0,onMouseDown:D,style:{position:"relative",width:"100%",height:b.thumb,cursor:s?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${u?g:0}%`,width:`${v-(u?g:0)}%`,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackFill}}),u&&jsxRuntime.jsx("span",{style:{...F,left:`${g}%`}}),jsxRuntime.jsx("span",{style:{...F,left:`${v}%`}})]})]})};Hn.displayName="Slider";var vi={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Qo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Si=0,Nn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:n,disabled:a=false,label:s,helperText:i,error:u,value:c,buttonStyle:d="default",showFileList:p=true,buttonLabel:l,className:x,style:b})=>{let m=P(),f=vi[m],C=ur.useId(),w=ur.useRef(null),[y,g]=ur.useState(false),[v,M]=ur.useState([]),[D,k]=ur.useState(null),h=c!==void 0,F=h?c.map((z,A)=>({file:z,id:`controlled-${A}`})):v,S=!!u||!!D,I=typeof u=="string"?u:D??void 0,L=ur.useCallback(z=>{let A=Array.from(z);if(k(null),n){let Z=A.find(O=>O.size>n);if(Z){k(`Soubor \u201E${Z.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Qo(n)}.`);return}}if(h){let O=r?[...c||[],...A]:A;t?.(O);}else {let Z=A.map(X=>({file:X,id:`file-${++Si}`})),O=r?[...v,...Z]:Z;M(O),t?.(O.map(X=>X.file));}},[h,c,v,n,r,t]),R=ur.useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&L(z.dataTransfer.files);},[a,L]),T=ur.useCallback(z=>{if(h){let A=(c||[]).filter((Z,O)=>`controlled-${O}`!==z);t?.(A);}else {let A=v.filter(Z=>Z.id!==z);M(A),t?.(A.map(Z=>Z.file));}},[h,c,v,t]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},N={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${S?f.borderError:y?f.borderDrag:f.border}`,borderRadius:"8px",backgroundColor:y?f.backgroundDrag:a?f.backgroundDisabled:f.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},W={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...b},className:x,children:[s&&jsxRuntime.jsx("span",{style:E,children:s}),jsxRuntime.jsx("input",{ref:w,id:C,type:"file",accept:o,multiple:r,disabled:a,onChange:z=>{z.target.files&&z.target.files.length>0&&L(z.target.files),z.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:N,onClick:()=>!a&&w.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:R,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:f.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):d==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&w.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:z=>{a||(z.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!a&&w.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${S?f.borderError:f.border}`,backgroundColor:a?f.backgroundDisabled:f.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:z=>{a||(z.currentTarget.style.borderColor=S?f.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:z=>{z.currentTarget.style.borderColor=S?f.borderError:f.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:F.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:f.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:f.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?f.text:f.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(F[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:f.textSecondary})})]}),p&&F.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(z=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:f.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:f.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(z.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${z.file.name}`,onClick:A=>{A.stopPropagation(),T(z.id);},onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&T(z.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:f.removeColor})})]},z.id))}),I&&jsxRuntime.jsx("span",{style:{...W,color:f.borderError},children:I}),!I&&i&&jsxRuntime.jsx("span",{style:{...W,color:f.helperText},children:i})]})};Nn.displayName="FileUpload";var wi={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ri={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ti=({data:e,value:t,onChange:o,size:r="md",fullWidth:n=false,orientation:a="horizontal",disabled:s=false,className:i,style:u})=>{let c=P(),d=wi[c],p=Ri[r],l=a==="vertical",x=e.map(g=>typeof g=="string"?{value:g,label:g}:g),b=x.findIndex(g=>g.value===t),m=ur.useRef(null),f=ur.useRef([]),[C,w]=ur.useState({offset:0,size:0}),y=ur.useCallback(()=>{let g=m.current,v=f.current[b];if(!g||!v||b<0)return;let M=g.getBoundingClientRect(),D=v.getBoundingClientRect();w(l?{offset:D.top-M.top,size:D.height}:{offset:D.left-M.left,size:D.width});},[b,l]);return ur.useEffect(()=>{y();},[y,t,e,r]),ur.useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxRuntime.jsxs("div",{ref:m,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:d.bg,border:`1px solid ${d.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:s?.5:1,cursor:s?"not-allowed":void 0,...u},children:[b>=0&&C.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.itemRadius,backgroundColor:d.indicator,border:`1px solid ${d.indicatorBorder}`,boxShadow:d.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:p.padding,right:p.padding,top:C.offset,height:C.size}:{top:p.padding,bottom:p.padding,left:C.offset,width:C.size}}}),x.map((g,v)=>{let M=g.value===t,D=s||g.disabled;return jsxRuntime.jsxs("button",{ref:k=>{f.current[v]=k;},type:"button",role:"radio","aria-checked":M,disabled:D,onClick:()=>{D||o(g.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:n?1:void 0,padding:p.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:p.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:M?500:400,color:D?d.textDisabled:M?d.textActive:d.text,cursor:D?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:k=>{!D&&!M&&(k.currentTarget.style.color=d.textHover);},onMouseLeave:k=>{!D&&!M&&(k.currentTarget.style.color=d.text);},children:[g.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:g.icon}),(g.label||!g.icon&&g.value)&&jsxRuntime.jsx("span",{children:g.label??g.value})]},g.value)})]})};Ti.displayName="SegmentedControl";var Di={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},rr=180,zi=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],nr=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Ii=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},Pi=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),r=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+n*114)/1e3>150},Mi=({value:e,onChange:t,presets:o=zi,label:r,disabled:n=false,style:a,className:s})=>{let i=P(),u=Di[i],d=ur.useId(),p=ur.useRef(null),l=ur.useRef(null),[x,b]=ur.useState(false),[m,f]=ur.useState(false),[C,w]=ur.useState("idle"),[y,g]=ur.useState(e),[v,M]=ur.useState(false),[D,k]=ur.useState({top:0,left:0,openAbove:false});ur.useEffect(()=>{v||g(e);},[e,v]);let h=ur.useCallback(()=>{n||(b(true),f(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[n]),F=ur.useCallback(()=>{b(false),w("closing");let A=setTimeout(()=>{f(false),w("idle");},rr);return ()=>clearTimeout(A)},[]),S=ur.useCallback(()=>{if(!p.current)return;let A=p.current.getBoundingClientRect(),Z=220,O=window.innerHeight-A.bottom-8,X=O<Z&&A.top>O;k({top:X?A.top-8:A.bottom+8,left:A.left,openAbove:X});},[]);ur.useEffect(()=>{if(m)return S(),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[m,S]),ur.useEffect(()=>{if(!x)return;let A=Z=>{let O=Z.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,F]);let I=A=>{let Z=Ii(A.target.value);g(Z),nr(Z)&&t(Z);},L=()=>{M(false),nr(y)?t(y):g(e);},R=A=>{t(A),g(A),F();},T=()=>{let A=D.openAbove,Z=A?"translateY(8px)":"translateY(-8px)",O=A?"translateY(6px)":"translateY(-6px)",X={transition:`opacity ${rr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return C==="opening"||C==="idle"?{...X,opacity:0,transform:`${Z} scale(0.97)`}:C==="open"?{...X,opacity:1,transform:"translateY(0) scale(1)"}:{...X,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},E={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?u.backgroundDisabled:u.background,border:`1px solid ${v?u.borderFocus:u.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},N={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:nr(e)?e:"#cccccc",border:`1px solid ${u.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},W={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},z=m?reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},backgroundColor:u.popoverBg,border:`1px solid ${u.popoverBorder}`,borderRadius:"12px",boxShadow:i==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom left":"top left",...T()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((A,Z)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${A}`,onClick:()=>R(A),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:A,border:A===e?"2px solid #FC4F00":`1px solid ${u.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${A}-${Z}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:s,children:[r&&jsxRuntime.jsx("label",{htmlFor:d,style:W,children:r}),jsxRuntime.jsxs("div",{ref:p,style:E,children:[jsxRuntime.jsx("div",{style:N,onClick:()=>{n||(x?F():h());}}),jsxRuntime.jsx("input",{id:d,type:"text",value:y,onChange:I,onFocus:()=>M(true),onBlur:L,disabled:n,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:u.text,cursor:n?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(x?F():h());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(Pi(e)&&i==="light",u.placeholder)})})]}),z]})};Mi.displayName="ColorPicker";var Ni={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},$i={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Wi=({value:e,onChange:t,max:o=5,size:r="md",readOnly:n=false,label:a,style:s,className:i})=>{let u=P(),c=Ni[u],d=ur.useId(),p=$i[r],[l,x]=ur.useState(null),b=!n&&!!t,m=ur.useCallback(g=>{b&&t(g+1);},[b,t]),f=ur.useCallback(g=>{b&&x(g);},[b]),C=ur.useCallback(()=>{x(null);},[]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},y=Array.from({length:o},(g,v)=>{let M=l!==null?l+1:e,D=v<M,k=l!==null&&v<=l;return jsxRuntime.jsx("span",{role:b?"button":void 0,tabIndex:b?0:void 0,"aria-label":b?`Hodnocen\xED ${v+1} z ${o}`:void 0,onClick:()=>m(v),onMouseEnter:()=>f(v),onMouseLeave:C,onKeyDown:h=>{b&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m(v));},style:{display:"inline-flex",cursor:b?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:k?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:p.starSize,weight:D?"fill":"regular",color:D?k?c.starHover:c.starFilled:c.starEmpty})},v)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsxRuntime.jsx("label",{htmlFor:d,style:w,children:a}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:C,children:y})]})};Wi.displayName="Rating";var Xi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},Gi=({length:e=6,value:t,onChange:o,error:r,disabled:n=false,autoFocus:a=false,label:s,separatorAfter:i,separator:u="-",style:c,className:d})=>{let p=P(),l=Xi[p],x=ur.useId(),b=ur.useRef([]),[m,f]=ur.useState(null),C=!!r,w=typeof r=="string"?r:void 0,y=t.padEnd(e,"").slice(0,e).split("");ur.useEffect(()=>{a&&b.current[0]&&b.current[0].focus();},[a]);let g=ur.useCallback(R=>{R>=0&&R<e&&b.current[R]?.focus();},[e]),v=ur.useCallback(R=>{let T=R.join("").replace(/[^0-9]/g,"");o(T);},[o]),M=ur.useCallback((R,T)=>{if(!/^[0-9]$/.test(T))return;let E=[...y];E[R]=T,v(E),R<e-1&&g(R+1);},[y,e,v,g]),D=ur.useCallback((R,T)=>{switch(T.key){case "Backspace":if(T.preventDefault(),y[R]){let E=[...y];E[R]="",v(E);}else if(R>0){let E=[...y];E[R-1]="",v(E),g(R-1);}break;case "Delete":T.preventDefault();{let E=[...y];E[R]="",v(E);}break;case "ArrowLeft":T.preventDefault(),R>0&&g(R-1);break;case "ArrowRight":T.preventDefault(),R<e-1&&g(R+1);break}},[y,e,v,g]),k=ur.useCallback((R,T)=>{let N=T.target.value.slice(-1);N&&/^[0-9]$/.test(N)&&M(R,N);},[M]),h=ur.useCallback(R=>{R.preventDefault();let T=R.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!T)return;let E=[...y];for(let W=0;W<T.length;W++)E[W]=T[W];v(E);let N=Math.min(T.length,e-1);g(N);},[y,e,v,g]),F=ur.useCallback(R=>{f(R),b.current[R]?.select();},[]),S=ur.useCallback(()=>{f(null);},[]),I={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},L=R=>{let T=m===R,E=!!y[R];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:l.text,textAlign:"center",backgroundColor:n?l.backgroundDisabled:E?l.backgroundFilled:l.background,border:`1px solid ${C?l.borderError:T?l.borderFocus:E?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"text",caretColor:l.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:d,children:[s&&jsxRuntime.jsx("label",{htmlFor:`${x}-0`,style:I,children:s}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:h,children:Array.from({length:e},(R,T)=>jsxRuntime.jsxs(ur__default.default.Fragment,{children:[i&&T>0&&T%i===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:u}),jsxRuntime.jsx("input",{ref:E=>{b.current[T]=E;},id:`${x}-${T}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[T]||"",onChange:E=>k(T,E),onKeyDown:E=>D(T,E),onFocus:()=>F(T),onBlur:S,disabled:n,"aria-label":`\u010C\xEDslice ${T+1} z ${e}`,style:L(T)})]},T))}),w&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:w})]})};Gi.displayName="OTPInput";var Qi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},ir=180,el={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},tl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function ol(e,t){return [...t].sort((r,n)=>n.dialCode.length-r.dialCode.length).find(r=>e.startsWith(r.dialCode))}var rl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:r,label:n,error:a,helperText:s,disabled:i=false,size:u="md",placeholder:c="123 456 789",style:d,className:p})=>{let l=P(),x=Qi[l],b=el[u],m=ur.useId(),f=r||tl,C=ur.useRef(null),w=ur.useRef(null),y=ur.useRef(null),g=ur.useRef(null),[v,M]=ur.useState(false),[D,k]=ur.useState(false),[h,F]=ur.useState(false),[S,I]=ur.useState("idle"),[L,R]=ur.useState(""),[T,E]=ur.useState(-1),[N,W]=ur.useState({top:0,left:0,width:0,openAbove:false}),z=!!a,A=typeof a=="string"?a:void 0,Z=ur.useMemo(()=>{if(e){let H=ol(e,f);if(H)return H}return f.find(H=>H.code===o)||f[0]},[e,f,o]),O=ur.useMemo(()=>!e||!Z?"":e.startsWith(Z.dialCode)?e.slice(Z.dialCode.length):e.replace(/^\+\d+/,""),[e,Z]),X=ur.useMemo(()=>{if(!L)return f;let H=L.toLowerCase();return f.filter(Q=>Q.name.toLowerCase().includes(H)||Q.dialCode.includes(H)||Q.code.toLowerCase().includes(H))},[f,L]),te=ur.useCallback(()=>{k(true),F(true),I("opening"),R(""),E(-1);let H=setTimeout(()=>{I("open"),g.current?.focus();},10);return ()=>clearTimeout(H)},[]),Y=ur.useCallback(()=>{k(false),I("closing");let H=setTimeout(()=>{F(false),I("idle");},ir);return ()=>clearTimeout(H)},[]),$=ur.useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??300,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;W({top:he?H.top-6:H.bottom+6,left:H.left,width:Math.max(H.width,280),openAbove:he});},[]);ur.useEffect(()=>{if(h)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[h,$]),ur.useEffect(()=>{if(!D)return;let H=Q=>{let ee=Q.target;!C.current?.contains(ee)&&!w.current?.contains(ee)&&Y();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[D,Y]);let j=ur.useCallback(H=>{let Q=H.dialCode+O;t?.(Q),Y(),y.current?.focus();},[O,t,Y]),U=H=>{let Q=H.target.value.replace(/[^0-9\s]/g,"");t?.(Z.dialCode+Q);},re=H=>{let Q=H.clipboardData.getData("text").trim();Q.startsWith("+")&&(H.preventDefault(),t?.(Q.replace(/[^0-9+]/g,"")));},K=H=>{switch(H.key){case "ArrowDown":H.preventDefault(),E(Q=>Math.min(Q+1,X.length-1));break;case "ArrowUp":H.preventDefault(),E(Q=>Math.max(Q-1,0));break;case "Enter":H.preventDefault(),T>=0&&X[T]&&j(X[T]);break;case "Escape":H.preventDefault(),Y(),y.current?.focus();break}},q=()=>{let H=N.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${ir}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ir}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:S==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},pe={display:"flex",alignItems:"center",backgroundColor:i?x.backgroundDisabled:x.background,border:`1px solid ${z?x.borderError:v?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden"},we=h?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:w,style:{position:"fixed",...N.openAbove?{bottom:window.innerHeight-N.top,left:N.left}:{top:N.top,left:N.left},width:N.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:x.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:N.openAbove?"bottom center":"top center",...q()},onKeyDown:K,children:[jsxRuntime.jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${x.divider}`},children:jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:l==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:14,color:x.placeholder}),jsxRuntime.jsx("input",{ref:g,type:"text",value:L,onChange:H=>{R(H.target.value),E(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text}})]})}),jsxRuntime.jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[X.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:x.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),X.map((H,Q)=>{let ee=H.code===Z.code;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:Q===T?x.optionHover:ee?x.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>j(H),onMouseEnter:()=>E(Q),onMouseLeave:()=>E(-1),children:[jsxRuntime.jsx("span",{style:{fontSize:"18px",flexShrink:0},children:H.flag}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ee?x.optionSelectedText:x.text,fontWeight:ee?500:400},children:H.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,flexShrink:0},children:H.dialCode})]},H.code)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{className:p,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},children:[n&&jsxRuntime.jsx("label",{htmlFor:m,style:J,children:n}),jsxRuntime.jsxs("div",{ref:C,style:pe,children:[jsxRuntime.jsxs("button",{type:"button",disabled:i,onClick:()=>{i||(D?Y():te());},style:{display:"flex",alignItems:"center",gap:"4px",padding:b.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:i?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,flexShrink:0,outline:"none"},children:[jsxRuntime.jsx("span",{style:{fontSize:u==="sm"?"14px":"18px"},children:Z.flag}),jsxRuntime.jsx("span",{style:{fontSize:"13px",color:x.placeholder},children:Z.dialCode}),jsxRuntime.jsx(react.CaretDown,{size:12,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}),jsxRuntime.jsx("div",{style:{width:"1px",height:"60%",backgroundColor:x.divider,flexShrink:0}}),jsxRuntime.jsx("input",{ref:y,id:m,type:"tel",value:O,onChange:U,onPaste:re,onFocus:()=>M(true),onBlur:()=>M(false),placeholder:c,disabled:i,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,padding:b.padding,paddingLeft:"8px"}})]}),A&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:A}),!A&&s&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.helperText,lineHeight:"normal"},children:s}),we]})};rl.displayName="PhoneInput";var il={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},dr=10;function po(e,t,o){return Math.max(t,Math.min(o,e))}var ll=({src:e,onCrop:t,onCancel:o,aspectRatio:r,minWidth:n=50,minHeight:a=50,shape:s="rect",style:i,className:u})=>{let c=P(),d=il[c],p=ur.useRef(null),l=ur.useRef(null),[x,b]=ur.useState(""),[m,f]=ur.useState(false),[C,w]=ur.useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[y,g]=ur.useState({x:0,y:0,width:0,height:0}),[v,M]=ur.useState(null),D=s==="circle"?1:r;ur.useEffect(()=>{if(e instanceof File){let T=URL.createObjectURL(e);return b(T),()=>URL.revokeObjectURL(T)}else b(e);},[e]);let k=ur.useCallback(()=>{let T=p.current,E=l.current;if(!T||!E||!E.naturalWidth)return;let N=T.clientWidth,W=T.clientHeight,z=E.naturalWidth,A=E.naturalHeight,Z=Math.min(N/z,W/A),O=z*Z,X=A*Z,te=(N-O)/2,Y=(W-X)/2;w({natural:{w:z,h:A},display:{w:O,h:X},offset:{x:te,y:Y}});let $=O*.8,j=X*.8,U,re;D?$/D<=j?(U=$,re=$/D):(re=j,U=j*D):(U=$,re=j),U=Math.max(U,n),re=Math.max(re,a),g({x:te+(O-U)/2,y:Y+(X-re)/2,width:U,height:re});},[D,n,a]),h=()=>{f(true),k();};ur.useEffect(()=>(window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]);let F=T=>"touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};ur.useEffect(()=>{if(!v)return;let{display:{w:T,h:E},offset:{x:N,y:W}}=C,z=Z=>{Z.preventDefault();let O=F(Z);if(!p.current?.getBoundingClientRect())return;let te=O.x-v.startX,Y=O.y-v.startY,$=v.startCrop,j={...$};if(v.type==="move")j.x=po($.x+te,N,N+T-$.width),j.y=po($.y+Y,W,W+E-$.height);else {let U=$.x,re=$.y,K=$.width,q=$.height,J=v.type;J.includes("e")&&(K=Math.max(n,$.width+te)),J.includes("w")&&(K=Math.max(n,$.width-te),U=$.x+$.width-K),J.includes("s")&&(q=Math.max(a,$.height+Y)),J.includes("n")&&(q=Math.max(a,$.height-Y),re=$.y+$.height-q),D&&(J==="n"||J==="s"?(K=q*D,U=$.x+($.width-K)/2):J==="e"||J==="w"?(q=K/D,re=$.y+($.height-q)/2):(q=K/D,J.includes("n")&&(re=$.y+$.height-q))),U=po(U,N,N+T-K),re=po(re,W,W+E-q),K=Math.min(K,N+T-U),q=Math.min(q,W+E-re),j={x:U,y:re,width:K,height:q};}g(j);},A=()=>M(null);return document.addEventListener("mousemove",z),document.addEventListener("mouseup",A),document.addEventListener("touchmove",z,{passive:false}),document.addEventListener("touchend",A),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",A),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",A);}},[v,C,D,n,a]);let S=(T,E)=>{E.preventDefault(),E.stopPropagation();let N="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};M({type:T,startX:N.x,startY:N.y,startCrop:{...y}});},I=ur.useCallback(()=>{let T=l.current;if(!T||!C.display.w)return;let E=C.natural.w/C.display.w,N=(y.x-C.offset.x)*E,W=(y.y-C.offset.y)*E,z=y.width*E,A=y.height*E,Z=document.createElement("canvas");Z.width=z,Z.height=A;let O=Z.getContext("2d");O&&(s==="circle"&&(O.beginPath(),O.arc(z/2,A/2,z/2,0,Math.PI*2),O.clip()),O.drawImage(T,N,W,z,A,0,0,z,A),Z.toBlob(X=>{X&&t(X);},"image/png"));},[y,C,s,t]),L=ur.useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),R={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxRuntime.jsxs("div",{className:u,style:{display:"flex",flexDirection:"column",backgroundColor:d.containerBg,border:`1px solid ${d.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...i},children:[jsxRuntime.jsxs("div",{ref:p,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:v?v.type==="move"?"grabbing":`${v.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[x&&jsxRuntime.jsx("img",{ref:l,src:x,crossOrigin:"anonymous",onLoad:h,style:{position:"absolute",top:C.offset.y,left:C.offset.x,width:C.display.w||"100%",height:C.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:y.y,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:y.y+y.height,left:0,right:0,bottom:0,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:y.y,left:0,width:y.x,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:y.y,left:y.x+y.width,right:0,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsxs("div",{style:{position:"absolute",left:y.x,top:y.y,width:y.width,height:y.height,border:`2px dashed ${d.cropBorder}`,borderRadius:s==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:T=>S("move",T),onTouchStart:T=>S("move",T),children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),L.map(T=>jsxRuntime.jsx("div",{style:{position:"absolute",width:dr,height:dr,backgroundColor:d.handleBg,border:`1px solid ${d.handleBorder}`,borderRadius:"2px",cursor:T.cursor,zIndex:2,...T.style},onMouseDown:E=>S(T.type,E),onTouchStart:E=>S(T.type,E)},T.type))]})]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:d.actionBarBg,borderTop:`1px solid ${d.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxRuntime.jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`},onClick:o,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.X,{size:14}),"Zru\u0161it"]}),jsxRuntime.jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonPrimary,color:d.buttonPrimaryText,border:"1px solid transparent"},onClick:I,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimary;},children:[jsxRuntime.jsx(react.Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};ll.displayName="ImageCropper";var cl={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},jn="smSkeletonShimmer",pl=`@keyframes ${jn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,xe=({variant:e="text",width:t,height:o,lines:r=1,animate:n=true,className:a,style:s})=>{let i=P(),u=cl[i],c=t??(e==="circle"?40:"100%"),d=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:u.base,backgroundImage:n?`linear-gradient(90deg, ${u.base} 25%, ${u.shimmer} 50%, ${u.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof d=="number"?`${d}px`:d},l=n?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:pl}}):null;return e==="text"&&r>1?jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...s},children:[l,Array.from({length:r}).map((x,b)=>jsxRuntime.jsx("div",{style:{...p,width:b===r-1?"75%":p.width}},b))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx("div",{className:a,style:{...p,...s}})]})};xe.displayName="Skeleton";var gl={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},bl=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:s,striped:i=false,hoverable:u=true,className:c,style:d})=>{let p=P(),l=gl[p],x=w=>{if(!w.sortable||!n)return;let y=a===w.key&&s==="asc"?"desc":"asc";n(w.key,y);},b={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",overflow:"hidden",...d},m=w=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",cursor:w.sortable?"pointer":"default",userSelect:"none",width:w.width!=null?typeof w.width=="number"?`${w.width}px`:w.width:void 0}),f={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:c,style:b,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.map(w=>jsxRuntime.jsx("th",{style:m(w),onClick:()=>x(w),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:a===w.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((w,y)=>jsxRuntime.jsx("tr",{children:e.map(g=>jsxRuntime.jsx("td",{style:f,children:jsxRuntime.jsx(xe,{variant:"text",width:"80%"})},g.key))},`skel-${y}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...f,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((w,y)=>jsxRuntime.jsx("tr",{style:{backgroundColor:i&&y%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:g=>{u&&(g.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:g=>{u&&(g.currentTarget.style.backgroundColor=i&&y%2===1?l.stripedBg:"transparent");},children:e.map(g=>jsxRuntime.jsx("td",{style:{...f,borderBottom:y===t.length-1?"none":f.borderBottom},children:g.render?g.render(w[g.key],w,y):w[g.key]},g.key))},y))})]})};bl.displayName="Table";var ml={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},Qn=({checked:e,indeterminate:t,onChange:o,t:r})=>{let n=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:n?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},hl=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:n=false,rowKey:a="id",onRowClick:s,stickyHeader:i=false,emptyText:u="\u017D\xE1dn\xE1 data",style:c,className:d})=>{let p=P(),l=ml[p],[x,b]=ur.useState(new Set),[m,f]=ur.useState(null),C=ur.useMemo(()=>t.map(I=>String(I[a])),[t,a]),w=C.length>0&&C.every(I=>x.has(I)),y=C.some(I=>x.has(I))&&!w,g=ur.useCallback(()=>{let I=w?new Set:new Set(C);b(I),r?.(Array.from(I));},[w,C,r]),v=ur.useCallback(I=>{b(L=>{let R=new Set(L);return R.has(I)?R.delete(I):R.add(I),r?.(Array.from(R)),R});},[r]),M={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},D=I=>({padding:"12px 16px",textAlign:I.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",userSelect:"none",width:I.width!=null?typeof I.width=="number"?`${I.width}px`:I.width:void 0,minWidth:I.minWidth!=null?`${I.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),k=I=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:I.align||"left"}),h={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:d,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...c},children:jsxRuntime.jsxs("table",{style:M,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:h,children:jsxRuntime.jsx(Qn,{checked:w,indeterminate:y,onChange:g,t:l})}),e.map(I=>jsxRuntime.jsx("th",{style:D(I),children:I.header},I.key))]})}),jsxRuntime.jsx("tbody",{children:n?Array.from({length:5}).map((I,L)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:F,children:jsxRuntime.jsx(xe,{variant:"rect",width:16,height:16})}),e.map(R=>jsxRuntime.jsx("td",{style:k(R),children:jsxRuntime.jsx(xe,{variant:"text",width:"80%"})},R.key))]},`skel-${L}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:u})}):t.map((I,L)=>{let R=String(I[a]),T=x.has(R),E=m===R,N=L===t.length-1,W="transparent";return T?W=l.selectedRowBg:E&&(W=l.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:W,cursor:s?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>f(R),onMouseLeave:()=>f(null),onClick:()=>s?.(I),children:[o&&jsxRuntime.jsx("td",{style:{...F,borderBottom:N?"none":F.borderBottom},children:jsxRuntime.jsx(Qn,{checked:T,onChange:()=>v(R),t:l})}),e.map(z=>jsxRuntime.jsx("td",{style:{...k(z),borderBottom:N?"none":k(z).borderBottom},children:z.render?z.render(I[z.key],I,L):I[z.key]},z.key))]},R)})})]})})};hl.displayName="DataGrid";var kl={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ta=({checked:e,indeterminate:t,onChange:o,t:r})=>jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),o();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),n.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:e||t?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M3 6H9",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),Cl=({columns:e,data:t,primaryKey:o,rowKey:r="id",selectable:n=false,selectedIds:a,onSelectionChange:s,onCardClick:i,onSort:u,sortKey:c,sortDirection:d,loading:p=false,skeletonCount:l=3,emptyText:x="\u017D\xE1dn\xE1 data",emptyContent:b,gap:m=12,cardActions:f,style:C,className:w})=>{let y=P(),g=kl[y],[v,M]=ur.useState(new Set),[D,k]=ur.useState(null),h=a!==void 0,F=ur.useMemo(()=>h?new Set(a):v,[h,a,v]),S=ur.useMemo(()=>e.find(z=>z.primary)||(o?e.find(z=>z.key===o):void 0),[e,o]),I=ur.useMemo(()=>e.filter(z=>!z.hidden&&z!==S),[e,S]),L=ur.useMemo(()=>e.filter(z=>z.sortable),[e]),R=ur.useCallback(z=>{let A=new Set(F);A.has(z)?A.delete(z):A.add(z),h||M(A),s?.(Array.from(A));},[F,h,s]),T=ur.useCallback(()=>{let z=t.map(O=>String(O[r])),Z=z.every(O=>F.has(O))?new Set:new Set(z);h||M(Z),s?.(Array.from(Z));},[t,r,F,h,s]),E=t.length>0&&t.every(z=>F.has(String(z[r]))),N=t.some(z=>F.has(String(z[r])))&&!E,W=ur.useCallback(z=>{if(!u)return;u(z,c===z&&d==="asc"?"desc":"asc");},[u,c,d]);if(p){let z=I.length>0?I.length:3;return jsxRuntime.jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:Array.from({length:l}).map((A,Z)=>jsxRuntime.jsxs("div",{style:{backgroundColor:g.cardBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(S||n)&&jsxRuntime.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${g.divider}`,backgroundColor:g.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[n&&jsxRuntime.jsx(xe,{variant:"rect",width:18,height:18}),jsxRuntime.jsx(xe,{variant:"text",width:"45%",height:18})]}),Array.from({length:z}).map((O,X)=>jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:X<z-1?`1px solid ${g.divider}`:"none"},children:[jsxRuntime.jsx(xe,{variant:"text",width:70,height:12}),jsxRuntime.jsx(xe,{variant:"text",width:100,height:14})]},X)),f&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},children:[jsxRuntime.jsx(xe,{variant:"rect",width:64,height:30}),jsxRuntime.jsx(xe,{variant:"rect",width:64,height:30})]})]},Z))})}return t.length===0?jsxRuntime.jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:jsxRuntime.jsx("div",{style:{backgroundColor:g.emptyBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:b??x})}):jsxRuntime.jsxs("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...C},children:[(n||L.length>0)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[n&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsxRuntime.jsx(ta,{checked:E,indeterminate:N,onChange:T,t:g}),jsxRuntime.jsx("span",{style:{fontSize:"12px",color:g.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:F.size>0?`${F.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),L.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:n?"auto":0},children:L.map(z=>{let A=c===z.key;return jsxRuntime.jsxs("button",{onClick:()=>W(z.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:A?g.sortChipActiveBg:g.sortChipBg,color:A?g.sortActive:g.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:A?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[z.header,A?d==="asc"?jsxRuntime.jsx(react.CaretUp,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretDown,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretUpDown,{size:12})]},z.key)})})]}),t.map((z,A)=>{let Z=String(z[r]),O=F.has(Z),X=D===Z,te=S?S.render?S.render(z[S.key],z,A):z[S.key]:null;return jsxRuntime.jsxs("div",{style:{backgroundColor:O?g.selectedBg:X?g.hover:g.cardBg,border:`1px solid ${O?g.selectedBorder:g.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:i?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>i?.(z),onMouseEnter:()=>k(Z),onMouseLeave:()=>k(null),children:[(te!==null||n)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:g.headerBg,borderBottom:`1px solid ${g.divider}`},children:[n&&jsxRuntime.jsx(ta,{checked:O,onChange:()=>R(Z),t:g}),te!==null&&jsxRuntime.jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:g.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te})]}),jsxRuntime.jsx("div",{children:I.map((Y,$)=>{let j=Y.render?Y.render(z[Y.key],z,A):z[Y.key];return jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<I.length-1?`1px solid ${g.divider}`:"none"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:g.textSecondary,flexShrink:0,paddingTop:"2px"},children:Y.header}),jsxRuntime.jsx("span",{style:{fontSize:"14px",color:g.text,textAlign:"right",wordBreak:"break-word"},children:j??"\u2014"})]},Y.key)})}),f&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},onClick:Y=>Y.stopPropagation(),children:f(z,A)})]},Z??A)})]})};Cl.displayName="MobileDataCard";var wl={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},Rl={none:"0",sm:"12px",md:"20px",lg:"28px"},Tl=({title:e,subtitle:t,header:o,footer:r,children:n,hoverable:a=false,bordered:s=true,padding:i="md",className:u,style:c})=>{let d=P(),p=wl[d],l=Rl[i],x={backgroundColor:p.background,border:s?`1px solid ${p.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},b=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:l,paddingBottom:n||r?"0":l},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:u,style:x,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=p.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=d==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=s?p.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[b,n&&jsxRuntime.jsx("div",{style:{padding:l},children:n}),r&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsxRuntime.jsx("div",{style:{padding:l},children:r})]})]})};Tl.displayName="Card";var na={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},zl=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:n,_open:a,_onToggle:s})=>{let i=P(),u=na[i],[c,d]=ur.useState(o),p=n?!!a:c,l=ur.useRef(null),[x,b]=ur.useState(0);ur.useEffect(()=>{l.current&&b(l.current.scrollHeight);},[t,p]);let m=ur.useCallback(()=>{r||(n&&s?s():d(f=>!f));},[r,n,s]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${u.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:r,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:r?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:r?u.textDisabled:u.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:f=>{r||(f.currentTarget.style.backgroundColor=u.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:r?u.chevronDisabled:u.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${x}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:u.textSecondary},children:t})})]})};zl.displayName="AccordionItem";var Il=({children:e,multiple:t=false,className:o,style:r})=>{let n=P(),a=na[n],s=ur__default.default.Children.toArray(e).filter(d=>ur__default.default.isValidElement(d)),[i,u]=ur.useState(()=>{let d=new Set;return s.forEach((p,l)=>{p.props.defaultOpen&&d.add(l);}),d}),c=ur.useCallback(d=>{u(p=>{let l=new Set(p);return l.has(d)?l.delete(d):(t||l.clear(),l.add(d)),l});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...r},children:s.map((d,p)=>ur__default.default.cloneElement(d,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>c(p)}))})};Il.displayName="Accordion";var Pl={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Ml={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Al=()=>null;Al.displayName="Tab";var Hl=()=>null;Hl.displayName="TabPanel";var Ll=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Pl[u],d=Ml[a],p=ur__default.default.Children.toArray(o),l=p.filter(m=>ur__default.default.isValidElement(m)&&m.type?.displayName==="Tab"),b=p.filter(m=>ur__default.default.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxRuntime.jsxs("div",{className:s,style:i,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${c.border}`:"none"},children:l.map(m=>{let f=m.props.value===e,C=m.props.disabled,w=r==="underline"?{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${f?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:C?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.pillText:c.textInactive,backgroundColor:f?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:C?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:C,style:w,onClick:()=>{C||t(m.props.value);},onMouseEnter:y=>{!C&&!f&&(y.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:y=>{C||(y.currentTarget.style.backgroundColor=r==="pills"&&f?c.pillBg:"transparent");},children:[m.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),b&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:b.props.children})]})};Ll.displayName="Tabs";var Wl={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},yr=({content:e,children:t,position:o="top",delay:r=200,className:n,style:a})=>{let s=P(),i=Wl[s],[u,c]=ur.useState(false),[d,p]=ur.useState({top:0,left:0}),l=ur.useRef(null),x=ur.useRef(null),b=ur.useRef(void 0),m=6,f=8,C=ur.useCallback(()=>{let M=l.current,D=x.current;if(!M||!D)return;let k=M.getBoundingClientRect(),h=D.getBoundingClientRect(),F=0,S=0;switch(o){case "top":F=k.top-h.height-f,S=k.left+k.width/2-h.width/2;break;case "bottom":F=k.bottom+f,S=k.left+k.width/2-h.width/2;break;case "left":F=k.top+k.height/2-h.height/2,S=k.left-h.width-f;break;case "right":F=k.top+k.height/2-h.height/2,S=k.right+f;break}p({top:F,left:S});},[o]);ur.useEffect(()=>{u&&requestAnimationFrame(C);},[u,C]);let w=ur.useCallback(()=>{b.current=setTimeout(()=>c(true),r);},[r]),y=ur.useCallback(()=>{b.current&&clearTimeout(b.current),c(false);},[]);ur.useEffect(()=>()=>{b.current&&clearTimeout(b.current);},[]);let g=(()=>{let M={position:"absolute",width:0,height:0,border:`${m}px solid transparent`};switch(o){case "top":return {...M,bottom:-m,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...M,top:-m,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...M,right:-m,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...M,left:-m,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),v=u?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:x,className:n,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsxRuntime.jsx("div",{style:g})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ur__default.default.cloneElement(t,{ref:l,onMouseEnter:M=>{w(),t.props.onMouseEnter?.(M);},onMouseLeave:M=>{y(),t.props.onMouseLeave?.(M);}}),v]})};yr.displayName="Tooltip";var Ul={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Sr=180,bo=8,_l=({content:e,children:t,position:o="bottom",trigger:r="click",className:n,style:a})=>{let s=P(),i=Ul[s],[u,c]=ur.useState(false),[d,p]=ur.useState(false),[l,x]=ur.useState("idle"),[b,m]=ur.useState({top:0,left:0}),f=ur.useRef(null),C=ur.useRef(null),w=ur.useRef(void 0),y=ur.useCallback(()=>{c(true),p(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));});},[]),g=ur.useCallback(()=>{c(false),x("closing");let S=setTimeout(()=>{p(false),x("idle");},Sr);return ()=>clearTimeout(S)},[]),v=ur.useCallback(()=>{let S=f.current,I=C.current;if(!S||!I)return;let L=S.getBoundingClientRect(),R=I.getBoundingClientRect(),T=0,E=0;switch(o){case "top":T=L.top-R.height-bo,E=L.left+L.width/2-R.width/2;break;case "bottom":T=L.bottom+bo,E=L.left+L.width/2-R.width/2;break;case "left":T=L.top+L.height/2-R.height/2,E=L.left-R.width-bo;break;case "right":T=L.top+L.height/2-R.height/2,E=L.right+bo;break}m({top:T,left:E});},[o]);ur.useEffect(()=>{if(d)return requestAnimationFrame(v),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[d,v]),ur.useEffect(()=>{if(!u)return;let S=I=>{let L=I.target;!f.current?.contains(L)&&!C.current?.contains(L)&&g();};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[u,g]),ur.useEffect(()=>{if(!u)return;let S=I=>{I.key==="Escape"&&g();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[u,g]);let M=()=>{let S={transition:`opacity ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1)`},I={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},L=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.97)`}:l==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.98)`,pointerEvents:"none"}},D=ur.useCallback(()=>{r==="click"&&(u?g():y());},[r,u,g,y]),k=ur.useCallback(()=>{r==="hover"&&(w.current&&clearTimeout(w.current),u||y());},[r,u,y]),h=ur.useCallback(()=>{r==="hover"&&(w.current=setTimeout(()=>{g();},150));},[r,g]);ur.useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let F=d?reactDom.createPortal(jsxRuntime.jsx("div",{ref:C,className:n,onMouseEnter:()=>{r==="hover"&&w.current&&clearTimeout(w.current);},onMouseLeave:h,style:{position:"fixed",top:b.top,left:b.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...M(),...a},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[ur__default.default.cloneElement(t,{ref:f,onClick:S=>{D(),t.props.onClick?.(S);},onMouseEnter:S=>{k(),t.props.onMouseEnter?.(S);},onMouseLeave:S=>{h(),t.props.onMouseLeave?.(S);}}),F]})};_l.displayName="Popover";var ql={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Kl=({icon:e,title:t,description:o,action:r,className:n,style:a})=>{let s=P(),i=ql[s];return 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:i.iconColor,marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&jsxRuntime.jsx("div",{style:{marginTop:"8px"},children:r})]})};Kl.displayName="EmptyState";var td={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},od=({label:e,value:t,change:o,changeLabel:r,icon:n,trend:a="neutral",className:s,style:i})=>{let u=P(),c=td[u],d=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxRuntime.jsxs("div",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[n&&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}),o!==void 0&&jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d},children:[a==="up"&&jsxRuntime.jsx(react.TrendUpIcon,{size:14,color:d}),a==="down"&&jsxRuntime.jsx(react.TrendDownIcon,{size:14,color:d}),jsxRuntime.jsx("span",{children:p(o)}),r&&jsxRuntime.jsx("span",{style:{color:c.label,marginLeft:"2px"},children:r})]})]})]})};od.displayName="Stat";var rd=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],l0=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:n,"aria-label":a})=>{let s=rd(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(s*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:i,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:u,children:e.toUpperCase()})})};var ca={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Cr=({onClick:e,title:t,color:o,children:r})=>jsxRuntime.jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:r}),u0=({label:e,onRemove:t,style:o,className:r})=>{let n=ca[P()];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",...o},className:r,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"})]})},g0=({label:e,style:t,className:o})=>jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:o,children:e}),b0=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:n=true,style:a,className:s})=>{let i=ca[P()],u=t||o||r;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...a},className:s,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&u&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(Cr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(Cr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),r&&jsxRuntime.jsx(Cr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var id={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},ua={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},lt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ld=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,Le=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Rr=(e,t=1)=>{let o=new Date(e),r=o.getDay(),n=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+n),o.setHours(0,0,0,0),o},ga=(e,t,o=1)=>{let r=new Date(e,t,1),n=Rr(r,o),a=[],s=new Date(n);for(let i=0;i<42;i++)a.push(new Date(s)),s.setDate(s.getDate()+1);return a},dd=(e,t=1)=>{let o=Rr(e,t),r=[];for(let n=0;n<7;n++){let a=new Date(o);a.setDate(o.getDate()+n),r.push(a);}return r},ba=(e,t,o)=>{if(t){let r=new Date(t);if(r.setHours(0,0,0,0),e<r)return true}if(o){let r=new Date(o);if(r.setHours(23,59,59,999),e>r)return true}return false};function cd(e,t){let o=[],r=new Map,n=Le(e[0]),a=Le(e[6]),s=t.filter(i=>{let u=Le(i.date);return (i.endDate?Le(i.endDate):u)>=n&&u<=a}).sort((i,u)=>{let c=Le(i.date).getTime(),d=Le(u.date).getTime();if(c!==d)return c-d;let p=i.endDate?Le(i.endDate).getTime():c;return (u.endDate?Le(u.endDate).getTime():d)-d-(p-c)});for(let i of s){let u=Le(i.date),c=i.endDate?Le(i.endDate):u,d=u<n?n:u,p=c>a?a:c,l=e.findIndex(w=>lt(w,d)),x=e.findIndex(w=>lt(w,p));if(l===-1||x===-1)continue;let b=x-l+1,m=u>=n,f=0;for(;;){r.has(f)||r.set(f,new Set);let w=r.get(f),y=true;for(let g=l;g<=x;g++)if(w.has(g)){y=false;break}if(y)break;f++;}let C=r.get(f);for(let w=l;w<=x;w++)C.add(w);o.push({event:i,row:f,startCol:l,span:b,isStart:m});}return o}var pd=({value:e,onChange:t,view:o="month",events:r=[],minDate:n,maxDate:a,style:s,className:i,firstDay:u=1,locale:c="cs",initialDate:d,t:p,today:l})=>{let x=ua[c],b=d||e||l,[m,f]=ur.useState(()=>b.getMonth()),[C,w]=ur.useState(()=>b.getFullYear()),[y,g]=ur.useState(()=>Rr(b,u)),[v,M]=ur.useState(null),D=ur.useMemo(()=>o==="week"?dd(y,u):ga(C,m,u),[o,C,m,y,u]),k=ur.useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()-7),T}):f(R=>R===0?(w(T=>T-1),11):R-1);},[o]),h=ur.useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()+7),T}):f(R=>R===11?(w(T=>T+1),0):R+1);},[o]),F=R=>r.filter(T=>lt(T.date,R)),S=o==="week"?(()=>{let R=new Date(y);return R.setDate(R.getDate()+6),y.getMonth()===R.getMonth()?`${y.getDate()}. \u2013 ${R.getDate()}. ${x.months[R.getMonth()]} ${R.getFullYear()}`:`${y.getDate()}. ${x.months[y.getMonth()].slice(0,3)} \u2013 ${R.getDate()}. ${x.months[R.getMonth()].slice(0,3)} ${R.getFullYear()}`})():`${x.months[m]} ${C}`,I={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...s},L={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:p.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:i,style:I,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[jsxRuntime.jsx("button",{style:L,onClick:k,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:S}),jsxRuntime.jsx("button",{style:L,onClick:h,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:x.daysFull.map(R=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:p.textMuted,padding:"6px 0 8px"},children:R},R))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:D.map((R,T)=>{let E=lt(R,l),N=e?lt(R,e):false,W=o==="month"&&R.getMonth()!==m,z=ba(R,n,a),A=R.toISOString(),Z=v===A,O=F(R),X="transparent",te=W?p.outsideText:p.text,Y="2px solid transparent";return N?(X=p.selectedBg,te=p.selectedText):E?(X=p.todayBg,Y=`2px solid ${p.todayBorder}`):Z&&!z&&(X=p.hover),z&&(te=p.textMuted),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsxRuntime.jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Y,background:X,color:te,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:z?"default":"pointer",opacity:z?.4:1,transition:"background-color 0.12s ease"},disabled:z,onClick:()=>{!z&&t&&t(R);},onMouseEnter:()=>!z&&M(A),onMouseLeave:()=>M(null),children:R.getDate()}),O.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map(($,j)=>jsxRuntime.jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||p.eventDot}},j))})]},T)})})]})},mo=24,kt=2,fd=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:n=true,onNavigate:a,minDate:s,maxDate:i,style:u,className:c,firstDay:d=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:x,t:b,today:m})=>{let f=ua[p],C=x||e||m,[w,y]=ur.useState(()=>C.getMonth()),[g,v]=ur.useState(()=>C.getFullYear()),[M,D]=ur.useState(null),k=ur.useMemo(()=>ga(g,w,d),[g,w,d]),h=ur.useMemo(()=>{let E=[];for(let N=0;N<k.length;N+=7)E.push(k.slice(N,N+7));return E},[k]),F=ur.useMemo(()=>{let E=h[h.length-1];return E&&E.every(N=>N.getMonth()!==w)?h.slice(0,-1):h},[h,w]),S=ur.useCallback(()=>{let E=w-1,N=g;E<0&&(E=11,N--),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),I=ur.useCallback(()=>{let E=w+1,N=g;E>11&&(E=0,N++),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),L=`${f.months[w]} ${g}`,T={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:c,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,userSelect:"none",...u},children:[n&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:T,onClick:S,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16,weight:"bold"})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:L}),jsxRuntime.jsx("button",{style:T,onClick:I,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16,weight:"bold"})})]}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${b.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:b.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${b.cellBorder}`},children:f.days.map((E,N)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:b.text,padding:"10px 0",borderRight:N<6?`1px solid ${b.cellBorder}`:"none"},children:E},E))}),F.map((E,N)=>{let W=cd(E,o),z=W.length>0?Math.max(...W.map(Y=>Y.row))+1:0,A=E.map((Y,$)=>{let j=W.filter(U=>$>=U.startCol&&$<U.startCol+U.span);return Math.max(0,j.filter(U=>U.row>=l).length)}),O=Math.min(z,l)*(mo+kt)+kt,te=A.some(Y=>Y>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:N<F.length-1?`1px solid ${b.cellBorder}`:"none"},children:E.map((Y,$)=>{let j=lt(Y,m),U=Y.getMonth()!==w,re=e?lt(Y,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:$<6?`1px solid ${b.cellBorder}`:"none",backgroundColor:j?b.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!ba(Y,s,i)&&t(Y);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:j?700:400,color:U?b.outsideText:j?"#FC4F00":b.text},children:re?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Y.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Y.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${O}px`},children:W.filter(K=>K.startCol===$&&K.row<l).map((K,q)=>{let J=K.event.id||`${ld(K.event.date)}-${K.event.title}`,pe=M===J,we=K.event.color||b.eventBarDefault,H=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${kt+K.row*(mo+kt)}px`,left:"2px",width:K.span>1?`calc(${K.span*100}% - 4px)`:"calc(100% - 4px)",height:`${mo}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:pe?2:1,opacity:pe?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:K.event.tooltip?void 0:K.event.title,onClick:Q=>{Q.stopPropagation(),r&&r(K.event);},onMouseEnter:()=>D(J),onMouseLeave:()=>D(null),children:[K.isStart&&K.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:K.event.emoji}),K.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:K.event.textColor||b.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K.event.title})]},q);return K.event.tooltip?jsxRuntime.jsx(yr,{content:K.event.tooltip,children:H},q):H})}),A[$]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:b.moreText,textAlign:"center",padding:"2px 0"},children:["+",A[$]]})]},$)})},N)})]})]})},ud=e=>{let t=P(),o=id[t],r=ur.useMemo(()=>{let n=new Date;return n.setHours(0,0,0,0),n},[]);return e.fullSize?jsxRuntime.jsx(fd,{...e,t:o,today:r}):jsxRuntime.jsx(pd,{...e,t:o,today:r})};ud.displayName="Calendar";var bd={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},xd=({items:e,orientation:t="vertical",style:o,className:r})=>{let n=P(),a=bd[n];return t==="horizontal"?jsxRuntime.jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:u?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsxRuntime.jsx("div",{style:{flex:1}}),s.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!u&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),u&&jsxRuntime.jsx("div",{style:{flex:1}})]}),jsxRuntime.jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:s.title}),s.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:s.description})]})]},i)})}):jsxRuntime.jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:u?0:"4px",minHeight:s.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[s.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!u&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:s.icon?"5px":0},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:s.title}),s.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:s.date})]}),s.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:s.description})]})]},i)})})};xd.displayName="Timeline";var md={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},hd=({items:e,columns:t=1,striped:o=false,style:r,className:n})=>{let a=P(),s=md[a],i=Math.max(1,Math.round(t)),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},c=x=>i<=1?x:Math.floor(x/i),d=x=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${s.border}`,backgroundColor:o&&c(x)%2===1?s.stripedBg:s.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:s.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:n,style:u,children:e.map((x,b)=>jsxRuntime.jsxs("div",{style:d(b),children:[jsxRuntime.jsx("span",{style:p,children:x.label}),jsxRuntime.jsx("span",{style:l,children:x.value})]},b))})};hd.displayName="DataList";var kd={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},ma=({node:e,depth:t,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s})=>{let i=e.children&&e.children.length>0,u=o.has(e.id),c=r===e.id,[d,p]=ur.useState(false),l="transparent";return c?l=s.selectedBg:d&&(l=s.hover),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:c?`2px solid ${s.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>a?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:x=>{x.stopPropagation(),i&&n(e.id);},children:i&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:u?s.iconExpanded:s.iconColor,style:{transform:u?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:c?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:c?500:400,color:c?s.selectedText:s.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&u&&jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:s.line}}),e.children.map(x=>jsxRuntime.jsx(ma,{node:x,depth:t+1,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s},x.id))]})]})},Cd=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:n,className:a})=>{let s=P(),i=kd[s],[u,c]=ur.useState(()=>new Set(r)),d=ur.useCallback(l=>{c(x=>{let b=new Set(x);return b.has(l)?b.delete(l):b.add(l),b});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...n};return jsxRuntime.jsx("div",{className:a,style:p,role:"tree",children:e.map(l=>jsxRuntime.jsx(ma,{node:l,depth:0,expanded:u,selectedId:o,onToggle:d,onSelect:t,t:i},l.id))})};Cd.displayName="Tree";var Rd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Td={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Fd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Er=false,Ed=()=>{if(Er||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Er=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
12
+ `}),re&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center"},children:jsxRuntime.jsx(Pr,{size:16,color:x.placeholder})}),!re&&Y.length===0&&!c&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),!re&&Y.length===0&&c&&L&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.optionSelectedText,cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{d?.(L),n||(o?.(L),G()),N("");},onMouseEnter:_=>{_.currentTarget.style.backgroundColor=x.optionHover;},onMouseLeave:_=>{_.currentTarget.style.backgroundColor="transparent";},children:['Vytvo\u0159it "',L,'"']}),!re&&Y.map((_,se)=>{let le=ee(_.value),Ae=se===C;return jsxRuntime.jsx("div",{role:"option","aria-selected":le,"aria-disabled":_.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:le?500:400,lineHeight:"normal",color:le?x.optionSelectedText:_.disabled?x.placeholder:x.text,backgroundColor:Ae?x.optionHover:le?x.optionSelected:"transparent",cursor:_.disabled?"not-allowed":"pointer",opacity:_.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:se<Y.length-1?"2px":0},onClick:()=>{_.disabled||ie(_.value);},onMouseEnter:()=>P(se),onMouseLeave:()=>P(-1),children:u?u(_,le):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.label??_.value}),le&&jsxRuntime.jsx(react.Check,{size:16,color:x.optionSelectedText})]})},_.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...z},className:h,children:[m&&jsxRuntime.jsx("label",{htmlFor:I,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.text,userSelect:"none"},children:m}),jsxRuntime.jsxs("div",{ref:v,role:"combobox","aria-expanded":B,"aria-haspopup":"listbox",tabIndex:V?-1:0,style:Ut,onClick:Je,onKeyDown:We,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[X.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.placeholder,lineHeight:"normal"},children:p}),n?i==="count"&&X.length>0?jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,lineHeight:"normal"},children:[X.length," vybr\xE1no"]}):X.map(_=>{let se=e.find(le=>le.value===_);return jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:x.tagBg,color:x.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&se?f(se):Qe(_)}),!V&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:le=>{le.stopPropagation(),ie(_);},children:jsxRuntime.jsx(react.X,{size:14,color:x.tagText})})]},_)}):X.length>0&&(()=>{let _=e.find(se=>se.value===X[0]);return jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&_?f(_):Qe(X[0])})})()]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[he&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Me,children:jsxRuntime.jsx(react.X,{size:14,color:x.placeholder})}),s?jsxRuntime.jsx(Pr,{size:16,color:x.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:B?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),Z&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:Z}),it]})};Hr.displayName="Select";var bs=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ar[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Hr,{options:[]})]})};bs.displayName="SelectGroup";var Cs=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ws={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},an=180,Rs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ts=zn__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:n,placeholder:r="Hledat\u2026",label:a,error:l,disabled:s=false,loading:g=false,multiple:b=false,clearable:c=false,onOpenChange:d,onSelect:i,onDeselect:u,onClear:f,onFocus:m,onBlur:p,allowCustom:R=false,onCreate:z,renderOption:h,notFoundContent:S,footer:x,size:I="md",style:v,className:E},y)=>{let D=A(),B=ws[D],M=zn.useId(),F=Rs[I],w=zn.useRef(null),T=zn.useRef(null),L=zn.useRef(null),N=zn.useRef(null),[C,P]=zn.useState(false),[H,W]=zn.useState(false),[V,q]=zn.useState("idle"),[Z,$]=zn.useState(""),[G,X]=zn.useState(-1),[ee,J]=zn.useState(false),[te,re]=zn.useState({top:0,left:0,width:0,openAbove:false}),be=s||g,we=!!l,Y=typeof l=="string"?l:void 0,j=c&&!be,ie=b?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],Me=U=>ie.includes(U),Je=U=>{let oe=e.find(de=>de.value===U);return oe?oe.label??oe.value:U};zn.useEffect(()=>{if(!b&&!ee){let U=e.find(oe=>oe.value===t);$(U?U.label??U.value:(typeof t=="string"?t:"")||"");}},[t,e,ee,b]);let We=Z?e.filter(U=>(U.label??U.value).toLowerCase().includes(Z.toLowerCase())):e,Qe=zn.useCallback(()=>{P(true),W(true),q("opening"),d?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>q("open"));});},[d]),he=zn.useCallback(()=>{P(false),q("closing"),d?.(false);let U=setTimeout(()=>{W(false),q("idle");},an);return ()=>clearTimeout(U)},[d]),ze=zn.useCallback(()=>{if(!w.current)return;let U=w.current.getBoundingClientRect(),oe=L.current?.offsetHeight??240,de=window.innerHeight-U.bottom-6,me=U.top-6,O=de<oe&&me>de;re({top:O?U.top-6:U.bottom+6,left:U.left,width:U.width,openAbove:O});},[]);zn.useEffect(()=>{if(H)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[H,ze]),zn.useEffect(()=>{if(!C)return;let U=oe=>{let de=oe.target;if(!w.current?.contains(de)&&!L.current?.contains(de))if(he(),b)$("");else {let me=e.find(O=>O.value===t);R||$(me?me.label??me.value:"");}};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[C,he,t,e,R,b]),zn.useEffect(()=>{G>=0&&N.current&&N.current.children[G]?.scrollIntoView({block:"nearest"});},[G]);let Ut=U=>{let oe=U.target.value;$(oe),n?.(oe),X(0),C||Qe();},it=zn.useCallback(U=>{let oe=e.find(de=>de.value===U)||{value:U};if(b){if(Me(U)){let de=ie.filter(me=>me!==U);o(de),u?.(U,oe);}else {let de=[...ie,U];o(de),i?.(U,oe);}$("");}else o(U),i?.(U,oe),$(oe.label??oe.value),he();},[o,e,he,b,ie,i,u]),_=zn.useCallback(U=>{if(!b)return;let oe=e.find(me=>me.value===U)||{value:U},de=ie.filter(me=>me!==U);o(de),u?.(U,oe);},[b,ie,o,e,u]),se=zn.useCallback(U=>{U.stopPropagation(),o(b?[]:""),$(""),f?.();},[b,o,f]),le=U=>{if(!be)switch(U.key){case "ArrowDown":U.preventDefault(),C?X(oe=>Math.min(oe+1,We.length-1)):(Qe(),X(0));break;case "ArrowUp":U.preventDefault(),X(oe=>Math.max(oe-1,0));break;case "Enter":U.preventDefault(),C&&G>=0&&We[G]?it(We[G].value):R&&Z&&(b?(o([...ie,Z]),z?.(Z),$("")):(o(Z),z?.(Z),he()));break;case "Backspace":if(b&&Z===""&&ie.length>0){let oe=ie.slice(0,-1);o(oe);}break;case "Escape":he();break;case "Tab":C&&he();break}},Ae=U=>{J(true),m?.(U),!C&&!be&&Qe();},st=U=>{let oe=U.relatedTarget;oe&&(L.current?.contains(oe)||w.current?.contains(oe))||(J(false),p?.(U),!b&&R&&Z&&o(Z),b&&$(""));},qo=()=>{let U=te.openAbove,oe=U?"translateY(8px)":"translateY(-8px)",de=U?"translateY(6px)":"translateY(-6px)",me={transition:`opacity ${an}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${an}ms cubic-bezier(0.16, 1, 0.3, 1)`};return V==="opening"||V==="idle"?{...me,opacity:0,transform:`${oe} scale(0.97)`}:V==="open"?{...me,opacity:1,transform:"translateY(0) scale(1)"}:{...me,opacity:0,transform:`${de} scale(0.98)`,pointerEvents:"none"}},jo={display:"flex",alignItems:"center",gap:F.gap,backgroundColor:be?B.backgroundDisabled:B.background,border:`1px solid ${we?B.borderError:ee?B.borderFocus:B.border}`,borderRadius:"8px",padding:F.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:be?.6:1,cursor:be?"not-allowed":"text",flexWrap:"nowrap"},Xt={flex:1,minWidth:b?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:F.fontSize,lineHeight:"normal",color:B.text,cursor:be?"not-allowed":"text"},Ko={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:B.label,userSelect:"none"},Jo=H?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:L,style:{position:"fixed",...te.openAbove?{bottom:window.innerHeight-te.top,left:te.left}:{top:te.top,left:te.left},width:te.width,backgroundColor:B.dropdownBg,border:`1px solid ${B.dropdownBorder}`,borderRadius:"12px",boxShadow:D==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:te.openAbove?"bottom center":"top center",...qo()},onMouseDown:U=>{U.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:N,role:"listbox","aria-multiselectable":b,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[We.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:B.placeholder,textAlign:"center"},children:R&&Z?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof S=="function"?S(he):S??"\u017D\xE1dn\xE9 v\xFDsledky"}),We.map((U,oe)=>{let de=Me(U.value),me=oe===G;return jsxRuntime.jsx("div",{role:"option","aria-selected":de,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:de?500:400,lineHeight:"normal",color:de?B.optionSelectedText:B.text,backgroundColor:me?B.optionHover:de?B.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:oe<We.length-1?"2px":0},onClick:()=>it(U.value),onMouseEnter:()=>X(oe),onMouseLeave:()=>X(-1),children:h?h(U,me):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:U.label??U.value}),de&&jsxRuntime.jsx(react.Check,{size:16,color:B.optionSelectedText})]})},U.value)})]}),x&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${B.divider}`,padding:"8px 6px"},children:typeof x=="function"?x(he):x})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...v},className:E,children:[a&&jsxRuntime.jsx("label",{htmlFor:M,style:Ko,children:a}),jsxRuntime.jsxs("div",{ref:w,style:jo,onClick:()=>T.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B.placeholder},children:g?jsxRuntime.jsx(Cs,{size:F.iconSize,color:B.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:F.iconSize,color:B.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[b&&ie.map(U=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:B.tagBg,color:B.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je(U)}),!be&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:oe=>{oe.stopPropagation(),_(U);},children:jsxRuntime.jsx(react.X,{size:14,color:B.tagText})})]},U)),jsxRuntime.jsx("input",{ref:U=>{T.current=U,typeof y=="function"?y(U):y&&(y.current=U);},id:M,type:"text",value:Z,onChange:Ut,onFocus:Ae,onBlur:st,onKeyDown:le,placeholder:b&&ie.length>0?"":r,disabled:s,readOnly:g,style:Xt})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&ie.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:se,children:jsxRuntime.jsx(react.X,{size:14,color:B.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:F.iconSize,color:B.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:B.borderError,lineHeight:"normal"},children:Y}),Jo]})});Ts.displayName="Combobox";var Ds=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},sn=180,Is={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ps={sm:{width:280,headerPadding:"8px 10px",gridPadding:"0 10px 6px",monthYearGridPadding:"6px 10px",headerFontSize:"13px",weekdayFontSize:"10px",dayFontSize:"12px",timePadding:"8px 10px",timeLabelFontSize:"11px"},md:{width:320,headerPadding:"10px 12px",gridPadding:"0 12px 8px",monthYearGridPadding:"8px 12px",headerFontSize:"14px",weekdayFontSize:"11px",dayFontSize:"13px",timePadding:"10px 12px",timeLabelFontSize:"12px"},lg:{width:380,headerPadding:"12px 14px",gridPadding:"0 14px 10px",monthYearGridPadding:"10px 14px",headerFontSize:"16px",weekdayFontSize:"12px",dayFontSize:"14px",timePadding:"12px 14px",timeLabelFontSize:"13px"}},Ms=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Wr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function As(e,t,o){let r=new Date(e,t,1).getDay();r=(r===0?7:r)-o,r<0&&(r+=7);let a=new Date(e,t,1-r),l=[];for(let s=0;s<42;s++){let g=new Date(a);g.setDate(a.getDate()+s),l.push(g);}return l}function cn(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Or(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${cn(e)} ${t}:${o}`}function dt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Zr(e,t,o){let n=e.getTime(),r=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return n>=r&&n<=a}function Hs(e){return dt(e,new Date)}var Ur=({mode:e="single",showTime:t=false,value:o,onChange:n,label:r,placeholder:a,error:l,helperText:s,disabled:g=false,loading:b=false,clearable:c=false,size:d="md",fullWidth:i=false,required:u,minDate:f,maxDate:m,presets:p,presetsLabel:R="Rychl\xFD v\xFDb\u011Br",disabledDates:z,firstDayOfWeek:h=1,style:S,className:x})=>{let I=A(),v=Vr[I],E=zn.useId(),y=Is[d],D=Ps[d],B=zn.useRef(null),k=zn.useRef(null),[M,F]=zn.useState(false),[w,T]=zn.useState(false),[L,N]=zn.useState("idle"),[C,P]=zn.useState({top:0,left:0,width:0,openAbove:false}),[H,W]=zn.useState(null),V=new Date,[q,Z]=zn.useState(V.getFullYear()),[$,G]=zn.useState(V.getMonth()),[X,ee]=zn.useState("days"),[J,te]=zn.useState(0),re=g||b,be=!!l,we=typeof l=="string"?l:void 0,Y=e==="single"&&o instanceof Date?o:null,j=e==="range"&&Array.isArray(o)?o:[null,null],ie=e==="single"?Y!==null:j[0]!==null||j[1]!==null,Me=c&&ie&&!re,Je=(()=>{if(e==="single")return Y?t?Or(Y):cn(Y):"";let[O,ae]=j;if(!O&&!ae)return "";let ne=t?Or:cn;return `${O?ne(O):"\u2026"} \u2013 ${ae?ne(ae):"\u2026"}`})(),We=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),Qe=zn.useCallback(()=>{let O=e==="single"?Y:j[0];O&&(Z(O.getFullYear()),G(O.getMonth())),ee("days"),F(true),T(true),N("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>N("open"));});},[e,Y,j]),he=zn.useCallback(()=>{F(false),N("closing");let O=setTimeout(()=>{T(false),N("idle");},sn);return ()=>clearTimeout(O)},[]),ze=zn.useCallback(()=>{if(!B.current)return;let O=B.current.getBoundingClientRect(),ae=k.current?.offsetHeight??380,ne=window.innerHeight-O.bottom-6,K=O.top-6,pe=ne<ae&&K>ne,fe=D.width+(p&&p.length>0?140:0),De=Math.max(8,window.innerWidth-fe-8),Gt=Math.min(O.left,De);P({top:pe?O.top-6:O.bottom+6,left:Gt,width:fe,openAbove:pe});},[D.width,p]);zn.useEffect(()=>{if(w)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[w,ze]),zn.useEffect(()=>{if(!M)return;let O=ae=>{let ne=ae.target,K=B.current?.contains(ne),pe=k.current?.contains(ne);!K&&!pe&&he();};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[M,he]);let Ut=O=>{re||(O.key==="Escape"&&M&&(O.preventDefault(),he()),(O.key==="Enter"||O.key===" ")&&!M&&(O.preventDefault(),Qe()));},it=zn.useCallback(O=>{if(f){let ae=new Date(f.getFullYear(),f.getMonth(),f.getDate());if(O<ae)return true}if(m){let ae=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(O>ae)return true}return !!(z&&z(O))},[f,m,z]),_=zn.useCallback(O=>{if(!it(O)&&n)if(e==="single")t&&Y&&O.setHours(Y.getHours(),Y.getMinutes()),n(new Date(O)),t||he();else if(J===0)t&&j[0]&&O.setHours(j[0].getHours(),j[0].getMinutes()),n([new Date(O),null]),te(1);else {let ae=j[0];t&&j[1]&&O.setHours(j[1].getHours(),j[1].getMinutes());let[ne,K]=O>=ae?[ae,new Date(O)]:[new Date(O),ae];n([ne,K]),te(0),t||he();}},[e,t,Y,j,J,n,he,it]),se=zn.useCallback((O,ae,ne)=>{if(!n)return;let K=parseInt(ae,10);if(isNaN(K)&&(K=0),O==="hour"&&(K=Math.max(0,Math.min(23,K))),O==="minute"&&(K=Math.max(0,Math.min(59,K))),e==="single"){let pe=Y?new Date(Y):new Date;O==="hour"?pe.setHours(K):pe.setMinutes(K),n(pe);}else {let pe=ne??0,fe=[j[0]?new Date(j[0]):null,j[1]?new Date(j[1]):null],De=fe[pe]??new Date;O==="hour"?De.setHours(K):De.setMinutes(K),fe[pe]=De,n(fe);}},[e,Y,j,n]),le=()=>{$===0?(G(11),Z(O=>O-1)):G(O=>O-1);},Ae=()=>{$===11?(G(0),Z(O=>O+1)):G(O=>O+1);},st=O=>{O.stopPropagation(),n&&(n(e==="single"?null:[null,null]),te(0));},qo=()=>{let O=C.openAbove,ae=O?"translateY(8px)":"translateY(-8px)",ne=O?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${sn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${sn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{...K,opacity:0,transform:`${ae} scale(0.97)`}:L==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${ne} scale(0.98)`,pointerEvents:"none"}},jo=As(q,$,h),Xt=(O,ae)=>{let ne=O?O.getHours():0,K=O?O.getMinutes():0,pe={width:"42px",background:"transparent",border:`1px solid ${v.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:v.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(ne).padStart(2,"0"),onChange:fe=>se("hour",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:v.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(K).padStart(2,"0"),onChange:fe=>se("minute",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Minuty"})]})},Ko=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:Wr.map((O,ae)=>{let ne=ae===$;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{G(ae),ee("days");},style:{background:ne?v.daySelected:"transparent",color:ne?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:K=>{ne||(K.target.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.target.style.backgroundColor="transparent");},children:O},ae)})}),Jo=()=>{let O=Math.floor(q/12)*12,ae=Array.from({length:12},(ne,K)=>O+K);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.monthYearGridPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>Z(ne=>ne-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:v.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.headerFontSize,color:v.text},children:[O," \u2013 ",O+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>Z(ne=>ne+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:ae.map(ne=>{let K=ne===q;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{Z(ne),ee("months");},style:{background:K?v.daySelected:"transparent",color:K?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:pe=>{K||(pe.target.style.backgroundColor=v.dayHover);},onMouseLeave:pe=>{K||(pe.target.style.backgroundColor="transparent");},children:ne},ne)})})]})},U=w?reactDom.createPortal(jsxRuntime.jsx("div",{ref:k,style:{position:"fixed",...C.openAbove?{bottom:window.innerHeight-C.top,left:C.left}:{top:C.top,left:C.left},width:C.width,backgroundColor:v.dropdownBg,border:`1px solid ${v.dropdownBorder}`,borderRadius:"12px",boxShadow:I==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:C.openAbove?"bottom center":"top center",...qo()},children:jsxRuntime.jsxs("div",{style:{display:"flex"},children:[p&&p.length>0&&jsxRuntime.jsxs("div",{style:{width:"140px",flexShrink:0,borderRight:`1px solid ${v.dropdownBorder}`,padding:"8px",overflowY:"auto",maxHeight:"320px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"9px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em",color:v.dayOutside,padding:"4px 6px 8px",userSelect:"none"},children:R}),p.map((O,ae)=>{let ne=(()=>{if(e==="range"&&Array.isArray(O.value)){let[K,pe]=j,[fe,De]=O.value;return K&&pe&&fe&&De&&K.getFullYear()===fe.getFullYear()&&K.getMonth()===fe.getMonth()&&K.getDate()===fe.getDate()&&pe.getFullYear()===De.getFullYear()&&pe.getMonth()===De.getMonth()&&pe.getDate()===De.getDate()}return !Array.isArray(O.value)&&Y?Y.getFullYear()===O.value.getFullYear()&&Y.getMonth()===O.value.getMonth()&&Y.getDate()===O.value.getDate():false})();return jsxRuntime.jsx("div",{style:{padding:"7px 8px",borderRadius:"6px",fontSize:"13px",fontFamily:"'Zalando Sans', sans-serif",color:ne?v.daySelected:v.text,fontWeight:ne?600:400,backgroundColor:ne?`${v.daySelected}18`:"transparent",cursor:"pointer",userSelect:"none",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>{n?.(O.value),he();},onMouseEnter:K=>{ne||(K.currentTarget.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.currentTarget.style.backgroundColor="transparent");},children:O.label},ae)})]}),jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:X==="years"?Jo():X==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:D.headerPadding},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})}),Ko()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.headerPadding},children:[jsxRuntime.jsx("button",{type:"button",onClick:le,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:v.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:Wr[$]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})]}),jsxRuntime.jsx("button",{type:"button",onClick:Ae,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding.replace(/(\d+px)$/,"4px"),gap:"0"},children:Ms.map(O=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.weekdayFontSize,fontWeight:400,color:v.placeholder,padding:"4px 0",userSelect:"none"},children:O},O))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding,gap:"2px"},children:jo.map((O,ae)=>{let ne=O.getMonth()!==$,K=it(O),pe=Hs(O),fe=false,De=false,Gt=false,ho=false;if(e==="single"&&Y)fe=dt(O,Y);else if(e==="range"){let[lt,vo]=j;lt&&dt(O,lt)&&(De=true,fe=true),vo&&dt(O,vo)&&(Gt=true,fe=true),lt&&vo&&Zr(O,lt,vo)&&!De&&!Gt&&(ho=true),J===1&&lt&&H&&!K&&(dt(O,H)&&!dt(O,lt)&&(fe=true),Zr(O,lt,H)&&!dt(O,lt)&&!dt(O,H)&&(ho=true));}let Qo="transparent",yo=v.text;return fe?(Qo=v.daySelected,yo=v.daySelectedText):ho&&(Qo=v.dayRangeMiddle),ne&&(yo=fe?v.daySelectedText:v.dayOutside),K&&(yo=v.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:K,onClick:()=>_(O),onMouseEnter:()=>{K||W(O);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Qo,color:yo,border:"none",borderRadius:De?"6px 0 0 6px":Gt?"0 6px 6px 0":ho?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,fontWeight:fe?600:400,cursor:K?"not-allowed":"pointer",opacity:K?.4:1,transition:"background-color 0.1s ease",outline:pe&&!fe?`1.5px solid ${v.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:O.getDate()},ae)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${v.divider}`,padding:D.timePadding,display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"\u010Cas:"}),Xt(Y)]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Od:"}),Xt(j[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Do:"}),Xt(j[1],1)]})]})})]})})]})}),document.body):null,oe={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:re?v.backgroundDisabled:v.background,border:`1px solid ${be?v.borderError:M?v.borderFocus:v.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:re?.6:1,cursor:re?"not-allowed":"pointer",userSelect:"none",outline:"none"},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},me={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...S},className:x,children:[r&&jsxRuntime.jsxs("label",{htmlFor:E,style:de,children:[r,u&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:B,role:"button",tabIndex:re?-1:0,style:oe,onClick:()=>{re||(M?he():Qe());},onKeyDown:Ut,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.text,lineHeight:"normal"},children:Je}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.placeholder,lineHeight:"normal"},children:We})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Me&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:st,children:jsxRuntime.jsx(react.X,{size:y.iconSize-2,color:v.placeholder})}),b?jsxRuntime.jsx(Ds,{size:y.iconSize,color:v.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:y.iconSize,color:v.placeholder})]})]}),we&&jsxRuntime.jsx("span",{style:{...me,color:v.borderError},children:we}),!we&&s&&jsxRuntime.jsx("span",{style:{...me,color:v.helperText},children:s}),U]})};Ur.displayName="DatePicker";var Ls=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=zn.useId(),s=t??l;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsxRuntime.jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[a].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Ur,{})]})};Ls.displayName="DatePickerGroup";var Xr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Os={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Gr=({checked:e=false,onChange:t,label:o,disabled:n=false,error:r,size:a="md",indeterminate:l=false,className:s,style:g})=>{let b=A(),c=Xr[b],d=Os[a],i=zn.useId(),u=zn.useRef(null),f=!!r,m=typeof r=="string"?r:void 0;zn.useEffect(()=>{u.current&&(u.current.indeterminate=l);},[l]);let p=()=>{n||t?.(!e);},R=f?c.borderError:e||l?c.checkBg:c.border,z=e||l?c.checkBg:n?c.backgroundDisabled:c.background,h={width:d.box,height:d.box,borderRadius:d.radius,border:`1.5px solid ${R}`,backgroundColor:z,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:n?.5:1},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...g},className:s,children:[jsxRuntime.jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:I=>{I.preventDefault(),p();},children:[jsxRuntime.jsx("input",{ref:u,id:i,type:"checkbox",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":f||void 0}),jsxRuntime.jsxs("span",{style:h,children:[e&&!l&&jsxRuntime.jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsxRuntime.jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:S,children:o})]}),m&&jsxRuntime.jsx("span",{style:{...x,color:c.borderError,marginLeft:`${d.box+parseInt(d.gap)}px`},children:m})]})};Gr.displayName="Checkbox";var _r=({label:e,children:t,error:o,className:n,style:r})=>{let a=A(),l=Xr[a],s=typeof o=="string"?o:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[e&&jsxRuntime.jsx("span",{style:g,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),s&&jsxRuntime.jsx("span",{style:{...b,color:l.borderError},children:s})]})};_r.displayName="CheckboxGroup";var qr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},Ys={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},dn=({value:e,checked:t=false,onChange:o,label:n,disabled:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=qr[g],c=Ys[a],d=zn.useId(),i=()=>{r||o?.(e);},u=t?b.dotRing:b.border,f=r?b.backgroundDisabled:b.background,m={width:c.box,height:c.box,borderRadius:"50%",border:`1.5px solid ${u}`,backgroundColor:f,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:r?.5:1},p={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:b.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...s},className:l,children:jsxRuntime.jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:R=>{R.preventDefault(),i();},children:[jsxRuntime.jsx("input",{id:d,type:"radio",value:e,checked:t,disabled:r,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:m,children:t&&jsxRuntime.jsx("span",{style:{width:c.dot,height:c.dot,borderRadius:"50%",backgroundColor:b.dot,transition:"transform 0.15s ease"}})}),n&&jsxRuntime.jsx("span",{style:p,children:n})]})})};dn.displayName="Radio";var jr=({value:e,onChange:t,label:o,options:n,direction:r="vertical",error:a,helperText:l,size:s="md",className:g,style:b})=>{let c=A(),d=qr[c],i=!!a,u=typeof a=="string"?a:void 0,f={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...b},className:g,children:[o&&jsxRuntime.jsx("span",{style:f,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:r==="horizontal"?"16px":"6px"},children:n.map(p=>jsxRuntime.jsx(dn,{value:p.value,label:p.label,checked:e===p.value,onChange:t,disabled:p.disabled,size:s},p.value))}),u&&jsxRuntime.jsx("span",{style:{...m,color:d.borderError},children:u}),!u&&l&&jsxRuntime.jsx("span",{style:{...m,color:d.helperText},children:l})]})};jr.displayName="RadioGroup";var Us={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Xs={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Jr=({checked:e=false,onChange:t,label:o,disabled:n=false,size:r="md",className:a,style:l})=>{let s=A(),g=Us[s],b=Xs[r],c=zn.useId(),d=()=>{n||t?.(!e);},i=1.5,u=2,m=b.trackW-i*2-b.thumb-u,p=e?m:0,R={width:b.trackW,height:b.trackH,borderRadius:b.trackH/2,backgroundColor:e?g.trackOn:g.trackOff,border:`${i}px solid ${e?g.trackOnBorder:g.trackOffBorder}`,position:"relative",cursor:n?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:n?.5:1,boxSizing:"border-box"},z={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:g.thumb,position:"absolute",top:"50%",left:u,transform:`translateY(-50%) translateX(${p}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},h={fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:g.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:`${b.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxRuntime.jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:b.gap,cursor:n?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),d();},children:[jsxRuntime.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:R,children:jsxRuntime.jsx("span",{style:z})}),o&&jsxRuntime.jsx("span",{style:h,children:o})]})})};Jr.displayName="Switch";var Qs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},el={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},ea=zn__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:n,loading:r=false,size:a="md",fullWidth:l=false,required:s,rows:g=4,maxLength:b,resize:c="vertical",autoHeight:d=false,minRows:i,maxRows:u,className:f,style:m,value:p,onChange:R,onFocus:z,onBlur:h,...S},x)=>{let I=A(),v=Qs[I],E=el[a],y=zn.useId(),D=S.id??y,[B,k]=zn.useState(false),M=zn.useRef(null),F=zn.useCallback(()=>{let $=M.current;if(!$||!d)return;$.style.height="auto";let G=getComputedStyle($),X=parseFloat(G.lineHeight)||parseFloat(G.fontSize)*1.5,ee=parseFloat(G.paddingTop)||0,J=parseFloat(G.paddingBottom)||0,te=ee+J,be=X*(i??1)+te,we=u?X*u+te:1/0,Y=Math.min(Math.max($.scrollHeight,be),we);$.style.height=`${Y}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[d,i,u]);zn.useEffect(()=>{F();},[p,F]);let w=zn.useCallback($=>{M.current=$,typeof x=="function"?x($):x&&(x.current=$);},[x]),T=d?"none":c,L=d?i??1:g,N=n||r,C=!!t,P=typeof t=="string"?t:void 0,H=typeof p=="string"?p.length:0,W={backgroundColor:N?v.backgroundDisabled:v.background,border:`1px solid ${C?v.borderError:B?v.borderFocus:v.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},V={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E.fontSize,lineHeight:"1.5",color:v.text,cursor:N?"not-allowed":"text",resize:T,boxSizing:"border-box",overflow:d?"hidden":void 0},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...m},className:f,children:[e&&jsxRuntime.jsxs("label",{htmlFor:D,style:q,children:[e,s&&jsxRuntime.jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:W,children:jsxRuntime.jsx("textarea",{ref:w,id:D,rows:L,maxLength:b,disabled:n,required:s,readOnly:r||S.readOnly,value:p,onChange:R,style:V,onFocus:$=>{k(true),z?.($);},onBlur:$=>{k(false),h?.($);},...S})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[P&&jsxRuntime.jsx("span",{style:{...Z,color:v.borderError},children:P}),!P&&o&&jsxRuntime.jsx("span",{style:{...Z,color:v.helperText},children:o})]}),b!==void 0&&jsxRuntime.jsxs("span",{style:{...Z,color:H>b?v.borderError:v.counter,flexShrink:0},children:[H,"/",b]})]})]})});ea.displayName="Textarea";var ol={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},nl={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function na(e,t,o){return Math.min(Math.max(e,t),o)}function rl(e,t,o){return Math.round((e-t)/o)*o+t}var ra=({value:e,onChange:t,min:o=0,max:n=100,step:r=1,label:a,disabled:l=false,showValue:s=false,range:g=false,size:b="md",className:c,style:d})=>{let i=A(),u=ol[i],f=nl[b],m=zn.useId(),p=zn.useRef(null),R=zn.useRef(null),z=g?e:[o,e],h=B=>(B-o)/(n-o)*100,S=h(z[0]),x=h(z[1]),I=zn.useCallback(B=>{let k=p.current;if(!k)return o;let M=k.getBoundingClientRect(),F=na((B-M.left)/M.width,0,1),w=o+F*(n-o);return na(rl(w,o,r),o,n)},[o,n,r]),v=zn.useCallback(B=>{if(l)return;B.preventDefault();let k=I(B.clientX);if(g){let w=e,T=Math.abs(k-w[0]),L=Math.abs(k-w[1]),N=T<=L?"start":"end";R.current=N;let C=N==="start"?[Math.min(k,w[1]),w[1]]:[w[0],Math.max(k,w[0])];t?.(C);}else R.current="end",t?.(k);let M=w=>{let T=I(w.clientX);if(g){let L=e;R.current==="start"?t?.([Math.min(T,L[1]),L[1]]):t?.([L[0],Math.max(T,L[0])]);}else t?.(T);},F=()=>{R.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",F);},[l,I,t,g,e]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},y=g?`${z[0]} \u2013 ${z[1]}`:`${e}`,D={width:f.thumb,height:f.thumb,borderRadius:"50%",backgroundColor:u.thumb,border:`2px solid ${u.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...d},className:c,children:[(a||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("label",{htmlFor:m,style:E,children:a}),s&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,userSelect:"none"},children:y})]}),jsxRuntime.jsxs("div",{ref:p,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":g?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:f.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${g?S:0}%`,width:`${x-(g?S:0)}%`,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackFill}}),g&&jsxRuntime.jsx("span",{style:{...D,left:`${S}%`}}),jsxRuntime.jsx("span",{style:{...D,left:`${x}%`}})]})]})};ra.displayName="Slider";var cl={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function bn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var dl=0,ia=({variant:e="dropzone",onFiles:t,accept:o,multiple:n=false,maxSize:r,disabled:a=false,label:l,helperText:s,error:g,value:b,buttonStyle:c="default",showFileList:d=true,buttonLabel:i,className:u,style:f})=>{let m=A(),p=cl[m],R=zn.useId(),z=zn.useRef(null),[h,S]=zn.useState(false),[x,I]=zn.useState([]),[v,E]=zn.useState(null),y=b!==void 0,D=y?b.map((C,P)=>({file:C,id:`controlled-${P}`})):x,B=!!g||!!v,k=typeof g=="string"?g:v??void 0,M=zn.useCallback(C=>{let P=Array.from(C);if(E(null),r){let H=P.find(W=>W.size>r);if(H){E(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${bn(r)}.`);return}}if(y){let W=n?[...b||[],...P]:P;t?.(W);}else {let H=P.map(V=>({file:V,id:`file-${++dl}`})),W=n?[...x,...H]:H;I(W),t?.(W.map(V=>V.file));}},[y,b,x,r,n,t]),F=zn.useCallback(C=>{C.preventDefault(),S(false),!a&&C.dataTransfer.files.length>0&&M(C.dataTransfer.files);},[a,M]),w=zn.useCallback(C=>{if(y){let P=(b||[]).filter((H,W)=>`controlled-${W}`!==C);t?.(P);}else {let P=x.filter(H=>H.id!==C);I(P),t?.(P.map(H=>H.file));}},[y,b,x,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${B?p.borderError:h?p.borderDrag:p.border}`,borderRadius:"8px",backgroundColor:h?p.backgroundDrag:a?p.backgroundDisabled:p.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:u,children:[l&&jsxRuntime.jsx("span",{style:T,children:l}),jsxRuntime.jsx("input",{ref:z,id:R,type:"file",accept:o,multiple:n,disabled:a,onChange:C=>{C.target.files&&C.target.files.length>0&&M(C.target.files),C.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:L,onClick:()=>!a&&z.current?.click(),onDragOver:C=>{C.preventDefault(),a||S(true);},onDragLeave:()=>S(false),onDrop:F,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:p.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):c==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&z.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:C=>{a||(C.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Nahr\xE1t soubor":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!a&&z.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${B?p.borderError:p.border}`,backgroundColor:a?p.backgroundDisabled:p.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:C=>{a||(C.currentTarget.style.borderColor=B?p.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:C=>{C.currentTarget.style.borderColor=B?p.borderError:p.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:D.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:p.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:p.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.length>0?p.text:p.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Vyberte soubor...":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)}),D.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(D[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:p.textSecondary})})]}),d&&D.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:D.map(C=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:p.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:p.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(C.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${C.file.name}`,onClick:P=>{P.stopPropagation(),w(C.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&w(C.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:p.removeColor})})]},C.id))}),k&&jsxRuntime.jsx("span",{style:{...N,color:p.borderError},children:k}),!k&&s&&jsxRuntime.jsx("span",{style:{...N,color:p.helperText},children:s})]})};ia.displayName="FileUpload";var fl={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},gl={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},bl=({data:e,value:t,onChange:o,size:n="md",fullWidth:r=false,orientation:a="horizontal",disabled:l=false,className:s,style:g})=>{let b=A(),c=fl[b],d=gl[n],i=a==="vertical",u=e.map(S=>typeof S=="string"?{value:S,label:S}:S),f=u.findIndex(S=>S.value===t),m=zn.useRef(null),p=zn.useRef([]),[R,z]=zn.useState({offset:0,size:0}),h=zn.useCallback(()=>{let S=m.current,x=p.current[f];if(!S||!x||f<0)return;let I=S.getBoundingClientRect(),v=x.getBoundingClientRect();z(i?{offset:v.top-I.top,size:v.height}:{offset:v.left-I.left,size:v.width});},[f,i]);return zn.useEffect(()=>{h();},[h,t,e,n]),zn.useEffect(()=>(window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h]),jsxRuntime.jsxs("div",{ref:m,role:"radiogroup",className:s,style:{position:"relative",display:"inline-flex",width:r?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:c.bg,border:`1px solid ${c.border}`,borderRadius:d.borderRadius,padding:d.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...g},children:[f>=0&&R.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:d.itemRadius,backgroundColor:c.indicator,border:`1px solid ${c.indicatorBorder}`,boxShadow:c.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:d.padding,right:d.padding,top:R.offset,height:R.size}:{top:d.padding,bottom:d.padding,left:R.offset,width:R.size}}}),u.map((S,x)=>{let I=S.value===t,v=l||S.disabled;return jsxRuntime.jsxs("button",{ref:E=>{p.current[x]=E;},type:"button",role:"radio","aria-checked":I,disabled:v,onClick:()=>{v||o(S.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:r?1:void 0,padding:d.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:d.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:I?500:400,color:v?c.textDisabled:I?c.textActive:c.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:E=>{!v&&!I&&(E.currentTarget.style.color=c.textHover);},onMouseLeave:E=>{!v&&!I&&(E.currentTarget.style.color=c.text);},children:[S.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:S.icon}),(S.label||!S.icon&&S.value)&&jsxRuntime.jsx("span",{children:S.label??S.value})]},S.value)})]})};bl.displayName="SegmentedControl";var yl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},yn=180,vl=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],vn=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Sl=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},kl=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),n=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),r=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+n*587+r*114)/1e3>150},Cl=({value:e,onChange:t,presets:o=vl,label:n,disabled:r=false,style:a,className:l})=>{let s=A(),g=yl[s],c=zn.useId(),d=zn.useRef(null),i=zn.useRef(null),[u,f]=zn.useState(false),[m,p]=zn.useState(false),[R,z]=zn.useState("idle"),[h,S]=zn.useState(e),[x,I]=zn.useState(false),[v,E]=zn.useState({top:0,left:0,openAbove:false});zn.useEffect(()=>{x||S(e);},[e,x]);let y=zn.useCallback(()=>{r||(f(true),p(true),z("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>z("open"));}));},[r]),D=zn.useCallback(()=>{f(false),z("closing");let P=setTimeout(()=>{p(false),z("idle");},yn);return ()=>clearTimeout(P)},[]),B=zn.useCallback(()=>{if(!d.current)return;let P=d.current.getBoundingClientRect(),H=220,W=window.innerHeight-P.bottom-8,V=W<H&&P.top>W;E({top:V?P.top-8:P.bottom+8,left:P.left,openAbove:V});},[]);zn.useEffect(()=>{if(m)return B(),window.addEventListener("scroll",B,true),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,true),window.removeEventListener("resize",B);}},[m,B]),zn.useEffect(()=>{if(!u)return;let P=H=>{let W=H.target;!d.current?.contains(W)&&!i.current?.contains(W)&&D();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[u,D]);let k=P=>{let H=Sl(P.target.value);S(H),vn(H)&&t(H);},M=()=>{I(false),vn(h)?t(h):S(e);},F=P=>{t(P),S(P),D();},w=()=>{let P=v.openAbove,H=P?"translateY(8px)":"translateY(-8px)",W=P?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${yn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${yn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...V,opacity:0,transform:`${H} scale(0.97)`}:R==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},T={display:"flex",alignItems:"center",gap:"10px",backgroundColor:r?g.backgroundDisabled:g.background,border:`1px solid ${x?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:vn(e)?e:"#cccccc",border:`1px solid ${g.swatchBorder}`,flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"transform 0.12s ease"},N={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},C=m?reactDom.createPortal(jsxRuntime.jsx("div",{ref:i,style:{position:"fixed",...v.openAbove?{bottom:window.innerHeight-v.top,left:v.left}:{top:v.top,left:v.left},backgroundColor:g.popoverBg,border:`1px solid ${g.popoverBorder}`,borderRadius:"12px",boxShadow:s==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:v.openAbove?"bottom left":"top left",...w()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((P,H)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${P}`,onClick:()=>F(P),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:P,border:P===e?"2px solid #FC4F00":`1px solid ${g.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:W=>{W.currentTarget.style.transform="scale(1.1)";},onMouseLeave:W=>{W.currentTarget.style.transform="scale(1)";}},`${P}-${H}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:l,children:[n&&jsxRuntime.jsx("label",{htmlFor:c,style:N,children:n}),jsxRuntime.jsxs("div",{ref:d,style:T,children:[jsxRuntime.jsx("div",{style:L,onClick:()=>{r||(u?D():y());}}),jsxRuntime.jsx("input",{id:c,type:"text",value:h,onChange:k,onFocus:()=>I(true),onBlur:M,disabled:r,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:g.text,cursor:r?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.placeholder,cursor:r?"not-allowed":"pointer"},onClick:()=>{r||(u?D():y());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(kl(e)&&s==="light",g.placeholder)})})]}),C]})};Cl.displayName="ColorPicker";var Fl={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},El={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},zl=({value:e,onChange:t,max:o=5,size:n="md",readOnly:r=false,label:a,style:l,className:s})=>{let g=A(),b=Fl[g],c=zn.useId(),d=El[n],[i,u]=zn.useState(null),f=!r&&!!t,m=zn.useCallback(S=>{f&&t(S+1);},[f,t]),p=zn.useCallback(S=>{f&&u(S);},[f]),R=zn.useCallback(()=>{u(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},h=Array.from({length:o},(S,x)=>{let I=i!==null?i+1:e,v=x<I,E=i!==null&&x<=i;return jsxRuntime.jsx("span",{role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":f?`Hodnocen\xED ${x+1} z ${o}`:void 0,onClick:()=>m(x),onMouseEnter:()=>p(x),onMouseLeave:R,onKeyDown:y=>{f&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),m(x));},style:{display:"inline-flex",cursor:f?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:E?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:d.starSize,weight:v?"fill":"regular",color:v?E?b.starHover:b.starFilled:b.starEmpty})},x)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:s,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsxRuntime.jsx("label",{htmlFor:c,style:z,children:a}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:d.gap},onMouseLeave:R,children:h})]})};zl.displayName="Rating";var Hl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},Ll=({length:e=6,value:t,onChange:o,error:n,disabled:r=false,autoFocus:a=false,label:l,separatorAfter:s,separator:g="-",style:b,className:c})=>{let d=A(),i=Hl[d],u=zn.useId(),f=zn.useRef([]),[m,p]=zn.useState(null),R=!!n,z=typeof n=="string"?n:void 0,h=t.padEnd(e,"").slice(0,e).split("");zn.useEffect(()=>{a&&f.current[0]&&f.current[0].focus();},[a]);let S=zn.useCallback(F=>{F>=0&&F<e&&f.current[F]?.focus();},[e]),x=zn.useCallback(F=>{let w=F.join("").replace(/[^0-9]/g,"");o(w);},[o]),I=zn.useCallback((F,w)=>{if(!/^[0-9]$/.test(w))return;let T=[...h];T[F]=w,x(T),F<e-1&&S(F+1);},[h,e,x,S]),v=zn.useCallback((F,w)=>{switch(w.key){case "Backspace":if(w.preventDefault(),h[F]){let T=[...h];T[F]="",x(T);}else if(F>0){let T=[...h];T[F-1]="",x(T),S(F-1);}break;case "Delete":w.preventDefault();{let T=[...h];T[F]="",x(T);}break;case "ArrowLeft":w.preventDefault(),F>0&&S(F-1);break;case "ArrowRight":w.preventDefault(),F<e-1&&S(F+1);break}},[h,e,x,S]),E=zn.useCallback((F,w)=>{let L=w.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&I(F,L);},[I]),y=zn.useCallback(F=>{F.preventDefault();let w=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!w)return;let T=[...h];for(let N=0;N<w.length;N++)T[N]=w[N];x(T);let L=Math.min(w.length,e-1);S(L);},[h,e,x,S]),D=zn.useCallback(F=>{p(F),f.current[F]?.select();},[]),B=zn.useCallback(()=>{p(null);},[]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},M=F=>{let w=m===F,T=!!h[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:i.text,textAlign:"center",backgroundColor:r?i.backgroundDisabled:T?i.backgroundFilled:i.background,border:`1px solid ${R?i.borderError:w?i.borderFocus:T?i.borderFilled:i.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"text",caretColor:i.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...b},className:c,children:[l&&jsxRuntime.jsx("label",{htmlFor:`${u}-0`,style:k,children:l}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:y,children:Array.from({length:e},(F,w)=>jsxRuntime.jsxs(zn__default.default.Fragment,{children:[s&&w>0&&w%s===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:i.text,userSelect:"none",lineHeight:"normal",opacity:r?.6:.5,padding:"0 2px"},children:g}),jsxRuntime.jsx("input",{ref:T=>{f.current[w]=T;},id:`${u}-${w}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:h[w]||"",onChange:T=>E(w,T),onKeyDown:T=>v(w,T),onFocus:()=>D(w),onBlur:B,disabled:r,"aria-label":`\u010C\xEDslice ${w+1} z ${e}`,style:M(w)})]},w))}),z&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.borderError,lineHeight:"normal"},children:z})]})};Ll.displayName="OTPInput";var Zl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Cn=180,Yl={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},Vl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function Ul(e,t){return [...t].sort((n,r)=>r.dialCode.length-n.dialCode.length).find(n=>e.startsWith(n.dialCode))}var Xl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:n,label:r,error:a,helperText:l,disabled:s=false,size:g="md",placeholder:b="123 456 789",style:c,className:d})=>{let i=A(),u=Zl[i],f=Yl[g],m=zn.useId(),p=n||Vl,R=zn.useRef(null),z=zn.useRef(null),h=zn.useRef(null),S=zn.useRef(null),[x,I]=zn.useState(false),[v,E]=zn.useState(false),[y,D]=zn.useState(false),[B,k]=zn.useState("idle"),[M,F]=zn.useState(""),[w,T]=zn.useState(-1),[L,N]=zn.useState({top:0,left:0,width:0,openAbove:false}),C=!!a,P=typeof a=="string"?a:void 0,H=zn.useMemo(()=>{if(e){let Y=Ul(e,p);if(Y)return Y}return p.find(Y=>Y.code===o)||p[0]},[e,p,o]),W=zn.useMemo(()=>!e||!H?"":e.startsWith(H.dialCode)?e.slice(H.dialCode.length):e.replace(/^\+\d+/,""),[e,H]),V=zn.useMemo(()=>{if(!M)return p;let Y=M.toLowerCase();return p.filter(j=>j.name.toLowerCase().includes(Y)||j.dialCode.includes(Y)||j.code.toLowerCase().includes(Y))},[p,M]),q=zn.useCallback(()=>{E(true),D(true),k("opening"),F(""),T(-1);let Y=setTimeout(()=>{k("open"),S.current?.focus();},10);return ()=>clearTimeout(Y)},[]),Z=zn.useCallback(()=>{E(false),k("closing");let Y=setTimeout(()=>{D(false),k("idle");},Cn);return ()=>clearTimeout(Y)},[]),$=zn.useCallback(()=>{if(!R.current)return;let Y=R.current.getBoundingClientRect(),j=z.current?.offsetHeight??300,ie=window.innerHeight-Y.bottom-6,Me=Y.top-6,Je=ie<j&&Me>ie;N({top:Je?Y.top-6:Y.bottom+6,left:Y.left,width:Math.max(Y.width,280),openAbove:Je});},[]);zn.useEffect(()=>{if(y)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[y,$]),zn.useEffect(()=>{if(!v)return;let Y=j=>{let ie=j.target;!R.current?.contains(ie)&&!z.current?.contains(ie)&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[v,Z]);let G=zn.useCallback(Y=>{let j=Y.dialCode+W;t?.(j),Z(),h.current?.focus();},[W,t,Z]),X=Y=>{let j=Y.target.value.replace(/[^0-9\s]/g,"");t?.(H.dialCode+j);},ee=Y=>{let j=Y.clipboardData.getData("text").trim();j.startsWith("+")&&(Y.preventDefault(),t?.(j.replace(/[^0-9+]/g,"")));},J=Y=>{switch(Y.key){case "ArrowDown":Y.preventDefault(),T(j=>Math.min(j+1,V.length-1));break;case "ArrowUp":Y.preventDefault(),T(j=>Math.max(j-1,0));break;case "Enter":Y.preventDefault(),w>=0&&V[w]&&G(V[w]);break;case "Escape":Y.preventDefault(),Z(),h.current?.focus();break}},te=()=>{let Y=L.openAbove,j=Y?"translateY(8px)":"translateY(-8px)",ie=Y?"translateY(6px)":"translateY(-6px)",Me={transition:`opacity ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...Me,opacity:0,transform:`${j} scale(0.97)`}:B==="open"?{...Me,opacity:1,transform:"translateY(0) scale(1)"}:{...Me,opacity:0,transform:`${ie} scale(0.98)`,pointerEvents:"none"}},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},be={display:"flex",alignItems:"center",backgroundColor:s?u.backgroundDisabled:u.background,border:`1px solid ${C?u.borderError:x?u.borderFocus:u.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden"},we=y?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:z,style:{position:"fixed",...L.openAbove?{bottom:window.innerHeight-L.top,left:L.left}:{top:L.top,left:L.left},width:L.width,backgroundColor:u.dropdownBg,border:`1px solid ${u.dropdownBorder}`,borderRadius:"12px",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:L.openAbove?"bottom center":"top center",...te()},onKeyDown:J,children:[jsxRuntime.jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${u.divider}`},children:jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:14,color:u.placeholder}),jsxRuntime.jsx("input",{ref:S,type:"text",value:M,onChange:Y=>{F(Y.target.value),T(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.text}})]})}),jsxRuntime.jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[V.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:u.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((Y,j)=>{let ie=Y.code===H.code;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:j===w?u.optionHover:ie?u.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>G(Y),onMouseEnter:()=>T(j),onMouseLeave:()=>T(-1),children:[jsxRuntime.jsx("span",{style:{fontSize:"18px",flexShrink:0},children:Y.flag}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ie?u.optionSelectedText:u.text,fontWeight:ie?500:400},children:Y.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.placeholder,flexShrink:0},children:Y.dialCode})]},Y.code)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{className:d,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},children:[r&&jsxRuntime.jsx("label",{htmlFor:m,style:re,children:r}),jsxRuntime.jsxs("div",{ref:R,style:be,children:[jsxRuntime.jsxs("button",{type:"button",disabled:s,onClick:()=>{s||(v?Z():q());},style:{display:"flex",alignItems:"center",gap:"4px",padding:f.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,flexShrink:0,outline:"none"},children:[jsxRuntime.jsx("span",{style:{fontSize:g==="sm"?"14px":"18px"},children:H.flag}),jsxRuntime.jsx("span",{style:{fontSize:"13px",color:u.placeholder},children:H.dialCode}),jsxRuntime.jsx(react.CaretDown,{size:12,color:u.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}),jsxRuntime.jsx("div",{style:{width:"1px",height:"60%",backgroundColor:u.divider,flexShrink:0}}),jsxRuntime.jsx("input",{ref:h,id:m,type:"tel",value:W,onChange:X,onPaste:ee,onFocus:()=>I(true),onBlur:()=>I(false),placeholder:b,disabled:s,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,padding:f.padding,paddingLeft:"8px"}})]}),P&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:P}),!P&&l&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.helperText,lineHeight:"normal"},children:l}),we]})};Xl.displayName="PhoneInput";var jl={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},Rn=10;function Fo(e,t,o){return Math.max(t,Math.min(o,e))}var Kl=({src:e,onCrop:t,onCancel:o,aspectRatio:n,minWidth:r=50,minHeight:a=50,shape:l="rect",style:s,className:g})=>{let b=A(),c=jl[b],d=zn.useRef(null),i=zn.useRef(null),[u,f]=zn.useState(""),[m,p]=zn.useState(false),[R,z]=zn.useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[h,S]=zn.useState({x:0,y:0,width:0,height:0}),[x,I]=zn.useState(null),v=l==="circle"?1:n;zn.useEffect(()=>{if(e instanceof File){let w=URL.createObjectURL(e);return f(w),()=>URL.revokeObjectURL(w)}else f(e);},[e]);let E=zn.useCallback(()=>{let w=d.current,T=i.current;if(!w||!T||!T.naturalWidth)return;let L=w.clientWidth,N=w.clientHeight,C=T.naturalWidth,P=T.naturalHeight,H=Math.min(L/C,N/P),W=C*H,V=P*H,q=(L-W)/2,Z=(N-V)/2;z({natural:{w:C,h:P},display:{w:W,h:V},offset:{x:q,y:Z}});let $=W*.8,G=V*.8,X,ee;v?$/v<=G?(X=$,ee=$/v):(ee=G,X=G*v):(X=$,ee=G),X=Math.max(X,r),ee=Math.max(ee,a),S({x:q+(W-X)/2,y:Z+(V-ee)/2,width:X,height:ee});},[v,r,a]),y=()=>{p(true),E();};zn.useEffect(()=>(window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)),[E]);let D=w=>"touches"in w?{x:w.touches[0].clientX,y:w.touches[0].clientY}:{x:w.clientX,y:w.clientY};zn.useEffect(()=>{if(!x)return;let{display:{w,h:T},offset:{x:L,y:N}}=R,C=H=>{H.preventDefault();let W=D(H);if(!d.current?.getBoundingClientRect())return;let q=W.x-x.startX,Z=W.y-x.startY,$=x.startCrop,G={...$};if(x.type==="move")G.x=Fo($.x+q,L,L+w-$.width),G.y=Fo($.y+Z,N,N+T-$.height);else {let X=$.x,ee=$.y,J=$.width,te=$.height,re=x.type;re.includes("e")&&(J=Math.max(r,$.width+q)),re.includes("w")&&(J=Math.max(r,$.width-q),X=$.x+$.width-J),re.includes("s")&&(te=Math.max(a,$.height+Z)),re.includes("n")&&(te=Math.max(a,$.height-Z),ee=$.y+$.height-te),v&&(re==="n"||re==="s"?(J=te*v,X=$.x+($.width-J)/2):re==="e"||re==="w"?(te=J/v,ee=$.y+($.height-te)/2):(te=J/v,re.includes("n")&&(ee=$.y+$.height-te))),X=Fo(X,L,L+w-J),ee=Fo(ee,N,N+T-te),J=Math.min(J,L+w-X),te=Math.min(te,N+T-ee),G={x:X,y:ee,width:J,height:te};}S(G);},P=()=>I(null);return document.addEventListener("mousemove",C),document.addEventListener("mouseup",P),document.addEventListener("touchmove",C,{passive:false}),document.addEventListener("touchend",P),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",P);}},[x,R,v,r,a]);let B=(w,T)=>{T.preventDefault(),T.stopPropagation();let L="touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};I({type:w,startX:L.x,startY:L.y,startCrop:{...h}});},k=zn.useCallback(()=>{let w=i.current;if(!w||!R.display.w)return;let T=R.natural.w/R.display.w,L=(h.x-R.offset.x)*T,N=(h.y-R.offset.y)*T,C=h.width*T,P=h.height*T,H=document.createElement("canvas");H.width=C,H.height=P;let W=H.getContext("2d");W&&(l==="circle"&&(W.beginPath(),W.arc(C/2,P/2,C/2,0,Math.PI*2),W.clip()),W.drawImage(w,L,N,C,P,0,0,C,P),H.toBlob(V=>{V&&t(V);},"image/png"));},[h,R,l,t]),M=zn.useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),F={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxRuntime.jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",backgroundColor:c.containerBg,border:`1px solid ${c.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...s},children:[jsxRuntime.jsxs("div",{ref:d,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:x?x.type==="move"?"grabbing":`${x.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[u&&jsxRuntime.jsx("img",{ref:i,src:u,crossOrigin:"anonymous",onLoad:y,style:{position:"absolute",top:R.offset.y,left:R.offset.x,width:R.display.w||"100%",height:R.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:h.y,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y+h.height,left:0,right:0,bottom:0,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y,left:0,width:h.x,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:h.y,left:h.x+h.width,right:0,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxRuntime.jsxs("div",{style:{position:"absolute",left:h.x,top:h.y,width:h.width,height:h.height,border:`2px dashed ${c.cropBorder}`,borderRadius:l==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:w=>B("move",w),onTouchStart:w=>B("move",w),children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),M.map(w=>jsxRuntime.jsx("div",{style:{position:"absolute",width:Rn,height:Rn,backgroundColor:c.handleBg,border:`1px solid ${c.handleBorder}`,borderRadius:"2px",cursor:w.cursor,zIndex:2,...w.style},onMouseDown:T=>B(w.type,T),onTouchStart:T=>B(w.type,T)},w.type))]})]})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:c.actionBarBg,borderTop:`1px solid ${c.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxRuntime.jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonSecondaryBg,color:c.buttonSecondaryText,border:`1px solid ${c.buttonSecondaryBorder}`},onClick:o,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.X,{size:14}),"Zru\u0161it"]}),jsxRuntime.jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonPrimary,color:c.buttonPrimaryText,border:"1px solid transparent"},onClick:k,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimary;},children:[jsxRuntime.jsx(react.Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};Kl.displayName="ImageCropper";var Ql={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},xa="smSkeletonShimmer",ec=`@keyframes ${xa}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,ve=({variant:e="text",width:t,height:o,lines:n=1,animate:r=true,className:a,style:l})=>{let s=A(),g=Ql[s],b=t??(e==="circle"?40:"100%"),c=o??(e==="circle"?40:e==="text"?"1em":100),d={backgroundColor:g.base,backgroundImage:r?`linear-gradient(90deg, ${g.base} 25%, ${g.shimmer} 50%, ${g.base} 75%)`:void 0,backgroundSize:r?"200% 100%":void 0,animation:r?`${xa} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof b=="number"?`${b}px`:b,height:typeof c=="number"?`${c}px`:c},i=r?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:ec}}):null;return e==="text"&&n>1?jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:n}).map((u,f)=>jsxRuntime.jsx("div",{style:{...d,width:f===n-1?"75%":d.width}},f))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i,jsxRuntime.jsx("div",{className:a,style:{...d,...l}})]})};ve.displayName="Skeleton";var nc={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},rc=({columns:e,data:t,loading:o=false,emptyText:n="\u017D\xE1dn\xE1 data",onSort:r,sortKey:a,sortDirection:l,striped:s=false,hoverable:g=true,onRowClick:b,rowActions:c,className:d,style:i})=>{let u=A(),f=nc[u],m=S=>{if(!S.sortable||!r)return;let x=a===S.key&&l==="asc"?"desc":"asc";r(S.key,x);},p={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,backgroundColor:f.background,border:`1px solid ${f.border}`,borderRadius:"12px",overflow:"hidden",...i},R=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:f.textSecondary,backgroundColor:f.headerBg,borderBottom:`1px solid ${f.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),z={padding:"10px 16px",borderBottom:`1px solid ${f.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:d,style:p,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[e.map(S=>jsxRuntime.jsx("th",{style:R(S),onClick:()=>m(S),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:a===S.key?f.sortActive:f.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key)),c&&jsxRuntime.jsx("th",{style:{...R({sortable:false}),width:"auto"}})]})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((S,x)=>jsxRuntime.jsx("tr",{children:e.map(I=>jsxRuntime.jsx("td",{style:z,children:jsxRuntime.jsx(ve,{variant:"text",width:"80%"})},I.key))},`skel-${x}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...z,textAlign:"center",padding:"32px 16px",color:f.textSecondary,borderBottom:"none"},children:n})}):t.map((S,x)=>jsxRuntime.jsxs("tr",{style:{backgroundColor:s&&x%2===1?f.stripedBg:"transparent",transition:"background-color 0.12s ease",cursor:b?"pointer":"default"},onClick:I=>{b&&!I.target.closest("[data-no-row-click]")&&b(S,x);},onMouseEnter:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=f.rowHover);},onMouseLeave:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=s&&x%2===1?f.stripedBg:"transparent");},children:[e.map(I=>jsxRuntime.jsx("td",{style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom},children:I.render?I.render(S[I.key],S,x):S[I.key]},I.key)),c&&jsxRuntime.jsx("td",{"data-no-row-click":true,style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom,textAlign:"right",whiteSpace:"nowrap"},onClick:I=>I.stopPropagation(),children:c(S)})]},x))})]})};rc.displayName="Table";var ic={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},va=({checked:e,indeterminate:t,onChange:o,t:n})=>{let r=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${r?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:r?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},sc=({columns:e,data:t,selectable:o=false,onSelectionChange:n,loading:r=false,rowKey:a="id",onRowClick:l,stickyHeader:s=false,emptyText:g="\u017D\xE1dn\xE1 data",style:b,className:c})=>{let d=A(),i=ic[d],[u,f]=zn.useState(new Set),[m,p]=zn.useState(null),R=zn.useMemo(()=>t.map(k=>String(k[a])),[t,a]),z=R.length>0&&R.every(k=>u.has(k)),h=R.some(k=>u.has(k))&&!z,S=zn.useCallback(()=>{let k=z?new Set:new Set(R);f(k),n?.(Array.from(k));},[z,R,n]),x=zn.useCallback(k=>{f(M=>{let F=new Set(M);return F.has(k)?F.delete(k):F.add(k),n?.(Array.from(F)),F});},[n]),I={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background},v=k=>({padding:"12px 16px",textAlign:k.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",userSelect:"none",width:k.width!=null?typeof k.width=="number"?`${k.width}px`:k.width:void 0,minWidth:k.minWidth!=null?`${k.minWidth}px`:void 0,...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),E=k=>({padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal",textAlign:k.align||"left"}),y={padding:"12px 12px 12px 16px",backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,width:"40px",...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},D={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${i.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:c,style:{overflow:s?"auto":"hidden",borderRadius:"12px",border:`1px solid ${i.border}`,...b},children:jsxRuntime.jsxs("table",{style:I,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:y,children:jsxRuntime.jsx(va,{checked:z,indeterminate:h,onChange:S,t:i})}),e.map(k=>jsxRuntime.jsx("th",{style:v(k),children:k.header},k.key))]})}),jsxRuntime.jsx("tbody",{children:r?Array.from({length:5}).map((k,M)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:D,children:jsxRuntime.jsx(ve,{variant:"rect",width:16,height:16})}),e.map(F=>jsxRuntime.jsx("td",{style:E(F),children:jsxRuntime.jsx(ve,{variant:"text",width:"80%"})},F.key))]},`skel-${M}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:g})}):t.map((k,M)=>{let F=String(k[a]),w=u.has(F),T=m===F,L=M===t.length-1,N="transparent";return w?N=i.selectedRowBg:T&&(N=i.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:N,cursor:l?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>p(F),onMouseLeave:()=>p(null),onClick:()=>l?.(k),children:[o&&jsxRuntime.jsx("td",{style:{...D,borderBottom:L?"none":D.borderBottom},children:jsxRuntime.jsx(va,{checked:w,onChange:()=>x(F),t:i})}),e.map(C=>jsxRuntime.jsx("td",{style:{...E(C),borderBottom:L?"none":E(C).borderBottom},children:C.render?C.render(k[C.key],k,M):k[C.key]},C.key))]},F)})})]})})};sc.displayName="DataGrid";var pc={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ka=({checked:e,indeterminate:t,onChange:o,t:n})=>jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:r=>{r.stopPropagation(),o();},onKeyDown:r=>{(r.key===" "||r.key==="Enter")&&(r.preventDefault(),r.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:e||t?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M3 6H9",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),uc=({columns:e,data:t,primaryKey:o,rowKey:n="id",selectable:r=false,selectedIds:a,onSelectionChange:l,onCardClick:s,onSort:g,sortKey:b,sortDirection:c,loading:d=false,skeletonCount:i=3,emptyText:u="\u017D\xE1dn\xE1 data",emptyContent:f,gap:m=12,cardActions:p,style:R,className:z})=>{let h=A(),S=pc[h],[x,I]=zn.useState(new Set),[v,E]=zn.useState(null),y=a!==void 0,D=zn.useMemo(()=>y?new Set(a):x,[y,a,x]),B=zn.useMemo(()=>e.find(C=>C.primary)||(o?e.find(C=>C.key===o):void 0),[e,o]),k=zn.useMemo(()=>e.filter(C=>!C.hidden&&C!==B),[e,B]),M=zn.useMemo(()=>e.filter(C=>C.sortable),[e]),F=zn.useCallback(C=>{let P=new Set(D);P.has(C)?P.delete(C):P.add(C),y||I(P),l?.(Array.from(P));},[D,y,l]),w=zn.useCallback(()=>{let C=t.map(W=>String(W[n])),H=C.every(W=>D.has(W))?new Set:new Set(C);y||I(H),l?.(Array.from(H));},[t,n,D,y,l]),T=t.length>0&&t.every(C=>D.has(String(C[n]))),L=t.some(C=>D.has(String(C[n])))&&!T,N=zn.useCallback(C=>{if(!g)return;g(C,b===C&&c==="asc"?"desc":"asc");},[g,b,c]);if(d){let C=k.length>0?k.length:3;return jsxRuntime.jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:Array.from({length:i}).map((P,H)=>jsxRuntime.jsxs("div",{style:{backgroundColor:S.cardBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(B||r)&&jsxRuntime.jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${S.divider}`,backgroundColor:S.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[r&&jsxRuntime.jsx(ve,{variant:"rect",width:18,height:18}),jsxRuntime.jsx(ve,{variant:"text",width:"45%",height:18})]}),Array.from({length:C}).map((W,V)=>jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:V<C-1?`1px solid ${S.divider}`:"none"},children:[jsxRuntime.jsx(ve,{variant:"text",width:70,height:12}),jsxRuntime.jsx(ve,{variant:"text",width:100,height:14})]},V)),p&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},children:[jsxRuntime.jsx(ve,{variant:"rect",width:64,height:30}),jsxRuntime.jsx(ve,{variant:"rect",width:64,height:30})]})]},H))})}return t.length===0?jsxRuntime.jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:jsxRuntime.jsx("div",{style:{backgroundColor:S.emptyBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:S.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:f??u})}):jsxRuntime.jsxs("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...R},children:[(r||M.length>0)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsxRuntime.jsx(ka,{checked:T,indeterminate:L,onChange:w,t:S}),jsxRuntime.jsx("span",{style:{fontSize:"12px",color:S.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:D.size>0?`${D.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),M.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:r?"auto":0},children:M.map(C=>{let P=b===C.key;return jsxRuntime.jsxs("button",{onClick:()=>N(C.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:P?S.sortChipActiveBg:S.sortChipBg,color:P?S.sortActive:S.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:P?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[C.header,P?c==="asc"?jsxRuntime.jsx(react.CaretUp,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretDown,{size:12,weight:"bold"}):jsxRuntime.jsx(react.CaretUpDown,{size:12})]},C.key)})})]}),t.map((C,P)=>{let H=String(C[n]),W=D.has(H),V=v===H,q=B?B.render?B.render(C[B.key],C,P):C[B.key]:null;return jsxRuntime.jsxs("div",{style:{backgroundColor:W?S.selectedBg:V?S.hover:S.cardBg,border:`1px solid ${W?S.selectedBorder:S.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:s?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>s?.(C),onMouseEnter:()=>E(H),onMouseLeave:()=>E(null),children:[(q!==null||r)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:S.headerBg,borderBottom:`1px solid ${S.divider}`},children:[r&&jsxRuntime.jsx(ka,{checked:W,onChange:()=>F(H),t:S}),q!==null&&jsxRuntime.jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:S.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q})]}),jsxRuntime.jsx("div",{children:k.map((Z,$)=>{let G=Z.render?Z.render(C[Z.key],C,P):C[Z.key];return jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<k.length-1?`1px solid ${S.divider}`:"none"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:S.textSecondary,flexShrink:0,paddingTop:"2px"},children:Z.header}),jsxRuntime.jsx("span",{style:{fontSize:"14px",color:S.text,textAlign:"right",wordBreak:"break-word"},children:G??"\u2014"})]},Z.key)})}),p&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},onClick:Z=>Z.stopPropagation(),children:p(C,P)})]},H??P)})]})};uc.displayName="MobileDataCard";var fc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},gc={none:"0",sm:"12px",md:"20px",lg:"28px"},bc=({title:e,subtitle:t,header:o,footer:n,children:r,hoverable:a=false,bordered:l=true,padding:s="md",className:g,style:b})=>{let c=A(),d=fc[c],i=gc[s],u={backgroundColor:d.background,border:l?`1px solid ${d.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...b},f=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:i,paddingBottom:r||n?"0":i},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:d.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:g,style:u,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=d.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=c==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=l?d.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[f,r&&jsxRuntime.jsx("div",{style:{padding:i},children:r}),n&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${d.divider}`}}),jsxRuntime.jsx("div",{style:{padding:i},children:n})]})]})};bc.displayName="Card";var Ra={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},vc=({title:e,children:t,defaultOpen:o=false,disabled:n=false,_controlled:r,_open:a,_onToggle:l})=>{let s=A(),g=Ra[s],[b,c]=zn.useState(o),d=r?!!a:b,i=zn.useRef(null),[u,f]=zn.useState(0);zn.useEffect(()=>{i.current&&f(i.current.scrollHeight);},[t,d]);let m=zn.useCallback(()=>{n||(r&&l?l():c(p=>!p));},[n,r,l]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${g.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:n?g.textDisabled:g.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:p=>{n||(p.currentTarget.style.backgroundColor=g.hoverBg);},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:n?g.chevronDisabled:g.chevron,style:{transition:"transform 0.25s ease",transform:d?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:d?`${u}px`:"0px",transition:"max-height 0.25s ease"},children:jsxRuntime.jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:g.textSecondary},children:t})})]})};vc.displayName="AccordionItem";var Sc=({children:e,multiple:t=false,className:o,style:n})=>{let r=A(),a=Ra[r],l=zn__default.default.Children.toArray(e).filter(c=>zn__default.default.isValidElement(c)),[s,g]=zn.useState(()=>{let c=new Set;return l.forEach((d,i)=>{d.props.defaultOpen&&c.add(i);}),c}),b=zn.useCallback(c=>{g(d=>{let i=new Set(d);return i.has(c)?i.delete(c):(t||i.clear(),i.add(c)),i});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...n},children:l.map((c,d)=>zn__default.default.cloneElement(c,{key:d,_controlled:true,_open:s.has(d),_onToggle:()=>b(d)}))})};Sc.displayName="Accordion";var kc={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Cc={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},wc=()=>null;wc.displayName="Tab";var Rc=()=>null;Rc.displayName="TabPanel";var Tc=({value:e,onChange:t,children:o,variant:n="underline",fullWidth:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=kc[g],c=Cc[a],d=zn__default.default.Children.toArray(o),i=d.filter(m=>zn__default.default.isValidElement(m)&&m.type?.displayName==="Tab"),f=d.filter(m=>zn__default.default.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxRuntime.jsxs("div",{className:l,style:s,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:n==="pills"?"4px":"0",borderBottom:n==="underline"?`1px solid ${b.border}`:"none"},children:i.map(m=>{let p=m.props.value===e,R=m.props.disabled,z=n==="underline"?{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.text:b.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${p?b.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.pillText:b.textInactive,backgroundColor:p?b.pillBg:b.pillInactiveBg,border:"none",borderRadius:"8px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:R,style:z,onClick:()=>{R||t(m.props.value);},onMouseEnter:h=>{!R&&!p&&(h.currentTarget.style.backgroundColor=b.hoverBg);},onMouseLeave:h=>{R||(h.currentTarget.style.backgroundColor=n==="pills"&&p?b.pillBg:"transparent");},children:[m.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),f&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:f.props.children})]})};Tc.displayName="Tabs";var zc={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Mn=180,Io=8,Bc=({content:e,children:t,position:o="bottom",trigger:n="click",className:r,style:a})=>{let l=A(),s=zc[l],[g,b]=zn.useState(false),[c,d]=zn.useState(false),[i,u]=zn.useState("idle"),[f,m]=zn.useState({top:0,left:0}),p=zn.useRef(null),R=zn.useRef(null),z=zn.useRef(void 0),h=zn.useCallback(()=>{b(true),d(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),S=zn.useCallback(()=>{b(false),u("closing");let B=setTimeout(()=>{d(false),u("idle");},Mn);return ()=>clearTimeout(B)},[]),x=zn.useCallback(()=>{let B=p.current,k=R.current;if(!B||!k)return;let M=B.getBoundingClientRect(),F=k.getBoundingClientRect(),w=0,T=0;switch(o){case "top":w=M.top-F.height-Io,T=M.left+M.width/2-F.width/2;break;case "bottom":w=M.bottom+Io,T=M.left+M.width/2-F.width/2;break;case "left":w=M.top+M.height/2-F.height/2,T=M.left-F.width-Io;break;case "right":w=M.top+M.height/2-F.height/2,T=M.right+Io;break}m({top:w,left:T});},[o]);zn.useEffect(()=>{if(c)return requestAnimationFrame(x),window.addEventListener("scroll",x,true),window.addEventListener("resize",x),()=>{window.removeEventListener("scroll",x,true),window.removeEventListener("resize",x);}},[c,x]),zn.useEffect(()=>{if(!g)return;let B=k=>{let M=k.target;!p.current?.contains(M)&&!R.current?.contains(M)&&S();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[g,S]),zn.useEffect(()=>{if(!g)return;let B=k=>{k.key==="Escape"&&S();};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[g,S]);let I=()=>{let B={transition:`opacity ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1)`},k={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.97)`}:i==="open"?{...B,opacity:1,transform:"translateY(0) scale(1)"}:{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.98)`,pointerEvents:"none"}},v=zn.useCallback(()=>{n==="click"&&(g?S():h());},[n,g,S,h]),E=zn.useCallback(()=>{n==="hover"&&(z.current&&clearTimeout(z.current),g||h());},[n,g,h]),y=zn.useCallback(()=>{n==="hover"&&(z.current=setTimeout(()=>{S();},150));},[n,S]);zn.useEffect(()=>()=>{z.current&&clearTimeout(z.current);},[]);let D=c?reactDom.createPortal(jsxRuntime.jsx("div",{ref:R,className:r,onMouseEnter:()=>{n==="hover"&&z.current&&clearTimeout(z.current);},onMouseLeave:y,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"16px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",color:s.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...I(),...a},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[zn__default.default.cloneElement(t,{ref:p,onClick:B=>{v(),t.props.onClick?.(B);},onMouseEnter:B=>{E(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{y(),t.props.onMouseLeave?.(B);}}),D]})};Bc.displayName="Popover";var $c={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Wc={"no-data":{icon:jsxRuntime.jsx(react.Tray,{size:48}),title:"\u017D\xE1dn\xE1 data",description:"Zat\xEDm zde nejsou \u017E\xE1dn\xE9 z\xE1znamy."},"no-results":{icon:jsxRuntime.jsx(react.MagnifyingGlass,{size:48}),title:"\u017D\xE1dn\xE9 v\xFDsledky",description:"Zkuste upravit filtr nebo hledan\xFD v\xFDraz."},"no-permission":{icon:jsxRuntime.jsx(react.Lock,{size:48}),title:"Nem\xE1te opr\xE1vn\u011Bn\xED",description:"Pro p\u0159\xEDstup kontaktujte administr\xE1tora."},error:{icon:jsxRuntime.jsx(react.WarningCircle,{size:48}),title:"N\u011Bco se pokazilo",description:"Nepoda\u0159ilo se na\u010D\xEDst data. Zkuste to znovu."},"coming-soon":{icon:jsxRuntime.jsx(react.Rocket,{size:48}),title:"Ji\u017E brzy",description:"Tato funkce je ve v\xFDvoji."}},Oc={sm:{padding:"24px 16px",iconSize:32,titleSize:"14px",descSize:"12px",maxWidth:"280px"},md:{padding:"48px 24px",iconSize:48,titleSize:"18px",descSize:"14px",maxWidth:"360px"},lg:{padding:"64px 32px",iconSize:64,titleSize:"22px",descSize:"15px",maxWidth:"440px"}},Zc=({icon:e,title:t,description:o,action:n,preset:r,size:a="md",className:l,style:s})=>{let g=A(),b=$c[g],c=Oc[a],d=r?Wc[r]:void 0,i=e??d?.icon,u=t??d?.title??"",f=o??d?.description;return jsxRuntime.jsxs("div",{className:l,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:c.padding,gap:"12px",...s},children:[i&&jsxRuntime.jsx("div",{style:{lineHeight:1,color:b.iconColor,marginBottom:"4px"},children:i}),u&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:c.titleSize,lineHeight:"normal",color:b.text},children:u}),f&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.descSize,lineHeight:"1.5",color:b.textSecondary,maxWidth:c.maxWidth},children:f}),n&&jsxRuntime.jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px",alignItems:"center"},children:n})]})};Zc.displayName="EmptyState";var Gc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",helper:"#888888",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)",hoverBg:"rgba(255,255,255,0.04)",hoverShadow:"0 4px 16px rgba(0,0,0,0.3)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",helper:"#999999",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)",hoverBg:"rgba(0,0,0,0.02)",hoverShadow:"0 4px 16px rgba(0,0,0,0.08)"}},_c=({label:e,value:t,change:o,changeLabel:n,icon:r,trend:a="neutral",loading:l=false,onClick:s,helper:g,className:b,style:c})=>{let d=A(),i=Gc[d],[u,f]=zn.useState(false),m=!!s,p=a==="up"?i.trendUp:a==="down"?i.trendDown:i.trendNeutral,R=h=>`${h>0?"+":""}${h.toFixed(1)} %`;return jsxRuntime.jsxs(m?"button":"div",{className:b,onClick:m?s:void 0,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),type:m?"button":void 0,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:u&&m?i.hoverBg:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",padding:"16px 20px",cursor:m?"pointer":"default",transition:"transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease",transform:u&&m?"translateY(-2px)":"translateY(0)",boxShadow:u&&m?i.hoverShadow:"none",outline:"none",textAlign:"left",width:"100%",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...c},children:[r&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:i.iconColor,flexShrink:0,color:i.text},children:r}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.label,lineHeight:"normal",marginBottom:"4px"},children:e}),l?jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"2px"},children:[jsxRuntime.jsx(ve,{variant:"text",width:"60%",height:24}),o!==void 0&&jsxRuntime.jsx(ve,{variant:"text",width:"40%",height:14})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:i.text},children:t}),g&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:i.helper,marginTop:"2px"},children:g}),o!==void 0&&jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p},children:[a==="up"&&jsxRuntime.jsx(react.TrendUp,{size:14,color:p}),a==="down"&&jsxRuntime.jsx(react.TrendDown,{size:14,color:p}),jsxRuntime.jsx("span",{children:R(o)}),n&&jsxRuntime.jsx("span",{style:{color:i.label,marginLeft:"2px"},children:n})]})]})]})]})};_c.displayName="Stat";var jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],zb=({initials:e,size:t="md",borderRadius:o="8px",style:n,className:r,"aria-label":a})=>{let l=jc(t),s={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...n},g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:s,className:r,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:g,children:e.toUpperCase()})})};var Kc={dark:{overflowBg:"rgba(60,60,60,0.95)",overflowText:"#ffffff",overflowBorder:"rgba(3,3,3,1)",ringColor:"rgba(3,3,3,1)"},light:{overflowBg:"rgba(220,220,220,0.95)",overflowText:"#1a1a1a",overflowBorder:"rgba(255,255,255,1)",ringColor:"rgba(255,255,255,1)"}},Jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Qc={tight:-0.4,normal:-0.3,loose:-0.15},ed=({children:e,max:t=3,size:o="sm",spacing:n="normal",direction:r="ltr",overflowTooltip:a,style:l,className:s})=>{let g=A(),b=Kc[g],c=Jc(o),d=Math.round(c*Qc[n]),i=Math.max(2,Math.round(c*.06)),u=zn__default.default.Children.toArray(e),f=u.slice(0,t),m=Math.max(0,u.length-t),p=m>0?jsxRuntime.jsxs("div",{style:{width:c,height:c,borderRadius:"50%",backgroundColor:b.overflowBg,border:`${i}px solid ${b.overflowBorder}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:Math.max(9,Math.round(c*.3)),color:b.overflowText,flexShrink:0,boxSizing:"border-box",marginLeft:f.length>0?d:0,zIndex:r==="ltr"?0:u.length+1,position:"relative",userSelect:"none"},children:["+",m]}):null,R=p&&a?jsxRuntime.jsx(ht,{content:typeof a=="function"?a(m):a,children:p}):p;return jsxRuntime.jsxs("div",{className:s,style:{display:"inline-flex",alignItems:"center",flexDirection:r==="rtl"?"row-reverse":"row",...l},children:[f.map((z,h)=>{let S=zn__default.default.isValidElement(z),x=r==="ltr"?f.length-h:h+1,I=S?zn__default.default.cloneElement(z,{size:o,borderRadius:"50%",style:{...z.props.style||{},border:`${i}px solid ${b.ringColor}`,boxSizing:"border-box"}}):z;return jsxRuntime.jsx("div",{style:{position:"relative",zIndex:x,marginLeft:h>0?d:0,flexShrink:0,lineHeight:0},children:I},h)}),R]})};ed.displayName="AvatarStack";var Ba={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Hn=({onClick:e,title:t,color:o,children:n})=>jsxRuntime.jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:n}),$b=({label:e,onRemove:t,style:o,className:n})=>{let r=Ba[A()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:r.tagBg,border:`1px solid ${r.tagBorder}`,borderRadius:"4px",...o},className:n,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:r.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsxRuntime.jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Wb=({label:e,style:t,className:o})=>jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:o,children:e}),Ob=({label:e,onFilter:t,onEdit:o,onDelete:n,showActions:r=true,style:a,className:l})=>{let s=Ba[A()],g=t||o||n;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:s.itemBg,border:`1px solid ${s.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:s.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),r&&g&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(Hn,{onClick:t,title:"Filtrovat",color:s.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(Hn,{onClick:o,title:"Upravit",color:s.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),n&&jsxRuntime.jsx(Hn,{onClick:n,title:"Smazat",color:s.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var rd={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},Pa={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},Rt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ad=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,qe=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Nn=(e,t=1)=>{let o=new Date(e),n=o.getDay(),r=t===1?(n===0?-6:1)-n:-n;return o.setDate(o.getDate()+r),o.setHours(0,0,0,0),o},Ma=(e,t,o=1)=>{let n=new Date(e,t,1),r=Nn(n,o),a=[],l=new Date(r);for(let s=0;s<42;s++)a.push(new Date(l)),l.setDate(l.getDate()+1);return a},id=(e,t=1)=>{let o=Nn(e,t),n=[];for(let r=0;r<7;r++){let a=new Date(o);a.setDate(o.getDate()+r),n.push(a);}return n},Aa=(e,t,o)=>{if(t){let n=new Date(t);if(n.setHours(0,0,0,0),e<n)return true}if(o){let n=new Date(o);if(n.setHours(23,59,59,999),e>n)return true}return false};function sd(e,t){let o=[],n=new Map,r=qe(e[0]),a=qe(e[6]),l=t.filter(s=>{let g=qe(s.date);return (s.endDate?qe(s.endDate):g)>=r&&g<=a}).sort((s,g)=>{let b=qe(s.date).getTime(),c=qe(g.date).getTime();if(b!==c)return b-c;let d=s.endDate?qe(s.endDate).getTime():b;return (g.endDate?qe(g.endDate).getTime():c)-c-(d-b)});for(let s of l){let g=qe(s.date),b=s.endDate?qe(s.endDate):g,c=g<r?r:g,d=b>a?a:b,i=e.findIndex(z=>Rt(z,c)),u=e.findIndex(z=>Rt(z,d));if(i===-1||u===-1)continue;let f=u-i+1,m=g>=r,p=0;for(;;){n.has(p)||n.set(p,new Set);let z=n.get(p),h=true;for(let S=i;S<=u;S++)if(z.has(S)){h=false;break}if(h)break;p++;}let R=n.get(p);for(let z=i;z<=u;z++)R.add(z);o.push({event:s,row:p,startCol:i,span:f,isStart:m});}return o}var ld=({value:e,onChange:t,view:o="month",events:n=[],minDate:r,maxDate:a,style:l,className:s,firstDay:g=1,locale:b="cs",initialDate:c,t:d,today:i})=>{let u=Pa[b],f=c||e||i,[m,p]=zn.useState(()=>f.getMonth()),[R,z]=zn.useState(()=>f.getFullYear()),[h,S]=zn.useState(()=>Nn(f,g)),[x,I]=zn.useState(null),v=zn.useMemo(()=>o==="week"?id(h,g):Ma(R,m,g),[o,R,m,h,g]),E=zn.useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()-7),w}):p(F=>F===0?(z(w=>w-1),11):F-1);},[o]),y=zn.useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()+7),w}):p(F=>F===11?(z(w=>w+1),0):F+1);},[o]),D=F=>n.filter(w=>Rt(w.date,F)),B=o==="week"?(()=>{let F=new Date(h);return F.setDate(F.getDate()+6),h.getMonth()===F.getMonth()?`${h.getDate()}. \u2013 ${F.getDate()}. ${u.months[F.getMonth()]} ${F.getFullYear()}`:`${h.getDate()}. ${u.months[h.getMonth()].slice(0,3)} \u2013 ${F.getDate()}. ${u.months[F.getMonth()].slice(0,3)} ${F.getFullYear()}`})():`${u.months[m]} ${R}`,k={backgroundColor:d.background,border:`1px solid ${d.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,overflow:"hidden",userSelect:"none",...l},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:d.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:s,style:k,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:d.headerBg,borderBottom:`1px solid ${d.border}`},children:[jsxRuntime.jsx("button",{style:M,onClick:E,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:B}),jsxRuntime.jsx("button",{style:M,onClick:y,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:u.daysFull.map(F=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.textMuted,padding:"6px 0 8px"},children:F},F))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:v.map((F,w)=>{let T=Rt(F,i),L=e?Rt(F,e):false,N=o==="month"&&F.getMonth()!==m,C=Aa(F,r,a),P=F.toISOString(),H=x===P,W=D(F),V="transparent",q=N?d.outsideText:d.text,Z="2px solid transparent";return L?(V=d.selectedBg,q=d.selectedText):T?(V=d.todayBg,Z=`2px solid ${d.todayBorder}`):H&&!C&&(V=d.hover),C&&(q=d.textMuted),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsxRuntime.jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:V,color:q,fontSize:"13px",fontWeight:T?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:C?"default":"pointer",opacity:C?.4:1,transition:"background-color 0.12s ease"},disabled:C,onClick:()=>{!C&&t&&t(F);},onMouseEnter:()=>!C&&I(P),onMouseLeave:()=>I(null),children:F.getDate()}),W.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:W.slice(0,3).map(($,G)=>jsxRuntime.jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||d.eventDot}},G))})]},w)})})]})},Po=24,$t=2,cd=({value:e,onChange:t,events:o=[],onEventClick:n,showHeader:r=true,onNavigate:a,minDate:l,maxDate:s,style:g,className:b,firstDay:c=1,locale:d="cs",maxEventsPerDay:i=3,initialDate:u,t:f,today:m})=>{let p=Pa[d],R=u||e||m,[z,h]=zn.useState(()=>R.getMonth()),[S,x]=zn.useState(()=>R.getFullYear()),[I,v]=zn.useState(null),E=zn.useMemo(()=>Ma(S,z,c),[S,z,c]),y=zn.useMemo(()=>{let T=[];for(let L=0;L<E.length;L+=7)T.push(E.slice(L,L+7));return T},[E]),D=zn.useMemo(()=>{let T=y[y.length-1];return T&&T.every(L=>L.getMonth()!==z)?y.slice(0,-1):y},[y,z]),B=zn.useCallback(()=>{let T=z-1,L=S;T<0&&(T=11,L--),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),k=zn.useCallback(()=>{let T=z+1,L=S;T>11&&(T=0,L++),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),M=`${p.months[z]} ${S}`,w={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:b,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,userSelect:"none",...g},children:[r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:w,onClick:B,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16,weight:"bold"})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:M}),jsxRuntime.jsx("button",{style:w,onClick:k,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16,weight:"bold"})})]}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${f.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:f.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${f.cellBorder}`},children:p.days.map((T,L)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:f.text,padding:"10px 0",borderRight:L<6?`1px solid ${f.cellBorder}`:"none"},children:T},T))}),D.map((T,L)=>{let N=sd(T,o),C=N.length>0?Math.max(...N.map(Z=>Z.row))+1:0,P=T.map((Z,$)=>{let G=N.filter(X=>$>=X.startCol&&$<X.startCol+X.span);return Math.max(0,G.filter(X=>X.row>=i).length)}),W=Math.min(C,i)*(Po+$t)+$t,q=P.some(Z=>Z>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<D.length-1?`1px solid ${f.cellBorder}`:"none"},children:T.map((Z,$)=>{let G=Rt(Z,m),X=Z.getMonth()!==z,ee=e?Rt(Z,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:$<6?`1px solid ${f.cellBorder}`:"none",backgroundColor:G?f.todayCellBg:"transparent",minHeight:`${30+W+q}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Aa(Z,l,s)&&t(Z);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:G?700:400,color:X?f.outsideText:G?"#FC4F00":f.text},children:ee?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Z.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[Z.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${W}px`},children:N.filter(J=>J.startCol===$&&J.row<i).map((J,te)=>{let re=J.event.id||`${ad(J.event.date)}-${J.event.title}`,be=I===re,we=J.event.color||f.eventBarDefault,Y=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${$t+J.row*(Po+$t)}px`,left:"2px",width:J.span>1?`calc(${J.span*100}% - 4px)`:"calc(100% - 4px)",height:`${Po}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:n?"pointer":"default",zIndex:be?2:1,opacity:be?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:J.event.tooltip?void 0:J.event.title,onClick:j=>{j.stopPropagation(),n&&n(J.event);},onMouseEnter:()=>v(re),onMouseLeave:()=>v(null),children:[J.isStart&&J.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:J.event.emoji}),J.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:J.event.textColor||f.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:J.event.title})]},te);return J.event.tooltip?jsxRuntime.jsx(ht,{content:J.event.tooltip,children:Y},te):Y})}),P[$]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:f.moreText,textAlign:"center",padding:"2px 0"},children:["+",P[$]]})]},$)})},L)})]})]})},dd=e=>{let t=A(),o=rd[t],n=zn.useMemo(()=>{let r=new Date;return r.setHours(0,0,0,0),r},[]);return e.fullSize?jsxRuntime.jsx(cd,{...e,t:o,today:n}):jsxRuntime.jsx(ld,{...e,t:o,today:n})};dd.displayName="Calendar";var ud={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},fd=({items:e,orientation:t="vertical",style:o,className:n})=>{let r=A(),a=ud[r];return t==="horizontal"?jsxRuntime.jsx("div",{className:n,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:g?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[s>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),s===0&&jsxRuntime.jsx("div",{style:{flex:1}}),l.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0}}),!g&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),g&&jsxRuntime.jsx("div",{style:{flex:1}})]}),jsxRuntime.jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:l.title}),l.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:l.date}),l.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:l.description})]})]},s)})}):jsxRuntime.jsx("div",{className:n,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:g?0:"4px",minHeight:l.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[l.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!g&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:l.icon?"5px":0},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:l.title}),l.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:l.date})]}),l.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:l.description})]})]},s)})})};fd.displayName="Timeline";var gd={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},bd=({items:e,columns:t=1,striped:o=false,style:n,className:r})=>{let a=A(),l=gd[a],s=Math.max(1,Math.round(t)),g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,display:s>1?"grid":"block",gridTemplateColumns:s>1?`repeat(${s}, 1fr)`:void 0,gap:s>1?"0 24px":void 0,...n},b=u=>s<=1?u:Math.floor(u/s),c=u=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${l.border}`,backgroundColor:o&&b(u)%2===1?l.stripedBg:l.background}),d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:l.textMuted,flexShrink:0,letterSpacing:"0.01em"},i={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:r,style:g,children:e.map((u,f)=>jsxRuntime.jsxs("div",{style:c(f),children:[jsxRuntime.jsx("span",{style:d,children:u.label}),jsxRuntime.jsx("span",{style:i,children:u.value})]},f))})};bd.displayName="DataList";var yd={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},La=({node:e,depth:t,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l})=>{let s=e.children&&e.children.length>0,g=o.has(e.id),b=n===e.id,[c,d]=zn.useState(false),i="transparent";return b?i=l.selectedBg:c&&(i=l.hover),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:i,borderLeft:b?`2px solid ${l.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),onClick:()=>a?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:u=>{u.stopPropagation(),s&&r(e.id);},children:s&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:g?l.iconExpanded:l.iconColor,style:{transform:g?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:b?l.selectedBorder:l.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:b?500:400,color:b?l.selectedText:l.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),s&&g&&jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:l.line}}),e.children.map(u=>jsxRuntime.jsx(La,{node:u,depth:t+1,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l},u.id))]})]})},vd=({data:e,onSelect:t,selectedId:o,defaultExpanded:n=[],style:r,className:a})=>{let l=A(),s=yd[l],[g,b]=zn.useState(()=>new Set(n)),c=zn.useCallback(i=>{b(u=>{let f=new Set(u);return f.has(i)?f.delete(i):f.add(i),f});},[]),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,...r};return jsxRuntime.jsx("div",{className:a,style:d,role:"tree",children:e.map(i=>jsxRuntime.jsx(La,{node:i,depth:0,expanded:g,selectedId:o,onToggle:c,onSelect:t,t:s},i.id))})};vd.displayName="Tree";var kd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Cd={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},wd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},On=false,Rd=()=>{if(On||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){On=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
13
13
  @keyframes sm-statusbadge-pulse {
14
14
  0% { transform: scale(1); opacity: 1; }
15
15
  50% { transform: scale(1.8); opacity: 0; }
16
16
  100% { transform: scale(1.8); opacity: 0; }
17
17
  }
18
- `,document.head.appendChild(t),Er=true;},Bd=({status:e,label:t,size:o="md",pulse:r=false,color:n,style:a,className:s})=>{let i=P(),u=Rd[i],c=Fd[o],d=n||Td[e]||"#888888";return r&&Ed(),jsxRuntime.jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:c.gap,...a},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${c.dot}px`,height:`${c.dot}px`,flexShrink:0},children:[r&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:d,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:d}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:400,color:u.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Bd.displayName="StatusBadge";var Id={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},vo=180,Pd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},zr=({open:e,onClose:t,title:o,children:r,footer:n,size:a="md",closeOnOverlay:s=true,closeOnEscape:i=true,showClose:u=true,className:c,style:d})=>{let p=P(),l=Id[p],x=Pd[a],[b,m]=ur.useState(false),[f,C]=ur.useState("idle"),w=ur.useRef(null),y=ur.useRef(null);ur.useEffect(()=>{if(e){y.current=document.activeElement,m(true),C("opening");let D=setTimeout(()=>{C("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(D)}else if(b){C("closing");let D=setTimeout(()=>{m(false),C("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},vo);return ()=>clearTimeout(D)}},[e]),ur.useEffect(()=>()=>{document.body.style.overflow="";},[]),ur.useEffect(()=>{if(!b||!i)return;let D=k=>{k.key==="Escape"&&t();};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[b,i,t]),ur.useEffect(()=>{if(!b||!w.current)return;let D=w.current,k='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',h=F=>{if(F.key!=="Tab")return;let S=D.querySelectorAll(k);if(S.length===0){F.preventDefault();return}let I=S[0],L=S[S.length-1];F.shiftKey?document.activeElement===I&&(F.preventDefault(),L.focus()):document.activeElement===L&&(F.preventDefault(),I.focus());};return document.addEventListener("keydown",h),D.focus(),()=>document.removeEventListener("keydown",h)},[b]);let g=()=>{let D={transition:`opacity ${vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...D,opacity:0,transform:"scale(0.95)"}:f==="open"?{...D,opacity:1,transform:"scale(1)"}:{...D,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!b)return null;let v=a==="fullscreen",M=()=>{let D={transition:`opacity ${vo}ms ease`};return f==="opening"||f==="idle"?{...D,opacity:0}:f==="open"?{...D,opacity:1}:{...D,opacity:0}};return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:v?"stretch":"center",justifyContent:"center",...f==="closing"?{pointerEvents:"none"}:{}},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...M()},onClick:s?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:x.width,maxWidth:v?void 0:"calc(100vw - 32px)",maxHeight:v?"100vh":x.maxHeight,backgroundColor:l.cardBg,border:v?"none":`1px solid ${l.cardBorder}`,borderRadius:v?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...g(),...d},children:[(o||u)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:o}),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:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:D=>{D.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:D=>{D.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:r}),n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:n})]})]}),document.body)};zr.displayName="Modal";var Ld={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Pr=220,Nd=({open:e,onClose:t,position:o="right",title:r,children:n,footer:a,width:s=400,showClose:i=true,closeOnOverlay:u=true,className:c,style:d})=>{let p=P(),l=Ld[p],[x,b]=ur.useState(false),[m,f]=ur.useState("idle"),C=ur.useRef(null),w=typeof s=="number"?`${s}px`:s;ur.useEffect(()=>{if(e){b(true),f("opening");let v=setTimeout(()=>{f("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(x){f("closing");let v=setTimeout(()=>{b(false),f("idle"),document.body.style.overflow="";},Pr);return ()=>clearTimeout(v)}},[e]),ur.useEffect(()=>()=>{document.body.style.overflow="";},[]),ur.useEffect(()=>{if(!x)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[x,t]);let y=v=>{let M=o==="right"?"100%":"-100%";return v==="opening"||v==="idle"?M:v==="open"?"0%":M},g=()=>m==="open"?1:0;return x?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:g(),transition:`opacity ${Pr}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:u?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r,className:c,style:{position:"absolute",top:0,bottom:0,[o]:0,width:w,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:l.panelBg,borderLeft:o==="right"?`1px solid ${l.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${l.panelBorder}`:"none",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(m)})`,transition:`transform ${Pr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...d},children:[(r||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:n}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:a})]})]}),document.body):null};Nd.displayName="Drawer";var Od={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},Hr=180,Yd=({open:e,onClose:t,children:o,side:r="bottom",title:n,showClose:a=true,style:s,className:i})=>{let u=P(),c=Od[u],[d,p]=ur.useState(false),[l,x]=ur.useState("idle"),b=ur.useRef(null);ur.useEffect(()=>{if(e){p(true),x("opening");let v=setTimeout(()=>{x("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(d){x("closing");let v=setTimeout(()=>{p(false),x("idle"),document.body.style.overflow="";},Hr);return ()=>clearTimeout(v)}},[e]),ur.useEffect(()=>()=>{document.body.style.overflow="";},[]),ur.useEffect(()=>{if(!d)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[d,t]);let C=v=>{let M={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return v==="opening"||v==="idle"?M[r]:v==="open"?"translate(0, 0)":M[r]},w=()=>l==="open"?1:0,y={};r==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):r==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):r==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):r==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let g={};return r==="bottom"?g.borderTop=`1px solid ${c.panelBorder}`:r==="top"?g.borderBottom=`1px solid ${c.panelBorder}`:r==="right"?g.borderLeft=`1px solid ${c.panelBorder}`:r==="left"&&(g.borderRight=`1px solid ${c.panelBorder}`),d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:w(),transition:`opacity ${Hr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":n,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:C(l),transition:`transform ${Hr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...g,...s},children:[r==="bottom"&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsxRuntime.jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:c.handleBg}})}),(n||a)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[n&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:n}),a&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:c.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:o})]})]}),document.body):null};Yd.displayName="Sheet";var Ud={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},_d=({items:e,separator:t="/",className:o,style:r})=>{let n=P(),a=Ud[n];return jsxRuntime.jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...r},children:e.map((s,i)=>{let u=i===e.length-1;return jsxRuntime.jsxs(ur__default.default.Fragment,{children:[i>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),u?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[s.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]}):jsxRuntime.jsxs("a",{href:s.href??"#",onClick:s.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:c=>{c.currentTarget.style.color=a.linkHover;},onMouseLeave:c=>{c.currentTarget.style.color=a.text;},children:[s.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]})]},i)})})};_d.displayName="Breadcrumb";var jd={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},qd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Kd(e,t,o,r,n){let a=[],s=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&a.push(1),s>2&&(r&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let u=s;u<=i;u++)a.includes(u)||a.push(u);return i<t-1&&a.push("ellipsis-end"),(n||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var Jd=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:n=true,showLast:a=true,size:s="md",className:i,style:u})=>{let c=P(),d=jd[c],p=qd[s];if(t<=0)return null;let l=Kd(e,t,r,n,a),x={display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.size,height:p.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...u},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...x,color:e<=1?d.disabledText:d.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:b=>{e>1&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:p.iconSize,color:e<=1?d.disabledText:d.text})}),l.map((b,m)=>{if(b==="ellipsis-start"||b==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...x,cursor:"default",color:d.text},"aria-hidden":"true",children:"..."},b);let f=b===e;return jsxRuntime.jsx("button",{type:"button","aria-current":f?"page":void 0,"aria-label":`Str\xE1nka ${b}`,onClick:()=>o(b),style:{...x,color:f?d.activeText:d.text,backgroundColor:f?d.activeBg:"transparent",fontWeight:f?600:500},onMouseEnter:C=>{f||(C.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:C=>{f||(C.currentTarget.style.backgroundColor="transparent");},children:b},b)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...x,color:e>=t?d.disabledText:d.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:b=>{e<t&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:p.iconSize,color:e>=t?d.disabledText:d.text})})]})};Jd.displayName="Pagination";var oc={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},Wr=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:n,className:a,style:s})=>{let i=P(),u=oc[i],[c,d]=ur.useState(null),p=o==="horizontal",l=32,x=b=>!r||!n?false:r==="completed"?b<=t:true;return jsxRuntime.jsx("div",{className:a,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...s},children:e.map((b,m)=>{let f=m<t,C=m===t,w=m>t,y=m===e.length-1,g=x(m),v=c===m&&g,M=f?u.completedBg:v?u.hoverBg:u.activeBg,D=f?u.completedBg:C||v?u.activeBorder:u.futureBorder,k=f?u.completedText:C||v?u.activeText:u.futureText,h=v?u.activeText:w?u.labelFuture:u.labelText,F=w?u.descFuture:u.descText,S=f?u.lineCompleted:u.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:g?"pointer":"default"},onClick:()=>g&&n?.(m),onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M,border:`2px solid ${D}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:f?jsxRuntime.jsx(react.CheckIcon,{size:14,color:u.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:k,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!y&&jsxRuntime.jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:S,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:S,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||y?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:C||v?600:500,color:h,lineHeight:"normal",transition:"color 0.2s ease"},children:b.label}),b.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:b.description})]})]},m)})})};Wr.displayName="Stepper";var ic=({size:e=16,color:t})=>{let[o,r]=ur.useState(0),n=ur.useRef(void 0),a=ur.useRef(void 0);return ur.useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},lc={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},dc=({steps:e,activeStep:t,onStepChange:o,orientation:r="horizontal",showNavigation:n=true,finishLabel:a="Dokon\u010Dit",nextLabel:s="Dal\u0161\xED",prevLabel:i="P\u0159edchoz\xED",style:u,className:c})=>{let d=P(),p=lc[d],[l,x]=ur.useState(false),b=t<=0,m=t>=e.length-1,f=Math.max(0,Math.min(t,e.length-1)),C=r==="horizontal",w=e.map(h=>({label:h.label,description:h.description})),y=ur.useCallback(async()=>{if(l)return;let h=e[f];if(h.validate){x(true);try{if(!await h.validate()){x(!1);return}}catch{x(false);return}x(false);}o(f+1);},[l,e,f,o]),g=ur.useCallback(()=>{f>0&&o(f-1);},[f,o]),v=ur.useCallback(h=>{h<f&&o(h);},[f,o]);if(e.length===0)return null;let M={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},D={...M,backgroundColor:l?p.buttonDisabledBg:p.buttonPrimary,color:l?p.buttonDisabledText:p.buttonPrimaryText,border:"1px solid transparent",cursor:l?"not-allowed":"pointer"},k={...M,backgroundColor:p.buttonSecondaryBg,color:p.buttonSecondaryText,border:`1px solid ${p.buttonSecondaryBorder}`};return jsxRuntime.jsxs("div",{className:c,style:{display:"flex",flexDirection:C?"column":"row",gap:C?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...u},children:[jsxRuntime.jsx("div",{style:{flexShrink:0,...C?{}:{width:"240px"}},children:jsxRuntime.jsx(Wr,{steps:w,activeStep:f,orientation:r,clickable:"completed",onStepClick:v})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsxRuntime.jsx("div",{style:{flex:1,padding:C?"24px 0":"0"},children:e[f]?.content}),n&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${p.navBorder}`,marginTop:"8px"},children:[jsxRuntime.jsx("div",{children:!b&&jsxRuntime.jsxs("button",{type:"button",style:k,onClick:g,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonSecondaryHover);},onMouseLeave:h=>{h.currentTarget.style.backgroundColor=p.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.CaretLeft,{size:14}),i]})}),jsxRuntime.jsx("button",{type:"button",style:D,onClick:y,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimaryHover);},onMouseLeave:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimary);},children:l?jsxRuntime.jsx(ic,{size:14,color:p.buttonDisabledText}):m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react.Check,{size:14}),a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s,jsxRuntime.jsx(react.CaretRight,{size:14})]})})]})]})]})};dc.displayName="FormWizard";var pc={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Vr=180,fc=({trigger:e,items:t,position:o="bottom-left",className:r,style:n})=>{let a=P(),s=pc[a],i=ur.useRef(null),u=ur.useRef(null),[c,d]=ur.useState(false),[p,l]=ur.useState(false),[x,b]=ur.useState("idle"),[m,f]=ur.useState({top:0,left:0,openAbove:false}),[C,w]=ur.useState(-1),y=ur.useCallback(()=>{d(true),l(true),b("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));});},[]),g=ur.useCallback(()=>{d(false),b("closing");let k=setTimeout(()=>{l(false),b("idle");},Vr);return ()=>clearTimeout(k)},[]),v=ur.useCallback(()=>{if(!i.current)return;let k=i.current.getBoundingClientRect(),h=u.current?.offsetHeight??200,F=u.current?.offsetWidth??200,S=window.innerHeight-k.bottom-6,I=k.top-6,L=S<h&&I>S,R;o==="bottom-right"?(R=k.right-F,R<4&&(R=4)):(R=k.left,R+F>window.innerWidth-4&&(R=window.innerWidth-F-4)),f({top:L?k.top-6:k.bottom+6,left:R,openAbove:L});},[o]);ur.useEffect(()=>{if(p)return v(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[p,v]),ur.useEffect(()=>{if(!c)return;let k=h=>{let F=h.target,S=i.current?.contains(F),I=u.current?.contains(F);!S&&!I&&g();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,g]),ur.useEffect(()=>{if(!c)return;let k=t.map((F,S)=>({item:F,idx:S})).filter(({item:F})=>!F.divider&&!F.disabled),h=F=>{switch(F.key){case "Escape":F.preventDefault(),g();break;case "ArrowDown":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S<k.length-1?S+1:0;w(k[I]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S>0?S-1:k.length-1;w(k[I]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),C>=0){let S=t[C];S&&!S.divider&&!S.disabled&&(S.onClick?.(),g());}break}};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[c,C,t,g]);let M=()=>{let k=m.openAbove,h=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",S={transition:`opacity ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...S,opacity:0,transform:`${h} scale(0.97)`}:x==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},D=p?reactDom.createPortal(jsxRuntime.jsx("div",{ref:u,role:"menu",style:{position:"fixed",...m.openAbove?{bottom:window.innerHeight-m.top,left:m.left}:{top:m.top,left:m.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:m.openAbove?"bottom center":"top center",...M()},children:t.map((k,h)=>{if(k.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${h>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},h);if(k.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},h);let F=k.danger,S=k.disabled,I=h===C,L=typeof k.label!="string",R=L&&!k.onClick,T=S?s.textDisabled:F?s.dangerText:s.text,E=F?s.dangerHover:s.hoverBg;return R?jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},h):jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":S,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:T,backgroundColor:I?E:"transparent",cursor:S?"not-allowed":"pointer",opacity:S?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{S||(k.onClick?.(),g());},onMouseEnter:()=>{S||w(h);},onMouseLeave:()=>w(-1),children:[k.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label}):k.label]},h)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...n},children:[jsxRuntime.jsx("div",{ref:i,onClick:()=>{c?g():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),D]})};fc.displayName="DropdownMenu";var gc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Nb=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:n,style:a,className:s,onMouseEnter:i,onMouseLeave:u,target:c,rel:d,...p})=>{let l=P(),x=gc[l],[b,m]=ur.useState(false),f=e==="danger"?x.danger:x.default,C={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:b?x.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:f,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},w=r&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:C,className:s,target:c,rel:d??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{m(true),i?.(y);},onMouseLeave:y=>{m(false),u?.(y);},...p,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,w]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w,n]})})};var hc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},ko=180,yc=({open:e,onClose:t,value:o,onChange:r,results:n,loading:a=false,placeholder:s="Hledat...",className:i,style:u})=>{let c=P(),d=hc[c],[p,l]=ur.useState(false),[x,b]=ur.useState("idle"),[m,f]=ur.useState(-1),C=ur.useRef(null),w=ur.useRef(null);ur.useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let F=document.createElement("style");F.id=h,F.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(F);},[]);let y=n;ur.useEffect(()=>{if(e){l(true),b("opening"),f(-1);let h=setTimeout(()=>{b("open");},10);return ()=>clearTimeout(h)}else if(p){b("closing");let h=setTimeout(()=>{l(false),b("idle");},ko);return ()=>clearTimeout(h)}},[e]),ur.useEffect(()=>{p&&x==="open"&&C.current?.focus();},[p,x]),ur.useEffect(()=>{f(-1);},[n]),ur.useEffect(()=>{if(m<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${m}"]`);h&&h.scrollIntoView({block:"nearest"});},[m]);let g=ur.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),f(F=>{let S=F+1;return S>=y.length?0:S});break}case "ArrowUp":{h.preventDefault(),f(F=>{let S=F-1;return S<0?y.length-1:S});break}case "Enter":{h.preventDefault(),m>=0&&m<y.length&&(y[m].onSelect(),t());break}}},[y,m,t]),v=[],M=new Map;y.forEach((h,F)=>{let S=M.get(h.category);S||(S=[],M.set(h.category,S),v.push({category:h.category,items:S})),S.push({...h,flatIndex:F});});let D=()=>{let h={transition:`opacity ${ko}ms ease`};return x==="opening"||x==="idle"?{...h,opacity:0}:x==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},k=()=>{let h={transition:`opacity ${ko}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ko}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:x==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return p?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:g,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:d.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:d.cardBg,border:`1px solid ${d.cardBorder}`,borderRadius:"16px",boxShadow:d.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...k(),...u},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${d.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:18,color:d.textSecondary}),jsxRuntime.jsx("input",{ref:C,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:s,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:d.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:d.kbdBg,border:`1px solid ${d.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:d.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsxRuntime.jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(h=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsxRuntime.jsx(xe,{variant:"rect",width:28,height:28}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsxRuntime.jsx(xe,{variant:"text",width:`${50+h%3*15}%`,height:14}),jsxRuntime.jsx(xe,{variant:"text",width:`${30+h%2*20}%`,height:11})]})]},h))}):v.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):v.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.categoryText,userSelect:"none"},children:h.category}),h.items.map(F=>{let S=F.flatIndex===m;return jsxRuntime.jsxs("div",{role:"option","aria-selected":S,"data-spotlight-index":F.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?d.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{F.onSelect(),t();},onMouseEnter:()=>f(F.flatIndex),onMouseLeave:()=>f(-1),children:[F.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?d.activeBg:d.hoverBg,color:d.text,transition:"background-color 0.1s ease"},children:F.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:d.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:F.label}),F.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:F.description})]})]},F.id)})]},h.category))})]})]}),document.body):null};yc.displayName="Spotlight";var Cc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},wo=180,wc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let s=P(),i=Cc[s],[u,c]=ur.useState(false),[d,p]=ur.useState("idle"),[l,x]=ur.useState(""),[b,m]=ur.useState(-1),f=ur.useRef(null),C=ur.useRef(null);ur.useEffect(()=>{let k="sm-commandmenu-scrollbar-hide";if(document.getElementById(k))return;let h=document.createElement("style");h.id=k,h.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(h);},[]);let w=o.map(k=>({...k,items:k.items.filter(h=>h.label.toLowerCase().includes(l.toLowerCase())||h.description?.toLowerCase().includes(l.toLowerCase()))})).filter(k=>k.items.length>0),y=w.flatMap(k=>k.items);ur.useEffect(()=>{if(e){x(""),m(-1),c(true),p("opening");let k=setTimeout(()=>{p("open");},10);return ()=>clearTimeout(k)}else if(u){p("closing");let k=setTimeout(()=>{c(false),p("idle");},wo);return ()=>clearTimeout(k)}},[e]),ur.useEffect(()=>{u&&d==="open"&&f.current?.focus();},[u,d]),ur.useEffect(()=>{m(-1);},[l]),ur.useEffect(()=>{if(b<0||!C.current)return;let k=C.current.querySelector(`[data-cmd-index="${b}"]`);k&&k.scrollIntoView({block:"nearest"});},[b]);let g=ur.useCallback(k=>{switch(k.key){case "Escape":k.preventDefault(),t();break;case "ArrowDown":{k.preventDefault(),m(h=>{let F=h+1;return F>=y.length?0:F});break}case "ArrowUp":{k.preventDefault(),m(h=>{let F=h-1;return F<0?y.length-1:F});break}case "Enter":{k.preventDefault(),b>=0&&b<y.length&&(y[b].onSelect(),t());break}}},[y,b,t]),v=()=>{let k={transition:`opacity ${wo}ms ease`};return d==="opening"||d==="idle"?{...k,opacity:0}:d==="open"?{...k,opacity:1}:{...k,opacity:0,pointerEvents:"none"}},M=()=>{let k={transition:`opacity ${wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return d==="opening"||d==="idle"?{...k,opacity:0,transform:"scale(0.95) translateY(-10px)"}:d==="open"?{...k,opacity:1,transform:"scale(1) translateY(0)"}:{...k,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},D=0;return u?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:g,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...M(),...n},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsxRuntime.jsx("input",{ref:f,type:"text",value:l,onChange:k=>x(k.target.value),placeholder:r,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:C,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):w.map(k=>jsxRuntime.jsxs("div",{role:"group","aria-label":k.label,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.categoryText,userSelect:"none"},children:k.label}),k.items.map(h=>{let F=D++,S=F===b;return jsxRuntime.jsxs("div",{role:"option","aria-selected":S,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{h.onSelect(),t();},onMouseEnter:()=>m(F),onMouseLeave:()=>m(-1),children:[h.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:h.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label}),h.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:h.description})]}),h.shortcut&&jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:h.shortcut})]},h.id)})]},k.label))})]})]}),document.body):null};wc.displayName="CommandMenu";var Rc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},_r=250,Tc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:n=64,style:a,className:s})=>{let i=P(),u=Rc[i],c=t?n:r;return jsxRuntime.jsx("aside",{className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:`${c}px`,minWidth:`${c}px`,height:"100%",backgroundColor:u.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${u.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Tc.displayName="AppSidebar";var zc={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},Ic=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:n,onExpandedChange:a,onClick:s,children:i,collapsed:u=false,disabled:c=false,style:d,className:p})=>{let l=P(),x=zc[l],b=ur__default.default.Children.count(i)>0,m=n!==void 0,[f,C]=ur.useState(r),w=m?n:f,[y,g]=ur.useState(false),v=ur.useRef(null),[M,D]=ur.useState(0);ur.useEffect(()=>{v.current&&D(v.current.scrollHeight);},[i,w]);let k=ur.useCallback(()=>{m?a?.(!n):C(L=>{let R=!L;return a?.(R),R});},[m,n,a]),h=ur.useCallback(()=>{c||(b&&k(),s?.());},[c,b,k,s]),F=c?`${x.text}66`:o?x.textActive:y?x.textHover:x.text,S=c?`${x.icon}66`:o?x.iconActive:y?x.iconHover:x.icon,I=o?x.activeBg:y&&!c?x.hoverBg:"transparent";return u?jsxRuntime.jsx("button",{type:"button",onClick:h,disabled:c,title:e,className:p,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:S,cursor:c?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...d},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxRuntime.jsxs("div",{className:p,style:d,children:[jsxRuntime.jsxs("button",{type:"button",onClick:h,disabled:c,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:F,cursor:c?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),b&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:y?x.chevronHover:x.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:w?"rotate(0deg)":"rotate(-90deg)"}})]}),b&&jsxRuntime.jsx("div",{ref:v,style:{overflow:"hidden",maxHeight:w?`${M}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:i})})]})};Ic.displayName="SidebarItem";var Pc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Mc=({logo:e,children:t,actions:o,sticky:r=true,glass:n=true,style:a,className:s})=>{let i=P(),u=Pc[i];return jsxRuntime.jsxs("header",{className:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?u.background:u.backgroundSolid,borderBottom:`1px solid ${u.border}`,boxShadow:u.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsxRuntime.jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Mc.displayName="Navbar";var Wc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Zc={info: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"})},Ha=({variant:e="info",title:t,content:o,icon:r,onClose:n,role:a="alert",style:s,className:i})=>{let u=P(),c=Wc[u],{border:d,background:p}=c[e],l=r??Zc[e];return 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:p,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...s},className:i,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:c.iconColor},children:l}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:c.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:c.textSecondary,lineHeight:"normal"},children:o})]})]}),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:c.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var La=3,Uc=.06,Na=12,To=320,$a=ur.createContext(null),_c=0,Xc=()=>`sm-toast-${++_c}-${Date.now()}`,vx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:n=16,maxToasts:a=5,duration:s=4e3})=>{let[i,u]=ur.useState([]),c=ur.useCallback(l=>{u(x=>x.map(b=>b.id===l?{...b,lifecycle:"leaving"}:b)),setTimeout(()=>{u(x=>x.filter(b=>b.id!==l));},To+100);},[]),d=ur.useCallback(l=>{let x=Xc(),b=l.duration??s,m={id:x,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:b,lifecycle:"entering",height:0};return u(f=>{let C=[...f,m];return C.length>a?C.slice(C.length-a):C}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u(f=>f.map(C=>C.id===x?{...C,lifecycle:"visible"}:C));});}),b>0&&setTimeout(()=>c(x),b),x},[a,c,s]),p=ur.useCallback((l,x)=>{u(b=>b.map(m=>m.id===l&&m.height!==x?{...m,height:x}:m));},[]);return jsxRuntime.jsxs($a.Provider,{value:{toast:d,dismiss:c},children:[e,i.length>0&&jsxRuntime.jsx(jc,{toasts:i,position:t,toastWidth:o,gap:r,offset:n,onDismiss:c,onHeightMeasured:p})]})},Gc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:n,isBottom:a,appeared:s,toastWidth:i,onDismiss:u,onHeightMeasured:c})=>{let d=t.lifecycle==="leaving",p=!s||d,l=n?1:Math.max(.7,1-o*Uc),x=n?0:o*Na,b=a?-x:x,f=p?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${b}px)`,C=p?0:n?1:Math.max(.4,1-o*.18),w=!n&&o>=La,y=r-o,g=ur.useCallback(v=>{v&&t.height===0&&c(t.id,v.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:g,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:f,opacity:w?0:C,zIndex:y,transition:[`transform ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${To}ms ease`].join(", "),pointerEvents:o===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(Ha,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>u(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},jc=({toasts:e,position:t,toastWidth:o,gap:r,offset:n,onDismiss:a,onHeightMeasured:s})=>{let[i,u]=ur.useState(false),[c,d]=ur.useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),x=t.endsWith("center");ur.useEffect(()=>{d(g=>{let v=new Set(g);return e.forEach(M=>{M.lifecycle==="visible"&&v.add(M.id);}),[...v].forEach(M=>{e.find(D=>D.id===M)||v.delete(M);}),v});},[e]);let f=(e[e.length-1]?.height||80)+Math.min(e.length-1,La-1)*Na,C=e.reduce((g,v)=>g+(v.height||80),0)+Math.max(0,e.length-1)*r,w=i?C:f,y=x?{left:"50%",transform:"translateX(-50%)"}:l?{right:n}:{left:n};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${n*2}px)`,height:w,...p?{bottom:n}:{top:n},...y,transition:`height ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),"aria-live":"polite","aria-atomic":"false",children:e.map((g,v)=>{let M=e.length-1-v,D=c.has(g.id),k=g.lifecycle==="leaving",h=!D||k,F;if(i&&!h){let I=e.slice(v+1).reduce((R,T)=>R+(T.height||80)+r,0);F=`translateY(${p?-I:I}px)`;}return jsxRuntime.jsx(Gc,{item:g,depthIndex:M,stackSize:e.length,expanded:i,isBottom:p,appeared:D,toastWidth:o,onDismiss:a,onHeightMeasured:s,expandedTransformOverride:F},g.id)})})},Sx=()=>{let e=ur.useContext($a);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var rp={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},np={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},Ex=({variant:e="info",title:t,children:o,icon:r,closable:n=false,onClose:a,className:s,style:i})=>{let u=P(),c=rp[u],d=np[e],[p,l]=ur.useState(true);if(!p)return null;let x=u==="light",b=x?d.borderLight:d.border,m=x?d.backgroundLight:d.background,f=x?d.iconColorLight:d.iconColor,w=r??{info:jsxRuntime.jsx(react.Info,{size:24,color:f}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:f}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:f}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:f})}[e],y=()=>{l(false),a?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${b}`,borderRadius:"4px",boxSizing:"border-box",...i},className:s,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:o})]}),n&&jsxRuntime.jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var pp={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},fp={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},up={info:jsxRuntime.jsx(react.Info,{size:20}),success:jsxRuntime.jsx(react.CheckCircle,{size:20}),warning:jsxRuntime.jsx(react.Warning,{size:20}),error:jsxRuntime.jsx(react.XCircle,{size:20})},gp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,position:s="top",sticky:i=false,style:u,className:c})=>{let d=P(),p=pp[d],l=fp[e],[x,b]=ur.useState(true);if(!x||!t&&!o)return null;let m=d==="light",f=m?l.accentLight:l.accent,C=i?p.glassBg:m?l.bgLight:l.bg,w=m?l.iconLight:l.icon,y=a??up[e],g=()=>{b(false),n?.();};return jsxRuntime.jsxs("div",{role:"alert",className:c,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:C,borderTop:s==="bottom"?`3px solid ${f}`:"none",borderBottom:s==="top"?`3px solid ${f}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...i?{position:"sticky",[s]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${p.glassBorder}`,borderRight:`1px solid ${p.glassBorder}`}:{},...u},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:w,marginTop:"1px"},children:y}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsxRuntime.jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),r&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:g,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:p.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=p.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=p.closeColor;},children:jsxRuntime.jsx(react.X,{size:16})})]})};gp.displayName="Banner";var Sp={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},kp={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},Cp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,action:s,style:i,className:u})=>{let c=P(),d=Sp[c],p=kp[e],[l,x]=ur.useState(true);if(!l)return null;let b=c==="light",m=b?p.bgLight:p.bg,f=b?p.accentLight:p.accent,w=a??{info:jsxRuntime.jsx(react.Info,{size:20,color:f}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:f}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:f}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:f})}[e],y=()=>{x(false),n?.();};return jsxRuntime.jsxs("div",{role:"status",className:u,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${d.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:d.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:d.bodyText},children:o})]}),s&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),r&&jsxRuntime.jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:d.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};Cp.displayName="Notification";var Va={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},wp={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Ya="sm-ui-progress-stripes",Rp=()=>{if(typeof document>"u"||document.getElementById(Ya))return;let e=document.createElement("style");e.id=Ya,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Vx=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:n,striped:a=false,animated:s=false,className:i,style:u})=>{let c=P(),d=Va[c],p=wp[t],l=Math.max(0,Math.min(100,e));a&&s&&Rp();let x=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...u},className:i,children:[(n||r)&&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:d.label,userSelect:"none"},children:n}),r&&jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:d.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsxRuntime.jsx("div",{style:{width:"100%",height:p.height,backgroundColor:d.trackBg,borderRadius:p.height/2,overflow:"hidden"},children:jsxRuntime.jsx("div",{style:{width:`${l}%`,height:"100%",backgroundColor:o,borderRadius:p.height/2,transition:"width 0.3s ease",...x}})})]})},Ux=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:n=false,label:a,className:s,style:i})=>{let u=P(),c=Va[u],d=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,x=l-d/100*l;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},className:s,children:[jsxRuntime.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:c.trackBg,strokeWidth:o}),jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:x,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(d),"%"]}),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 Ep={sm:16,md:24,lg:40},qx=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:n})=>{let[a,s]=ur.useState(0),i=ur.useRef(void 0),u=ur.useRef(void 0);ur.useEffect(()=>{let p=l=>{u.current===void 0&&(u.current=l),s((l-u.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let c=typeof e=="number"?e:Ep[e]??24,d=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:r,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:d,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:d,strokeWidth:"2",strokeLinecap:"round"})]})})};var Dp={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},zp=({open:e,onConfirm:t,onCancel:o,title:r,description:n,confirmLabel:a="Potvrdit",cancelLabel:s="Zru\u0161it",variant:i="default",loading:u=false,style:c,className:d})=>{let p=P(),l=Dp[p],[x,b]=ur.useState(false),[m,f]=ur.useState(false),C=i==="danger",w=C?m?l.dangerHover:l.dangerBg:m?l.confirmHover:l.confirmBg,y=C?l.dangerText:l.confirmText;return jsxRuntime.jsx(zr,{open:e,onClose:o,title:r,size:"sm",className:d,style:c,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:x?l.cancelHover:l.cancelBg,border:`1px solid ${l.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:s}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:u,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:w,border:"none",borderRadius:"6px",cursor:u?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:u?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:u?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:n})})};zp.displayName="ConfirmDialog";var Np={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},$p={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Wp=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},Zp=({text:e,children:t,size:o="md",variant:r="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:s,style:i,className:u})=>{let c=P(),d=Np[c],p=$p[o],[l,x]=ur.useState(false),[b,m]=ur.useState(false),f=ur.useRef(null),C=ur.useCallback(async()=>{await Wp(e)&&(x(true),s?.(),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{x(false),f.current=null;},2e3));},[e,s]),w=l?d.successColor:b?d.iconHover:d.iconColor,y=l?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:w,...i},children:t}):r==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:w,...i},children:jsxRuntime.jsx(y,{size:p.iconSize,color:w})}):jsxRuntime.jsxs("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:b?d.buttonHover:d.buttonBg,border:`1px solid ${d.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,color:l?d.successColor:d.buttonText,lineHeight:"normal",...i},children:[jsxRuntime.jsx(y,{size:p.iconSize,color:l?d.successColor:d.buttonText}),l?a:n]})};Zp.displayName="CopyButton";var Yp={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},bm=({orientation:e="horizontal",label:t,className:o,style:r})=>{let n=P(),a=Yp[n];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...r}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...r}})};var Up={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},_p={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},hm=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:n=false,fullWidth:a=false,children:s,className:i,style:u})=>jsxRuntime.jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Up[o],justifyContent:_p[r],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...u},children:s});var Gp={sm:640,md:768,lg:1024,xl:1280},Sm=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:n,style:a})=>{let s=typeof e=="number"?e:Gp[e],i=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:n,style:{maxWidth:`${s}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:r})};var ef={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ja="smDragListPulse",tf=`@keyframes ${ja}{0%,100%{opacity:1}50%{opacity:0.5}}`;function en(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=en(o.children,t);if(r)return r}}return null}function Jr(e,t,o){let r=en(e,t);if(!r||!r.children)return false;for(let n of r.children)if(n.id===o||Jr([n],n.id,o))return true;return false}function qa(e,t){let o=null;return [e.reduce((n,a)=>{if(a.id===t)return o=a,n;if(a.children){let[s,i]=qa(a.children,t);i&&(o=i),n.push({...a,children:s.length>0?s:void 0});}else n.push(a);return n},[]),o]}function Qr(e,t,o,r){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],r],expanded:true}:a.children?{...a,children:Qr(a.children,t,o,r)}:a);let n=[];for(let a of e)a.id===t?o==="before"?(n.push(r),n.push(a)):(n.push(a),n.push(r)):a.children?n.push({...a,children:Qr(a.children,t,o,r)}):n.push(a);return n}function Ka(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:Ka(o.children,t)}:o)}function Ja(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Ja(r.children,t,o)}:r)}var Ga=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ja} 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}})}),Qa=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b})=>{let[m,f]=ur.useState(false),[C,w]=ur.useState(false),[y,g]=ur.useState(false),v=ur.useRef(false),M=ur.useRef(null),D=e.children&&e.children.length>0,k=e.expanded??false,h=n===e.id,F=n!==null,S=x==="handle",I=a?.targetId===e.id,L=I&&a?.position==="before",R=I&&a?.position==="after",T=I&&a?.position==="inside",E=h?"transparent":T?b.nestHighlight:C&&!F?b.itemHoverBg:b.itemBg,N=T?b.nestBorder:h?"transparent":b.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[L&&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(Ga,{color:b.dropIndicator})}),jsxRuntime.jsxs("div",{ref:M,draggable:true,onDragStart:W=>{if(S&&!v.current){W.preventDefault();return}if(v.current=false,W.dataTransfer.effectAllowed="move",W.dataTransfer.setData("text/plain",e.id),M.current){let z=M.current.cloneNode(true);z.style.width=`${M.current.offsetWidth}px`,z.style.opacity="0.85",z.style.transform="rotate(1.5deg) scale(1.02)",z.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",z.style.position="fixed",z.style.top="-1000px",document.body.appendChild(z),W.dataTransfer.setDragImage(z,W.nativeEvent.offsetX,W.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(z));}s(e.id);},onDragOver:W=>{W.preventDefault(),W.stopPropagation(),i(W,e.id,t);},onDragLeave:W=>{let z=W.relatedTarget;M.current&&z&&M.current.contains(z)||(W.stopPropagation(),u(W,M.current),w(false));},onDrop:W=>{W.preventDefault(),W.stopPropagation(),c(W);},onDragEnd:d,onMouseEnter:()=>w(true),onMouseLeave:()=>w(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h?"transparent":b.text,cursor:F?"grabbing":S?"default":"grab",opacity:h?.35:1,backgroundColor:E,borderWidth:"1px",borderColor:N,borderStyle:h?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:T?`inset 0 0 0 1px ${b.nestBorder}`:C&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:T?"scale(1.01)":"scale(1)"},children:[!l&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:h?"hidden":"visible"},onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),onMouseDown:()=>{v.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:m?b.gripHover:b.gripColor})}),T&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:b.dropIndicator})}),D?jsxRuntime.jsx("button",{type:"button",onClick:W=>{W.stopPropagation(),p(e.id);},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:h?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:y?b.chevronHover:b.chevron,style:{transition:"transform 0.2s ease",transform:k?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:h?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{v.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:h,depth:t,isExpanded:k,toggleExpand:()=>p(e.id),hasChildren:!!D}):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})]})})]}),R&&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(Ga,{color:b.dropIndicator})}),D&&k&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${b.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(W=>jsxRuntime.jsx(Qa,{item:W,depth:t+1,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b},W.id))})]})},of=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:n=3,dragMode:a="full",className:s,style:i})=>{let u=P(),c=ef[u],[d,p]=ur.useState(null),[l,x]=ur.useState(null),b=ur.useRef(null),m=ur.useRef(void 0),f=ur.useRef(void 0),C=ur.useRef(null),w=ur.useCallback(k=>{p(k);},[]),y=ur.useCallback((k,h,F)=>{if(!d||d===h||Jr(e,d,h))return;m.current&&(clearTimeout(m.current),m.current=void 0);let S=k.currentTarget.getBoundingClientRect(),I=k.clientY-S.top,L=S.height,R;r&&F<n?I<L*.25?R="before":I>L*.75?R="after":R="inside":I<L*.35?R="before":I>L*.65?R="after":C.current?.targetId===h?R=C.current.position:R=I<L/2?"before":"after";let T={targetId:h,position:R},E=en(e,h);R==="inside"&&E?.children&&E.children.length>0&&!E.expanded?(C.current?.targetId!==h||C.current?.position!=="inside")&&(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{t(Ja(e,h,true));},600)):f.current&&(clearTimeout(f.current),f.current=void 0),C.current=T,x(T);},[d,e,r,n,t]),g=ur.useCallback((k,h)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{x(null),C.current=null;},60),f.current&&(clearTimeout(f.current),f.current=void 0);},[]),v=ur.useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),!d||!l)return;let{targetId:k,position:h}=l;if(d===k||Jr(e,d,k))return;let[F,S]=qa(e,d);if(!S)return;let I=Qr(F,k,h,S);t(I),p(null),x(null),C.current=null;},[d,l,e,t]),M=ur.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),p(null),x(null),C.current=null;},[]),D=ur.useCallback(k=>{t(Ka(e,k));},[e,t]);return ur.useEffect(()=>()=>{m.current&&clearTimeout(m.current),f.current&&clearTimeout(f.current);},[]),jsxRuntime.jsxs("div",{ref:b,className:s,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:tf}}),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(k=>jsxRuntime.jsx(Qa,{item:k,depth:0,allowNesting:r,maxDepth:n,draggedId:d,dropState:l,onDragStart:w,onDragOver:y,onDragLeave:g,onDrop:v,onDragEnd:M,onToggleExpand:D,renderItem:o,dragMode:a,tokens:c},k.id))]})};of.displayName="DragList";exports.Accordion=Il;exports.AccordionItem=zl;exports.Alert=Ex;exports.AppSidebar=Tc;exports.Avatar=l0;exports.Badge=g0;exports.Banner=gp;exports.Breadcrumb=_d;exports.Button=ss;exports.Calendar=ud;exports.Card=Tl;exports.Checkbox=Rn;exports.CheckboxGroup=Tn;exports.ColorPicker=Mi;exports.Combobox=Ns;exports.CommandMenu=wc;exports.ConfirmDialog=zp;exports.Container=Sm;exports.CopyButton=Zp;exports.DataGrid=hl;exports.DataList=hd;exports.DatePicker=Cn;exports.DatePickerGroup=Gs;exports.Divider=bm;exports.DragList=of;exports.Drawer=Nd;exports.DropdownMenu=fc;exports.EmptyState=Kl;exports.FileUpload=Nn;exports.FormWizard=dc;exports.ImageCropper=ll;exports.Input=ln;exports.InputGroup=gf;exports.Link=Nb;exports.MobileDataCard=Cl;exports.Modal=zr;exports.Navbar=Mc;exports.Notification=Cp;exports.NumberInput=Cs;exports.OTPInput=Gi;exports.Pagination=Jd;exports.PhoneInput=rl;exports.Popover=_l;exports.ProgressBar=Vx;exports.ProgressCircle=Ux;exports.Radio=Go;exports.RadioGroup=En;exports.Rating=Wi;exports.SegmentedControl=Ti;exports.Select=gn;exports.SelectGroup=Es;exports.Sheet=Yd;exports.SidebarItem=Ic;exports.Skeleton=xe;exports.Slider=Hn;exports.Spinner=qx;exports.Spotlight=yc;exports.Stack=hm;exports.Stat=od;exports.StatusBadge=Bd;exports.Stepper=Wr;exports.Switch=Dn;exports.Tab=Al;exports.TabPanel=Hl;exports.Table=bl;exports.Tabs=Ll;exports.Tag=u0;exports.TagItem=b0;exports.Textarea=In;exports.Timeline=xd;exports.Toast=Ha;exports.ToasterProvider=vx;exports.Tooltip=yr;exports.Tree=Cd;exports.useTheme=P;exports.useToast=Sx;//# sourceMappingURL=index.js.map
18
+ `,document.head.appendChild(t),On=true;},Td=({status:e,label:t,size:o="md",pulse:n=false,color:r,style:a,className:l})=>{let s=A(),g=kd[s],b=wd[o],c=r||Cd[e]||"#888888";return n&&Rd(),jsxRuntime.jsxs("span",{className:l,style:{display:"inline-flex",alignItems:"center",gap:b.gap,...a},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${b.dot}px`,height:`${b.dot}px`,flexShrink:0},children:[n&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:c,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:c}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,fontWeight:400,color:g.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Td.displayName="StatusBadge";var zd={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Ho=180,Bd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Vn=({open:e,onClose:t,title:o,titleSlot:n,children:r,footer:a,size:l="md",width:s,closeOnOverlay:g=true,closeOnEscape:b=true,dismissable:c=true,showClose:d=true,showHeaderDivider:i=true,className:u,style:f})=>{let m=A(),p=zd[m],R=Bd[l],z=s?typeof s=="number"?`${s}px`:s:R.width,[h,S]=zn.useState(false),[x,I]=zn.useState("idle"),v=zn.useRef(null),E=zn.useRef(null);zn.useEffect(()=>{if(e){E.current=document.activeElement,S(true),I("opening");let k=setTimeout(()=>{I("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(h){I("closing");let k=setTimeout(()=>{S(false),I("idle"),document.body.style.overflow="",E.current instanceof HTMLElement&&E.current.focus();},Ho);return ()=>clearTimeout(k)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!h||!b||!c)return;let k=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,b,t]),zn.useEffect(()=>{if(!h||!v.current)return;let k=v.current,M='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',F=w=>{if(w.key!=="Tab")return;let T=k.querySelectorAll(M);if(T.length===0){w.preventDefault();return}let L=T[0],N=T[T.length-1];w.shiftKey?document.activeElement===L&&(w.preventDefault(),N.focus()):document.activeElement===N&&(w.preventDefault(),L.focus());};return document.addEventListener("keydown",F),k.focus(),()=>document.removeEventListener("keydown",F)},[h]);let y=()=>{let k={transition:`opacity ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...k,opacity:0,transform:"scale(0.95)"}:x==="open"?{...k,opacity:1,transform:"scale(1)"}:{...k,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!h)return null;let D=l==="fullscreen",B=()=>{let k={transition:`opacity ${Ho}ms ease`};return x==="opening"||x==="idle"?{...k,opacity:0}:x==="open"?{...k,opacity:1}:{...k,opacity:0}};return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...x==="closing"?{pointerEvents:"none"}:{}},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:p.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...B()},onClick:g&&c?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:v,role:"dialog","aria-modal":"true","aria-label":typeof o=="string"?o:void 0,tabIndex:-1,className:u,style:{position:"relative",display:"flex",flexDirection:"column",width:z,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":R.maxHeight,backgroundColor:p.cardBg,border:D?"none":`1px solid ${p.cardBorder}`,borderRadius:D?0:"16px",boxShadow:p.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...y(),...f},children:[n?jsxRuntime.jsx("div",{style:{flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:n}):o||d&&c?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:[o&&(typeof o=="string"?jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:p.titleText},children:o}):jsxRuntime.jsx("div",{style:{flex:1,minWidth:0},children:o})),d&&c&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:p.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=p.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:p.closeColor})})]}):null,jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:p.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${p.divider}`},children:a})]})]}),document.body)};Vn.displayName="Modal";var Md={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Xn=220,Ad=({open:e,onClose:t,position:o="right",title:n,children:r,footer:a,width:l=400,showClose:s=true,closeOnOverlay:g=true,className:b,style:c})=>{let d=A(),i=Md[d],[u,f]=zn.useState(false),[m,p]=zn.useState("idle"),R=zn.useRef(null),z=typeof l=="number"?`${l}px`:l;zn.useEffect(()=>{if(e){f(true),p("opening");let x=setTimeout(()=>{p("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(u){p("closing");let x=setTimeout(()=>{f(false),p("idle"),document.body.style.overflow="";},Xn);return ()=>clearTimeout(x)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!u)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[u,t]);let h=x=>{let I=o==="right"?"100%":"-100%";return x==="opening"||x==="idle"?I:x==="open"?"0%":I},S=()=>m==="open"?1:0;return u?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:S(),transition:`opacity ${Xn}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:g?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":n,className:b,style:{position:"absolute",top:0,bottom:0,[o]:0,width:z,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:o==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${h(m)})`,transition:`transform ${Xn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...c},children:[(n||s)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[n&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:n}),s&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:i.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:a})]})]}),document.body):null};Ad.displayName="Drawer";var $d={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},qn=180,Wd=({open:e,onClose:t,children:o,side:n="bottom",title:r,showClose:a=true,style:l,className:s})=>{let g=A(),b=$d[g],[c,d]=zn.useState(false),[i,u]=zn.useState("idle"),f=zn.useRef(null);zn.useEffect(()=>{if(e){d(true),u("opening");let x=setTimeout(()=>{u("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(c){u("closing");let x=setTimeout(()=>{d(false),u("idle"),document.body.style.overflow="";},qn);return ()=>clearTimeout(x)}},[e]),zn.useEffect(()=>()=>{document.body.style.overflow="";},[]),zn.useEffect(()=>{if(!c)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,t]);let R=x=>{let I={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return x==="opening"||x==="idle"?I[n]:x==="open"?"translate(0, 0)":I[n]},z=()=>i==="open"?1:0,h={};n==="bottom"?(h.bottom=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderTopLeftRadius="16px",h.borderTopRightRadius="16px"):n==="top"?(h.top=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderBottomLeftRadius="16px",h.borderBottomRightRadius="16px"):n==="right"?(h.top=0,h.bottom=0,h.right=0,h.width="400px",h.maxWidth="100vw"):n==="left"&&(h.top=0,h.bottom=0,h.left=0,h.width="400px",h.maxWidth="100vw");let S={};return n==="bottom"?S.borderTop=`1px solid ${b.panelBorder}`:n==="top"?S.borderBottom=`1px solid ${b.panelBorder}`:n==="right"?S.borderLeft=`1px solid ${b.panelBorder}`:n==="left"&&(S.borderRight=`1px solid ${b.panelBorder}`),c?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:b.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:z(),transition:`opacity ${qn}ms ease`,...i==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:b.panelBg,boxShadow:b.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:R(i),transition:`transform ${qn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...h,...S,...l},children:[n==="bottom"&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsxRuntime.jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:b.handleBg}})}),(r||a)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:n==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${b.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:b.titleText},children:r}),a&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:b.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=b.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:b.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:b.bodyText},children:o})]})]}),document.body):null};Wd.displayName="Sheet";var Zd={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Yd=({items:e,separator:t="/",className:o,style:n})=>{let r=A(),a=Zd[r];return jsxRuntime.jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...n},children:e.map((l,s)=>{let g=s===e.length-1;return jsxRuntime.jsxs(zn__default.default.Fragment,{children:[s>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),g?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxRuntime.jsxs("a",{href:l.href??"#",onClick:l.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:b=>{b.currentTarget.style.color=a.linkHover;},onMouseLeave:b=>{b.currentTarget.style.color=a.text;},children:[l.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},s)})})};Yd.displayName="Breadcrumb";var Xd={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Gd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function _d(e,t,o,n,r){let a=[],l=Math.max(2,e-o),s=Math.min(t-1,e+o);(n||e-o<=1)&&a.push(1),l>2&&(n&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let g=l;g<=s;g++)a.includes(g)||a.push(g);return s<t-1&&a.push("ellipsis-end"),(r||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var qd=({page:e,totalPages:t,onChange:o,siblings:n=1,showFirst:r=true,showLast:a=true,size:l="md",className:s,style:g})=>{let b=A(),c=Xd[b],d=Gd[l];if(t<=0)return null;let i=_d(e,t,n,r,a),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:d.size,height:d.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:s,style:{display:"flex",alignItems:"center",gap:"4px",...g},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...u,color:e<=1?c.disabledText:c.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:f=>{e>1&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:d.iconSize,color:e<=1?c.disabledText:c.text})}),i.map((f,m)=>{if(f==="ellipsis-start"||f==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...u,cursor:"default",color:c.text},"aria-hidden":"true",children:"..."},f);let p=f===e;return jsxRuntime.jsx("button",{type:"button","aria-current":p?"page":void 0,"aria-label":`Str\xE1nka ${f}`,onClick:()=>o(f),style:{...u,color:p?c.activeText:c.text,backgroundColor:p?c.activeBg:"transparent",fontWeight:p?600:500},onMouseEnter:R=>{p||(R.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:R=>{p||(R.currentTarget.style.backgroundColor="transparent");},children:f},f)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...u,color:e>=t?c.disabledText:c.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:f=>{e<t&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:d.iconSize,color:e>=t?c.disabledText:c.text})})]})};qd.displayName="Pagination";var Qd={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},Qn=({steps:e,activeStep:t,orientation:o="horizontal",clickable:n=false,onStepClick:r,className:a,style:l})=>{let s=A(),g=Qd[s],[b,c]=zn.useState(null),d=o==="horizontal",i=32,u=f=>!n||!r?false:n==="completed"?f<=t:true;return jsxRuntime.jsx("div",{className:a,style:{display:"flex",flexDirection:d?"row":"column",alignItems:d?"flex-start":"stretch",gap:0,...l},children:e.map((f,m)=>{let p=m<t,R=m===t,z=m>t,h=m===e.length-1,S=u(m),x=b===m&&S,I=p?g.completedBg:x?g.hoverBg:g.activeBg,v=p?g.completedBg:R||x?g.activeBorder:g.futureBorder,E=p?g.completedText:R||x?g.activeText:g.futureText,y=x?g.activeText:z?g.labelFuture:g.labelText,D=z?g.descFuture:g.descText,B=p?g.lineCompleted:g.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:d?"column":"row",alignItems:"flex-start",flex:h?"0 0 auto":"1 1 0",minWidth:0,cursor:S?"pointer":"default"},onClick:()=>S&&r?.(m),onMouseEnter:()=>c(m),onMouseLeave:()=>c(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:d?"row":"column",alignItems:"center",width:d?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:I,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:p?jsxRuntime.jsx(react.CheckIcon,{size:14,color:g.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:E,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!h&&jsxRuntime.jsx("div",{style:d?{flex:1,height:"2px",backgroundColor:B,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:B,margin:"6px 0",marginLeft:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:d?"10px":0,marginLeft:d?0:"14px",paddingTop:d?0:"4px",textAlign:"left",minHeight:d||h?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:R||x?600:500,color:y,lineHeight:"normal",transition:"color 0.2s ease"},children:f.label}),f.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:D,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:f.description})]})]},m)})})};Qn.displayName="Stepper";var rp=({size:e=16,color:t})=>{let[o,n]=zn.useState(0),r=zn.useRef(void 0),a=zn.useRef(void 0);return zn.useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ap={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},ip=({steps:e,activeStep:t,onStepChange:o,orientation:n="horizontal",showNavigation:r=true,finishLabel:a="Dokon\u010Dit",nextLabel:l="Dal\u0161\xED",prevLabel:s="P\u0159edchoz\xED",style:g,className:b})=>{let c=A(),d=ap[c],[i,u]=zn.useState(false),f=t<=0,m=t>=e.length-1,p=Math.max(0,Math.min(t,e.length-1)),R=n==="horizontal",z=e.map(y=>({label:y.label,description:y.description})),h=zn.useCallback(async()=>{if(i)return;let y=e[p];if(y.validate){u(true);try{if(!await y.validate()){u(!1);return}}catch{u(false);return}u(false);}o(p+1);},[i,e,p,o]),S=zn.useCallback(()=>{p>0&&o(p-1);},[p,o]),x=zn.useCallback(y=>{y<p&&o(y);},[p,o]);if(e.length===0)return null;let I={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},v={...I,backgroundColor:i?d.buttonDisabledBg:d.buttonPrimary,color:i?d.buttonDisabledText:d.buttonPrimaryText,border:"1px solid transparent",cursor:i?"not-allowed":"pointer"},E={...I,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`};return jsxRuntime.jsxs("div",{className:b,style:{display:"flex",flexDirection:R?"column":"row",gap:R?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...g},children:[jsxRuntime.jsx("div",{style:{flexShrink:0,...R?{}:{width:"240px"}},children:jsxRuntime.jsx(Qn,{steps:z,activeStep:p,orientation:n,clickable:"completed",onStepClick:x})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsxRuntime.jsx("div",{style:{flex:1,padding:R?"24px 0":"0"},children:e[p]?.content}),r&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${d.navBorder}`,marginTop:"8px"},children:[jsxRuntime.jsx("div",{children:!f&&jsxRuntime.jsxs("button",{type:"button",style:E,onClick:S,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonSecondaryHover);},onMouseLeave:y=>{y.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsxRuntime.jsx(react.CaretLeft,{size:14}),s]})}),jsxRuntime.jsx("button",{type:"button",style:v,onClick:h,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimaryHover);},onMouseLeave:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimary);},children:i?jsxRuntime.jsx(rp,{size:14,color:d.buttonDisabledText}):m?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react.Check,{size:14}),a]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx(react.CaretRight,{size:14})]})})]})]})]})};ip.displayName="FormWizard";var Ga={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},or=180,lp=({items:e,parentRef:t,itemIndex:o,theme:n,onClose:r})=>{let a=Ga[n],l=zn.useRef(null),[s,g]=zn.useState({top:0,left:0}),[b,c]=zn.useState(-1);return zn.useEffect(()=>{if(!t.current)return;let i=t.current.querySelectorAll('[role="menuitem"]')[o];if(!i)return;let u=i.getBoundingClientRect(),f=l.current?.offsetWidth??180,m=window.innerWidth-u.right-4;g({top:u.top,left:m>=f?u.right+4:u.left-f-4});},[t,o]),reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,role:"menu",style:{position:"fixed",top:s.top,left:s.left,minWidth:"160px",backgroundColor:a.dropdownBg,border:`1px solid ${a.dropdownBorder}`,borderRadius:"12px",boxShadow:a.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:1e5,overflow:"hidden",boxSizing:"border-box",padding:"6px"},onMouseLeave:()=>c(-1),children:e.map((d,i)=>{if(d.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:a.divider,margin:"4px 6px"}},i);if(d.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:a.textDisabled,padding:`${i>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:d.category},i);let u=d.danger,f=d.disabled,m=i===b,p=f?a.textDisabled:u?a.dangerText:a.text,R=u?a.dangerHover:a.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem",style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:p,backgroundColor:m?R:"transparent",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{f||(d.onClick?.(),r());},onMouseEnter:()=>{f||c(i);},children:[d.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:d.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:d.label}),d.shortcut&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:a.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:d.shortcut})]},i)})}),document.body)},cp=({trigger:e,items:t,position:o="bottom-left",triggerOnRightClick:n=false,className:r,style:a})=>{let l=A(),s=Ga[l],g=zn.useRef(null),b=zn.useRef(null),[c,d]=zn.useState(false),[i,u]=zn.useState(false),[f,m]=zn.useState("idle"),[p,R]=zn.useState({top:0,left:0,openAbove:false}),[z,h]=zn.useState(-1),[S,x]=zn.useState(null),I=zn.useRef(void 0),v=zn.useCallback(()=>{d(true),u(true),m("opening"),h(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),E=zn.useCallback(()=>{d(false),m("closing");let k=setTimeout(()=>{u(false),m("idle");},or);return ()=>clearTimeout(k)},[]),y=zn.useCallback(()=>{if(!g.current)return;let k=g.current.getBoundingClientRect(),M=b.current?.offsetHeight??200,F=b.current?.offsetWidth??200,w=window.innerHeight-k.bottom-6,T=k.top-6,L=w<M&&T>w,N;o==="bottom-right"?(N=k.right-F,N<4&&(N=4)):(N=k.left,N+F>window.innerWidth-4&&(N=window.innerWidth-F-4)),R({top:L?k.top-6:k.bottom+6,left:N,openAbove:L});},[o]);zn.useEffect(()=>{if(i)return y(),window.addEventListener("scroll",y,true),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y,true),window.removeEventListener("resize",y);}},[i,y]),zn.useEffect(()=>{if(!c)return;let k=M=>{let F=M.target,w=g.current?.contains(F),T=b.current?.contains(F);!w&&!T&&E();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,E]),zn.useEffect(()=>{if(!c)return;let k=t.map((F,w)=>({item:F,idx:w})).filter(({item:F})=>!F.divider&&!F.disabled),M=F=>{switch(F.key){case "Escape":F.preventDefault(),E();break;case "ArrowDown":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w<k.length-1?w+1:0;h(k[T]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w>0?w-1:k.length-1;h(k[T]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),z>=0){let w=t[z];w&&!w.divider&&!w.disabled&&(w.onClick?.(),E());}break}};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[c,z,t,E]);let D=()=>{let k=p.openAbove,M=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",w={transition:`opacity ${or}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${or}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...w,opacity:0,transform:`${M} scale(0.97)`}:f==="open"?{...w,opacity:1,transform:"translateY(0) scale(1)"}:{...w,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},B=i?reactDom.createPortal(jsxRuntime.jsx("div",{ref:b,role:"menu",style:{position:"fixed",...p.openAbove?{bottom:window.innerHeight-p.top,left:p.left}:{top:p.top,left:p.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:p.openAbove?"bottom center":"top center",...D()},children:t.map((k,M)=>{if(k.category)return jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${M>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},M);if(k.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},M);let F=k.danger,w=k.disabled,T=M===z,L=typeof k.label!="string",N=L&&!k.onClick,C=w?s.textDisabled:F?s.dangerText:s.text,P=F?s.dangerHover:s.hoverBg;return N?jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},M):jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":w,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:C,backgroundColor:T?P:"transparent",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{if(!w){if(k.subItems){x(S===M?null:M);return}k.onClick?.(),k.keepOpenOnClick||E();}},onMouseEnter:()=>{w||h(M),k.subItems?(I.current&&clearTimeout(I.current),I.current=setTimeout(()=>x(M),300)):(I.current&&clearTimeout(I.current),x(null));},onMouseLeave:()=>{h(-1),k.subItems&&I.current&&clearTimeout(I.current);},children:[k.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:k.label}):k.label,k.shortcut&&!k.subItems&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:s.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:k.shortcut}),k.subItems&&jsxRuntime.jsx(react.CaretRight,{size:12,color:s.textDisabled,style:{flexShrink:0,marginLeft:"auto"}}),k.subItems&&S===M&&jsxRuntime.jsx(lp,{items:k.subItems,parentRef:b,itemIndex:M,theme:l,onClose:E})]},M)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:g,onClick:n?void 0:()=>{c?E():v();},onContextMenu:n?k=>{k.preventDefault(),c?E():v();}:void 0,style:{display:"inline-flex",cursor:"pointer"},children:e}),B]})};cp.displayName="DropdownMenu";var pp={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},px=({variant:e="default",icon:t,iconPosition:o="left",showIcon:n=true,children:r,style:a,className:l,onMouseEnter:s,onMouseLeave:g,target:b,rel:c,...d})=>{let i=A(),u=pp[i],[f,m]=zn.useState(false),p=e==="danger"?u.danger:u.default,R={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:f?u.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:p,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},z=n&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:R,className:l,target:b,rel:c??(b==="_blank"?"noopener noreferrer":void 0),onMouseEnter:h=>{m(true),s?.(h);},onMouseLeave:h=>{m(false),g?.(h);},...d,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r,z]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z,r]})})};var bp={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Wo=180,mp=({open:e,onClose:t,value:o,onChange:n,results:r,loading:a=false,placeholder:l="Hledat...",className:s,style:g})=>{let b=A(),c=bp[b],[d,i]=zn.useState(false),[u,f]=zn.useState("idle"),[m,p]=zn.useState(-1),R=zn.useRef(null),z=zn.useRef(null);zn.useEffect(()=>{let y="sm-spotlight-scrollbar-hide";if(document.getElementById(y))return;let D=document.createElement("style");D.id=y,D.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(D);},[]);let h=r;zn.useEffect(()=>{if(e){i(true),f("opening"),p(-1);let y=setTimeout(()=>{f("open");},10);return ()=>clearTimeout(y)}else if(d){f("closing");let y=setTimeout(()=>{i(false),f("idle");},Wo);return ()=>clearTimeout(y)}},[e]),zn.useEffect(()=>{d&&u==="open"&&R.current?.focus();},[d,u]),zn.useEffect(()=>{p(-1);},[r]),zn.useEffect(()=>{if(m<0||!z.current)return;let y=z.current.querySelector(`[data-spotlight-index="${m}"]`);y&&y.scrollIntoView({block:"nearest"});},[m]);let S=zn.useCallback(y=>{switch(y.key){case "Escape":y.preventDefault(),t();break;case "ArrowDown":{y.preventDefault(),p(D=>{let B=D+1;return B>=h.length?0:B});break}case "ArrowUp":{y.preventDefault(),p(D=>{let B=D-1;return B<0?h.length-1:B});break}case "Enter":{y.preventDefault(),m>=0&&m<h.length&&(h[m].onSelect(),t());break}}},[h,m,t]),x=[],I=new Map;h.forEach((y,D)=>{let B=I.get(y.category);B||(B=[],I.set(y.category,B),x.push({category:y.category,items:B})),B.push({...y,flatIndex:D});});let v=()=>{let y={transition:`opacity ${Wo}ms ease`};return u==="opening"||u==="idle"?{...y,opacity:0}:u==="open"?{...y,opacity:1}:{...y,opacity:0,pointerEvents:"none"}},E=()=>{let y={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return u==="opening"||u==="idle"?{...y,opacity:0,transform:"scale(0.95) translateY(-10px)"}:u==="open"?{...y,opacity:1,transform:"scale(1) translateY(0)"}:{...y,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:S,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...g},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlass,{size:18,color:c.textSecondary}),jsxRuntime.jsx("input",{ref:R,type:"text",value:o,onChange:y=>n(y.target.value),placeholder:l,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:z,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsxRuntime.jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(y=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsxRuntime.jsx(ve,{variant:"rect",width:28,height:28}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsxRuntime.jsx(ve,{variant:"text",width:`${50+y%3*15}%`,height:14}),jsxRuntime.jsx(ve,{variant:"text",width:`${30+y%2*20}%`,height:11})]})]},y))}):x.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(y=>jsxRuntime.jsxs("div",{role:"group","aria-label":y.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:y.category}),y.items.map(D=>{let B=D.flatIndex===m;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-spotlight-index":D.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{D.onSelect(),t();},onMouseEnter:()=>p(D.flatIndex),onMouseLeave:()=>p(-1),children:[D.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:D.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.label}),D.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:D.description})]})]},D.id)})]},y.category))})]})]}),document.body):null};mp.displayName="Spotlight";var vp={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Zo=180,Sp=({open:e,onClose:t,groups:o,placeholder:n="Zadejte p\u0159\xEDkaz...",style:r,className:a})=>{let l=A(),s=vp[l],[g,b]=zn.useState(false),[c,d]=zn.useState("idle"),[i,u]=zn.useState(""),[f,m]=zn.useState(-1),p=zn.useRef(null),R=zn.useRef(null);zn.useEffect(()=>{let E="sm-commandmenu-scrollbar-hide";if(document.getElementById(E))return;let y=document.createElement("style");y.id=E,y.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(y);},[]);let z=o.map(E=>({...E,items:E.items.filter(y=>y.label.toLowerCase().includes(i.toLowerCase())||y.description?.toLowerCase().includes(i.toLowerCase()))})).filter(E=>E.items.length>0),h=z.flatMap(E=>E.items);zn.useEffect(()=>{if(e){u(""),m(-1),b(true),d("opening");let E=setTimeout(()=>{d("open");},10);return ()=>clearTimeout(E)}else if(g){d("closing");let E=setTimeout(()=>{b(false),d("idle");},Zo);return ()=>clearTimeout(E)}},[e]),zn.useEffect(()=>{g&&c==="open"&&p.current?.focus();},[g,c]),zn.useEffect(()=>{m(-1);},[i]),zn.useEffect(()=>{if(f<0||!R.current)return;let E=R.current.querySelector(`[data-cmd-index="${f}"]`);E&&E.scrollIntoView({block:"nearest"});},[f]);let S=zn.useCallback(E=>{switch(E.key){case "Escape":E.preventDefault(),t();break;case "ArrowDown":{E.preventDefault(),m(y=>{let D=y+1;return D>=h.length?0:D});break}case "ArrowUp":{E.preventDefault(),m(y=>{let D=y-1;return D<0?h.length-1:D});break}case "Enter":{E.preventDefault(),f>=0&&f<h.length&&(h[f].onSelect(),t());break}}},[h,f,t]),x=()=>{let E={transition:`opacity ${Zo}ms ease`};return c==="opening"||c==="idle"?{...E,opacity:0}:c==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},I=()=>{let E={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...E,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...E,opacity:1,transform:"scale(1) translateY(0)"}:{...E,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},v=0;return g?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...x()},onKeyDown:S,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...I(),...r},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsxRuntime.jsx("input",{ref:p,type:"text",value:i,onChange:E=>u(E.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:R,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:z.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):z.map(E=>jsxRuntime.jsxs("div",{role:"group","aria-label":E.label,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:E.label}),E.items.map(y=>{let D=v++,B=D===f;return jsxRuntime.jsxs("div",{role:"option","aria-selected":B,"data-cmd-index":D,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{y.onSelect(),t();},onMouseEnter:()=>m(D),onMouseLeave:()=>m(-1),children:[y.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:y.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y.label}),y.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:y.description})]}),y.shortcut&&jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:y.shortcut})]},y.id)})]},E.label))})]})]}),document.body):null};Sp.displayName="CommandMenu";var kp={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},ar=250,Cp=({children:e,collapsed:t=false,onCollapse:o,width:n=260,collapsedWidth:r=64,style:a,className:l})=>{let s=A(),g=kp[s],b=t?r:n;return jsxRuntime.jsx("aside",{className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:`${b}px`,minWidth:`${b}px`,height:"100%",backgroundColor:g.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${g.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cp.displayName="AppSidebar";var Ep={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},zp=({label:e,icon:t,active:o=false,defaultExpanded:n=false,expanded:r,onExpandedChange:a,onClick:l,children:s,collapsed:g=false,disabled:b=false,style:c,className:d})=>{let i=A(),u=Ep[i],f=zn__default.default.Children.count(s)>0,m=r!==void 0,[p,R]=zn.useState(n),z=m?r:p,[h,S]=zn.useState(false),x=zn.useRef(null),[I,v]=zn.useState(0);zn.useEffect(()=>{x.current&&v(x.current.scrollHeight);},[s,z]);let E=zn.useCallback(()=>{m?a?.(!r):R(M=>{let F=!M;return a?.(F),F});},[m,r,a]),y=zn.useCallback(()=>{b||(f&&E(),l?.());},[b,f,E,l]),D=b?`${u.text}66`:o?u.textActive:h?u.textHover:u.text,B=b?`${u.icon}66`:o?u.iconActive:h?u.iconHover:u.icon,k=o?u.activeBg:h&&!b?u.hoverBg:"transparent";return g?jsxRuntime.jsx("button",{type:"button",onClick:y,disabled:b,title:e,className:d,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:B,cursor:b?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...c},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:D},children:e[0]})}):jsxRuntime.jsxs("div",{className:d,style:c,children:[jsxRuntime.jsxs("button",{type:"button",onClick:y,disabled:b,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:D,cursor:b?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),f&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:h?u.chevronHover:u.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:z?"rotate(0deg)":"rotate(-90deg)"}})]}),f&&jsxRuntime.jsx("div",{ref:x,style:{overflow:"hidden",maxHeight:z?`${I}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:s})})]})};zp.displayName="SidebarItem";var Bp={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Dp=({logo:e,children:t,actions:o,sticky:n=true,glass:r=true,style:a,className:l})=>{let s=A(),g=Bp[s];return jsxRuntime.jsxs("header",{className:l,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:r?g.background:g.backgroundSolid,borderBottom:`1px solid ${g.border}`,boxShadow:g.shadow,boxSizing:"border-box",...r?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...n?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsxRuntime.jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Dp.displayName="Navbar";var Lp={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Np={info:jsxRuntime.jsx(react.Info,{size:28,color:"currentColor"}),success:jsxRuntime.jsx(react.CheckCircle,{size:28,color:"#00A205"}),error:jsxRuntime.jsx(react.XCircle,{size:28,color:"#DE0000"})},oi=({variant:e="info",title:t,content:o,icon:n,onClose:r,role:a="alert",style:l,className:s})=>{let g=A(),b=Lp[g],{border:c,background:d}=b[e],i=n??Np[e];return jsxRuntime.jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:d,border:`2px solid ${c}`,borderRadius:"8px",boxSizing:"border-box",...l},className:s,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.iconColor},children:i}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:b.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:b.textSecondary,lineHeight:"normal"},children:o})]})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:r,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:b.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ni=3,Zp=.06,ri=12,Vo=320,ai=zn.createContext(null),Yp=0,Vp=()=>`sm-toast-${++Yp}-${Date.now()}`,Gx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:n=8,offset:r=16,maxToasts:a=5,duration:l=4e3})=>{let[s,g]=zn.useState([]),b=zn.useCallback(i=>{g(u=>u.map(f=>f.id===i?{...f,lifecycle:"leaving"}:f)),setTimeout(()=>{g(u=>u.filter(f=>f.id!==i));},Vo+100);},[]),c=zn.useCallback(i=>{let u=Vp(),f=i.duration??l,m={id:u,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:f,lifecycle:"entering",height:0};return g(p=>{let R=[...p,m];return R.length>a?R.slice(R.length-a):R}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{g(p=>p.map(R=>R.id===u?{...R,lifecycle:"visible"}:R));});}),f>0&&setTimeout(()=>b(u),f),u},[a,b,l]),d=zn.useCallback((i,u)=>{g(f=>f.map(m=>m.id===i&&m.height!==u?{...m,height:u}:m));},[]);return jsxRuntime.jsxs(ai.Provider,{value:{toast:c,dismiss:b},children:[e,s.length>0&&jsxRuntime.jsx(Xp,{toasts:s,position:t,toastWidth:o,gap:n,offset:r,onDismiss:b,onHeightMeasured:d})]})},Up=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:n,expanded:r,isBottom:a,appeared:l,toastWidth:s,onDismiss:g,onHeightMeasured:b})=>{let c=t.lifecycle==="leaving",d=!l||c,i=r?1:Math.max(.7,1-o*Zp),u=r?0:o*ri,f=a?-u:u,p=d?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${f}px)`,R=d?0:r?1:Math.max(.4,1-o*.18),z=!r&&o>=ni,h=n-o,S=zn.useCallback(x=>{x&&t.height===0&&b(t.id,x.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:S,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:p,opacity:z?0:R,zIndex:h,transition:[`transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${Vo}ms ease`].join(", "),pointerEvents:o===0||r?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(oi,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>g(t.id),style:{width:s,maxWidth:"100%",boxSizing:"border-box"}})})},Xp=({toasts:e,position:t,toastWidth:o,gap:n,offset:r,onDismiss:a,onHeightMeasured:l})=>{let[s,g]=zn.useState(false),[b,c]=zn.useState(new Set),d=t.startsWith("bottom"),i=t.endsWith("right"),u=t.endsWith("center");zn.useEffect(()=>{c(S=>{let x=new Set(S);return e.forEach(I=>{I.lifecycle==="visible"&&x.add(I.id);}),[...x].forEach(I=>{e.find(v=>v.id===I)||x.delete(I);}),x});},[e]);let p=(e[e.length-1]?.height||80)+Math.min(e.length-1,ni-1)*ri,R=e.reduce((S,x)=>S+(x.height||80),0)+Math.max(0,e.length-1)*n,z=s?R:p,h=u?{left:"50%",transform:"translateX(-50%)"}:i?{right:r}:{left:r};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${r*2}px)`,height:z,...d?{bottom:r}:{top:r},...h,transition:`height ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),"aria-live":"polite","aria-atomic":"false",children:e.map((S,x)=>{let I=e.length-1-x,v=b.has(S.id),E=S.lifecycle==="leaving",y=!v||E,D;if(s&&!y){let k=e.slice(x+1).reduce((F,w)=>F+(w.height||80)+n,0);D=`translateY(${d?-k:k}px)`;}return jsxRuntime.jsx(Up,{item:S,depthIndex:I,stackSize:e.length,expanded:s,isBottom:d,appeared:v,toastWidth:o,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:D},S.id)})})},_x=()=>{let e=zn.useContext(ai);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var eu={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},tu={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},th=({variant:e="info",title:t,children:o,icon:n,closable:r=false,onClose:a,className:l,style:s})=>{let g=A(),b=eu[g],c=tu[e],[d,i]=zn.useState(true);if(!d)return null;let u=g==="light",f=u?c.borderLight:c.border,m=u?c.backgroundLight:c.background,p=u?c.iconColorLight:c.iconColor,z=n??{info:jsxRuntime.jsx(react.Info,{size:24,color:p}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:p}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:p}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:p})}[e],h=()=>{i(false),a?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${f}`,borderRadius:"4px",boxSizing:"border-box",...s},className:l,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:b.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:b.descriptionText},children:o})]}),r&&jsxRuntime.jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:b.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var lu={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},cu={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},du={info:jsxRuntime.jsx(react.Info,{size:20}),success:jsxRuntime.jsx(react.CheckCircle,{size:20}),warning:jsxRuntime.jsx(react.Warning,{size:20}),error:jsxRuntime.jsx(react.XCircle,{size:20})},pu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,actions:l,dismissKey:s,position:g="top",sticky:b=false,style:c,className:d})=>{let i=A(),u=lu[i],f=cu[e],[m,p]=zn.useState(()=>s&&typeof window<"u"?localStorage.getItem(`banner-dismiss-${s}`)!=="1":true);if(!m||!t&&!o)return null;let R=i==="light",z=R?f.accentLight:f.accent,h=b?u.glassBg:R?f.bgLight:f.bg,S=R?f.iconLight:f.icon,x=a??du[e],I=()=>{p(false),s&&typeof window<"u"&&localStorage.setItem(`banner-dismiss-${s}`,"1"),r?.();};return jsxRuntime.jsxs("div",{role:"alert",className:d,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:h,borderTop:g==="bottom"?`3px solid ${z}`:"none",borderBottom:g==="top"?`3px solid ${z}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...b?{position:"sticky",[g]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${u.glassBorder}`,borderRight:`1px solid ${u.glassBorder}`}:{},...c},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,marginTop:"1px"},children:x}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsxRuntime.jsx("div",{style:{fontWeight:600,fontSize:"14px",color:u.titleText,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("div",{style:{fontSize:"13px",color:u.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),l&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:l}),n&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:I,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:u.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=u.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=u.closeColor;},children:jsxRuntime.jsx(react.X,{size:16})})]})};pu.displayName="Banner";var hu={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},yu={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},vu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,action:l,style:s,className:g})=>{let b=A(),c=hu[b],d=yu[e],[i,u]=zn.useState(true);if(!i)return null;let f=b==="light",m=f?d.bgLight:d.bg,p=f?d.accentLight:d.accent,z=a??{info:jsxRuntime.jsx(react.Info,{size:20,color:p}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:p}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:p}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:p})}[e],h=()=>{u(false),r?.();};return jsxRuntime.jsxs("div",{role:"status",className:g,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${c.border}`,borderRadius:"12px",boxSizing:"border-box",...s},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.bodyText},children:o})]}),l&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:l}),n&&jsxRuntime.jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};vu.displayName="Notification";var pi={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},ui={default:"#E8612D",success:"#00A205",warning:"#F5A623",danger:"#EF3838"},Su={xs:{height:4,fontSize:"10px"},sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"}},ci="sm-ui-progress-stripes",di="sm-ui-progress-indeterminate",ku=()=>{if(typeof document>"u"||document.getElementById(ci))return;let e=document.createElement("style");e.id=ci,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Cu=()=>{if(typeof document>"u"||document.getElementById(di))return;let e=document.createElement("style");e.id=di,e.textContent="@keyframes sm-ui-progress-indeterminate { 0% { left: -40%; width: 40%; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 40%; } }",document.head.appendChild(e);};function fi(e,t,o){if(!o||o.length===0)return e;let n=[...o].sort((a,l)=>a.value-l.value),r=e;for(let a of n)t>=a.value&&(r=a.variant);return r}var xh=({value:e,max:t=100,label:o=false,variant:n="default",thresholds:r,size:a="sm",striped:l=false,animated:s=false,indeterminate:g=false,className:b,style:c})=>{let d=A(),i=pi[d],u=Su[a],f=t>0?Math.max(0,Math.min(100,e/t*100)):0,m=fi(n,e,r),p=ui[m];l&&s&&ku(),g&&Cu();let R=l?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{},z=typeof o=="string"?o:o?`${Math.round(f)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":g?void 0:Math.round(e),"aria-valuemin":0,"aria-valuemax":t,style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",...c},className:b,children:[z&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:i.text,userSelect:"none"},children:z})}),jsxRuntime.jsx("div",{style:{width:"100%",height:u.height,backgroundColor:i.trackBg,borderRadius:u.height/2,overflow:"hidden",position:"relative"},children:g?jsxRuntime.jsx("div",{style:{position:"absolute",height:"100%",backgroundColor:p,borderRadius:u.height/2,animation:"sm-ui-progress-indeterminate 1.5s ease-in-out infinite",...R}}):jsxRuntime.jsx("div",{style:{width:`${f}%`,height:"100%",backgroundColor:p,borderRadius:u.height/2,transition:"width 0.3s ease, background-color 0.3s ease",...R}})})]})},hh=({value:e,max:t=100,variant:o="default",thresholds:n,size:r=48,thickness:a=4,showValue:l=false,valueLabel:s,label:g,className:b,style:c})=>{let d=A(),i=pi[d],u=t>0?Math.max(0,Math.min(100,e/t*100)):0,f=fi(o,e,n),m=ui[f],p=(r-a)/2,R=2*Math.PI*p,z=R-u/100*R,h=s?s(e,t):l?`${Math.round(u)}%`:null;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":Math.round(e),"aria-valuemin":0,"aria-valuemax":t,"aria-label":g,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...c},className:b,children:[jsxRuntime.jsxs("div",{style:{position:"relative",width:r,height:r},children:[jsxRuntime.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:i.trackBg,strokeWidth:a}),jsxRuntime.jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:m,strokeWidth:a,strokeLinecap:"round",strokeDasharray:R,strokeDashoffset:z,style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]}),h!=null&&jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(10,r*.22)}px`,color:i.text,userSelect:"none"},children:h})]}),g&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},children:g})]})};var Tu={sm:16,md:24,lg:40},Ch=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:n,style:r})=>{let[a,l]=zn.useState(0),s=zn.useRef(void 0),g=zn.useRef(void 0);zn.useEffect(()=>{let d=i=>{g.current===void 0&&(g.current=i),l((i-g.current)/800*360%360),s.current=requestAnimationFrame(d);};return s.current=requestAnimationFrame(d),()=>{s.current!==void 0&&cancelAnimationFrame(s.current);}},[]);let b=typeof e=="number"?e:Tu[e]??24,c=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:n,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...r},children:jsxRuntime.jsxs("svg",{width:b,height:b,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:c,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:c,strokeWidth:"2",strokeLinecap:"round"})]})})};var Eu={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},zu=({open:e,onConfirm:t,onCancel:o,title:n,description:r,confirmLabel:a="Potvrdit",cancelLabel:l="Zru\u0161it",variant:s="default",loading:g=false,style:b,className:c})=>{let d=A(),i=Eu[d],[u,f]=zn.useState(false),[m,p]=zn.useState(false),R=s==="danger",z=R?m?i.dangerHover:i.dangerBg:m?i.confirmHover:i.confirmBg,h=R?i.dangerText:i.confirmText;return jsxRuntime.jsx(Vn,{open:e,onClose:o,title:n,size:"sm",className:c,style:b,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:u?i.cancelHover:i.cancelBg,border:`1px solid ${i.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:l}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:g,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:z,border:"none",borderRadius:"6px",cursor:g?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:h,lineHeight:"normal",opacity:g?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:g?"Zpracov\xE1v\xE1m...":a})]}),children:r&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.descriptionText},children:r})})};zu.displayName="ConfirmDialog";var Hu={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},Lu={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Nu=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},$u=({text:e,children:t,size:o="md",variant:n="icon",label:r="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:l,style:s,className:g})=>{let b=A(),c=Hu[b],d=Lu[o],[i,u]=zn.useState(false),[f,m]=zn.useState(false),p=zn.useRef(null),R=zn.useCallback(async()=>{await Nu(e)&&(u(true),l?.(),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(false),p.current=null;},2e3));},[e,l]),z=i?c.successColor:f?c.iconHover:c.iconColor,h=i?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:z,...s},children:t}):n==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:z,...s},children:jsxRuntime.jsx(h,{size:d.iconSize,color:z})}):jsxRuntime.jsxs("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.buttonPadding,background:f?c.buttonHover:c.buttonBg,border:`1px solid ${c.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,color:i?c.successColor:c.buttonText,lineHeight:"normal",...s},children:[jsxRuntime.jsx(h,{size:d.iconSize,color:i?c.successColor:c.buttonText}),i?a:r]})};$u.displayName="CopyButton";var Ou={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Zh=({orientation:e="horizontal",label:t,className:o,style:n})=>{let r=A(),a=Ou[r];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...n}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...n},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...n}})};var Yu={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Vu={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Uh=({direction:e="column",gap:t=8,align:o="stretch",justify:n="start",wrap:r=false,fullWidth:a=false,children:l,className:s,style:g})=>jsxRuntime.jsx("div",{className:s,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Yu[o],justifyContent:Vu[n],flexWrap:r?"wrap":"nowrap",width:a?"100%":void 0,...g},children:l});var Xu={sm:640,md:768,lg:1024,xl:1280},_h=({maxWidth:e="lg",padding:t=16,centered:o=true,children:n,className:r,style:a})=>{let l=typeof e=="number"?e:Xu[e],s=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:r,style:{maxWidth:`${l}px`,width:"100%",padding:s,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:n})};var Ju={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},hi="smDragListPulse",Qu=`@keyframes ${hi}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let n=fr(o.children,t);if(n)return n}}return null}function pr(e,t,o){let n=fr(e,t);if(!n||!n.children)return false;for(let r of n.children)if(r.id===o||pr([r],r.id,o))return true;return false}function yi(e,t){let o=null;return [e.reduce((r,a)=>{if(a.id===t)return o=a,r;if(a.children){let[l,s]=yi(a.children,t);s&&(o=s),r.push({...a,children:l.length>0?l:void 0});}else r.push(a);return r},[]),o]}function ur(e,t,o,n){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],n],expanded:true}:a.children?{...a,children:ur(a.children,t,o,n)}:a);let r=[];for(let a of e)a.id===t?o==="before"?(r.push(n),r.push(a)):(r.push(a),r.push(n)):a.children?r.push({...a,children:ur(a.children,t,o,n)}):r.push(a);return r}function vi(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:vi(o.children,t)}:o)}function Si(e,t,o){return e.map(n=>n.id===t?{...n,expanded:o}:n.children?{...n,children:Si(n.children,t,o)}:n)}var xi=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${hi} 1.2s ease-in-out infinite`,width:"100%"},children:jsxRuntime.jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),ki=({item:e,depth:t,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f})=>{let[m,p]=zn.useState(false),[R,z]=zn.useState(false),[h,S]=zn.useState(false),x=zn.useRef(false),I=zn.useRef(null),v=e.children&&e.children.length>0,E=e.expanded??false,y=r===e.id,D=r!==null,B=u==="handle",k=a?.targetId===e.id,M=k&&a?.position==="before",F=k&&a?.position==="after",w=k&&a?.position==="inside",T=y?"transparent":w?f.nestHighlight:R&&!D?f.itemHoverBg:f.itemBg,L=w?f.nestBorder:y?"transparent":f.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(xi,{color:f.dropIndicator})}),jsxRuntime.jsxs("div",{ref:I,draggable:true,onDragStart:N=>{if(B&&!x.current){N.preventDefault();return}if(x.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),I.current){let C=I.current.cloneNode(true);C.style.width=`${I.current.offsetWidth}px`,C.style.opacity="0.85",C.style.transform="rotate(1.5deg) scale(1.02)",C.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",C.style.position="fixed",C.style.top="-1000px",document.body.appendChild(C),N.dataTransfer.setDragImage(C,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(C));}l(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),s(N,e.id,t);},onDragLeave:N=>{let C=N.relatedTarget;I.current&&C&&I.current.contains(C)||(N.stopPropagation(),g(N,I.current),z(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),b(N);},onDragEnd:c,onMouseEnter:()=>z(true),onMouseLeave:()=>z(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:y?"transparent":f.text,cursor:D?"grabbing":B?"default":"grab",opacity:y?.35:1,backgroundColor:T,borderWidth:"1px",borderColor:L,borderStyle:y?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:w?`inset 0 0 0 1px ${f.nestBorder}`:R&&!D?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:w?"scale(1.01)":"scale(1)"},children:[!i&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:D?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:y?"hidden":"visible"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onMouseDown:()=>{x.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:m?f.gripHover:f.gripColor})}),w&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:f.dropIndicator})}),v?jsxRuntime.jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),d(e.id);},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:y?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:h?f.chevronHover:f.chevron,style:{transition:"transform 0.2s ease",transform:E?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:y?"hidden":"visible"},children:i?i(e,{handleProps:{onMouseDown:()=>{x.current=true;},style:{cursor:D?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:y,depth:t,isExpanded:E,toggleExpand:()=>d(e.id),hasChildren:!!v}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsxRuntime.jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),F&&jsxRuntime.jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(xi,{color:f.dropIndicator})}),v&&E&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${f.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsxRuntime.jsx(ki,{item:N,depth:t+1,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f},N.id))})]})},ef=({items:e,onReorder:t,renderItem:o,allowNesting:n=false,maxDepth:r=3,dragMode:a="full",className:l,style:s})=>{let g=A(),b=Ju[g],[c,d]=zn.useState(null),[i,u]=zn.useState(null),f=zn.useRef(null),m=zn.useRef(void 0),p=zn.useRef(void 0),R=zn.useRef(null),z=zn.useCallback(E=>{d(E);},[]),h=zn.useCallback((E,y,D)=>{if(!c||c===y||pr(e,c,y))return;m.current&&(clearTimeout(m.current),m.current=void 0);let B=E.currentTarget.getBoundingClientRect(),k=E.clientY-B.top,M=B.height,F;n&&D<r?k<M*.25?F="before":k>M*.75?F="after":F="inside":k<M*.35?F="before":k>M*.65?F="after":R.current?.targetId===y?F=R.current.position:F=k<M/2?"before":"after";let w={targetId:y,position:F},T=fr(e,y);F==="inside"&&T?.children&&T.children.length>0&&!T.expanded?(R.current?.targetId!==y||R.current?.position!=="inside")&&(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{t(Si(e,y,true));},600)):p.current&&(clearTimeout(p.current),p.current=void 0),R.current=w,u(w);},[c,e,n,r,t]),S=zn.useCallback((E,y)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{u(null),R.current=null;},60),p.current&&(clearTimeout(p.current),p.current=void 0);},[]),x=zn.useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),!c||!i)return;let{targetId:E,position:y}=i;if(c===E||pr(e,c,E))return;let[D,B]=yi(e,c);if(!B)return;let k=ur(D,E,y,B);t(k),d(null),u(null),R.current=null;},[c,i,e,t]),I=zn.useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),d(null),u(null),R.current=null;},[]),v=zn.useCallback(E=>{t(vi(e,E));},[e,t]);return zn.useEffect(()=>()=>{m.current&&clearTimeout(m.current),p.current&&clearTimeout(p.current);},[]),jsxRuntime.jsxs("div",{ref:f,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...s},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Qu}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.textSecondary,backgroundColor:b.itemBg,borderRadius:"10px",border:`1px solid ${b.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(E=>jsxRuntime.jsx(ki,{item:E,depth:0,allowNesting:n,maxDepth:r,draggedId:c,dropState:i,onDragStart:z,onDragOver:h,onDragLeave:S,onDrop:x,onDragEnd:I,onToggleExpand:v,renderItem:o,dragMode:a,tokens:b},E.id))]})};ef.displayName="DragList";var rf={dark:{insertionLine:"#FC4F00",dragOverlay:"rgba(24,24,24,0.95)",dragBorder:"rgba(255,255,255,0.12)",dragShadow:"0 8px 30px rgba(0,0,0,0.5)",handleColor:"rgba(255,255,255,0.3)",handleHover:"rgba(255,255,255,0.6)"},light:{insertionLine:"#FC4F00",dragOverlay:"rgba(255,255,255,0.95)",dragBorder:"rgba(0,0,0,0.1)",dragShadow:"0 8px 30px rgba(0,0,0,0.15)",handleColor:"rgba(0,0,0,0.2)",handleHover:"rgba(0,0,0,0.5)"}};function af({items:e,keyExtractor:t,renderItem:o,onReorder:n,direction:r="vertical",handle:a="whole",disabled:l=false,gap:s,style:g,className:b}){let c=A(),d=rf[c],i=r==="vertical",[u,f]=zn.useState(null),[m,p]=zn.useState(null),[R,z]=zn.useState(null),h=zn.useRef(new Map),S=zn.useRef({x:0,y:0}),x=zn.useCallback((v,E)=>{if(l)return;E.preventDefault();let y="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};S.current=y,f(v),p(v);},[l]);zn.useEffect(()=>{if(u===null)return;let v=y=>{let D="touches"in y?{x:y.touches[0].clientX,y:y.touches[0].clientY}:{x:y.clientX,y:y.clientY},B=u,k=1/0;h.current.forEach((M,F)=>{let w=M.getBoundingClientRect(),T=i?w.top+w.height/2:w.left+w.width/2,L=i?D.y:D.x,N=Math.abs(L-T);N<k&&(k=N,B=F);}),p(B);},E=()=>{if(u!==null&&m!==null&&u!==m){let y=[...e],[D]=y.splice(u,1);y.splice(m,0,D),n(y);}f(null),p(null);};return document.addEventListener("mousemove",v),document.addEventListener("mouseup",E),document.addEventListener("touchmove",v,{passive:false}),document.addEventListener("touchend",E),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",E);}},[u,m,e,n,i]);let I=zn.useCallback((v,E)=>{if(!l){if(E.key===" "||E.key==="Enter")if(E.preventDefault(),R===null)z(v);else {if(R!==v){let y=[...e],[D]=y.splice(R,1);y.splice(v,0,D),n(y);}z(null);}else if(R!==null){let y=i?E.key==="ArrowDown"?1:E.key==="ArrowUp"?-1:0:E.key==="ArrowRight"?1:E.key==="ArrowLeft"?-1:0;if(y!==0){E.preventDefault();let D=Math.max(0,Math.min(e.length-1,R+y));if(D!==R){let B=[...e],[k]=B.splice(R,1);B.splice(D,0,k),n(B),z(D);}}E.key==="Escape"&&z(null);}}},[l,R,e,n,i]);return jsxRuntime.jsx("div",{className:b,style:{display:"flex",flexDirection:i?"column":"row",gap:s??0,position:"relative",...g},children:e.map((v,E)=>{let y=t(v),D=u===E,B=R===E,k=u!==null&&m===E&&u>E,M=u!==null&&m===E&&u<E,F=a==="explicit"?jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:l?"default":"grab",color:d.handleColor,transition:"color 0.12s ease",touchAction:"none"},onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),onMouseEnter:T=>{T.currentTarget.style.color=d.handleHover;},onMouseLeave:T=>{T.currentTarget.style.color=d.handleColor;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:16})}):null,w=a==="whole"?{onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),style:{cursor:l?"default":"grab",touchAction:"none"}}:{};return jsxRuntime.jsxs("div",{ref:T=>{T?h.current.set(E,T):h.current.delete(E);},tabIndex:l?-1:0,role:"listitem","aria-grabbed":D||B,onKeyDown:T=>I(E,T),...a==="whole"?w:{},style:{position:"relative",opacity:D?.4:1,outline:B?`2px solid ${d.insertionLine}`:"none",outlineOffset:"2px",borderRadius:"4px",transition:"opacity 0.15s ease",...a==="whole"?w.style:{}},children:[k&&jsxRuntime.jsx("div",{style:{position:"absolute",[i?"top":"left"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}}),o(v,F),M&&jsxRuntime.jsx("div",{style:{position:"absolute",[i?"bottom":"right"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}})]},y)})})}af.displayName="SortableList";var lf={dark:{dividerBg:"rgba(255,255,255,0.06)",dividerHover:"rgba(255,255,255,0.15)",dividerActive:"#FC4F00"},light:{dividerBg:"rgba(0,0,0,0.06)",dividerHover:"rgba(0,0,0,0.12)",dividerActive:"#FC4F00"}},cf=({orientation:e="horizontal",children:t,defaultSizes:o,minSizes:n,maxSizes:r,onResize:a,persistKey:l,dividerSize:s=4,disabled:g=false,style:b,className:c})=>{let d=A(),i=lf[d],u=zn.useRef(null),f=zn__default.default.Children.count(t),m=e==="horizontal",p=()=>{if(l&&typeof window<"u"){let B=localStorage.getItem(`splitter-${l}`);if(B)try{let k=JSON.parse(B);if(Array.isArray(k)&&k.length===f)return k}catch{}}return o&&o.length===f?o:Array.from({length:f},()=>100/f)},[R,z]=zn.useState(p),[h,S]=zn.useState(null),[x,I]=zn.useState(null),v=zn.useRef(null);zn.useEffect(()=>{l&&typeof window<"u"&&h===null&&localStorage.setItem(`splitter-${l}`,JSON.stringify(R));},[R,l,h]);let E=zn.useCallback(()=>u.current?m?u.current.clientWidth:u.current.clientHeight:0,[m]),y=zn.useCallback((B,k)=>{g||(S(B),v.current={pos:k,sizes:[...R]});},[g,R]);zn.useEffect(()=>{if(h===null)return;let B=m?"col-resize":"row-resize";document.body.style.cursor=B,document.body.style.userSelect="none";let k=F=>{if(!v.current||h===null)return;let w="touches"in F?F.touches[0][m?"clientX":"clientY"]:F[m?"clientX":"clientY"],T=E();if(!T)return;let N=(w-v.current.pos)/T*100,C=[...v.current.sizes],P=h,H=h+1;C[P]=v.current.sizes[P]+N,C[H]=v.current.sizes[H]-N;let W=T/100;if(n){let V=(n[P]??0)/W,q=(n[H]??0)/W;C[P]<V&&(C[H]+=C[P]-V,C[P]=V),C[H]<q&&(C[P]+=C[H]-q,C[H]=q);}if(r){let V=r[P]?r[P]/W:100,q=r[H]?r[H]/W:100;C[P]>V&&(C[H]+=C[P]-V,C[P]=V),C[H]>q&&(C[P]+=C[H]-q,C[H]=q);}C[P]<0||C[H]<0||(z(C),a&&a(C.map(V=>Math.round(V*W))));},M=()=>{S(null),v.current=null,document.body.style.cursor="",document.body.style.userSelect="";};return document.addEventListener("mousemove",k),document.addEventListener("mouseup",M),document.addEventListener("touchmove",k,{passive:false}),document.addEventListener("touchend",M),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",M),document.body.style.cursor="",document.body.style.userSelect="";}},[h,m,E,n,r,a]);let D=zn__default.default.Children.toArray(t);return jsxRuntime.jsx("div",{ref:u,className:c,style:{display:"flex",flexDirection:m?"row":"column",width:"100%",height:"100%",overflow:"hidden",...b},children:D.map((B,k)=>jsxRuntime.jsxs(zn__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:{flex:`0 0 calc(${R[k]??100/f}% - ${(f-1)*s/f}px)`,overflow:"auto",minWidth:0,minHeight:0},children:B}),k<D.length-1&&jsxRuntime.jsx("div",{style:{flex:`0 0 ${s}px`,backgroundColor:h===k?i.dividerActive:x===k?i.dividerHover:i.dividerBg,cursor:g?"default":m?"col-resize":"row-resize",transition:h===k?"none":"background-color 0.15s ease",touchAction:"none"},onMouseDown:M=>y(k,m?M.clientX:M.clientY),onTouchStart:M=>y(k,m?M.touches[0].clientX:M.touches[0].clientY),onMouseEnter:()=>!g&&I(k),onMouseLeave:()=>I(null)})]},k))})};cf.displayName="Splitter";exports.Accordion=Sc;exports.AccordionItem=vc;exports.Alert=th;exports.AppSidebar=Cp;exports.Avatar=zb;exports.AvatarStack=ed;exports.Badge=Wb;exports.Banner=pu;exports.Breadcrumb=Yd;exports.Button=Mi;exports.Calendar=dd;exports.Card=bc;exports.Checkbox=Gr;exports.CheckboxGroup=_r;exports.ColorPicker=Cl;exports.Combobox=Ts;exports.CommandMenu=Sp;exports.ConfirmDialog=zu;exports.Container=_h;exports.CopyButton=$u;exports.DataGrid=sc;exports.DataList=bd;exports.DatePicker=Ur;exports.DatePickerGroup=Ls;exports.Divider=Zh;exports.DragList=ef;exports.Drawer=Ad;exports.DropdownMenu=cp;exports.EmptyState=Zc;exports.FileUpload=ia;exports.FormField=_i;exports.FormWizard=ip;exports.IconButton=Vi;exports.ImageCropper=Kl;exports.Input=zr;exports.InputGroup=Hf;exports.Link=px;exports.MobileDataCard=uc;exports.Modal=Vn;exports.Navbar=Dp;exports.Notification=vu;exports.NumberInput=ps;exports.OTPInput=Ll;exports.Pagination=qd;exports.PhoneInput=Xl;exports.Popover=Bc;exports.ProgressBar=xh;exports.ProgressCircle=hh;exports.Radio=dn;exports.RadioGroup=jr;exports.Rating=zl;exports.SegmentedControl=bl;exports.Select=Hr;exports.SelectGroup=bs;exports.Sheet=Wd;exports.SidebarItem=zp;exports.Skeleton=ve;exports.Slider=ra;exports.SortableList=af;exports.Spinner=Ch;exports.Splitter=cf;exports.Spotlight=mp;exports.Stack=Uh;exports.Stat=_c;exports.StatusBadge=Td;exports.Stepper=Qn;exports.Switch=Jr;exports.Tab=wc;exports.TabPanel=Rc;exports.Table=rc;exports.Tabs=Tc;exports.Tag=$b;exports.TagItem=Ob;exports.Textarea=ea;exports.Timeline=fd;exports.Toast=oi;exports.ToasterProvider=Gx;exports.Tooltip=ht;exports.Tree=vd;exports.useTheme=A;exports.useToast=_x;//# sourceMappingURL=index.js.map
19
19
  //# sourceMappingURL=index.js.map