@smworks-cz/ui-kit 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +283 -3
- package/dist/index.d.ts +283 -3
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
'use strict';var _o=require('react'),jsxRuntime=require('react/jsx-runtime'),react=require('@phosphor-icons/react'),reactDom=require('react-dom');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var _o__default=/*#__PURE__*/_interopDefault(_o);var I=()=>{let[e,t]=_o.useState("light");return _o.useEffect(()=>{if(typeof window>"u")return;let o=()=>{let c=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return c==="dark"||c==="light"?c:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),a=c=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(c.matches?"dark":"light");};r.addEventListener("change",a);let n=new MutationObserver(c=>{c.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return n.observe(document.documentElement,{attributes:true}),n.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",a),n.disconnect();}},[]),e};var he={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},Fa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},Ea=({size:e=14})=>{let[t,o]=_o.useState(0),r=_o.useRef(void 0),a=_o.useRef(void 0);return _o.useEffect(()=>{let n=c=>{a.current===void 0&&(a.current=c),o((c-a.current)/800*360%360),r.current=requestAnimationFrame(n);};return r.current=requestAnimationFrame(n),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Da=_o__default.default.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:a=false,fullWidth:n=false,children:c,style:i,className:d,...s},f)=>{let[p,l]=_o.useState(false),u=I()==="dark",b=typeof s.href=="string",g=a||(b?false:!!s.disabled),w=c!=null&&c!=="",S=o!=null,v=(S||a)&&!w,{paddingText:x,paddingSquare:C,fontSize:B,gap:E,height:h}=Fa[t],R={display:n?"flex":"inline-flex",width:n?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:w&&(S||a)?E:void 0,padding:v?C:x,height:h,borderRadius:"8px",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:B,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:g?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?he.primaryHover:he.primary,color:he.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?u?he.secondaryHoverDark:he.secondaryHoverLight:"transparent",color:u?he.white:he.black,border:`1px solid ${p?u?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":u?he.borderDark:he.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:he.white,border:"1px solid transparent"}}})(),T=jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:a?jsxRuntime.jsx(Ea,{size:parseInt(B)-1}):o}),z=a||S,M=r==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[w&&jsxRuntime.jsx("span",{children:c}),z&&T]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z&&T,w&&jsxRuntime.jsx("span",{children:c})]}),y={style:{...R,...F,...i},className:d,onMouseEnter:N=>{l(true),s.onMouseEnter?.(N);},onMouseLeave:N=>{l(false),s.onMouseLeave?.(N);}};if(b){let{href:N,target:A,rel:L,...V}=s;return jsxRuntime.jsx("a",{ref:f,href:N,target:A,rel:L??(A==="_blank"?"noopener noreferrer":void 0),"aria-disabled":g||void 0,...V,...y,children:M})}let{disabled:D,type:P="button",...H}=s;return jsxRuntime.jsx("button",{ref:f,type:P,disabled:g,"aria-busy":a||void 0,...H,...y,children:M})});Da.displayName="Button";var Aa=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Nr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},Ha={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},$r=_o__default.default.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:a,loading:n=false,clearable:c=false,passwordToggle:i,size:d="md",fullWidth:s=false,style:f,className:p,inputStyle:l,disabled:m,required:u,value:b,onChange:g,onFocus:w,onBlur:S,type:v,...x},C)=>{let B=I(),E=Nr[B],h=_o.useId(),R=x.id??h,[F,T]=_o.useState(false),[z,M]=_o.useState(false),y=v==="password",D=i??y,P=y&&z?"text":v,H=m||n,N=!!r,A=typeof r=="string"?r:void 0,L=b!=null&&b!=="",V=c&&L&&!H&&!D,O=Ha[d],K=()=>{if(!g)return;g({target:{value:""},currentTarget:{value:""}});},te=t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:E.placeholder},children:t}):null,U=D&&!H?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":z?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:z?jsxRuntime.jsx(react.EyeSlash,{color:E.placeholder,size:O.iconSize}):jsxRuntime.jsx(react.Eye,{color:E.placeholder,size:O.iconSize})}):null,q=n?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:E.placeholder},children:jsxRuntime.jsx(Aa,{size:O.iconSize,color:E.placeholder})}):U||(V?jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:K,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:E.placeholder,padding:"2px"},children:jsxRuntime.jsx(react.X,{size:O.iconSize-2,color:E.placeholder})}):o==="right"&&te?te:null),X=o==="left"?te:null,_={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:H?E.backgroundDisabled:E.background,border:`1px solid ${N?E.borderError:F?E.borderFocus:E.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},ue={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:O.fontSize,lineHeight:"normal",color:E.text,cursor:H?"not-allowed":"text",...l},Q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...f},className:p,children:[e&&jsxRuntime.jsxs("label",{htmlFor:R,style:Q,children:[e,u&&jsxRuntime.jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("label",{htmlFor:R,style:_,children:[X,jsxRuntime.jsx("input",{ref:C,id:R,type:P,disabled:m,required:u,readOnly:n||x.readOnly,value:b,onChange:g,style:ue,onFocus:J=>{T(true),w?.(J);},onBlur:J=>{T(false),S?.(J);},...x}),q]}),A&&jsxRuntime.jsx("span",{style:{...j,color:E.borderError},children:A}),!A&&a&&jsxRuntime.jsx("span",{style:{...j,color:E.helperText},children:a})]})});$r.displayName="Input";var ep=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c,d={display:"flex",flexDirection:"column",gap:"8px",...r},s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Nr[n].label,userSelect:"none"};return jsxRuntime.jsxs("div",{style:d,className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:s,children:e}),o??jsxRuntime.jsx($r,{id:i})]})};var Va={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},Ua={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},qa=_o__default.default.forwardRef(({value:e,onChange:t,min:o,max:r,step:a=1,label:n,error:c,disabled:i=false,size:d="md",variant:s="default",prefix:f,suffix:p,style:l,className:m},u)=>{let b=I(),g=Va[b],S=_o.useId(),v=Ua[d],[x,C]=_o.useState(false),[B,E]=_o.useState(null),h=!!c,R=typeof c=="string"?c:void 0,F=_o.useCallback(X=>{let _=X;return o!==void 0&&_<o&&(_=o),r!==void 0&&_>r&&(_=r),_},[o,r]),T=_o.useCallback(()=>{t(F(e+a));},[e,a,t,F]),z=_o.useCallback(()=>{t(F(e-a));},[e,a,t,F]),M=_o.useRef(null),y=_o.useRef(null),D=_o.useCallback(X=>{i||(X(),y.current=setTimeout(()=>{M.current=setInterval(X,80);},400));},[i]),P=_o.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);_o.useEffect(()=>()=>P(),[P]);let H=X=>{let _=X.target.value;if(_===""||_==="-")return;let ue=parseFloat(_);isNaN(ue)||t(F(ue));},N=()=>{C(false),t(F(e));},A=o===void 0||e>o,L=r===void 0||e<r,V={display:"flex",alignItems:"center",backgroundColor:i?g.backgroundDisabled:g.background,border:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:v.height},O=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:v.buttonPadding,border:"none",background:B===X&&_&&!i?g.buttonHoverBg:g.buttonBg,color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:v.height,userSelect:"none"}),K={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v.fontSize,lineHeight:"normal",color:g.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},U={fontFamily:"'Zalando Sans', sans-serif",fontSize:v.fontSize,color:g.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},q=(X,_)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:B===X&&_&&!i?g.buttonHoverBg:"transparent",color:_&&!i?g.buttonText:g.placeholder,cursor:i||!_?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return s==="compact"?jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:m,children:[n&&jsxRuntime.jsx("label",{htmlFor:S,style:te,children:n}),jsxRuntime.jsxs("div",{style:V,children:[jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:v.padding,minWidth:0},children:[f&&jsxRuntime.jsx("span",{style:U,children:f}),jsxRuntime.jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:{...K,textAlign:"left"}}),p&&jsxRuntime.jsx("span",{style:U,children:p})]}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${h?g.borderError:x?g.borderFocus:g.border}`,transition:"border-color 0.15s ease"},children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:q("up",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("up"),children:jsxRuntime.jsx(react.CaretUp,{size:10,weight:"bold"})}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!A,style:q("down",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("down"),children:jsxRuntime.jsx(react.CaretDown,{size:10,weight:"bold"})})]})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]}):jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:m,children:[n&&jsxRuntime.jsx("label",{htmlFor:S,style:te,children:n}),jsxRuntime.jsxs("div",{style:V,children:[jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!A,style:O("minus",A),onMouseDown:()=>D(z),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("minus"),children:jsxRuntime.jsx(react.Minus,{size:v.iconSize})}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[f&&jsxRuntime.jsx("span",{style:U,children:f}),jsxRuntime.jsx("input",{ref:u,id:S,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>C(true),onBlur:N,disabled:i,style:K}),p&&jsxRuntime.jsx("span",{style:U,children:p})]}),jsxRuntime.jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!L,style:O("plus",L),onMouseDown:()=>D(T),onMouseUp:P,onMouseLeave:()=>{P(),E(null);},onMouseEnter:()=>E("plus"),children:jsxRuntime.jsx(react.Plus,{size:v.iconSize})})]}),R&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:R})]})});qa.displayName="NumberInput";var Ka=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Eo=180,Ur=({options:e,value:t,onChange:o,multiple:r=false,searchable:a=false,clearable:n=false,disabled:c=false,loading:i=false,error:d,label:s,placeholder:f="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:m})=>{let u=I(),b=Vr[u],g=_o.useId(),w=_o.useRef(null),S=_o.useRef(null),v=_o.useRef(null),x=_o.useRef(null),[C,B]=_o.useState(false),[E,h]=_o.useState(false),[R,F]=_o.useState("idle"),[T,z]=_o.useState(""),[M,y]=_o.useState(-1),[D,P]=_o.useState({top:0,left:0,width:0,openAbove:false}),H=c||i,N=!!d,A=typeof d=="string"?d:void 0,L=_o.useCallback(()=>{B(true),h(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),V=_o.useCallback(()=>{B(false),F("closing"),z("");let W=setTimeout(()=>{h(false),F("idle");},Eo);return ()=>clearTimeout(W)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],K=W=>O.includes(W),te=T?e.filter(W=>(W.label??W.value).toLowerCase().includes(T.toLowerCase())):e,U=_o.useCallback(()=>{if(!w.current)return;let W=w.current.getBoundingClientRect(),ne=S.current?.offsetHeight??p+60,ee=window.innerHeight-W.bottom-6,ie=W.top-6,ye=ee<ne&&ie>ee;P({top:ye?W.top-6:W.bottom+6,left:W.left,width:W.width,openAbove:ye});},[p]);_o.useEffect(()=>{if(E)return U(),window.addEventListener("scroll",U,true),window.addEventListener("resize",U),()=>{window.removeEventListener("scroll",U,true),window.removeEventListener("resize",U);}},[E,U]);let q=_o.useCallback(W=>{if(o)if(r){let ne=K(W)?O.filter(ee=>ee!==W):[...O,W];o(ne);}else o(W),V();},[r,o,O,V]),X=_o.useCallback(W=>{W.stopPropagation(),o&&(o(r?[]:null),z(""));},[r,o]),_=()=>{H||(C?V():L(),y(-1));},ue=W=>{if(!H)switch(W.key){case "ArrowDown":W.preventDefault(),C?y(ne=>Math.min(ne+1,te.length-1)):(L(),y(0));break;case "ArrowUp":W.preventDefault(),y(ne=>Math.max(ne-1,0));break;case "Enter":case " ":W.preventDefault(),C&&M>=0&&te[M]&&!te[M].disabled?q(te[M].value):C||(L(),y(0));break;case "Escape":V();break;case "Tab":V();break}};_o.useEffect(()=>{M>=0&&x.current&&x.current.children[M]?.scrollIntoView({block:"nearest"});},[M]),_o.useEffect(()=>{if(!C)return;let W=ne=>{let ee=ne.target,ie=w.current?.contains(ee),ye=S.current?.contains(ee);!ie&&!ye&&V();};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[C,V]),_o.useEffect(()=>{C&&a&&v.current&&v.current.focus();},[C,a]);let Q=W=>e.find(ee=>ee.value===W)?.label??W,j=n&&O.length>0&&!H,J=()=>{let W=D.openAbove,ne=W?"translateY(8px)":"translateY(-8px)",ee=W?"translateY(6px)":"translateY(-6px)",ie={transition:`opacity ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...ie,opacity:0,transform:`${ne} scale(0.97)`}:R==="open"?{...ie,opacity:1,transform:"translateY(0) scale(1)"}:{...ie,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},ge={display:"flex",alignItems:"center",gap:"10px",backgroundColor:H?b.backgroundDisabled:b.background,border:`1px solid ${N?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"pointer",userSelect:"none",outline:"none"},Re=E?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:S,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.dropdownBorder}`,borderRadius:"12px",boxShadow:u==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom center":"top center",...J()},children:[a&&jsxRuntime.jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${b.divider}`},children:jsxRuntime.jsx("input",{ref:v,type:"text",value:T,onChange:W=>{z(W.target.value),y(0);},onKeyDown:ue,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,boxSizing:"border-box",padding:0}})}),jsxRuntime.jsxs("div",{ref:x,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${g}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsxRuntime.jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
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 {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${f}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${f}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${m.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:b.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((W,ne)=>{let ee=K(W.value),ie=ne===M;return jsxRuntime.jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":W.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ee?500:400,lineHeight:"normal",color:ee?b.optionSelectedText:W.disabled?b.placeholder:b.text,backgroundColor:ie?b.optionHover:ee?b.optionSelected:"transparent",cursor:W.disabled?"not-allowed":"pointer",opacity:W.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ne<te.length-1?"2px":0},onClick:()=>{W.disabled||q(W.value);},onMouseEnter:()=>y(ne),onMouseLeave:()=>y(-1),children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.label??W.value}),ee&&jsxRuntime.jsx(react.Check,{size:16,color:b.optionSelectedText})]},W.value)})]})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:m,children:[s&&jsxRuntime.jsx("label",{htmlFor:g,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.text,userSelect:"none"},children:s}),jsxRuntime.jsxs("div",{ref:w,role:"combobox","aria-expanded":C,"aria-haspopup":"listbox",tabIndex:H?-1:0,style:ge,onClick:_,onKeyDown:ue,children:[jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[O.length===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:b.placeholder,lineHeight:"normal"},children:f}),r?O.map(W=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:b.tagBg,color:b.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q(W)}),!H&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ne=>{ne.stopPropagation(),q(W);},children:jsxRuntime.jsx(react.X,{size:14,color:b.tagText})})]},W)):O.length>0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:b.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Q(O[0])})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:X,children:jsxRuntime.jsx(react.X,{size:14,color:b.placeholder})}),i?jsxRuntime.jsx(Ka,{size:16,color:b.placeholder}):jsxRuntime.jsx(react.CaretDown,{size:16,color:b.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),A&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.borderError,lineHeight:"normal"},children:A}),Re]})};Ur.displayName="Select";var ja=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[n].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(Ur,{options:[]})]})};ja.displayName="SelectGroup";var ns=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},as={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Do=180,ss={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},is=_o__default.default.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:a="Hledat\u2026",label:n,error:c,disabled:i=false,loading:d=false,multiple:s=false,clearable:f=false,onOpenChange:p,onSelect:l,onDeselect:m,onClear:u,onFocus:b,onBlur:g,allowCustom:w=false,onCreate:S,renderOption:v,notFoundContent:x,footer:C,size:B="md",style:E,className:h},R)=>{let F=I(),T=as[F],M=_o.useId(),y=ss[B],D=_o.useRef(null),P=_o.useRef(null),H=_o.useRef(null),N=_o.useRef(null),[A,L]=_o.useState(false),[V,O]=_o.useState(false),[K,te]=_o.useState("idle"),[U,q]=_o.useState(""),[X,_]=_o.useState(-1),[ue,Q]=_o.useState(false),[j,J]=_o.useState({top:0,left:0,width:0,openAbove:false}),ge=i||d,Re=!!c,W=typeof c=="string"?c:void 0,ne=f&&!ge,ee=s?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ie=k=>ee.includes(k),ye=k=>{let $=e.find(Y=>Y.value===k);return $?$.label??$.value:k};_o.useEffect(()=>{if(!s&&!ue){let k=e.find($=>$.value===t);q(k?k.label??k.value:(typeof t=="string"?t:"")||"");}},[t,e,ue,s]);let He=U?e.filter(k=>(k.label??k.value).toLowerCase().includes(U.toLowerCase())):e,Ue=_o.useCallback(()=>{L(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Se=_o.useCallback(()=>{L(false),te("closing"),p?.(false);let k=setTimeout(()=>{O(false),te("idle");},Do);return ()=>clearTimeout(k)},[p]),Pe=_o.useCallback(()=>{if(!D.current)return;let k=D.current.getBoundingClientRect(),$=H.current?.offsetHeight??240,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;J({top:re?k.top-6:k.bottom+6,left:k.left,width:k.width,openAbove:re});},[]);_o.useEffect(()=>{if(V)return Pe(),window.addEventListener("scroll",Pe,true),window.addEventListener("resize",Pe),()=>{window.removeEventListener("scroll",Pe,true),window.removeEventListener("resize",Pe);}},[V,Pe]),_o.useEffect(()=>{if(!A)return;let k=$=>{let Y=$.target;if(!D.current?.contains(Y)&&!H.current?.contains(Y))if(Se(),s)q("");else {let Z=e.find(re=>re.value===t);w||q(Z?Z.label??Z.value:"");}};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[A,Se,t,e,w,s]),_o.useEffect(()=>{X>=0&&N.current&&N.current.children[X]?.scrollIntoView({block:"nearest"});},[X]);let bo=k=>{let $=k.target.value;q($),r?.($),_(0),A||Ue();},Zt=_o.useCallback(k=>{let $=e.find(Y=>Y.value===k)||{value:k};if(s){if(ie(k)){let Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);}else {let Y=[...ee,k];o(Y),l?.(k,$);}q("");}else o(k),l?.(k,$),q($.label??$.value),Se();},[o,e,Se,s,ee,l,m]),xo=_o.useCallback(k=>{if(!s)return;let $=e.find(Z=>Z.value===k)||{value:k},Y=ee.filter(Z=>Z!==k);o(Y),m?.(k,$);},[s,ee,o,e,m]),mo=_o.useCallback(k=>{k.stopPropagation(),o(s?[]:""),q(""),u?.();},[s,o,u]),ho=k=>{if(!ge)switch(k.key){case "ArrowDown":k.preventDefault(),A?_($=>Math.min($+1,He.length-1)):(Ue(),_(0));break;case "ArrowUp":k.preventDefault(),_($=>Math.max($-1,0));break;case "Enter":k.preventDefault(),A&&X>=0&&He[X]?Zt(He[X].value):w&&U&&(s?(o([...ee,U]),S?.(U),q("")):(o(U),S?.(U),Se()));break;case "Backspace":if(s&&U===""&&ee.length>0){let $=ee.slice(0,-1);o($);}break;case "Escape":Se();break;case "Tab":A&&Se();break}},vt=k=>{Q(true),b?.(k),!A&&!ge&&Ue();},yo=k=>{let $=k.relatedTarget;$&&(H.current?.contains($)||D.current?.contains($))||(Q(false),g?.(k),!s&&w&&U&&o(U),s&&q(""));},vo=()=>{let k=j.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${Do}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Do}ms cubic-bezier(0.16, 1, 0.3, 1)`};return K==="opening"||K==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:K==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},So={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:ge?T.backgroundDisabled:T.background,border:`1px solid ${Re?T.borderError:ue?T.borderFocus:T.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:ge?.6:1,cursor:ge?"not-allowed":"text",flexWrap:"nowrap"},ko={flex:1,minWidth:s?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:T.text,cursor:ge?"not-allowed":"text"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},Yt=V?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:H,style:{position:"fixed",...j.openAbove?{bottom:window.innerHeight-j.top,left:j.left}:{top:j.top,left:j.left},width:j.width,backgroundColor:T.dropdownBg,border:`1px solid ${T.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:j.openAbove?"bottom center":"top center",...vo()},onMouseDown:k=>{k.preventDefault();},children:[jsxRuntime.jsxs("div",{ref:N,role:"listbox","aria-multiselectable":s,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[He.length===0&&jsxRuntime.jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:T.placeholder,textAlign:"center"},children:w&&U?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof x=="function"?x(Se):x??"\u017D\xE1dn\xE9 v\xFDsledky"}),He.map((k,$)=>{let Y=ie(k.value),Z=$===X;return jsxRuntime.jsx("div",{role:"option","aria-selected":Y,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Y?500:400,lineHeight:"normal",color:Y?T.optionSelectedText:T.text,backgroundColor:Z?T.optionHover:Y?T.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:$<He.length-1?"2px":0},onClick:()=>Zt(k.value),onMouseEnter:()=>_($),onMouseLeave:()=>_(-1),children:v?v(k,Z):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label??k.value}),Y&&jsxRuntime.jsx(react.Check,{size:16,color:T.optionSelectedText})]})},k.value)})]}),C&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${T.divider}`,padding:"8px 6px"},children:typeof C=="function"?C(Se):C})]}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...E},className:h,children:[n&&jsxRuntime.jsx("label",{htmlFor:M,style:Co,children:n}),jsxRuntime.jsxs("div",{ref:D,style:So,onClick:()=>P.current?.focus(),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:d?jsxRuntime.jsx(ns,{size:y.iconSize,color:T.placeholder}):jsxRuntime.jsx(react.MagnifyingGlass,{size:y.iconSize,color:T.placeholder})}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[s&&ee.map(k=>jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:T.tagBg,color:T.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ye(k)}),!ge&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:$=>{$.stopPropagation(),xo(k);},children:jsxRuntime.jsx(react.X,{size:14,color:T.tagText})})]},k)),jsxRuntime.jsx("input",{ref:k=>{P.current=k,typeof R=="function"?R(k):R&&(R.current=k);},id:M,type:"text",value:U,onChange:bo,onFocus:vt,onBlur:yo,onKeyDown:ho,placeholder:s&&ee.length>0?"":a,disabled:i,readOnly:d,style:ko})]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ne&&ee.length>0&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:mo,children:jsxRuntime.jsx(react.X,{size:14,color:T.placeholder})}),jsxRuntime.jsx(react.CaretDown,{size:y.iconSize,color:T.placeholder,style:{transition:"transform 0.2s ease",transform:A?"rotate(180deg)":"rotate(0deg)"}})]})]}),W&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:T.borderError,lineHeight:"normal"},children:W}),Yt]})});is.displayName="Combobox";var fs=({size:e=16,color:t})=>{let[o,r]=_o.useState(0),a=_o.useRef(void 0),n=_o.useRef(void 0);return _o.useEffect(()=>{let c=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),a.current=requestAnimationFrame(c);};return a.current=requestAnimationFrame(c),()=>{a.current!==void 0&&cancelAnimationFrame(a.current);}},[]),jsxRuntime.jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Qr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},zo=180,us={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},gs=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Xr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function bs(e,t,o){let a=new Date(e,t,1).getDay();a=(a===0?7:a)-o,a<0&&(a+=7);let n=new Date(e,t,1-a),c=[];for(let i=0;i<42;i++){let d=new Date(n);d.setDate(n.getDate()+i),c.push(d);}return c}function Bo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Kr(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Bo(e)} ${t}:${o}`}function We(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function jr(e,t,o){let r=e.getTime(),a=Math.min(t.getTime(),o.getTime()),n=Math.max(t.getTime(),o.getTime());return r>=a&&r<=n}function xs(e){return We(e,new Date)}var en=({mode:e="single",showTime:t=false,value:o,onChange:r,label:a,placeholder:n,error:c,helperText:i,disabled:d=false,loading:s=false,clearable:f=false,size:p="md",fullWidth:l=false,required:m,minDate:u,maxDate:b,firstDayOfWeek:g=1,style:w,className:S})=>{let v=I(),x=Qr[v],C=_o.useId(),B=us[p],E=_o.useRef(null),h=_o.useRef(null),[R,F]=_o.useState(false),[T,z]=_o.useState(false),[M,y]=_o.useState("idle"),[D,P]=_o.useState({top:0,left:0,width:0,openAbove:false}),[H,N]=_o.useState(null),A=new Date,[L,V]=_o.useState(A.getFullYear()),[O,K]=_o.useState(A.getMonth()),[te,U]=_o.useState("days"),[q,X]=_o.useState(0),_=d||s,ue=!!c,Q=typeof c=="string"?c:void 0,j=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],ge=e==="single"?j!==null:J[0]!==null||J[1]!==null,Re=f&&ge&&!_,W=(()=>{if(e==="single")return j?t?Kr(j):Bo(j):"";let[k,$]=J;if(!k&&!$)return "";let Y=t?Kr:Bo;return `${k?Y(k):"\u2026"} \u2013 ${$?Y($):"\u2026"}`})(),ne=n??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),ee=_o.useCallback(()=>{let k=e==="single"?j:J[0];k&&(V(k.getFullYear()),K(k.getMonth())),U("days"),F(true),z(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[e,j,J]),ie=_o.useCallback(()=>{F(false),y("closing");let k=setTimeout(()=>{z(false),y("idle");},zo);return ()=>clearTimeout(k)},[]),ye=_o.useCallback(()=>{if(!E.current)return;let k=E.current.getBoundingClientRect(),$=h.current?.offsetHeight??380,Y=window.innerHeight-k.bottom-6,Z=k.top-6,re=Y<$&&Z>Y;P({top:re?k.top-6:k.bottom+6,left:k.left,width:Math.max(k.width,300),openAbove:re});},[]);_o.useEffect(()=>{if(T)return ye(),window.addEventListener("scroll",ye,true),window.addEventListener("resize",ye),()=>{window.removeEventListener("scroll",ye,true),window.removeEventListener("resize",ye);}},[T,ye]),_o.useEffect(()=>{if(!R)return;let k=$=>{let Y=$.target,Z=E.current?.contains(Y),re=h.current?.contains(Y);!Z&&!re&&ie();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[R,ie]);let He=k=>{_||(k.key==="Escape"&&R&&(k.preventDefault(),ie()),(k.key==="Enter"||k.key===" ")&&!R&&(k.preventDefault(),ee()));},Ue=_o.useCallback(k=>{if(u){let $=new Date(u.getFullYear(),u.getMonth(),u.getDate());if(k<$)return true}if(b){let $=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(k>$)return true}return false},[u,b]),Se=_o.useCallback(k=>{if(!Ue(k)&&r)if(e==="single")t&&j&&k.setHours(j.getHours(),j.getMinutes()),r(new Date(k)),t||ie();else if(q===0)t&&J[0]&&k.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(k),null]),X(1);else {let $=J[0];t&&J[1]&&k.setHours(J[1].getHours(),J[1].getMinutes());let[Y,Z]=k>=$?[$,new Date(k)]:[new Date(k),$];r([Y,Z]),X(0),t||ie();}},[e,t,j,J,q,r,ie,Ue]),Pe=_o.useCallback((k,$,Y)=>{if(!r)return;let Z=parseInt($,10);if(isNaN(Z)&&(Z=0),k==="hour"&&(Z=Math.max(0,Math.min(23,Z))),k==="minute"&&(Z=Math.max(0,Math.min(59,Z))),e==="single"){let re=j?new Date(j):new Date;k==="hour"?re.setHours(Z):re.setMinutes(Z),r(re);}else {let re=Y??0,xe=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],qe=xe[re]??new Date;k==="hour"?qe.setHours(Z):qe.setMinutes(Z),xe[re]=qe,r(xe);}},[e,j,J,r]),bo=()=>{O===0?(K(11),V(k=>k-1)):K(k=>k-1);},Zt=()=>{O===11?(K(0),V(k=>k+1)):K(k=>k+1);},xo=k=>{k.stopPropagation(),r&&(r(e==="single"?null:[null,null]),X(0));},mo=()=>{let k=D.openAbove,$=k?"translateY(8px)":"translateY(-8px)",Y=k?"translateY(6px)":"translateY(-6px)",Z={transition:`opacity ${zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return M==="opening"||M==="idle"?{...Z,opacity:0,transform:`${$} scale(0.97)`}:M==="open"?{...Z,opacity:1,transform:"translateY(0) scale(1)"}:{...Z,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},ho=bs(L,O,g),vt=(k,$)=>{let Y=k?k.getHours():0,Z=k?k.getMinutes():0,re={width:"42px",background:"transparent",border:`1px solid ${x.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsxRuntime.jsx("input",{type:"text",value:String(Y).padStart(2,"0"),onChange:xe=>Pe("hour",xe.target.value,$),style:re,maxLength:2,"aria-label":"Hodiny"}),jsxRuntime.jsx("span",{style:{color:x.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsxRuntime.jsx("input",{type:"text",value:String(Z).padStart(2,"0"),onChange:xe=>Pe("minute",xe.target.value,$),style:re,maxLength:2,"aria-label":"Minuty"})]})},yo=()=>jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Xr.map((k,$)=>{let Y=$===O;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{K($),U("days");},style:{background:Y?x.daySelected:"transparent",color:Y?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:Z=>{Y||(Z.target.style.backgroundColor=x.dayHover);},onMouseLeave:Z=>{Y||(Z.target.style.backgroundColor="transparent");},children:k},$)})}),vo=()=>{let k=Math.floor(L/12)*12,$=Array.from({length:12},(Y,Z)=>k+Z);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>V(Y=>Y-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text},children:[k," \u2013 ",k+11]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>V(Y=>Y+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:$.map(Y=>{let Z=Y===L;return jsxRuntime.jsx("button",{type:"button",onClick:()=>{V(Y),U("months");},style:{background:Z?x.daySelected:"transparent",color:Z?x.daySelectedText:x.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:re=>{Z||(re.target.style.backgroundColor=x.dayHover);},onMouseLeave:re=>{Z||(re.target.style.backgroundColor="transparent");},children:Y},Y)})})]})},So=T?reactDom.createPortal(jsxRuntime.jsx("div",{ref:h,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},width:D.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:v==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom center":"top center",...mo()},children:te==="years"?vo():te==="months"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsxRuntime.jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),yo()]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:bo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretLeft,{size:16,color:x.text})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("button",{type:"button",onClick:()=>U("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:Xr[O]}),jsxRuntime.jsx("button",{type:"button",onClick:()=>U("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:x.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsxRuntime.jsx("button",{type:"button",onClick:Zt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:x.text})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:gs.map(k=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:x.placeholder,padding:"4px 0",userSelect:"none"},children:k},k))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:ho.map((k,$)=>{let Y=k.getMonth()!==O,Z=Ue(k),re=xs(k),xe=false,qe=false,wo=false,Vt=false;if(e==="single"&&j)xe=We(k,j);else if(e==="range"){let[Le,qt]=J;Le&&We(k,Le)&&(qe=true,xe=true),qt&&We(k,qt)&&(wo=true,xe=true),Le&&qt&&jr(k,Le,qt)&&!qe&&!wo&&(Vt=true),q===1&&Le&&H&&!Z&&(We(k,H)&&!We(k,Le)&&(xe=true),jr(k,Le,H)&&!We(k,Le)&&!We(k,H)&&(Vt=true));}let Ro="transparent",Ut=x.text;return xe?(Ro=x.daySelected,Ut=x.daySelectedText):Vt&&(Ro=x.dayRangeMiddle),Y&&(Ut=xe?x.daySelectedText:x.dayOutside),Z&&(Ut=x.dayDisabled),jsxRuntime.jsx("button",{type:"button",disabled:Z,onClick:()=>Se(k),onMouseEnter:()=>{Z||N(k);},onMouseLeave:()=>N(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Ro,color:Ut,border:"none",borderRadius:qe?"6px 0 0 6px":wo?"0 6px 6px 0":Vt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:xe?600:400,cursor:Z?"not-allowed":"pointer",opacity:Z?.4:1,transition:"background-color 0.1s ease",outline:re&&!xe?`1.5px solid ${x.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:k.getDate()},$)})}),t&&jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${x.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"\u010Cas:"}),vt(j)]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Od:"}),vt(J[0],0)]}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.placeholder},children:"Do:"}),vt(J[1],1)]})]})})]})}),document.body):null,ko={display:"flex",alignItems:"center",gap:B.gap,backgroundColor:_?x.backgroundDisabled:x.background,border:`1px solid ${ue?x.borderError:R?x.borderFocus:x.border}`,borderRadius:"8px",padding:B.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:_?.6:1,cursor:_?"not-allowed":"pointer",userSelect:"none",outline:"none"},Co={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},Yt={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...w},className:S,children:[a&&jsxRuntime.jsxs("label",{htmlFor:C,style:Co,children:[a,m&&jsxRuntime.jsx("span",{style:{color:x.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsxs("div",{ref:E,role:"button",tabIndex:_?-1:0,style:ko,onClick:()=>{_||(R?ie():ee());},onKeyDown:He,children:[jsxRuntime.jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W?jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.text,lineHeight:"normal"},children:W}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:B.fontSize,color:x.placeholder,lineHeight:"normal"},children:ne})}),jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Re&&jsxRuntime.jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:xo,children:jsxRuntime.jsx(react.X,{size:B.iconSize-2,color:x.placeholder})}),s?jsxRuntime.jsx(fs,{size:B.iconSize,color:x.placeholder}):jsxRuntime.jsx(react.CalendarBlank,{size:B.iconSize,color:x.placeholder})]})]}),Q&&jsxRuntime.jsx("span",{style:{...Yt,color:x.borderError},children:Q}),!Q&&i&&jsxRuntime.jsx("span",{style:{...Yt,color:x.helperText},children:i}),So]})};en.displayName="DatePicker";var ms=({label:e,htmlFor:t,children:o,style:r,className:a})=>{let n=I(),c=_o.useId(),i=t??c;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:a,children:[jsxRuntime.jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Qr[n].label,userSelect:"none"},children:e}),o??jsxRuntime.jsx(en,{})]})};ms.displayName="DatePickerGroup";var tn={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Ss={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},on=({checked:e=false,onChange:t,label:o,disabled:r=false,error:a,size:n="md",indeterminate:c=false,className:i,style:d})=>{let s=I(),f=tn[s],p=Ss[n],l=_o.useId(),m=_o.useRef(null),u=!!a,b=typeof a=="string"?a:void 0;_o.useEffect(()=>{m.current&&(m.current.indeterminate=c);},[c]);let g=()=>{r||t?.(!e);},w=u?f.borderError:e||c?f.checkBg:f.border,S=e||c?f.checkBg:r?f.backgroundDisabled:f.background,v={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${w}`,backgroundColor:S,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:r?.5:1},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:f.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},C={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...d},className:i,children:[jsxRuntime.jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:B=>{B.preventDefault(),g();},children:[jsxRuntime.jsx("input",{ref:m,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":u||void 0}),jsxRuntime.jsxs("span",{style:v,children:[e&&!c&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),c&&jsxRuntime.jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsxRuntime.jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsxRuntime.jsx("span",{style:x,children:o})]}),b&&jsxRuntime.jsx("span",{style:{...C,color:f.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:b})]})};on.displayName="Checkbox";var rn=({label:e,children:t,error:o,className:r,style:a})=>{let n=I(),c=tn[n],i=typeof o=="string"?o:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},s={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...a},className:r,children:[e&&jsxRuntime.jsx("span",{style:d,children:e}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsxRuntime.jsx("span",{style:{...s,color:c.borderError},children:i})]})};rn.displayName="CheckboxGroup";var nn={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},Cs={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},Po=({value:e,checked:t=false,onChange:o,label:r,disabled:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=nn[d],f=Cs[n],p=_o.useId(),l=()=>{a||o?.(e);},m=t?s.dotRing:s.border,u=a?s.backgroundDisabled:s.background,b={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${m}`,backgroundColor:u,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:a?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:s.text,cursor:a?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsxRuntime.jsx("div",{style:{display:"inline-flex",...i},className:c,children:jsxRuntime.jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:a?"not-allowed":"pointer"},onClick:w=>{w.preventDefault(),l();},children:[jsxRuntime.jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:a,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsxRuntime.jsx("span",{style:b,children:t&&jsxRuntime.jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:s.dot,transition:"transform 0.15s ease"}})}),r&&jsxRuntime.jsx("span",{style:g,children:r})]})})};Po.displayName="Radio";var an=({value:e,onChange:t,label:o,options:r,direction:a="vertical",error:n,helperText:c,size:i="md",className:d,style:s})=>{let f=I(),p=nn[f],l=!!n,m=typeof n=="string"?n:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...s},className:d,children:[o&&jsxRuntime.jsx("span",{style:u,children:o}),jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:a==="horizontal"?"row":"column",gap:a==="horizontal"?"16px":"6px"},children:r.map(g=>jsxRuntime.jsx(Po,{value:g.value,label:g.label,checked:e===g.value,onChange:t,disabled:g.disabled,size:i},g.value))}),m&&jsxRuntime.jsx("span",{style:{...b,color:p.borderError},children:m}),!m&&c&&jsxRuntime.jsx("span",{style:{...b,color:p.helperText},children:c})]})};an.displayName="RadioGroup";var Rs={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Ts={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},ln=({checked:e=false,onChange:t,label:o,disabled:r=false,size:a="md",className:n,style:c})=>{let i=I(),d=Rs[i],s=Ts[a],f=_o.useId(),p=()=>{r||t?.(!e);},l=1.5,m=2,b=s.trackW-l*2-s.thumb-m,g=e?b:0,w={width:s.trackW,height:s.trackH,borderRadius:s.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${l}px solid ${e?d.trackOnBorder:d.trackOffBorder}`,position:"relative",cursor:r?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:r?.5:1,boxSizing:"border-box"},S={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:m,transform:`translateY(-50%) translateX(${g}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${s.trackH}px`};return jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",...c},className:n,children:jsxRuntime.jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:s.gap,cursor:r?"not-allowed":"pointer"},onClick:x=>{x.preventDefault(),p();},children:[jsxRuntime.jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsxRuntime.jsx("span",{style:w,children:jsxRuntime.jsx("span",{style:S})}),o&&jsxRuntime.jsx("span",{style:v,children:o})]})})};ln.displayName="Switch";var Ps={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Ms={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},dn=_o__default.default.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:a=false,size:n="md",fullWidth:c=false,required:i,rows:d=4,maxLength:s,resize:f="vertical",autoHeight:p=false,minRows:l,maxRows:m,className:u,style:b,value:g,onChange:w,onFocus:S,onBlur:v,...x},C)=>{let B=I(),E=Ps[B],h=Ms[n],R=_o.useId(),F=x.id??R,[T,z]=_o.useState(false),M=_o.useRef(null),y=_o.useCallback(()=>{let q=M.current;if(!q||!p)return;q.style.height="auto";let X=getComputedStyle(q),_=parseFloat(X.lineHeight)||parseFloat(X.fontSize)*1.5,ue=parseFloat(X.paddingTop)||0,Q=parseFloat(X.paddingBottom)||0,j=ue+Q,ge=_*(l??1)+j,Re=m?_*m+j:1/0,W=Math.min(Math.max(q.scrollHeight,ge),Re);q.style.height=`${W}px`,q.style.overflowY=q.scrollHeight>Re?"auto":"hidden";},[p,l,m]);_o.useEffect(()=>{y();},[g,y]);let D=_o.useCallback(q=>{M.current=q,typeof C=="function"?C(q):C&&(C.current=q);},[C]),P=p?"none":f,H=p?l??1:d,N=r||a,A=!!t,L=typeof t=="string"?t:void 0,V=typeof g=="string"?g.length:0,O={backgroundColor:N?E.backgroundDisabled:E.background,border:`1px solid ${A?E.borderError:T?E.borderFocus:E.border}`,borderRadius:"8px",padding:h.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},K={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"1.5",color:E.text,cursor:N?"not-allowed":"text",resize:P,boxSizing:"border-box",overflow:p?"hidden":void 0},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:E.label,userSelect:"none"},U={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...b},className:u,children:[e&&jsxRuntime.jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsxRuntime.jsx("span",{style:{color:E.borderError,marginLeft:"3px"},children:"*"})]}),jsxRuntime.jsx("div",{style:O,children:jsxRuntime.jsx("textarea",{ref:D,id:F,rows:H,maxLength:s,disabled:r,required:i,readOnly:a||x.readOnly,value:g,onChange:w,style:K,onFocus:q=>{z(true),S?.(q);},onBlur:q=>{z(false),v?.(q);},...x})}),jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxRuntime.jsxs("div",{style:{flex:1},children:[L&&jsxRuntime.jsx("span",{style:{...U,color:E.borderError},children:L}),!L&&o&&jsxRuntime.jsx("span",{style:{...U,color:E.helperText},children:o})]}),s!==void 0&&jsxRuntime.jsxs("span",{style:{...U,color:V>s?E.borderError:E.counter,flexShrink:0},children:[V,"/",s]})]})]})});dn.displayName="Textarea";var Hs={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},Ls={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function un(e,t,o){return Math.min(Math.max(e,t),o)}function Ns(e,t,o){return Math.round((e-t)/o)*o+t}var gn=({value:e,onChange:t,min:o=0,max:r=100,step:a=1,label:n,disabled:c=false,showValue:i=false,range:d=false,size:s="md",className:f,style:p})=>{let l=I(),m=Hs[l],u=Ls[s],b=_o.useId(),g=_o.useRef(null),w=_o.useRef(null),S=d?e:[o,e],v=T=>(T-o)/(r-o)*100,x=v(S[0]),C=v(S[1]),B=_o.useCallback(T=>{let z=g.current;if(!z)return o;let M=z.getBoundingClientRect(),y=un((T-M.left)/M.width,0,1),D=o+y*(r-o);return un(Ns(D,o,a),o,r)},[o,r,a]),E=_o.useCallback(T=>{if(c)return;T.preventDefault();let z=B(T.clientX);if(d){let D=e,P=Math.abs(z-D[0]),H=Math.abs(z-D[1]),N=P<=H?"start":"end";w.current=N;let A=N==="start"?[Math.min(z,D[1]),D[1]]:[D[0],Math.max(z,D[0])];t?.(A);}else w.current="end",t?.(z);let M=D=>{let P=B(D.clientX);if(d){let H=e;w.current==="start"?t?.([Math.min(P,H[1]),H[1]]):t?.([H[0],Math.max(P,H[0])]);}else t?.(P);},y=()=>{w.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",y);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",y);},[c,B,t,d,e]),h={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.label,userSelect:"none"},R=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,F={width:u.thumb,height:u.thumb,borderRadius:"50%",backgroundColor:m.thumb,border:`2px solid ${m.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:c?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:c?.5:1,...p},className:f,children:[(n||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsxRuntime.jsx("label",{htmlFor:b,style:h,children:n}),i&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:m.text,userSelect:"none"},children:R})]}),jsxRuntime.jsxs("div",{ref:g,role:"slider",id:b,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":d?void 0:e,"aria-disabled":c||void 0,onMouseDown:E,style:{position:"relative",width:"100%",height:u.thumb,cursor:c?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackBg}}),jsxRuntime.jsx("div",{style:{position:"absolute",top:"50%",left:`${d?x:0}%`,width:`${C-(d?x:0)}%`,height:u.trackH,transform:"translateY(-50%)",borderRadius:u.trackH/2,backgroundColor:m.trackFill}}),d&&jsxRuntime.jsx("span",{style:{...F,left:`${x}%`}}),jsxRuntime.jsx("span",{style:{...F,left:`${C}%`}})]})]})};gn.displayName="Slider";var Ys={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function No(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Vs=0,xn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:a,disabled:n=false,label:c,helperText:i,error:d,value:s,buttonStyle:f="default",showFileList:p=true,buttonLabel:l,className:m,style:u})=>{let b=I(),g=Ys[b],w=_o.useId(),S=_o.useRef(null),[v,x]=_o.useState(false),[C,B]=_o.useState([]),[E,h]=_o.useState(null),R=s!==void 0,F=R?s.map((A,L)=>({file:A,id:`controlled-${L}`})):C,T=!!d||!!E,z=typeof d=="string"?d:E??void 0,M=_o.useCallback(A=>{let L=Array.from(A);if(h(null),a){let V=L.find(O=>O.size>a);if(V){h(`Soubor \u201E${V.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${No(a)}.`);return}}if(R){let O=r?[...s||[],...L]:L;t?.(O);}else {let V=L.map(K=>({file:K,id:`file-${++Vs}`})),O=r?[...C,...V]:V;B(O),t?.(O.map(K=>K.file));}},[R,s,C,a,r,t]),y=_o.useCallback(A=>{A.preventDefault(),x(false),!n&&A.dataTransfer.files.length>0&&M(A.dataTransfer.files);},[n,M]),D=_o.useCallback(A=>{if(R){let L=(s||[]).filter((V,O)=>`controlled-${O}`!==A);t?.(L);}else {let L=C.filter(V=>V.id!==A);B(L),t?.(L.map(V=>V.file));}},[R,s,C,t]),P={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},H={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${T?g.borderError:v?g.borderDrag:g.border}`,borderRadius:"8px",backgroundColor:v?g.backgroundDrag:n?g.backgroundDisabled:g.background,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...u},className:m,children:[c&&jsxRuntime.jsx("span",{style:P,children:c}),jsxRuntime.jsx("input",{ref:S,id:w,type:"file",accept:o,multiple:r,disabled:n,onChange:A=>{A.target.files&&A.target.files.length>0&&M(A.target.files),A.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxRuntime.jsxs("div",{style:H,onClick:()=>!n&&S.current?.click(),onDragOver:A=>{A.preventDefault(),n||x(true);},onDragLeave:()=>x(false),onDrop:y,children:[jsxRuntime.jsx(react.UploadSimple,{size:32,color:g.textSecondary}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):f==="primary"?jsxRuntime.jsxs("button",{type:"button",disabled:n,onClick:()=>!n&&S.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:n?.5:1,cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:A=>{n||(A.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:A=>{A.currentTarget.style.backgroundColor="#FC4F00";},children:[jsxRuntime.jsx(react.UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxRuntime.jsxs("div",{onClick:()=>!n&&S.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${T?g.borderError:g.border}`,backgroundColor:n?g.backgroundDisabled:g.background,opacity:n?.5:1,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:A=>{n||(A.currentTarget.style.borderColor=T?g.borderError:b==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:A=>{A.currentTarget.style.borderColor=T?g.borderError:g.border;},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:F.length>0?jsxRuntime.jsx(react.FileText,{size:18,color:g.textSecondary}):jsxRuntime.jsx(react.UploadSimple,{size:18,color:g.textSecondary})}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?g.text:g.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.textSecondary,flexShrink:0},children:No(F[0].file.size)}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.textSecondary},children:jsxRuntime.jsx(react.Folder,{size:16,color:g.textSecondary})})]}),p&&F.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(A=>jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:g.fileBg},children:[jsxRuntime.jsx(react.FileText,{size:24,color:g.textSecondary}),jsxRuntime.jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.file.name}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.textSecondary,flexShrink:0},children:No(A.file.size)}),jsxRuntime.jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${A.file.name}`,onClick:L=>{L.stopPropagation(),D(A.id);},onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&D(A.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsxRuntime.jsx(react.X,{size:14,color:g.removeColor})})]},A.id))}),z&&jsxRuntime.jsx("span",{style:{...N,color:g.borderError},children:z}),!z&&i&&jsxRuntime.jsx("span",{style:{...N,color:g.helperText},children:i})]})};xn.displayName="FileUpload";var _s={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Gs={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Xs=({data:e,value:t,onChange:o,size:r="md",fullWidth:a=false,orientation:n="horizontal",disabled:c=false,className:i,style:d})=>{let s=I(),f=_s[s],p=Gs[r],l=n==="vertical",m=e.map(x=>typeof x=="string"?{value:x,label:x}:x),u=m.findIndex(x=>x.value===t),b=_o.useRef(null),g=_o.useRef([]),[w,S]=_o.useState({offset:0,size:0}),v=_o.useCallback(()=>{let x=b.current,C=g.current[u];if(!x||!C||u<0)return;let B=x.getBoundingClientRect(),E=C.getBoundingClientRect();S(l?{offset:E.top-B.top,size:E.height}:{offset:E.left-B.left,size:E.width});},[u,l]);return _o.useEffect(()=>{v();},[v,t,e,r]),_o.useEffect(()=>(window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)),[v]),jsxRuntime.jsxs("div",{ref:b,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:a?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:c?.5:1,cursor:c?"not-allowed":void 0,...d},children:[u>=0&&w.size>0&&jsxRuntime.jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:p.padding,right:p.padding,top:w.offset,height:w.size}:{top:p.padding,bottom:p.padding,left:w.offset,width:w.size}}}),m.map((x,C)=>{let B=x.value===t,E=c||x.disabled;return jsxRuntime.jsxs("button",{ref:h=>{g.current[C]=h;},type:"button",role:"radio","aria-checked":B,disabled:E,onClick:()=>{E||o(x.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:a?1:void 0,padding:p.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:p.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:B?500:400,color:E?f.textDisabled:B?f.textActive:f.text,cursor:E?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:h=>{!E&&!B&&(h.currentTarget.style.color=f.textHover);},onMouseLeave:h=>{!E&&!B&&(h.currentTarget.style.color=f.text);},children:[x.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:x.icon}),(x.label||!x.icon&&x.value)&&jsxRuntime.jsx("span",{children:x.label??x.value})]},x.value)})]})};Xs.displayName="SegmentedControl";var Qs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},Zo=180,ei=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],Yo=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),ti=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},oi=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),r=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),a=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+a*114)/1e3>150},ri=({value:e,onChange:t,presets:o=ei,label:r,disabled:a=false,style:n,className:c})=>{let i=I(),d=Qs[i],f=_o.useId(),p=_o.useRef(null),l=_o.useRef(null),[m,u]=_o.useState(false),[b,g]=_o.useState(false),[w,S]=_o.useState("idle"),[v,x]=_o.useState(e),[C,B]=_o.useState(false),[E,h]=_o.useState({top:0,left:0,openAbove:false});_o.useEffect(()=>{C||x(e);},[e,C]);let R=_o.useCallback(()=>{a||(u(true),g(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}));},[a]),F=_o.useCallback(()=>{u(false),S("closing");let L=setTimeout(()=>{g(false),S("idle");},Zo);return ()=>clearTimeout(L)},[]),T=_o.useCallback(()=>{if(!p.current)return;let L=p.current.getBoundingClientRect(),V=220,O=window.innerHeight-L.bottom-8,K=O<V&&L.top>O;h({top:K?L.top-8:L.bottom+8,left:L.left,openAbove:K});},[]);_o.useEffect(()=>{if(b)return T(),window.addEventListener("scroll",T,true),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",T,true),window.removeEventListener("resize",T);}},[b,T]),_o.useEffect(()=>{if(!m)return;let L=V=>{let O=V.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[m,F]);let z=L=>{let V=ti(L.target.value);x(V),Yo(V)&&t(V);},M=()=>{B(false),Yo(v)?t(v):x(e);},y=L=>{t(L),x(L),F();},D=()=>{let L=E.openAbove,V=L?"translateY(8px)":"translateY(-8px)",O=L?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...K,opacity:0,transform:`${V} scale(0.97)`}:w==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},P={display:"flex",alignItems:"center",gap:"10px",backgroundColor:a?d.backgroundDisabled:d.background,border:`1px solid ${C?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:Yo(e)?e:"#cccccc",border:`1px solid ${d.swatchBorder}`,flexShrink:0,cursor:a?"not-allowed":"pointer",transition:"transform 0.12s ease"},N={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},A=b?reactDom.createPortal(jsxRuntime.jsx("div",{ref:l,style:{position:"fixed",...E.openAbove?{bottom:window.innerHeight-E.top,left:E.left}:{top:E.top,left:E.left},backgroundColor:d.popoverBg,border:`1px solid ${d.popoverBorder}`,borderRadius:"12px",boxShadow:i==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:E.openAbove?"bottom left":"top left",...D()},children:jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((L,V)=>jsxRuntime.jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>y(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${d.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${L}-${V}`))})}),document.body):null;return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...n},className:c,children:[r&&jsxRuntime.jsx("label",{htmlFor:f,style:N,children:r}),jsxRuntime.jsxs("div",{ref:p,style:P,children:[jsxRuntime.jsx("div",{style:H,onClick:()=>{a||(m?F():R());}}),jsxRuntime.jsx("input",{id:f,type:"text",value:v,onChange:z,onFocus:()=>B(true),onBlur:M,disabled:a,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:d.text,cursor:a?"not-allowed":"text"}}),jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:d.placeholder,cursor:a?"not-allowed":"pointer"},onClick:()=>{a||(m?F():R());},children:jsxRuntime.jsx(react.Eyedropper,{size:16,color:(oi(e)&&i==="light",d.placeholder)})})]}),A]})};ri.displayName="ColorPicker";var ii={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},li={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},ci=({value:e,onChange:t,max:o=5,size:r="md",readOnly:a=false,label:n,style:c,className:i})=>{let d=I(),s=ii[d],f=_o.useId(),p=li[r],[l,m]=_o.useState(null),u=!a&&!!t,b=_o.useCallback(x=>{u&&t(x+1);},[u,t]),g=_o.useCallback(x=>{u&&m(x);},[u]),w=_o.useCallback(()=>{m(null);},[]),S={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},v=Array.from({length:o},(x,C)=>{let B=l!==null?l+1:e,E=C<B,h=l!==null&&C<=l;return jsxRuntime.jsx("span",{role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?`Hodnocen\xED ${C+1} z ${o}`:void 0,onClick:()=>b(C),onMouseEnter:()=>g(C),onMouseLeave:w,onKeyDown:R=>{u&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),b(C));},style:{display:"inline-flex",cursor:u?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:h?"scale(1.15)":"scale(1)",outline:"none"},children:jsxRuntime.jsx(react.Star,{size:p.starSize,weight:E?"fill":"regular",color:E?h?s.starHover:s.starFilled:s.starEmpty})},C)});return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:i,role:"group","aria-label":n??"Hodnocen\xED",children:[n&&jsxRuntime.jsx("label",{htmlFor:f,style:S,children:n}),jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:w,children:v})]})};ci.displayName="Rating";var xi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},mi=({length:e=6,value:t,onChange:o,error:r,disabled:a=false,autoFocus:n=false,label:c,separatorAfter:i,separator:d="-",style:s,className:f})=>{let p=I(),l=xi[p],m=_o.useId(),u=_o.useRef([]),[b,g]=_o.useState(null),w=!!r,S=typeof r=="string"?r:void 0,v=t.padEnd(e,"").slice(0,e).split("");_o.useEffect(()=>{n&&u.current[0]&&u.current[0].focus();},[n]);let x=_o.useCallback(y=>{y>=0&&y<e&&u.current[y]?.focus();},[e]),C=_o.useCallback(y=>{let D=y.join("").replace(/[^0-9]/g,"");o(D);},[o]),B=_o.useCallback((y,D)=>{if(!/^[0-9]$/.test(D))return;let P=[...v];P[y]=D,C(P),y<e-1&&x(y+1);},[v,e,C,x]),E=_o.useCallback((y,D)=>{switch(D.key){case "Backspace":if(D.preventDefault(),v[y]){let P=[...v];P[y]="",C(P);}else if(y>0){let P=[...v];P[y-1]="",C(P),x(y-1);}break;case "Delete":D.preventDefault();{let P=[...v];P[y]="",C(P);}break;case "ArrowLeft":D.preventDefault(),y>0&&x(y-1);break;case "ArrowRight":D.preventDefault(),y<e-1&&x(y+1);break}},[v,e,C,x]),h=_o.useCallback((y,D)=>{let H=D.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&B(y,H);},[B]),R=_o.useCallback(y=>{y.preventDefault();let D=y.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!D)return;let P=[...v];for(let N=0;N<D.length;N++)P[N]=D[N];C(P);let H=Math.min(D.length,e-1);x(H);},[v,e,C,x]),F=_o.useCallback(y=>{g(y),u.current[y]?.select();},[]),T=_o.useCallback(()=>{g(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},M=y=>{let D=b===y,P=!!v[y];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:l.text,textAlign:"center",backgroundColor:a?l.backgroundDisabled:P?l.backgroundFilled:l.background,border:`1px solid ${w?l.borderError:D?l.borderFocus:P?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.6:1,cursor:a?"not-allowed":"text",caretColor:l.caret}};return jsxRuntime.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:f,children:[c&&jsxRuntime.jsx("label",{htmlFor:`${m}-0`,style:z,children:c}),jsxRuntime.jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:R,children:Array.from({length:e},(y,D)=>jsxRuntime.jsxs(_o__default.default.Fragment,{children:[i&&D>0&&D%i===0&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:a?.6:.5,padding:"0 2px"},children:d}),jsxRuntime.jsx("input",{ref:P=>{u.current[D]=P;},id:`${m}-${D}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:v[D]||"",onChange:P=>h(D,P),onKeyDown:P=>E(D,P),onFocus:()=>F(D),onBlur:T,disabled:a,"aria-label":`\u010C\xEDslice ${D+1} z ${e}`,style:M(D)})]},D))}),S&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:S})]})};mi.displayName="OTPInput";var hi={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},wn="smSkeletonShimmer",yi=`@keyframes ${wn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,lt=({variant:e="text",width:t,height:o,lines:r=1,animate:a=true,className:n,style:c})=>{let i=I(),d=hi[i],s=t??(e==="circle"?40:"100%"),f=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:d.base,backgroundImage:a?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:a?"200% 100%":void 0,animation:a?`${wn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof s=="number"?`${s}px`:s,height:typeof f=="number"?`${f}px`:f},l=a?jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:yi}}):null;return e==="text"&&r>1?jsxRuntime.jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",gap:"8px",...c},children:[l,Array.from({length:r}).map((m,u)=>jsxRuntime.jsx("div",{style:{...p,width:u===r-1?"75%":p.width}},u))]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[l,jsxRuntime.jsx("div",{className:n,style:{...p,...c}})]})};lt.displayName="Skeleton";var ki={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},Ci=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:a,sortKey:n,sortDirection:c,striped:i=false,hoverable:d=true,className:s,style:f})=>{let p=I(),l=ki[p],m=S=>{if(!S.sortable||!a)return;let v=n===S.key&&c==="asc"?"desc":"asc";a(S.key,v);},u={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",overflow:"hidden",...f},b=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),g={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxRuntime.jsxs("table",{className:s,style:u,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.map(S=>jsxRuntime.jsx("th",{style:b(S),onClick:()=>m(S),children:jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsxRuntime.jsx(react.CaretUpDownIcon,{size:14,color:n===S.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsxRuntime.jsx("tbody",{children:o?Array.from({length:5}).map((S,v)=>jsxRuntime.jsx("tr",{children:e.map(x=>jsxRuntime.jsx("td",{style:g,children:jsxRuntime.jsx(lt,{variant:"text",width:"80%"})},x.key))},`skel-${v}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length,style:{...g,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((S,v)=>jsxRuntime.jsx("tr",{style:{backgroundColor:i&&v%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:x=>{d&&(x.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:x=>{d&&(x.currentTarget.style.backgroundColor=i&&v%2===1?l.stripedBg:"transparent");},children:e.map(x=>jsxRuntime.jsx("td",{style:{...g,borderBottom:v===t.length-1?"none":g.borderBottom},children:x.render?x.render(S[x.key],S,v):S[x.key]},x.key))},v))})]})};Ci.displayName="Table";var Ri={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},En=({checked:e,indeterminate:t,onChange:o,t:r})=>{let a=e||t;return jsxRuntime.jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),o();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${a?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:a?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsxRuntime.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsxRuntime.jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},Ti=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:a=false,rowKey:n="id",onRowClick:c,stickyHeader:i=false,emptyText:d="\u017D\xE1dn\xE1 data",style:s,className:f})=>{let p=I(),l=Ri[p],[m,u]=_o.useState(new Set),[b,g]=_o.useState(null),w=_o.useMemo(()=>t.map(z=>String(z[n])),[t,n]),S=w.length>0&&w.every(z=>m.has(z)),v=w.some(z=>m.has(z))&&!S,x=_o.useCallback(()=>{let z=S?new Set:new Set(w);u(z),r?.(Array.from(z));},[S,w,r]),C=_o.useCallback(z=>{u(M=>{let y=new Set(M);return y.has(z)?y.delete(z):y.add(z),r?.(Array.from(y)),y});},[r]),B={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},E=z=>({padding:"12px 16px",textAlign:z.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",userSelect:"none",width:z.width!=null?typeof z.width=="number"?`${z.width}px`:z.width:void 0,minWidth:z.minWidth!=null?`${z.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),h=z=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:z.align||"left"}),R={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsxRuntime.jsx("div",{className:f,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...s},children:jsxRuntime.jsxs("table",{style:B,children:[jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("th",{style:R,children:jsxRuntime.jsx(En,{checked:S,indeterminate:v,onChange:x,t:l})}),e.map(z=>jsxRuntime.jsx("th",{style:E(z),children:z.header},z.key))]})}),jsxRuntime.jsx("tbody",{children:a?Array.from({length:5}).map((z,M)=>jsxRuntime.jsxs("tr",{children:[o&&jsxRuntime.jsx("td",{style:F,children:jsxRuntime.jsx(lt,{variant:"rect",width:16,height:16})}),e.map(y=>jsxRuntime.jsx("td",{style:h(y),children:jsxRuntime.jsx(lt,{variant:"text",width:"80%"})},y.key))]},`skel-${M}`)):t.length===0?jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:d})}):t.map((z,M)=>{let y=String(z[n]),D=m.has(y),P=b===y,H=M===t.length-1,N="transparent";return D?N=l.selectedRowBg:P&&(N=l.rowHover),jsxRuntime.jsxs("tr",{style:{backgroundColor:N,cursor:c?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>g(y),onMouseLeave:()=>g(null),onClick:()=>c?.(z),children:[o&&jsxRuntime.jsx("td",{style:{...F,borderBottom:H?"none":F.borderBottom},children:jsxRuntime.jsx(En,{checked:D,onChange:()=>C(y),t:l})}),e.map(A=>jsxRuntime.jsx("td",{style:{...h(A),borderBottom:H?"none":h(A).borderBottom},children:A.render?A.render(z[A.key],z,M):z[A.key]},A.key))]},y)})})]})})};Ti.displayName="DataGrid";var Fi={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},Ei={none:"0",sm:"12px",md:"20px",lg:"28px"},Di=({title:e,subtitle:t,header:o,footer:r,children:a,hoverable:n=false,bordered:c=true,padding:i="md",className:d,style:s})=>{let f=I(),p=Fi[f],l=Ei[i],m={backgroundColor:p.background,border:c?`1px solid ${p.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:n?"pointer":void 0,...s},u=o??(e||t?jsxRuntime.jsxs("div",{style:{padding:l,paddingBottom:a||r?"0":l},children:[e&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxRuntime.jsxs("div",{className:d,style:m,onMouseEnter:b=>{n&&(b.currentTarget.style.borderColor=p.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{n&&(b.currentTarget.style.borderColor=c?p.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[u,a&&jsxRuntime.jsx("div",{style:{padding:l},children:a}),r&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsxRuntime.jsx("div",{style:{padding:l},children:r})]})]})};Di.displayName="Card";var In={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},Mi=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:a,_open:n,_onToggle:c})=>{let i=I(),d=In[i],[s,f]=_o.useState(o),p=a?!!n:s,l=_o.useRef(null),[m,u]=_o.useState(0);_o.useEffect(()=>{l.current&&u(l.current.scrollHeight);},[t,p]);let b=_o.useCallback(()=>{r||(a&&c?c():f(g=>!g));},[r,a,c]);return jsxRuntime.jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxRuntime.jsxs("button",{type:"button",disabled:r,onClick:b,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:r?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:r?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:g=>{r||(g.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:[jsxRuntime.jsx("span",{children:e}),jsxRuntime.jsx(react.CaretDownIcon,{size:16,color:r?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsxRuntime.jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${m}px`:"0px",transition:"max-height 0.25s ease"},children:jsxRuntime.jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:d.textSecondary},children:t})})]})};Mi.displayName="AccordionItem";var Ai=({children:e,multiple:t=false,className:o,style:r})=>{let a=I(),n=In[a],c=_o__default.default.Children.toArray(e).filter(f=>_o__default.default.isValidElement(f)),[i,d]=_o.useState(()=>{let f=new Set;return c.forEach((p,l)=>{p.props.defaultOpen&&f.add(l);}),f}),s=_o.useCallback(f=>{d(p=>{let l=new Set(p);return l.has(f)?l.delete(f):(t||l.clear(),l.add(f)),l});},[t]);return jsxRuntime.jsx("div",{className:o,style:{backgroundColor:n.background,border:`1px solid ${n.border}`,borderRadius:"12px",overflow:"hidden",...r},children:c.map((f,p)=>_o__default.default.cloneElement(f,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>s(p)}))})};Ai.displayName="Accordion";var Hi={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Li={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ni=()=>null;Ni.displayName="Tab";var $i=()=>null;$i.displayName="TabPanel";var Wi=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:a=false,size:n="md",className:c,style:i})=>{let d=I(),s=Hi[d],f=Li[n],p=_o__default.default.Children.toArray(o),l=p.filter(b=>_o__default.default.isValidElement(b)&&b.type?.displayName==="Tab"),u=p.filter(b=>_o__default.default.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxRuntime.jsxs("div",{className:c,style:i,children:[jsxRuntime.jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${s.border}`:"none"},children:l.map(b=>{let g=b.props.value===e,w=b.props.disabled,S=r==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.text:s.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${g?s.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:w?s.textDisabled:g?s.pillText:s.textInactive,backgroundColor:g?s.pillBg:s.pillInactiveBg,border:"none",borderRadius:"8px",cursor:w?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:a?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxRuntime.jsxs("button",{type:"button",disabled:w,style:S,onClick:()=>{w||t(b.props.value);},onMouseEnter:v=>{!w&&!g&&(v.currentTarget.style.backgroundColor=s.hoverBg);},onMouseLeave:v=>{w||(v.currentTarget.style.backgroundColor=r==="pills"&&g?s.pillBg:"transparent");},children:[b.props.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),u&&jsxRuntime.jsx("div",{style:{paddingTop:"16px"},children:u.props.children})]})};Wi.displayName="Tabs";var Yi={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},Qo=({content:e,children:t,position:o="top",delay:r=200,className:a,style:n})=>{let c=I(),i=Yi[c],[d,s]=_o.useState(false),[f,p]=_o.useState({top:0,left:0}),l=_o.useRef(null),m=_o.useRef(null),u=_o.useRef(void 0),b=6,g=8,w=_o.useCallback(()=>{let B=l.current,E=m.current;if(!B||!E)return;let h=B.getBoundingClientRect(),R=E.getBoundingClientRect(),F=0,T=0;switch(o){case "top":F=h.top-R.height-g,T=h.left+h.width/2-R.width/2;break;case "bottom":F=h.bottom+g,T=h.left+h.width/2-R.width/2;break;case "left":F=h.top+h.height/2-R.height/2,T=h.left-R.width-g;break;case "right":F=h.top+h.height/2-R.height/2,T=h.right+g;break}p({top:F,left:T});},[o]);_o.useEffect(()=>{d&&requestAnimationFrame(w);},[d,w]);let S=_o.useCallback(()=>{u.current=setTimeout(()=>s(true),r);},[r]),v=_o.useCallback(()=>{u.current&&clearTimeout(u.current),s(false);},[]);_o.useEffect(()=>()=>{u.current&&clearTimeout(u.current);},[]);let x=(()=>{let B={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(o){case "top":return {...B,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...B,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...B,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...B,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),C=d?reactDom.createPortal(jsxRuntime.jsxs("div",{ref:m,className:a,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...n},children:[e,jsxRuntime.jsx("div",{style:x})]}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[_o__default.default.cloneElement(t,{ref:l,onMouseEnter:B=>{S(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{v(),t.props.onMouseLeave?.(B);}}),C]})};Qo.displayName="Tooltip";var Gi={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},tr=180,Qt=8,Xi=({content:e,children:t,position:o="bottom",trigger:r="click",className:a,style:n})=>{let c=I(),i=Gi[c],[d,s]=_o.useState(false),[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),[u,b]=_o.useState({top:0,left:0}),g=_o.useRef(null),w=_o.useRef(null),S=_o.useRef(void 0),v=_o.useCallback(()=>{s(true),p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),x=_o.useCallback(()=>{s(false),m("closing");let T=setTimeout(()=>{p(false),m("idle");},tr);return ()=>clearTimeout(T)},[]),C=_o.useCallback(()=>{let T=g.current,z=w.current;if(!T||!z)return;let M=T.getBoundingClientRect(),y=z.getBoundingClientRect(),D=0,P=0;switch(o){case "top":D=M.top-y.height-Qt,P=M.left+M.width/2-y.width/2;break;case "bottom":D=M.bottom+Qt,P=M.left+M.width/2-y.width/2;break;case "left":D=M.top+M.height/2-y.height/2,P=M.left-y.width-Qt;break;case "right":D=M.top+M.height/2-y.height/2,P=M.right+Qt;break}b({top:D,left:P});},[o]);_o.useEffect(()=>{if(f)return requestAnimationFrame(C),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[f,C]),_o.useEffect(()=>{if(!d)return;let T=z=>{let M=z.target;!g.current?.contains(M)&&!w.current?.contains(M)&&x();};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[d,x]),_o.useEffect(()=>{if(!d)return;let T=z=>{z.key==="Escape"&&x();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,x]);let B=()=>{let T={transition:`opacity ${tr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${tr}ms cubic-bezier(0.16, 1, 0.3, 1)`},z={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.97)`}:l==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`translate${M}(${z[o]}) scale(0.98)`,pointerEvents:"none"}},E=_o.useCallback(()=>{r==="click"&&(d?x():v());},[r,d,x,v]),h=_o.useCallback(()=>{r==="hover"&&(S.current&&clearTimeout(S.current),d||v());},[r,d,v]),R=_o.useCallback(()=>{r==="hover"&&(S.current=setTimeout(()=>{x();},150));},[r,x]);_o.useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let F=f?reactDom.createPortal(jsxRuntime.jsx("div",{ref:w,className:a,onMouseEnter:()=>{r==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:R,style:{position:"fixed",top:u.top,left:u.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...B(),...n},children:e}),document.body):null;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[_o__default.default.cloneElement(t,{ref:g,onClick:T=>{E(),t.props.onClick?.(T);},onMouseEnter:T=>{h(),t.props.onMouseEnter?.(T);},onMouseLeave:T=>{R(),t.props.onMouseLeave?.(T);}}),F]})};Xi.displayName="Popover";var Qi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},el=({icon:e,title:t,description:o,action:r,className:a,style:n})=>{let c=I(),i=Qi[c];return jsxRuntime.jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...n},children:[e&&jsxRuntime.jsx("div",{style:{fontSize:"48px",lineHeight:1,color:i.iconColor,marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&jsxRuntime.jsx("div",{style:{marginTop:"8px"},children:r})]})};el.displayName="EmptyState";var nl={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},al=({label:e,value:t,change:o,changeLabel:r,icon:a,trend:n="neutral",className:c,style:i})=>{let d=I(),s=nl[d],f=n==="up"?s.trendUp:n==="down"?s.trendDown:s.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxRuntime.jsxs("div",{className:c,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:a}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),o!==void 0&&jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[n==="up"&&jsxRuntime.jsx(react.TrendUpIcon,{size:14,color:f}),n==="down"&&jsxRuntime.jsx(react.TrendDownIcon,{size:14,color:f}),jsxRuntime.jsx("span",{children:p(o)}),r&&jsxRuntime.jsx("span",{style:{color:s.label,marginLeft:"2px"},children:r})]})]})]})};al.displayName="Stat";var sl=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],Eu=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:a,"aria-label":n})=>{let c=sl(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,height:c,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(c*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsxRuntime.jsx("div",{style:i,className:a,role:"img","aria-label":n??`Avatar ${e.toUpperCase()}`,children:jsxRuntime.jsx("span",{style:d,children:e.toUpperCase()})})};var Ln={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},rr=({onClick:e,title:t,color:o,children:r})=>jsxRuntime.jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:r}),Pu=({label:e,onRemove:t,style:o,className:r})=>{let a=Ln[I()];return jsxRuntime.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:a.tagBg,border:`1px solid ${a.tagBorder}`,borderRadius:"4px",...o},className:r,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:a.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsxRuntime.jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:a.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Mu=({label:e,style:t,className:o})=>jsxRuntime.jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:o,children:e}),Au=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:a=true,style:n,className:c})=>{let i=Ln[I()],d=t||o||r;return jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...n},className:c,children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),a&&d&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsxRuntime.jsx(rr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsxRuntime.jsx(react.Funnel,{size:14,color:"currentColor"})}),o&&jsxRuntime.jsx(rr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsxRuntime.jsx(react.PencilSimple,{size:14,color:"currentColor"})}),r&&jsxRuntime.jsx(rr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsxRuntime.jsx(react.Trash,{size:14,color:"currentColor"})})]})]})};var dl={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},Wn={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},je=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),pl=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,ze=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},ar=(e,t=1)=>{let o=new Date(e),r=o.getDay(),a=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+a),o.setHours(0,0,0,0),o},On=(e,t,o=1)=>{let r=new Date(e,t,1),a=ar(r,o),n=[],c=new Date(a);for(let i=0;i<42;i++)n.push(new Date(c)),c.setDate(c.getDate()+1);return n},fl=(e,t=1)=>{let o=ar(e,t),r=[];for(let a=0;a<7;a++){let n=new Date(o);n.setDate(o.getDate()+a),r.push(n);}return r},Zn=(e,t,o)=>{if(t){let r=new Date(t);if(r.setHours(0,0,0,0),e<r)return true}if(o){let r=new Date(o);if(r.setHours(23,59,59,999),e>r)return true}return false};function ul(e,t){let o=[],r=new Map,a=ze(e[0]),n=ze(e[6]),c=t.filter(i=>{let d=ze(i.date);return (i.endDate?ze(i.endDate):d)>=a&&d<=n}).sort((i,d)=>{let s=ze(i.date).getTime(),f=ze(d.date).getTime();if(s!==f)return s-f;let p=i.endDate?ze(i.endDate).getTime():s;return (d.endDate?ze(d.endDate).getTime():f)-f-(p-s)});for(let i of c){let d=ze(i.date),s=i.endDate?ze(i.endDate):d,f=d<a?a:d,p=s>n?n:s,l=e.findIndex(S=>je(S,f)),m=e.findIndex(S=>je(S,p));if(l===-1||m===-1)continue;let u=m-l+1,b=d>=a,g=0;for(;;){r.has(g)||r.set(g,new Set);let S=r.get(g),v=true;for(let x=l;x<=m;x++)if(S.has(x)){v=false;break}if(v)break;g++;}let w=r.get(g);for(let S=l;S<=m;S++)w.add(S);o.push({event:i,row:g,startCol:l,span:u,isStart:b});}return o}var gl=({value:e,onChange:t,view:o="month",events:r=[],minDate:a,maxDate:n,style:c,className:i,firstDay:d=1,locale:s="cs",initialDate:f,t:p,today:l})=>{let m=Wn[s],u=f||e||l,[b,g]=_o.useState(()=>u.getMonth()),[w,S]=_o.useState(()=>u.getFullYear()),[v,x]=_o.useState(()=>ar(u,d)),[C,B]=_o.useState(null),E=_o.useMemo(()=>o==="week"?fl(v,d):On(w,b,d),[o,w,b,v,d]),h=_o.useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()-7),D}):g(y=>y===0?(S(D=>D-1),11):y-1);},[o]),R=_o.useCallback(()=>{o==="week"?x(y=>{let D=new Date(y);return D.setDate(D.getDate()+7),D}):g(y=>y===11?(S(D=>D+1),0):y+1);},[o]),F=y=>r.filter(D=>je(D.date,y)),T=o==="week"?(()=>{let y=new Date(v);return y.setDate(y.getDate()+6),v.getMonth()===y.getMonth()?`${v.getDate()}. \u2013 ${y.getDate()}. ${m.months[y.getMonth()]} ${y.getFullYear()}`:`${v.getDate()}. ${m.months[v.getMonth()].slice(0,3)} \u2013 ${y.getDate()}. ${m.months[y.getMonth()].slice(0,3)} ${y.getFullYear()}`})():`${m.months[b]} ${w}`,z={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...c},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:p.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:i,style:z,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[jsxRuntime.jsx("button",{style:M,onClick:h,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsxRuntime.jsx("button",{style:M,onClick:R,onMouseEnter:y=>{y.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16})})]}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:m.daysFull.map(y=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:p.textMuted,padding:"6px 0 8px"},children:y},y))}),jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:E.map((y,D)=>{let P=je(y,l),H=e?je(y,e):false,N=o==="month"&&y.getMonth()!==b,A=Zn(y,a,n),L=y.toISOString(),V=C===L,O=F(y),K="transparent",te=N?p.outsideText:p.text,U="2px solid transparent";return H?(K=p.selectedBg,te=p.selectedText):P?(K=p.todayBg,U=`2px solid ${p.todayBorder}`):V&&!A&&(K=p.hover),A&&(te=p.textMuted),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsxRuntime.jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:U,background:K,color:te,fontSize:"13px",fontWeight:P?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:A?"default":"pointer",opacity:A?.4:1,transition:"background-color 0.12s ease"},disabled:A,onClick:()=>{!A&&t&&t(y);},onMouseEnter:()=>!A&&B(L),onMouseLeave:()=>B(null),children:y.getDate()}),O.length>0&&jsxRuntime.jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map((q,X)=>jsxRuntime.jsx("div",{title:q.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:q.color||p.eventDot}},X))})]},D)})})]})},to=24,dt=2,bl=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:a=true,onNavigate:n,minDate:c,maxDate:i,style:d,className:s,firstDay:f=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:m,t:u,today:b})=>{let g=Wn[p],w=m||e||b,[S,v]=_o.useState(()=>w.getMonth()),[x,C]=_o.useState(()=>w.getFullYear()),[B,E]=_o.useState(null),h=_o.useMemo(()=>On(x,S,f),[x,S,f]),R=_o.useMemo(()=>{let P=[];for(let H=0;H<h.length;H+=7)P.push(h.slice(H,H+7));return P},[h]),F=_o.useMemo(()=>{let P=R[R.length-1];return P&&P.every(H=>H.getMonth()!==S)?R.slice(0,-1):R},[R,S]),T=_o.useCallback(()=>{let P=S-1,H=x;P<0&&(P=11,H--),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),z=_o.useCallback(()=>{let P=S+1,H=x;P>11&&(P=0,H++),v(P),C(H),n&&n(new Date(H,P,1));},[S,x,n]),M=`${g.months[S]} ${x}`,D={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxRuntime.jsxs("div",{className:s,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:u.text,userSelect:"none",...d},children:[a&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsxRuntime.jsx("button",{style:D,onClick:T,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsxRuntime.jsx(react.CaretLeft,{size:16,weight:"bold"})}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:M}),jsxRuntime.jsx("button",{style:D,onClick:z,onMouseEnter:P=>{P.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:P=>{P.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsxRuntime.jsx(react.CaretRight,{size:16,weight:"bold"})})]}),jsxRuntime.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${u.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:u.background},children:[jsxRuntime.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${u.cellBorder}`},children:g.days.map((P,H)=>jsxRuntime.jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:u.text,padding:"10px 0",borderRight:H<6?`1px solid ${u.cellBorder}`:"none"},children:P},P))}),F.map((P,H)=>{let N=ul(P,o),A=N.length>0?Math.max(...N.map(U=>U.row))+1:0,L=P.map((U,q)=>{let X=N.filter(_=>q>=_.startCol&&q<_.startCol+_.span);return Math.max(0,X.filter(_=>_.row>=l).length)}),O=Math.min(A,l)*(to+dt)+dt,te=L.some(U=>U>0)?20:0;return jsxRuntime.jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:H<F.length-1?`1px solid ${u.cellBorder}`:"none"},children:P.map((U,q)=>{let X=je(U,b),_=U.getMonth()!==S,ue=e?je(U,e):false;return jsxRuntime.jsxs("div",{style:{borderRight:q<6?`1px solid ${u.cellBorder}`:"none",backgroundColor:X?u.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Zn(U,c,i)&&t(U);},children:[jsxRuntime.jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:X?700:400,color:_?u.outsideText:X?"#FC4F00":u.text},children:ue?jsxRuntime.jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[U.getDate(),"."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[U.getDate(),"."]})}),jsxRuntime.jsx("div",{style:{position:"relative",height:`${O}px`},children:N.filter(Q=>Q.startCol===q&&Q.row<l).map((Q,j)=>{let J=Q.event.id||`${pl(Q.event.date)}-${Q.event.title}`,ge=B===J,Re=Q.event.color||u.eventBarDefault,W=jsxRuntime.jsxs("div",{style:{position:"absolute",top:`${dt+Q.row*(to+dt)}px`,left:"2px",width:Q.span>1?`calc(${Q.span*100}% - 4px)`:"calc(100% - 4px)",height:`${to}px`,backgroundColor:Re,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:ge?2:1,opacity:ge?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:Q.event.tooltip?void 0:Q.event.title,onClick:ne=>{ne.stopPropagation(),r&&r(Q.event);},onMouseEnter:()=>E(J),onMouseLeave:()=>E(null),children:[Q.isStart&&Q.event.emoji&&jsxRuntime.jsx("span",{style:{fontSize:"12px",flexShrink:0},children:Q.event.emoji}),Q.isStart&&jsxRuntime.jsx("span",{style:{fontSize:"11px",fontWeight:500,color:Q.event.textColor||u.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Q.event.title})]},j);return Q.event.tooltip?jsxRuntime.jsx(Qo,{content:Q.event.tooltip,children:W},j):W})}),L[q]>0&&jsxRuntime.jsxs("div",{style:{fontSize:"10px",color:u.moreText,textAlign:"center",padding:"2px 0"},children:["+",L[q]]})]},q)})},H)})]})]})},xl=e=>{let t=I(),o=dl[t],r=_o.useMemo(()=>{let a=new Date;return a.setHours(0,0,0,0),a},[]);return e.fullSize?jsxRuntime.jsx(bl,{...e,t:o,today:r}):jsxRuntime.jsx(gl,{...e,t:o,today:r})};xl.displayName="Calendar";var hl={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},yl=({items:e,orientation:t="vertical",style:o,className:r})=>{let a=I(),n=hl[a];return t==="horizontal"?jsxRuntime.jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,overflow:"auto",...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:d?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),i===0&&jsxRuntime.jsx("div",{style:{flex:1}}),c.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0}}),!d&&jsxRuntime.jsx("div",{style:{flex:1,height:"2px",backgroundColor:n.line}}),d&&jsxRuntime.jsx("div",{style:{flex:1}})]}),jsxRuntime.jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:c.title}),c.date&&jsxRuntime.jsx("span",{style:{fontSize:"11px",color:n.textMuted,display:"block",marginTop:"2px"},children:c.date}),c.description&&jsxRuntime.jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:n.textSecondary,lineHeight:"16px"},children:c.description})]})]},i)})}):jsxRuntime.jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:n.text,...o},children:e.map((c,i)=>{let d=i===e.length-1,s=c.color||n.dotBorder;return jsxRuntime.jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:d?0:"4px",minHeight:c.icon?"36px":"28px"},children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[c.icon?jsxRuntime.jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:c.color?`${c.color}18`:n.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:s,flexShrink:0},children:c.icon}):jsxRuntime.jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${s}`,backgroundColor:n.dotBg,flexShrink:0,marginTop:"4px"}}),!d&&jsxRuntime.jsx("div",{style:{width:"2px",flex:1,backgroundColor:n.line,marginTop:"4px",minHeight:"8px"}})]}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0,paddingTop:c.icon?"5px":0},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:c.title}),c.date&&jsxRuntime.jsx("span",{style:{fontSize:"12px",color:n.textMuted,flexShrink:0},children:c.date})]}),c.description&&jsxRuntime.jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:n.textSecondary,lineHeight:"18px"},children:c.description})]})]},i)})})};yl.displayName="Timeline";var vl={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},Sl=({items:e,columns:t=1,striped:o=false,style:r,className:a})=>{let n=I(),c=vl[n],i=Math.max(1,Math.round(t)),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},s=m=>i<=1?m:Math.floor(m/i),f=m=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${c.border}`,backgroundColor:o&&s(m)%2===1?c.stripedBg:c.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:c.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsxRuntime.jsx("div",{className:a,style:d,children:e.map((m,u)=>jsxRuntime.jsxs("div",{style:f(u),children:[jsxRuntime.jsx("span",{style:p,children:m.label}),jsxRuntime.jsx("span",{style:l,children:m.value})]},u))})};Sl.displayName="DataList";var Rl={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},Vn=({node:e,depth:t,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c})=>{let i=e.children&&e.children.length>0,d=o.has(e.id),s=r===e.id,[f,p]=_o.useState(false),l="transparent";return s?l=c.selectedBg:f&&(l=c.hover),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:s?`2px solid ${c.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>n?.(e),children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:m=>{m.stopPropagation(),i&&a(e.id);},children:i&&jsxRuntime.jsx(react.CaretRightIcon,{size:14,color:d?c.iconExpanded:c.iconColor,style:{transform:d?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:s?c.selectedBorder:c.textMuted,flexShrink:0},children:e.icon}),jsxRuntime.jsx("span",{style:{fontSize:"13px",fontWeight:s?500:400,color:s?c.selectedText:c.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&d&&jsxRuntime.jsxs("div",{style:{position:"relative"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:c.line}}),e.children.map(m=>jsxRuntime.jsx(Vn,{node:m,depth:t+1,expanded:o,selectedId:r,onToggle:a,onSelect:n,t:c},m.id))]})]})},Tl=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:a,className:n})=>{let c=I(),i=Rl[c],[d,s]=_o.useState(()=>new Set(r)),f=_o.useCallback(l=>{s(m=>{let u=new Set(m);return u.has(l)?u.delete(l):u.add(l),u});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...a};return jsxRuntime.jsx("div",{className:n,style:p,role:"tree",children:e.map(l=>jsxRuntime.jsx(Vn,{node:l,depth:0,expanded:d,selectedId:o,onToggle:f,onSelect:t,t:i},l.id))})};Tl.displayName="Tree";var El={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Dl={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},zl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},lr=false,Il=()=>{if(lr||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){lr=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
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=`
|
|
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),lr=true;},Bl=({status:e,label:t,size:o="md",pulse:r=false,color:a,style:n,className:c})=>{let i=I(),d=El[i],s=zl[o],f=a||Dl[e]||"#888888";return r&&Il(),jsxRuntime.jsxs("span",{className:c,style:{display:"inline-flex",alignItems:"center",gap:s.gap,...n},children:[jsxRuntime.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${s.dot}px`,height:`${s.dot}px`,flexShrink:0},children:[r&&jsxRuntime.jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsxRuntime.jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,fontWeight:400,color:d.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Bl.displayName="StatusBadge";var Al={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},no=180,Hl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},pr=({open:e,onClose:t,title:o,children:r,footer:a,size:n="md",closeOnOverlay:c=true,closeOnEscape:i=true,showClose:d=true,className:s,style:f})=>{let p=I(),l=Al[p],m=Hl[n],[u,b]=_o.useState(false),[g,w]=_o.useState("idle"),S=_o.useRef(null),v=_o.useRef(null);_o.useEffect(()=>{if(e)v.current=document.activeElement,b(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}),document.body.style.overflow="hidden";else if(u){w("closing");let E=setTimeout(()=>{b(false),w("idle"),document.body.style.overflow="",v.current instanceof HTMLElement&&v.current.focus();},no);return ()=>clearTimeout(E)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!u||!i)return;let E=h=>{h.key==="Escape"&&t();};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[u,i,t]),_o.useEffect(()=>{if(!u||!S.current)return;let E=S.current,h='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',R=F=>{if(F.key!=="Tab")return;let T=E.querySelectorAll(h);if(T.length===0){F.preventDefault();return}let z=T[0],M=T[T.length-1];F.shiftKey?document.activeElement===z&&(F.preventDefault(),M.focus()):document.activeElement===M&&(F.preventDefault(),z.focus());};return document.addEventListener("keydown",R),E.focus(),()=>document.removeEventListener("keydown",R)},[u]);let x=()=>{let E={transition:`opacity ${no}ms ease`};return g==="opening"||g==="idle"?{...E,opacity:0}:g==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},C=()=>{let E={transition:`opacity ${no}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${no}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...E,opacity:0,transform:"scale(0.95)"}:g==="open"?{...E,opacity:1,transform:"scale(1)"}:{...E,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!u)return null;let B=n==="fullscreen";return reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:B?"stretch":"center",justifyContent:"center",...x()},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:c?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:m.width,maxWidth:B?void 0:"calc(100vw - 32px)",maxHeight:B?"100vh":m.maxHeight,backgroundColor:l.cardBg,border:B?"none":`1px solid ${l.cardBorder}`,borderRadius:B?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...C(),...f},children:[(o||d)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:o}),d&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:E=>{E.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:r}),a&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:a})]})]}),document.body)};pr.displayName="Modal";var Wl={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},ur=220,Ol=({open:e,onClose:t,position:o="right",title:r,children:a,footer:n,width:c=400,showClose:i=true,closeOnOverlay:d=true,className:s,style:f})=>{let p=I(),l=Wl[p],[m,u]=_o.useState(false),[b,g]=_o.useState("idle"),w=_o.useRef(null),S=typeof c=="number"?`${c}px`:c;_o.useEffect(()=>{if(e)u(true),g("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));}),document.body.style.overflow="hidden";else if(m){g("closing");let C=setTimeout(()=>{u(false),g("idle"),document.body.style.overflow="";},ur);return ()=>clearTimeout(C)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!m)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[m,t]);let v=C=>{let B=o==="right"?"100%":"-100%";return C==="opening"||C==="idle"?B:C==="open"?"0%":B},x=()=>b==="open"?1:0;return m?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:x(),transition:`opacity ${ur}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",top:0,bottom:0,[o]:0,width:S,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:l.panelBg,borderLeft:o==="right"?`1px solid ${l.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${l.panelBorder}`:"none",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${v(b)})`,transition:`transform ${ur}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(r||i)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:C=>{C.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:l.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:a}),n&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:n})]})]}),document.body):null};Ol.displayName="Drawer";var Ul={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},xr=180,ql=({open:e,onClose:t,children:o,side:r="bottom",title:a,showClose:n=true,style:c,className:i})=>{let d=I(),s=Ul[d],[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),u=_o.useRef(null);_o.useEffect(()=>{if(e)p(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(f){m("closing");let C=setTimeout(()=>{p(false),m("idle"),document.body.style.overflow="";},xr);return ()=>clearTimeout(C)}},[e]),_o.useEffect(()=>()=>{document.body.style.overflow="";},[]),_o.useEffect(()=>{if(!f)return;let C=B=>{B.key==="Escape"&&t();};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[f,t]);let w=C=>{let B={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return C==="opening"||C==="idle"?B[r]:C==="open"?"translate(0, 0)":B[r]},S=()=>l==="open"?1:0,v={};r==="bottom"?(v.bottom=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderTopLeftRadius="16px",v.borderTopRightRadius="16px"):r==="top"?(v.top=0,v.left=0,v.right=0,v.maxHeight="85vh",v.borderBottomLeftRadius="16px",v.borderBottomRightRadius="16px"):r==="right"?(v.top=0,v.bottom=0,v.right=0,v.width="400px",v.maxWidth="100vw"):r==="left"&&(v.top=0,v.bottom=0,v.left=0,v.width="400px",v.maxWidth="100vw");let x={};return r==="bottom"?x.borderTop=`1px solid ${s.panelBorder}`:r==="top"?x.borderBottom=`1px solid ${s.panelBorder}`:r==="right"?x.borderLeft=`1px solid ${s.panelBorder}`:r==="left"&&(x.borderRight=`1px solid ${s.panelBorder}`),f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:S(),transition:`opacity ${xr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":a,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:w(l),transition:`transform ${xr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...v,...x,...c},children:[r==="bottom"&&jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsxRuntime.jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:s.handleBg}})}),(a||n)&&jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[a&&jsxRuntime.jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:a}),n&&jsxRuntime.jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:s.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:C=>{C.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.XIcon,{size:16,color:s.closeColor})})]}),jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:o})]})]}),document.body):null};ql.displayName="Sheet";var Gl={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Xl=({items:e,separator:t="/",className:o,style:r})=>{let a=I(),n=Gl[a];return jsxRuntime.jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...r},children:e.map((c,i)=>{let d=i===e.length-1;return jsxRuntime.jsxs(_o__default.default.Fragment,{children:[i>0&&jsxRuntime.jsx("span",{"aria-hidden":"true",style:{color:n.separator,userSelect:"none",fontSize:"13px"},children:t}),d?jsxRuntime.jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.activeText,fontWeight:600},children:[c.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]}):jsxRuntime.jsxs("a",{href:c.href??"#",onClick:c.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:n.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:s=>{s.currentTarget.style.color=n.linkHover;},onMouseLeave:s=>{s.currentTarget.style.color=n.text;},children:[c.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:c.icon}),c.label]})]},i)})})};Xl.displayName="Breadcrumb";var Jl={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Ql={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ec(e,t,o,r,a){let n=[],c=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&n.push(1),c>2&&(r&&!n.includes(1)&&n.push(1),n.push("ellipsis-start"));for(let d=c;d<=i;d++)n.includes(d)||n.push(d);return i<t-1&&n.push("ellipsis-end"),(a||e+o>=t)&&t>1&&(n.includes(t)||n.push(t)),n}var tc=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:a=true,showLast:n=true,size:c="md",className:i,style:d})=>{let s=I(),f=Jl[s],p=Ql[c];if(t<=0)return null;let l=ec(e,t,r,a,n),m={display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.size,height:p.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxRuntime.jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...d},children:[jsxRuntime.jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...m,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:u=>{e>1&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretLeftIcon,{size:p.iconSize,color:e<=1?f.disabledText:f.text})}),l.map((u,b)=>{if(u==="ellipsis-start"||u==="ellipsis-end")return jsxRuntime.jsx("span",{style:{...m,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},u);let g=u===e;return jsxRuntime.jsx("button",{type:"button","aria-current":g?"page":void 0,"aria-label":`Str\xE1nka ${u}`,onClick:()=>o(u),style:{...m,color:g?f.activeText:f.text,backgroundColor:g?f.activeBg:"transparent",fontWeight:g?600:500},onMouseEnter:w=>{g||(w.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:w=>{g||(w.currentTarget.style.backgroundColor="transparent");},children:u},u)}),jsxRuntime.jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...m,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:u=>{e<t&&(u.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:jsxRuntime.jsx(react.CaretRightIcon,{size:p.iconSize,color:e>=t?f.disabledText:f.text})})]})};tc.displayName="Pagination";var ac={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},sc=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:a,className:n,style:c})=>{let i=I(),d=ac[i],[s,f]=_o.useState(null),p=o==="horizontal",l=32,m=u=>!r||!a?false:r==="completed"?u<=t:true;return jsxRuntime.jsx("div",{className:n,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...c},children:e.map((u,b)=>{let g=b<t,w=b===t,S=b>t,v=b===e.length-1,x=m(b),C=s===b&&x,B=g?d.completedBg:C?d.hoverBg:d.activeBg,E=g?d.completedBg:w||C?d.activeBorder:d.futureBorder,h=g?d.completedText:w||C?d.activeText:d.futureText,R=C?d.activeText:S?d.labelFuture:d.labelText,F=S?d.descFuture:d.descText,T=g?d.lineCompleted:d.lineFuture;return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:v?"0 0 auto":"1 1 0",minWidth:0,cursor:x?"pointer":"default"},onClick:()=>x&&a?.(b),onMouseEnter:()=>f(b),onMouseLeave:()=>f(null),children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[jsxRuntime.jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:B,border:`2px solid ${E}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:g?jsxRuntime.jsx(react.CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:h,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!v&&jsxRuntime.jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:T,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:T,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxRuntime.jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||v?void 0:"48px"},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:w||C?600:500,color:R,lineHeight:"normal",transition:"color 0.2s ease"},children:u.label}),u.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:u.description})]})]},b)})})};sc.displayName="Stepper";var lc={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},kr=180,cc=({trigger:e,items:t,position:o="bottom-left",className:r,style:a})=>{let n=I(),c=lc[n],i=_o.useRef(null),d=_o.useRef(null),[s,f]=_o.useState(false),[p,l]=_o.useState(false),[m,u]=_o.useState("idle"),[b,g]=_o.useState({top:0,left:0,openAbove:false}),[w,S]=_o.useState(-1),v=_o.useCallback(()=>{f(true),l(true),u("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),x=_o.useCallback(()=>{f(false),u("closing");let h=setTimeout(()=>{l(false),u("idle");},kr);return ()=>clearTimeout(h)},[]),C=_o.useCallback(()=>{if(!i.current)return;let h=i.current.getBoundingClientRect(),R=d.current?.offsetHeight??200,F=d.current?.offsetWidth??200,T=window.innerHeight-h.bottom-6,z=h.top-6,M=T<R&&z>T,y;o==="bottom-right"?(y=h.right-F,y<4&&(y=4)):(y=h.left,y+F>window.innerWidth-4&&(y=window.innerWidth-F-4)),g({top:M?h.top-6:h.bottom+6,left:y,openAbove:M});},[o]);_o.useEffect(()=>{if(p)return C(),window.addEventListener("scroll",C,true),window.addEventListener("resize",C),()=>{window.removeEventListener("scroll",C,true),window.removeEventListener("resize",C);}},[p,C]),_o.useEffect(()=>{if(!s)return;let h=R=>{let F=R.target,T=i.current?.contains(F),z=d.current?.contains(F);!T&&!z&&x();};return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[s,x]),_o.useEffect(()=>{if(!s)return;let h=t.map((F,T)=>({item:F,idx:T})).filter(({item:F})=>!F.divider&&!F.disabled),R=F=>{switch(F.key){case "Escape":F.preventDefault(),x();break;case "ArrowDown":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T<h.length-1?T+1:0;S(h[z]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let T=h.findIndex(({idx:M})=>M===w),z=T>0?T-1:h.length-1;S(h[z]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),w>=0){let T=t[w];T&&!T.divider&&!T.disabled&&(T.onClick?.(),x());}break}};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[s,w,t,x]);let B=()=>{let h=b.openAbove,R=h?"translateY(8px)":"translateY(-8px)",F=h?"translateY(6px)":"translateY(-6px)",T={transition:`opacity ${kr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${kr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...T,opacity:0,transform:`${R} scale(0.97)`}:m==="open"?{...T,opacity:1,transform:"translateY(0) scale(1)"}:{...T,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},E=p?reactDom.createPortal(jsxRuntime.jsx("div",{ref:d,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:c.dropdownBg,border:`1px solid ${c.dropdownBorder}`,borderRadius:"12px",boxShadow:c.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...B()},children:t.map((h,R)=>{if(h.divider)return jsxRuntime.jsx("div",{role:"separator",style:{height:"1px",backgroundColor:c.divider,margin:"4px 6px"}},R);let F=h.danger,T=h.disabled,z=R===w,M=T?c.textDisabled:F?c.dangerText:c.text,y=F?c.dangerHover:c.hoverBg;return jsxRuntime.jsxs("div",{role:"menuitem","aria-disabled":T,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:M,backgroundColor:z?y:"transparent",cursor:T?"not-allowed":"pointer",opacity:T?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{T||(h.onClick?.(),x());},onMouseEnter:()=>{T||S(R);},onMouseLeave:()=>S(-1),children:[h.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:h.icon}),jsxRuntime.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label})]},R)})}),document.body):null;return jsxRuntime.jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsxRuntime.jsx("div",{ref:i,onClick:()=>{s?x():v();},style:{display:"inline-flex",cursor:"pointer"},children:e}),E]})};cc.displayName="DropdownMenu";var pc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},jg=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:a,style:n,className:c,onMouseEnter:i,onMouseLeave:d,target:s,rel:f,...p})=>{let l=I(),m=pc[l],[u,b]=_o.useState(false),g=e==="danger"?m.danger:m.default,w={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:u?m.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:g,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...n},S=r&&t?jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsxRuntime.jsx("a",{style:w,className:c,target:s,rel:f??(s==="_blank"?"noopener noreferrer":void 0),onMouseEnter:v=>{b(true),i?.(v);},onMouseLeave:v=>{b(false),d?.(v);},...p,children:o==="right"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a,S]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[S,a]})})};var bc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},so=180,xc=({open:e,onClose:t,value:o,onChange:r,results:a,placeholder:n="Hledat...",className:c,style:i})=>{let d=I(),s=bc[d],[f,p]=_o.useState(false),[l,m]=_o.useState("idle"),[u,b]=_o.useState(-1),g=_o.useRef(null),w=_o.useRef(null);_o.useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=a;_o.useEffect(()=>{if(e)p(true),m("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});else if(f){m("closing");let h=setTimeout(()=>{p(false),m("idle");},so);return ()=>clearTimeout(h)}},[e]),_o.useEffect(()=>{f&&l==="open"&&g.current?.focus();},[f,l]),_o.useEffect(()=>{b(-1);},[a]),_o.useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let v=_o.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=S.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?S.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<S.length&&(S[u].onSelect(),t());break}}},[S,u,t]),x=[],C=new Map;S.forEach((h,R)=>{let F=C.get(h.category);F||(F=[],C.set(h.category,F),x.push({category:h.category,items:F})),F.push({...h,flatIndex:R});});let B=()=>{let h={transition:`opacity ${so}ms ease`};return l==="opening"||l==="idle"?{...h,opacity:0}:l==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},E=()=>{let h={transition:`opacity ${so}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${so}ms cubic-bezier(0.16, 1, 0.3, 1)`};return l==="opening"||l==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:l==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...B()},onKeyDown:v,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...i},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsxRuntime.jsx("input",{ref:g,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:x.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.category,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:s.categoryText,userSelect:"none"},children:h.category}),h.items.map(R=>{let F=R.flatIndex===u;return jsxRuntime.jsxs("div",{role:"option","aria-selected":F,"data-spotlight-index":R.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:F?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(R.flatIndex),onMouseLeave:()=>b(-1),children:[R.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:F?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:R.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.label}),R.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:R.description})]})]},R.id)})]},h.category))})]})]}),document.body):null};xc.displayName="Spotlight";var vc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},lo=180,Sc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:a,className:n})=>{let c=I(),i=vc[c],[d,s]=_o.useState(false),[f,p]=_o.useState("idle"),[l,m]=_o.useState(""),[u,b]=_o.useState(-1),g=_o.useRef(null),w=_o.useRef(null);_o.useEffect(()=>{let h="sm-commandmenu-scrollbar-hide";if(document.getElementById(h))return;let R=document.createElement("style");R.id=h,R.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(R);},[]);let S=o.map(h=>({...h,items:h.items.filter(R=>R.label.toLowerCase().includes(l.toLowerCase())||R.description?.toLowerCase().includes(l.toLowerCase()))})).filter(h=>h.items.length>0),v=S.flatMap(h=>h.items);_o.useEffect(()=>{if(e)m(""),b(-1),s(true),p("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>p("open"));});else if(d){p("closing");let h=setTimeout(()=>{s(false),p("idle");},lo);return ()=>clearTimeout(h)}},[e]),_o.useEffect(()=>{d&&f==="open"&&g.current?.focus();},[d,f]),_o.useEffect(()=>{b(-1);},[l]),_o.useEffect(()=>{if(u<0||!w.current)return;let h=w.current.querySelector(`[data-cmd-index="${u}"]`);h&&h.scrollIntoView({block:"nearest"});},[u]);let x=_o.useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),b(R=>{let F=R+1;return F>=v.length?0:F});break}case "ArrowUp":{h.preventDefault(),b(R=>{let F=R-1;return F<0?v.length-1:F});break}case "Enter":{h.preventDefault(),u>=0&&u<v.length&&(v[u].onSelect(),t());break}}},[v,u,t]),C=()=>{let h={transition:`opacity ${lo}ms ease`};return f==="opening"||f==="idle"?{...h,opacity:0}:f==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},B=()=>{let h={transition:`opacity ${lo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${lo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},E=0;return d?reactDom.createPortal(jsxRuntime.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...C()},onKeyDown:x,children:[jsxRuntime.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxRuntime.jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:n,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...B(),...a},children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsxRuntime.jsx(react.MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsxRuntime.jsx("input",{ref:g,type:"text",value:l,onChange:h=>m(h.target.value),placeholder:r,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsxRuntime.jsx("div",{ref:w,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:S.length===0?jsxRuntime.jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):S.map(h=>jsxRuntime.jsxs("div",{role:"group","aria-label":h.label,children:[jsxRuntime.jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.categoryText,userSelect:"none"},children:h.label}),h.items.map(R=>{let F=E++,T=F===u;return jsxRuntime.jsxs("div",{role:"option","aria-selected":T,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{R.onSelect(),t();},onMouseEnter:()=>b(F),onMouseLeave:()=>b(-1),children:[R.icon&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:R.icon}),jsxRuntime.jsxs("div",{style:{flex:1,minWidth:0},children:[jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.label}),R.description&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:R.description})]}),R.shortcut&&jsxRuntime.jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:R.shortcut})]},R.id)})]},h.label))})]})]}),document.body):null};Sc.displayName="CommandMenu";var kc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},wr=250,Cc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:a=64,style:n,className:c})=>{let i=I(),d=kc[i],s=t?a:r;return jsxRuntime.jsx("aside",{className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:`${s}px`,minWidth:`${s}px`,height:"100%",backgroundColor:d.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${d.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${wr}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`,...n},children:jsxRuntime.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${wr}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cc.displayName="AppSidebar";var Ec={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},Dc=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:a,onExpandedChange:n,onClick:c,children:i,collapsed:d=false,disabled:s=false,style:f,className:p})=>{let l=I(),m=Ec[l],u=_o__default.default.Children.count(i)>0,b=a!==void 0,[g,w]=_o.useState(r),S=b?a:g,[v,x]=_o.useState(false),C=_o.useRef(null),[B,E]=_o.useState(0);_o.useEffect(()=>{C.current&&E(C.current.scrollHeight);},[i,S]);let h=_o.useCallback(()=>{b?n?.(!a):w(M=>{let y=!M;return n?.(y),y});},[b,a,n]),R=_o.useCallback(()=>{s||(u&&h(),c?.());},[s,u,h,c]),F=s?`${m.text}66`:o?m.textActive:v?m.textHover:m.text,T=s?`${m.icon}66`:o?m.iconActive:v?m.iconHover:m.icon,z=o?m.activeBg:v&&!s?m.hoverBg:"transparent";return d?jsxRuntime.jsx("button",{type:"button",onClick:R,disabled:s,title:e,className:p,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:T,cursor:s?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...f},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:t||jsxRuntime.jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxRuntime.jsxs("div",{className:p,style:f,children:[jsxRuntime.jsxs("button",{type:"button",onClick:R,disabled:s,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:z,color:F,cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),children:[t&&jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T,transition:"color 0.12s ease"},children:t}),jsxRuntime.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),u&&jsxRuntime.jsx(react.CaretDownIcon,{size:14,color:v?m.chevronHover:m.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:S?"rotate(0deg)":"rotate(-90deg)"}})]}),u&&jsxRuntime.jsx("div",{ref:C,style:{overflow:"hidden",maxHeight:S?`${B}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsxRuntime.jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:i})})]})};Dc.displayName="SidebarItem";var zc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Ic=({logo:e,children:t,actions:o,sticky:r=true,glass:a=true,style:n,className:c})=>{let i=I(),d=zc[i];return jsxRuntime.jsxs("header",{className:c,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:a?d.background:d.backgroundSolid,borderBottom:`1px solid ${d.border}`,boxShadow:d.shadow,boxSizing:"border-box",...a?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...n},children:[e&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsxRuntime.jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Ic.displayName="Navbar";var Lc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Nc={info:jsxRuntime.jsx(react.Info,{size:28,color:"currentColor"}),success:jsxRuntime.jsx(react.CheckCircle,{size:28,color:"#00A205"}),error:jsxRuntime.jsx(react.XCircle,{size:28,color:"#DE0000"})},sa=({variant:e="info",title:t,content:o,icon:r,onClose:a,role:n="alert",style:c,className:i})=>{let d=I(),s=Lc[d],{border:f,background:p}=s[e],l=r??Nc[e];return jsxRuntime.jsxs("div",{role:n,"aria-live":n==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:p,border:`2px solid ${f}`,borderRadius:"8px",boxSizing:"border-box",...c},className:i,children:[jsxRuntime.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.iconColor},children:l}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:s.text,lineHeight:"normal"},children:t}),o&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:s.textSecondary,lineHeight:"normal"},children:o})]})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:a,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:s.closeColor,opacity:.7,flexShrink:0},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ia=3,Zc=.06,la=12,po=320,ca=_o.createContext(null),Yc=0,Vc=()=>`sm-toast-${++Yc}-${Date.now()}`,B0=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:a=16,maxToasts:n=5,duration:c=4e3})=>{let[i,d]=_o.useState([]),s=_o.useCallback(l=>{d(m=>m.map(u=>u.id===l?{...u,lifecycle:"leaving"}:u)),setTimeout(()=>{d(m=>m.filter(u=>u.id!==l));},po+100);},[]),f=_o.useCallback(l=>{let m=Vc(),u=l.duration??c,b={id:m,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:u,lifecycle:"entering",height:0};return d(g=>{let w=[...g,b];return w.length>n?w.slice(w.length-n):w}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(g=>g.map(w=>w.id===m?{...w,lifecycle:"visible"}:w));});}),u>0&&setTimeout(()=>s(m),u),m},[n,s,c]),p=_o.useCallback((l,m)=>{d(u=>u.map(b=>b.id===l&&b.height!==m?{...b,height:m}:b));},[]);return jsxRuntime.jsxs(ca.Provider,{value:{toast:f,dismiss:s},children:[e,i.length>0&&jsxRuntime.jsx(qc,{toasts:i,position:t,toastWidth:o,gap:r,offset:a,onDismiss:s,onHeightMeasured:p})]})},Uc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:a,isBottom:n,appeared:c,toastWidth:i,onDismiss:d,onHeightMeasured:s})=>{let f=t.lifecycle==="leaving",p=!c||f,l=a?1:Math.max(.7,1-o*Zc),m=a?0:o*la,u=n?-m:m,g=p?n?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${u}px)`,w=p?0:a?1:Math.max(.4,1-o*.18),S=!a&&o>=ia,v=r-o,x=_o.useCallback(C=>{C&&t.height===0&&s(t.id,C.offsetHeight);},[t.id,t.height===0]);return jsxRuntime.jsx("div",{ref:x,style:{position:"absolute",bottom:n?0:"auto",top:n?"auto":0,left:0,right:0,transformOrigin:n?"bottom center":"top center",transform:g,opacity:S?0:w,zIndex:v,transition:[`transform ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${po}ms ease`].join(", "),pointerEvents:o===0||a?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsxRuntime.jsx(sa,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},qc=({toasts:e,position:t,toastWidth:o,gap:r,offset:a,onDismiss:n,onHeightMeasured:c})=>{let[i,d]=_o.useState(false),[s,f]=_o.useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),m=t.endsWith("center");_o.useEffect(()=>{f(x=>{let C=new Set(x);return e.forEach(B=>{B.lifecycle==="visible"&&C.add(B.id);}),[...C].forEach(B=>{e.find(E=>E.id===B)||C.delete(B);}),C});},[e]);let g=(e[e.length-1]?.height||80)+Math.min(e.length-1,ia-1)*la,w=e.reduce((x,C)=>x+(C.height||80),0)+Math.max(0,e.length-1)*r,S=i?w:g,v=m?{left:"50%",transform:"translateX(-50%)"}:l?{right:a}:{left:a};return jsxRuntime.jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${a*2}px)`,height:S,...p?{bottom:a}:{top:a},...v,transition:`height ${po}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((x,C)=>{let B=e.length-1-C,E=s.has(x.id),h=x.lifecycle==="leaving",R=!E||h,F;if(i&&!R){let z=e.slice(C+1).reduce((y,D)=>y+(D.height||80)+r,0);F=`translateY(${p?-z:z}px)`;}return jsxRuntime.jsx(Uc,{item:x,depthIndex:B,stackSize:e.length,expanded:i,isBottom:p,appeared:E,toastWidth:o,onDismiss:n,onHeightMeasured:c,expandedTransformOverride:F},x.id)})})},P0=()=>{let e=_o.useContext(ca);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var ed={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},td={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},W0=({variant:e="info",title:t,children:o,icon:r,closable:a=false,onClose:n,className:c,style:i})=>{let d=I(),s=ed[d],f=td[e],[p,l]=_o.useState(true);if(!p)return null;let m=d==="light",u=m?f.borderLight:f.border,b=m?f.backgroundLight:f.background,g=m?f.iconColorLight:f.iconColor,S=r??{info:jsxRuntime.jsx(react.Info,{size:24,color:g}),success:jsxRuntime.jsx(react.CheckCircle,{size:24,color:g}),warning:jsxRuntime.jsx(react.Warning,{size:24,color:g}),error:jsxRuntime.jsx(react.XCircle,{size:24,color:g})}[e],v=()=>{l(false),n?.();};return jsxRuntime.jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${u}`,borderRadius:"4px",boxSizing:"border-box",...i},className:c,children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:s.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:s.descriptionText},children:o})]}),a&&jsxRuntime.jsx("button",{type:"button",onClick:v,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:s.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};var ld={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},cd={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},dd=({variant:e="info",title:t,children:o,closable:r=false,onClose:a,icon:n,action:c,style:i,className:d})=>{let s=I(),f=ld[s],p=cd[e],[l,m]=_o.useState(true);if(!l)return null;let u=s==="light",b=u?p.bgLight:p.bg,g=u?p.accentLight:p.accent,S=n??{info:jsxRuntime.jsx(react.Info,{size:20,color:g}),success:jsxRuntime.jsx(react.CheckCircle,{size:20,color:g}),warning:jsxRuntime.jsx(react.Warning,{size:20,color:g}),error:jsxRuntime.jsx(react.XCircle,{size:20,color:g})}[e],v=()=>{m(false),a?.();};return jsxRuntime.jsxs("div",{role:"status",className:d,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:b,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsxRuntime.jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:S}),jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:f.titleText},children:t}),o&&jsxRuntime.jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:o})]}),c&&jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:c}),r&&jsxRuntime.jsx("button",{type:"button",onClick:v,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsxRuntime.jsx(react.X,{size:16,color:"currentColor"})})]})};dd.displayName="Notification";var ua={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},pd={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},fa="sm-ui-progress-stripes",fd=()=>{if(typeof document>"u"||document.getElementById(fa))return;let e=document.createElement("style");e.id=fa,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},K0=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:a,striped:n=false,animated:c=false,className:i,style:d})=>{let s=I(),f=ua[s],p=pd[t],l=Math.max(0,Math.min(100,e));n&&c&&fd();let m=n?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...c?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:i,children:[(a||r)&&jsxRuntime.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},children:a}),r&&jsxRuntime.jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsxRuntime.jsx("div",{style:{width:"100%",height:p.height,backgroundColor:f.trackBg,borderRadius:p.height/2,overflow:"hidden"},children:jsxRuntime.jsx("div",{style:{width:`${l}%`,height:"100%",backgroundColor:o,borderRadius:p.height/2,transition:"width 0.3s ease",...m}})})]})},j0=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:a=false,label:n,className:c,style:i})=>{let d=I(),s=ua[d],f=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,m=l-f/100*l;return jsxRuntime.jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},className:c,children:[jsxRuntime.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:s.trackBg,strokeWidth:o}),jsxRuntime.jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:m,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),a&&jsxRuntime.jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:s.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(f),"%"]}),n&&jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:n})]})};var bd={sm:16,md:24,lg:40},ob=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:a})=>{let[n,c]=_o.useState(0),i=_o.useRef(void 0),d=_o.useRef(void 0);_o.useEffect(()=>{let p=l=>{d.current===void 0&&(d.current=l),c((l-d.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let s=typeof e=="number"?e:bd[e]??24,f=t??"currentColor";return jsxRuntime.jsx("span",{role:"status","aria-label":o,className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...a},children:jsxRuntime.jsxs("svg",{width:s,height:s,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${n}deg)`,flexShrink:0,display:"block"},children:[jsxRuntime.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsxRuntime.jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var md={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},hd=({open:e,onConfirm:t,onCancel:o,title:r,description:a,confirmLabel:n="Potvrdit",cancelLabel:c="Zru\u0161it",variant:i="default",loading:d=false,style:s,className:f})=>{let p=I(),l=md[p],[m,u]=_o.useState(false),[b,g]=_o.useState(false),w=i==="danger",S=w?b?l.dangerHover:l.dangerBg:b?l.confirmHover:l.confirmBg,v=w?l.dangerText:l.confirmText;return jsxRuntime.jsx(pr,{open:e,onClose:o,title:r,size:"sm",className:f,style:s,footer:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("button",{type:"button",onClick:o,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:m?l.cancelHover:l.cancelBg,border:`1px solid ${l.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:c}),jsxRuntime.jsx("button",{type:"button",onClick:t,disabled:d,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:S,border:"none",borderRadius:"6px",cursor:d?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:v,lineHeight:"normal",opacity:d?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:d?"Zpracov\xE1v\xE1m...":n})]}),children:a&&jsxRuntime.jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:a})})};hd.displayName="ConfirmDialog";var Rd={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},Td={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Fd=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},Ed=({text:e,children:t,size:o="md",variant:r="icon",label:a="Kop\xEDrovat",successLabel:n="Zkop\xEDrov\xE1no",onCopy:c,style:i,className:d})=>{let s=I(),f=Rd[s],p=Td[o],[l,m]=_o.useState(false),[u,b]=_o.useState(false),g=_o.useRef(null),w=_o.useCallback(async()=>{await Fd(e)&&(m(true),c?.(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(false),g.current=null;},2e3));},[e,c]),S=l?f.successColor:u?f.iconHover:f.iconColor,v=l?react.CheckIcon:react.CopySimpleIcon;return t?jsxRuntime.jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:S,...i},children:t}):r==="icon"?jsxRuntime.jsx("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:u?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:S,...i},children:jsxRuntime.jsx(v,{size:p.iconSize,color:S})}):jsxRuntime.jsxs("button",{type:"button","aria-label":l?n:a,onClick:w,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),className:d,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:u?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,color:l?f.successColor:f.buttonText,lineHeight:"normal",...i},children:[jsxRuntime.jsx(v,{size:p.iconSize,color:l?f.successColor:f.buttonText}),l?n:a]})};Ed.displayName="CopyButton";var zd={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Sb=({orientation:e="horizontal",label:t,className:o,style:r})=>{let a=I(),n=zd[a];return e==="vertical"?jsxRuntime.jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:n.border,flexShrink:0,...r}}):t?jsxRuntime.jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},children:[jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}}),jsxRuntime.jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:n.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsxRuntime.jsx("div",{style:{flex:1,height:"1px",backgroundColor:n.border}})]}):jsxRuntime.jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:n.border,flexShrink:0,...r}})};var Bd={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Pd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},wb=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:a=false,fullWidth:n=false,children:c,className:i,style:d})=>jsxRuntime.jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Bd[o],justifyContent:Pd[r],flexWrap:a?"wrap":"nowrap",width:n?"100%":void 0,...d},children:c});var Ad={sm:640,md:768,lg:1024,xl:1280},Fb=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:a,style:n})=>{let c=typeof e=="number"?e:Ad[e],i=typeof t=="number"?`${t}px`:t;return jsxRuntime.jsx("div",{className:a,style:{maxWidth:`${c}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...n},children:r})};var Od={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ha="smDragListPulse",Zd=`@keyframes ${ha}{0%,100%{opacity:1}50%{opacity:0.5}}`;function Br(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=Br(o.children,t);if(r)return r}}return null}function zr(e,t,o){let r=Br(e,t);if(!r||!r.children)return false;for(let a of r.children)if(a.id===o||zr([a],a.id,o))return true;return false}function ya(e,t){let o=null;return [e.reduce((a,n)=>{if(n.id===t)return o=n,a;if(n.children){let[c,i]=ya(n.children,t);i&&(o=i),a.push({...n,children:c.length>0?c:void 0});}else a.push(n);return a},[]),o]}function Ir(e,t,o,r){if(o==="inside")return e.map(n=>n.id===t?{...n,children:[...n.children||[],r],expanded:true}:n.children?{...n,children:Ir(n.children,t,o,r)}:n);let a=[];for(let n of e)n.id===t?o==="before"?(a.push(r),a.push(n)):(a.push(n),a.push(r)):n.children?a.push({...n,children:Ir(n.children,t,o,r)}):a.push(n);return a}function va(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:va(o.children,t)}:o)}function Sa(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Sa(r.children,t,o)}:r)}var ma=({color:e})=>jsxRuntime.jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ha} 1.2s ease-in-out infinite`,width:"100%"},children:jsxRuntime.jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),ka=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u})=>{let[b,g]=_o.useState(false),[w,S]=_o.useState(false),[v,x]=_o.useState(false),C=_o.useRef(false),B=_o.useRef(null),E=e.children&&e.children.length>0,h=e.expanded??false,R=a===e.id,F=a!==null,T=m==="handle",z=n?.targetId===e.id,M=z&&n?.position==="before",y=z&&n?.position==="after",D=z&&n?.position==="inside",P=R?"transparent":D?u.nestHighlight:w&&!F?u.itemHoverBg:u.itemBg,H=D?u.nestBorder:R?"transparent":u.itemBorder;return jsxRuntime.jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsxRuntime.jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(ma,{color:u.dropIndicator})}),jsxRuntime.jsxs("div",{ref:B,draggable:true,onDragStart:N=>{if(T&&!C.current){N.preventDefault();return}if(C.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),B.current){let A=B.current.cloneNode(true);A.style.width=`${B.current.offsetWidth}px`,A.style.opacity="0.85",A.style.transform="rotate(1.5deg) scale(1.02)",A.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",A.style.position="fixed",A.style.top="-1000px",document.body.appendChild(A),N.dataTransfer.setDragImage(A,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(A));}c(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),i(N,e.id,t);},onDragLeave:N=>{let A=N.relatedTarget;B.current&&A&&B.current.contains(A)||(N.stopPropagation(),d(N,B.current),S(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),s(N);},onDragEnd:f,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:R?"transparent":u.text,cursor:F?"grabbing":T?"default":"grab",opacity:R?.35:1,backgroundColor:P,borderWidth:"1px",borderColor:H,borderStyle:R?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:D?`inset 0 0 0 1px ${u.nestBorder}`:w&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:D?"scale(1.01)":"scale(1)"},children:[!l&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:R?"hidden":"visible"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onMouseDown:()=>{C.current=true;},children:jsxRuntime.jsx(react.DotsSixVertical,{size:14,color:b?u.gripHover:u.gripColor})}),D&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsxRuntime.jsx(react.ArrowBendDownRight,{size:16,color:u.dropIndicator})}),E?jsxRuntime.jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),p(e.id);},onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:R?"hidden":"visible"},children:jsxRuntime.jsx(react.CaretRight,{size:16,color:v?u.chevronHover:u.chevron,style:{transition:"transform 0.2s ease",transform:h?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsxRuntime.jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:R?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{C.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:R,depth:t,isExpanded:h,toggleExpand:()=>p(e.id),hasChildren:!!E}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.icon&&jsxRuntime.jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsxRuntime.jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),y&&jsxRuntime.jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsxRuntime.jsx(ma,{color:u.dropIndicator})}),E&&h&&jsxRuntime.jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${u.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsxRuntime.jsx(ka,{item:N,depth:t+1,allowNesting:o,maxDepth:r,draggedId:a,dropState:n,onDragStart:c,onDragOver:i,onDragLeave:d,onDrop:s,onDragEnd:f,onToggleExpand:p,renderItem:l,dragMode:m,tokens:u},N.id))})]})},Yd=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:a=3,dragMode:n="full",className:c,style:i})=>{let d=I(),s=Od[d],[f,p]=_o.useState(null),[l,m]=_o.useState(null),u=_o.useRef(null),b=_o.useRef(void 0),g=_o.useRef(void 0),w=_o.useRef(null),S=_o.useCallback(h=>{p(h);},[]),v=_o.useCallback((h,R,F)=>{if(!f||f===R||zr(e,f,R))return;b.current&&(clearTimeout(b.current),b.current=void 0);let T=h.currentTarget.getBoundingClientRect(),z=h.clientY-T.top,M=T.height,y;r&&F<a?z<M*.25?y="before":z>M*.75?y="after":y="inside":z<M*.35?y="before":z>M*.65?y="after":w.current?.targetId===R?y=w.current.position:y=z<M/2?"before":"after";let D={targetId:R,position:y},P=Br(e,R);y==="inside"&&P?.children&&P.children.length>0&&!P.expanded?(w.current?.targetId!==R||w.current?.position!=="inside")&&(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t(Sa(e,R,true));},600)):g.current&&(clearTimeout(g.current),g.current=void 0),w.current=D,m(D);},[f,e,r,a,t]),x=_o.useCallback((h,R)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{m(null),w.current=null;},60),g.current&&(clearTimeout(g.current),g.current=void 0);},[]),C=_o.useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),!f||!l)return;let{targetId:h,position:R}=l;if(f===h||zr(e,f,h))return;let[F,T]=ya(e,f);if(!T)return;let z=Ir(F,h,R,T);t(z),p(null),m(null),w.current=null;},[f,l,e,t]),B=_o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),p(null),m(null),w.current=null;},[]),E=_o.useCallback(h=>{t(va(e,h));},[e,t]);return _o.useEffect(()=>()=>{b.current&&clearTimeout(b.current),g.current&&clearTimeout(g.current);},[]),jsxRuntime.jsxs("div",{ref:u,className:c,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:Zd}}),e.length===0?jsxRuntime.jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,backgroundColor:s.itemBg,borderRadius:"10px",border:`1px solid ${s.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(h=>jsxRuntime.jsx(ka,{item:h,depth:0,allowNesting:r,maxDepth:a,draggedId:f,dropState:l,onDragStart:S,onDragOver:v,onDragLeave:x,onDrop:C,onDragEnd:B,onToggleExpand:E,renderItem:o,dragMode:n,tokens:s},h.id))]})};Yd.displayName="DragList";exports.Accordion=Ai;exports.AccordionItem=Mi;exports.Alert=W0;exports.AppSidebar=Cc;exports.Avatar=Eu;exports.Badge=Mu;exports.Breadcrumb=Xl;exports.Button=Da;exports.Calendar=xl;exports.Card=Di;exports.Checkbox=on;exports.CheckboxGroup=rn;exports.ColorPicker=ri;exports.Combobox=is;exports.CommandMenu=Sc;exports.ConfirmDialog=hd;exports.Container=Fb;exports.CopyButton=Ed;exports.DataGrid=Ti;exports.DataList=Sl;exports.DatePicker=en;exports.DatePickerGroup=ms;exports.Divider=Sb;exports.DragList=Yd;exports.Drawer=Ol;exports.DropdownMenu=cc;exports.EmptyState=el;exports.FileUpload=xn;exports.Input=$r;exports.InputGroup=ep;exports.Link=jg;exports.Modal=pr;exports.Navbar=Ic;exports.Notification=dd;exports.NumberInput=qa;exports.OTPInput=mi;exports.Pagination=tc;exports.Popover=Xi;exports.ProgressBar=K0;exports.ProgressCircle=j0;exports.Radio=Po;exports.RadioGroup=an;exports.Rating=ci;exports.SegmentedControl=Xs;exports.Select=Ur;exports.SelectGroup=ja;exports.Sheet=ql;exports.SidebarItem=Dc;exports.Skeleton=lt;exports.Slider=gn;exports.Spinner=ob;exports.Spotlight=xc;exports.Stack=wb;exports.Stat=al;exports.StatusBadge=Bl;exports.Stepper=sc;exports.Switch=ln;exports.Tab=Ni;exports.TabPanel=$i;exports.Table=Ci;exports.Tabs=Wi;exports.Tag=Pu;exports.TagItem=Au;exports.Textarea=dn;exports.Timeline=yl;exports.Toast=sa;exports.ToasterProvider=B0;exports.Tooltip=Qo;exports.Tree=Tl;exports.useTheme=I;exports.useToast=P0;//# sourceMappingURL=index.js.map
|
|
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
|
|
19
19
|
//# sourceMappingURL=index.js.map
|