@smworks-cz/ui-kit 1.4.0 → 1.5.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.mjs CHANGED
@@ -1,19 +1,19 @@
1
- import ur,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,Warning,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,Crop,CaretUpDownIcon,CaretUpDown,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var P=()=>{let[e,t]=useState("light");return 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]=useState(0),r=useRef(void 0),n=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ss=ur.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]=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=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(as,{size:parseInt(M)-1}):o}),I=n||w,L=r==="right"?jsxs(Fragment,{children:[C&&jsx("span",{children:s}),I&&S]}):jsxs(Fragment,{children:[I&&S,C&&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 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 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]=useState(0),n=useRef(void 0),a=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),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.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=useId(),h=g.id??k,[F,S]=useState(false),[I,L]=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$1=()=>{if(!f)return;f({target:{value:""},currentTarget:{value:""}});},te=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:D.placeholder},children:t}):null,Y=T&&!N?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?jsx(EyeSlash,{color:D.placeholder,size:O.iconSize}):jsx(Eye,{color:D.placeholder,size:O.iconSize})}):null,$=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:D.placeholder},children:jsx(fs,{size:O.iconSize,color:D.placeholder})}):Y||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:X$1,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:jsx(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 jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...d},className:p,children:[e&&jsxs("label",{htmlFor:h,style:K,children:[e,b&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:h,style:U,children:[j,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&&jsx("span",{style:{...q,color:D.borderError},children:z}),!z&&n&&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=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 jsxs("div",{style:u,className:n,children:[jsx("label",{htmlFor:i,style:c,children:e}),o??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.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=useId(),y=ks[u],[g,v]=useState(false),[M,D]=useState(null),k=!!s,h=typeof s=="string"?s:void 0,F=useCallback(j=>{let U=j;return o!==void 0&&U<o&&(U=o),r!==void 0&&U>r&&(U=r),U},[o,r]),S=useCallback(()=>{t(F(e+n));},[e,n,t,F]),I=useCallback(()=>{t(F(e-n));},[e,n,t,F]),L=useRef(null),R=useRef(null),T=useCallback(j=>{i||(j(),R.current=setTimeout(()=>{L.current=setInterval(j,80);},400));},[i]),E=useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),L.current&&(clearInterval(L.current),L.current=null);},[]);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"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),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&&jsx("span",{style:Y,children:p})]}),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:[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:jsx(CaretUp,{size:10,weight:"bold"})}),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:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),h&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[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:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:X}),p&&jsx("span",{style:Y,children:p})]}),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:jsx(Plus,{size:y.iconSize})})]}),h&&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]=useState(0),n=useRef(void 0),a=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),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=useId(),C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState("idle"),[S,I]=useState(""),[L,R]=useState(-1),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),N=s||i,W=!!u,z=typeof u=="string"?u:void 0,A=useCallback(()=>{M(true),k(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),Z=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$1=H=>O.includes(H),te=S?e.filter(H=>(H.label??H.value).toLowerCase().includes(S.toLowerCase())):e,Y=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]);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 $=useCallback(H=>{if(o)if(r){let Q=X$1(H)?O.filter(ee=>ee!==H):[...O,H];o(Q);}else o(H),Z();},[r,o,O,Z]),j=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}};useEffect(()=>{L>=0&&g.current&&g.current.children[L]?.scrollIntoView({block:"nearest"});},[L]),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]),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?createPortal(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&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${m.divider}`},children: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}})}),jsxs("div",{ref:g,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${f}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
2
- .sm-select-list-${f}::-webkit-scrollbar {
1
+ import Fn,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,Rocket,WarningCircle,Lock,Tray,XCircle,CheckCircle,Info,Warning,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,Crop,CaretUpDownIcon,CaretUpDown,CaretDownIcon,TrendUp,TrendDown,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';var A=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let o=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let n=window.matchMedia("(prefers-color-scheme: dark)"),r=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};n.addEventListener("change",r);let a=new MutationObserver(l=>{l.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{n.removeEventListener("change",r),a.disconnect();}},[]),e};var De={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"},Ds={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"}},Is=({size:e=14})=>{let[t,o]=useState(0),n=useRef(void 0),r=useRef(void 0);return useEffect(()=>{let a=l=>{r.current===void 0&&(r.current=l),o((l-r.current)/800*360%360),n.current=requestAnimationFrame(a);};return n.current=requestAnimationFrame(a),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ms=Fn.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:n="left",loading:r=false,loadingPosition:a="replace",fullWidth:l=false,children:i,style:g,className:b,...c},d)=>{let[s,p]=useState(false),m=A()==="dark",u=typeof c.href=="string",R=r||(u?false:!!c.disabled),z=i!=null&&i!=="",h=o!=null,k=(h||r)&&!z,{paddingText:x,paddingSquare:M,fontSize:v,gap:F,height:y}=Ds[t],D={display:l?"flex":"inline-flex",width:l?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:z&&(h||r)?F:void 0,padding:k?M:x,height:y,borderRadius:"8px",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:R?"none":void 0},B=(()=>{switch(e){case "primary":return {backgroundColor:s?De.primaryHover:De.primary,color:De.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:s?m?De.secondaryHoverDark:De.secondaryHoverLight:"transparent",color:m?De.white:De.black,border:"1px solid transparent"};case "outline":return {backgroundColor:s?m?De.secondaryHoverDark:De.secondaryHoverLight:"transparent",color:m?De.white:De.black,border:`1px solid ${s?m?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":m?De.borderDark:De.borderLight}`};case "danger":return {backgroundColor:s?"#FF5252":"#EF3838",color:De.white,border:"1px solid transparent"}}})(),S=a==="after-text",P=jsx(Is,{size:parseInt(v)-1}),E=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:r&&!S?P:o}),w=r&&S?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:P}):null,T=r&&!S||h,L=n==="right"?jsxs(Fragment,{children:[z&&jsx("span",{children:i}),w,T&&E]}):jsxs(Fragment,{children:[T&&E,z&&jsx("span",{children:i}),w]}),$={style:{...D,...B,...g},className:b,onMouseEnter:O=>{p(true),c.onMouseEnter?.(O);},onMouseLeave:O=>{p(false),c.onMouseLeave?.(O);}};if(u){let{href:O,target:V,rel:G,...Z}=c;return jsx("a",{ref:d,href:O,target:V,rel:G??(V==="_blank"?"noopener noreferrer":void 0),"aria-disabled":R||void 0,...Z,...$,children:L})}let{disabled:C,type:I="button",...H}=c;return jsx("button",{ref:d,type:I,disabled:R,"aria-busy":r||void 0,...H,...$,children:L})});Ms.displayName="Button";var Hs={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},xt=({content:e,children:t,position:o="top",mode:n="anchor",autoFlip:r=true,offset:a=[0,0],delay:l=0,openDelay:i,closeDelay:g=0,className:b,style:c})=>{let d=A(),s=Hs[d],[p,f]=useState(false),[m,u]=useState({top:0,left:0}),[R,z]=useState(o),h=useRef(null),k=useRef(null),x=useRef(void 0),M=useRef(void 0),v=useRef({x:0,y:0}),F=6,y=8,D=i??l,B=useCallback((C,I,H)=>{if(!r)return C;let O=window.innerWidth,V=window.innerHeight;switch(C){case "top":if(I.top-H.height-y<0)return "bottom";break;case "bottom":if(I.bottom+H.height+y>V)return "top";break;case "left":if(I.left-H.width-y<0)return "right";break;case "right":if(I.right+H.width+y>O)return "left";break}return C},[r]),S=useCallback(()=>{let C=h.current,I=k.current;if(!C||!I)return;let H=C.getBoundingClientRect(),O=I.getBoundingClientRect(),V=B(o,H,O);z(V);let G=0,Z=0,[W,q]=a;switch(V){case "top":G=H.top-O.height-y+q,Z=H.left+H.width/2-O.width/2+W;break;case "bottom":G=H.bottom+y+q,Z=H.left+H.width/2-O.width/2+W;break;case "left":G=H.top+H.height/2-O.height/2+q,Z=H.left-O.width-y+W;break;case "right":G=H.top+H.height/2-O.height/2+q,Z=H.right+y+W;break}let U=window.innerWidth,te=window.innerHeight;Z=Math.max(4,Math.min(Z,U-O.width-4)),G=Math.max(4,Math.min(G,te-O.height-4)),u({top:G,left:Z});},[o,a,B]),P=useCallback(()=>{let C=k.current;if(!C)return;let I=C.getBoundingClientRect(),[H,O]=a,V=v.current.x,G=v.current.y,Z=0,W=0;switch(o){case "top":Z=G-I.height-y+O,W=V-I.width/2+H;break;case "bottom":Z=G+y+16+O,W=V-I.width/2+H;break;case "left":Z=G-I.height/2+O,W=V-I.width-y+H;break;case "right":Z=G-I.height/2+O,W=V+y+H;break}let q=window.innerWidth,U=window.innerHeight;W=Math.max(4,Math.min(W,q-I.width-4)),Z=Math.max(4,Math.min(Z,U-I.height-4)),u({top:Z,left:W}),z(o);},[o,a]);useEffect(()=>{p&&requestAnimationFrame(()=>{n==="cursor"?P():S();});},[p,n,S,P]);let E=useCallback(C=>{v.current={x:C.clientX,y:C.clientY},n==="cursor"&&p&&P();},[n,p,P]),w=useCallback(C=>{v.current={x:C.clientX,y:C.clientY},M.current&&(clearTimeout(M.current),M.current=void 0),x.current=setTimeout(()=>f(true),D);},[D]),T=useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g>0?M.current=setTimeout(()=>f(false),g):f(false);},[g]);useEffect(()=>()=>{x.current&&clearTimeout(x.current),M.current&&clearTimeout(M.current);},[]);let L=(()=>{if(n==="cursor")return {display:"none"};let C={position:"absolute",width:0,height:0,border:`${F}px solid transparent`};switch(R){case "top":return {...C,bottom:-F,left:"50%",transform:"translateX(-50%)",borderTopColor:s.background,borderBottomWidth:0};case "bottom":return {...C,top:-F,left:"50%",transform:"translateX(-50%)",borderBottomColor:s.background,borderTopWidth:0};case "left":return {...C,right:-F,top:"50%",transform:"translateY(-50%)",borderLeftColor:s.background,borderRightWidth:0};case "right":return {...C,left:-F,top:"50%",transform:"translateY(-50%)",borderRightColor:s.background,borderLeftWidth:0}}})(),$=p?createPortal(jsxs("div",{ref:k,className:b,style:{position:"fixed",top:m.top,left:m.left,zIndex:99999,padding:"6px 12px",backgroundColor:s.background,color:s.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...c},children:[e,jsx("div",{style:L})]}),document.body):null;return jsxs(Fragment,{children:[Fn.cloneElement(t,{ref:h,onMouseEnter:C=>{w(C),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{T(),t.props.onMouseLeave?.(C);},onMouseMove:C=>{E(C),t.props.onMouseMove?.(C);}}),$]})};xt.displayName="Tooltip";var Ws=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Os={dark:{defaultBg:"transparent",defaultHover:"rgba(255,255,255,0.08)",defaultColor:"#ffffff",ghostBg:"transparent",ghostHover:"rgba(255,255,255,0.06)",ghostColor:"#ACACAC",outlineBg:"transparent",outlineHover:"rgba(255,255,255,0.06)",outlineColor:"#ffffff",outlineBorder:"rgba(255,255,255,0.3)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.12)",dangerColor:"#EF3838"},light:{defaultBg:"transparent",defaultHover:"rgba(0,0,0,0.06)",defaultColor:"#1a1a1a",ghostBg:"transparent",ghostHover:"rgba(0,0,0,0.04)",ghostColor:"#888888",outlineBg:"transparent",outlineHover:"rgba(0,0,0,0.04)",outlineColor:"#1a1a1a",outlineBorder:"rgba(0,0,0,0.2)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.08)",dangerColor:"#EF3838"}},Zs={xs:{size:24,iconSize:12,radius:"4px"},sm:{size:28,iconSize:14,radius:"6px"},md:{size:36,iconSize:16,radius:"8px"},lg:{size:44,iconSize:20,radius:"8px"}},Ys=({icon:e,onClick:t,label:o,variant:n="default",size:r="md",disabled:a=false,loading:l=false,tooltip:i,style:g,className:b})=>{let c=A(),d=Os[c],s=Zs[r],[p,f]=useState(false),m={default:{bg:p?d.defaultHover:d.defaultBg,color:d.defaultColor,border:"none"},ghost:{bg:p?d.ghostHover:d.ghostBg,color:d.ghostColor,border:"none"},outline:{bg:p?d.outlineHover:d.outlineBg,color:d.outlineColor,border:`1px solid ${d.outlineBorder}`},danger:{bg:p?d.dangerHover:d.dangerBg,color:d.dangerColor,border:"none"}}[n],u=jsx("button",{type:"button","aria-label":o,disabled:a||l,onClick:t,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),className:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:s.size,height:s.size,borderRadius:s.radius,backgroundColor:m.bg,color:m.color,border:m.border,cursor:a||l?"not-allowed":"pointer",opacity:a?.4:1,transition:"background-color 0.12s ease",outline:"none",padding:0,flexShrink:0,boxSizing:"border-box",...g},children:l?jsx(Ws,{size:s.iconSize}):e});return i?jsx(xt,{content:i,children:u}):u};Ys.displayName="IconButton";var Xs={dark:{label:"#ffffff",helperText:"#ACACAC",errorText:"#EF3838",required:"#EF3838"},light:{label:"#1a1a1a",helperText:"#888888",errorText:"#EF3838",required:"#EF3838"}},_s=({label:e,required:t=false,helperText:o,error:n,children:r,inline:a=false,labelWidth:l="120px",style:i,className:g})=>{let b=A(),c=Xs[b],d=useId(),s=typeof l=="number"?`${l}px`:l,p=e?jsxs("label",{htmlFor:d,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none",display:"flex",alignItems:"center",gap:"2px",...a?{width:s,flexShrink:0,paddingTop:"10px"}:{}},children:[e,t&&jsx("span",{style:{color:c.required,marginLeft:"2px"},children:"*"})]}):null,f=n||o;return jsxs("div",{className:g,style:{display:"flex",flexDirection:a?"row":"column",gap:a?"12px":"6px",...i},children:[p,jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px",minWidth:0},children:[r,f&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:n?c.errorText:c.helperText},children:n||o})]})]})};_s.displayName="FormField";var Qs=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Er={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},ei={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"}},Fr=Fn.forwardRef(({label:e,icon:t,iconPosition:o="left",error:n,helperText:r,loading:a=false,clearable:l=false,passwordToggle:i,size:g="md",fullWidth:b=false,style:c,className:d,inputStyle:s,disabled:p,required:f,value:m,onChange:u,onFocus:R,onBlur:z,type:h,...k},x)=>{let M=A(),v=Er[M],F=useId(),y=k.id??F,[D,B]=useState(false),[S,P]=useState(false),E=h==="password",w=i??E,T=E&&S?"text":h,L=p||a,$=!!n,C=typeof n=="string"?n:void 0,I=m!=null&&m!=="",H=l&&I&&!L&&!w,O=ei[g],V=()=>{if(!u)return;u({target:{value:""},currentTarget:{value:""}});},G=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,Z=w&&!L?jsx("span",{role:"button",tabIndex:-1,"aria-label":S?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>P(se=>!se),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:S?jsx(EyeSlash,{color:v.placeholder,size:O.iconSize}):jsx(Eye,{color:v.placeholder,size:O.iconSize})}):null,W=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsx(Qs,{size:O.iconSize,color:v.placeholder})}):Z||(H?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:V,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsx(X,{size:O.iconSize-2,color:v.placeholder})}):o==="right"&&G?G:null),q=o==="left"?G:null,U={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:L?v.backgroundDisabled:v.background,border:`1px solid ${$?v.borderError:D?v.borderFocus:v.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},te={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:v.text,cursor:L?"not-allowed":"text",...s},K={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},Q={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:b?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:b?"100%":void 0,...c},className:d,children:[e&&jsxs("label",{htmlFor:y,style:K,children:[e,f&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:y,style:U,children:[q,jsx("input",{ref:x,id:y,type:T,disabled:p,required:f,readOnly:a||k.readOnly,value:m,onChange:u,style:te,onFocus:se=>{B(true),R?.(se);},onBlur:se=>{B(false),z?.(se);},...k}),W]}),C&&jsx("span",{style:{...Q,color:v.borderError},children:C}),!C&&r&&jsx("span",{style:{...Q,color:v.helperText},children:r})]})});Fr.displayName="Input";var Pf=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),i=t??l,g={display:"flex",flexDirection:"column",gap:"8px",...n},b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Er[a].label,userSelect:"none"};return jsxs("div",{style:g,className:r,children:[jsx("label",{htmlFor:i,style:b,children:e}),o??jsx(Fr,{id:i})]})};var li={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"}},ci={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"}},di=Fn.forwardRef(({value:e,onChange:t,min:o,max:n,step:r=1,label:a,error:l,disabled:i=false,size:g="md",variant:b="default",prefix:c,suffix:d,style:s,className:p},f)=>{let m=A(),u=li[m],z=useId(),h=ci[g],[k,x]=useState(false),[M,v]=useState(null),F=!!l,y=typeof l=="string"?l:void 0,D=useCallback(q=>{let U=q;return o!==void 0&&U<o&&(U=o),n!==void 0&&U>n&&(U=n),U},[o,n]),B=useCallback(()=>{t(D(e+r));},[e,r,t,D]),S=useCallback(()=>{t(D(e-r));},[e,r,t,D]),P=useRef(null),E=useRef(null),w=useCallback(q=>{i||(q(),E.current=setTimeout(()=>{P.current=setInterval(q,80);},400));},[i]),T=useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null),P.current&&(clearInterval(P.current),P.current=null);},[]);useEffect(()=>()=>T(),[T]);let L=q=>{let U=q.target.value;if(U===""||U==="-")return;let te=parseFloat(U);isNaN(te)||t(D(te));},$=()=>{x(false),t(D(e));},C=o===void 0||e>o,I=n===void 0||e<n,H={display:"flex",alignItems:"center",backgroundColor:i?u.backgroundDisabled:u.background,border:`1px solid ${F?u.borderError:k?u.borderFocus:u.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:h.height},O=(q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:h.buttonPadding,border:"none",background:M===q&&U&&!i?u.buttonHoverBg:u.buttonBg,color:U&&!i?u.buttonText:u.placeholder,cursor:i||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:h.height,userSelect:"none"}),V={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"normal",color:u.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},G={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:h.fontSize,color:u.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},W=(q,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:M===q&&U&&!i?u.buttonHoverBg:"transparent",color:U&&!i?u.buttonText:u.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 b==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:p,children:[a&&jsx("label",{htmlFor:z,style:G,children:a}),jsxs("div",{style:H,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:h.padding,minWidth:0},children:[c&&jsx("span",{style:Z,children:c}),jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:$,disabled:i,style:{...V,textAlign:"left"}}),d&&jsx("span",{style:Z,children:d})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${F?u.borderError:k?u.borderFocus:u.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!I,style:W("up",I),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!C,style:W("down",C),onMouseDown:()=>w(S),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:y})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:p,children:[a&&jsx("label",{htmlFor:z,style:G,children:a}),jsxs("div",{style:H,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!C,style:O("minus",C),onMouseDown:()=>w(S),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("minus"),children:jsx(Minus,{size:h.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[c&&jsx("span",{style:Z,children:c}),jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:$,disabled:i,style:V}),d&&jsx("span",{style:Z,children:d})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!I,style:O("plus",I),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("plus"),children:jsx(Plus,{size:h.iconSize})})]}),y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:y})]})});di.displayName="NumberInput";var Ir=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Pr={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)"}},nn=180,Ar=({options:e,value:t,onChange:o,multiple:n=false,searchable:r=false,clearable:a=false,disabled:l=false,loading:i=false,error:g,onSearch:b,creatable:c=false,onCreateOption:d,chipDisplay:s="inline",renderOption:p,renderValue:f,label:m,placeholder:u="Vyberte\u2026",maxDropdownHeight:R=240,style:z,className:h})=>{let k=A(),x=Pr[k],M=useId(),v=useRef(null),F=useRef(null),y=useRef(null),D=useRef(null),[B,S]=useState(false),[P,E]=useState(false),[w,T]=useState("idle"),[L,$]=useState(""),[C,I]=useState(-1),[H,O]=useState({top:0,left:0,width:0,openAbove:false}),V=l||i,G=!!g,Z=typeof g=="string"?g:void 0,W=useCallback(()=>{S(true),E(true),T("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>T("open"));});},[]),q=useCallback(()=>{S(false),T("closing"),$("");let _=setTimeout(()=>{E(false),T("idle");},nn);return ()=>clearTimeout(_)},[]),U=n?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],te=_=>U.includes(_),[K,Q]=useState(null),[se,be]=useState(false),ae=useRef(void 0);useEffect(()=>{if(!b||!L){Q(null);return}return be(true),ae.current&&clearTimeout(ae.current),ae.current=setTimeout(()=>{b(L).then(_=>{Q(_),be(false);}).catch(()=>{Q([]),be(false);});},300),()=>{ae.current&&clearTimeout(ae.current);}},[L,b]);let Y=b?K??e:L?e.filter(_=>(_.label??_.value).toLowerCase().includes(L.toLowerCase())):e,re=useCallback(()=>{if(!v.current)return;let _=v.current.getBoundingClientRect(),pe=F.current?.offsetHeight??R+60,le=window.innerHeight-_.bottom-6,Me=_.top-6,at=le<pe&&Me>le;O({top:at?_.top-6:_.bottom+6,left:_.left,width:_.width,openAbove:at});},[R]);useEffect(()=>{if(P)return re(),window.addEventListener("scroll",re,true),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re,true),window.removeEventListener("resize",re);}},[P,re]);let ie=useCallback(_=>{if(o)if(n){let pe=te(_)?U.filter(le=>le!==_):[...U,_];o(pe);}else o(_),q();},[n,o,U,q]),Be=useCallback(_=>{_.stopPropagation(),o&&(o(n?[]:null),$(""));},[n,o]),rt=()=>{V||(B?q():W(),I(-1));},Pe=_=>{if(!V)switch(_.key){case "ArrowDown":_.preventDefault(),B?I(pe=>Math.min(pe+1,Y.length-1)):(W(),I(0));break;case "ArrowUp":_.preventDefault(),I(pe=>Math.max(pe-1,0));break;case "Enter":case " ":_.preventDefault(),B&&C>=0&&Y[C]&&!Y[C].disabled?ie(Y[C].value):B||(W(),I(0));break;case "Escape":q();break;case "Tab":q();break}};useEffect(()=>{C>=0&&D.current&&D.current.children[C]?.scrollIntoView({block:"nearest"});},[C]),useEffect(()=>{if(!B)return;let _=pe=>{let le=pe.target,Me=v.current?.contains(le),at=F.current?.contains(le);!Me&&!at&&q();};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[B,q]),useEffect(()=>{B&&r&&y.current&&y.current.focus();},[B,r]);let Fe=_=>e.find(le=>le.value===_)?.label??_,Ce=a&&U.length>0&&!V,Ve=()=>{let _=H.openAbove,pe=_?"translateY(8px)":"translateY(-8px)",le=_?"translateY(6px)":"translateY(-6px)",Me={transition:`opacity ${nn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${nn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...Me,opacity:0,transform:`${pe} scale(0.97)`}:w==="open"?{...Me,opacity:1,transform:"translateY(0) scale(1)"}:{...Me,opacity:0,transform:`${le} scale(0.98)`,pointerEvents:"none"}},mt={display:"flex",alignItems:"center",gap:"10px",backgroundColor:V?x.backgroundDisabled:x.background,border:`1px solid ${G?x.borderError:B?x.borderFocus:x.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},Bt=P?createPortal(jsxs("div",{ref:F,style:{position:"fixed",...H.openAbove?{bottom:window.innerHeight-H.top,left:H.left}:{top:H.top,left:H.left},width:H.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:k==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:H.openAbove?"bottom center":"top center",...Ve()},children:[r&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${x.divider}`},children:jsx("input",{ref:y,type:"text",value:L,onChange:_=>{$(_.target.value),I(0);},onKeyDown:Pe,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:D,role:"listbox","aria-multiselectable":n,className:`sm-select-list-${M}`,style:{maxHeight:R,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
2
+ .sm-select-list-${M}::-webkit-scrollbar {
3
3
  width: 6px;
4
4
  }
5
- .sm-select-list-${f}::-webkit-scrollbar-track {
5
+ .sm-select-list-${M}::-webkit-scrollbar-track {
6
6
  background: transparent;
7
7
  }
8
- .sm-select-list-${f}::-webkit-scrollbar-thumb {
9
- background: ${m.scrollbarThumb};
8
+ .sm-select-list-${M}::-webkit-scrollbar-thumb {
9
+ background: ${x.scrollbarThumb};
10
10
  border-radius: 3px;
11
11
  }
12
- `}),te.length===0&&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$1(H.value),ne=Q===L;return 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:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H.label??H.value}),ee&&jsx(Check,{size:16,color:m.optionSelectedText})]},H.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:x,children:[c&&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}),jsxs("div",{ref:C,role:"combobox","aria-expanded":v,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:pe,onClick:U,onKeyDown:re,children:[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&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.placeholder,lineHeight:"normal"},children:d}),r?O.map(H=>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:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(H)}),!N&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:Q=>{Q.stopPropagation(),$(H);},children:jsx(X,{size:14,color:m.tagText})})]},H)):O.length>0&&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])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[q&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:j,children:jsx(X,{size:14,color:m.placeholder})}),i?jsx(Fs,{size:16,color:m.placeholder}):jsx(CaretDown,{size:16,color:m.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),z&&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=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[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??jsx(gn,{options:[]})]})};Es.displayName="SelectGroup";var As=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),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.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=useId(),R=Ls[M],T=useRef(null),E=useRef(null),N=useRef(null),W=useRef(null),[z,A]=useState(false),[Z,O]=useState(false),[X$1,te]=useState("idle"),[Y,$]=useState(""),[j,U]=useState(-1),[re,K]=useState(false),[q,J]=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};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=useCallback(()=>{A(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Ee=useCallback(()=>{A(false),te("closing"),p?.(false);let B=setTimeout(()=>{O(false),te("idle");},Vo);return ()=>clearTimeout(B)},[p]),$e=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});},[]);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]),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]),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=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=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=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$1==="opening"||X$1==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:X$1==="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?createPortal(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:[jsxs("div",{ref:W,role:"listbox","aria-multiselectable":c,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[Ye.length===0&&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 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,_):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.label??B.value}),G&&jsx(Check,{size:16,color:S.optionSelectedText})]})},B.value)})]}),v&&jsx("div",{style:{borderTop:`1px solid ${S.divider}`,padding:"8px 6px"},children:typeof v=="function"?v(Ee):v})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...D},className:k,children:[a&&jsx("label",{htmlFor:L,style:No,children:a}),jsxs("div",{ref:T,style:Ho,onClick:()=>E.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S.placeholder},children:u?jsx(As,{size:R.iconSize,color:S.placeholder}):jsx(MagnifyingGlass,{size:R.iconSize,color:S.placeholder})}),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=>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:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:he(B)}),!pe&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:V=>{V.stopPropagation(),zo(B);},children:jsx(X,{size:14,color:S.tagText})})]},B)),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})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Q&&ee.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Io,children:jsx(X,{size:14,color:S.placeholder})}),jsx(CaretDown,{size:R.iconSize,color:S.placeholder,style:{transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]})]}),H&&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]=useState(0),n=useRef(void 0),a=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),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=useId(),M=Vs[p],D=useRef(null),k=useRef(null),[h,F]=useState(false),[S,I]=useState(false),[L,R]=useState("idle"),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),[N,W]=useState(null),z=new Date,[A,Z]=useState(z.getFullYear()),[O,X$1]=useState(z.getMonth()),[te,Y]=useState("days"),[$,j]=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=useCallback(()=>{let B=e==="single"?q:J[0];B&&(Z(B.getFullYear()),X$1(B.getMonth())),Y("days"),F(true),I(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));});},[e,q,J]),ne=useCallback(()=>{F(false),R("closing");let B=setTimeout(()=>{I(false),R("idle");},Uo);return ()=>clearTimeout(B)},[]),he=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});},[]);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]),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=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=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=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$1(11),Z(B=>B-1)):X$1(B=>B-1);},Qt=()=>{O===11?(X$1(0),Z(B=>B+1)):X$1(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 jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[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"}),jsx("span",{style:{color:g.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),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=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:hn.map((B,V)=>{let G=V===O;return jsx("button",{type:"button",onClick:()=>{X$1(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 jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[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:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text},children:[B," \u2013 ",B+11]}),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:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:V.map(G=>{let _=G===A;return 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?createPortal(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"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children: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()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:Do,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[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]}),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})]}),jsx("button",{type:"button",onClick:Qt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Us.map(B=>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))}),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),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&&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"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"\u010Cas:"}),zt(q)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Od:"}),zt(J[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[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 jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...C},className:w,children:[n&&jsxs("label",{htmlFor:v,style:No,children:[n,x&&jsx("span",{style:{color:g.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:D,role:"button",tabIndex:U?-1:0,style:Lo,onClick:()=>{U||(h?ne():ee());},onKeyDown:Ye,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.text,lineHeight:"normal"},children:H}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.placeholder,lineHeight:"normal"},children:Q})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[we&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:zo,children:jsx(X,{size:M.iconSize-2,color:g.placeholder})}),c?jsx(Ys,{size:M.iconSize,color:g.placeholder}):jsx(CalendarBlank,{size:M.iconSize,color:g.placeholder})]})]}),K&&jsx("span",{style:{...eo,color:g.borderError},children:K}),!K&&i&&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=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[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??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=useId(),x=useRef(null),b=!!n,m=typeof n=="string"?n:void 0;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 jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...u},className:i,children:[jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:M=>{M.preventDefault(),f();},children:[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}),jsxs("span",{style:y,children:[e&&!s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:g,children:o})]}),m&&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 jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[e&&jsx("span",{style:u,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&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=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 jsx("div",{style:{display:"inline-flex",...i},className:s,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:C=>{C.preventDefault(),l();},children:[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"}}),jsx("span",{style:m,children:t&&jsx("span",{style:{width:d.dot,height:d.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),r&&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 jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:u,children:[o&&jsx("span",{style:b,children:o}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:r.map(f=>jsx(Go,{value:f.value,label:f.label,checked:e===f.value,onChange:t,disabled:f.disabled,size:i},f.value))}),x&&jsx("span",{style:{...m,color:p.borderError},children:x}),!x&&s&&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=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 jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:a,children:jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:g=>{g.preventDefault(),p();},children:[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}),jsx("span",{style:C,children:jsx("span",{style:w})}),o&&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.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=useId(),F=g.id??h,[S,I]=useState(false),L=useRef(null),R=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]);useEffect(()=>{R();},[f,R]);let T=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 jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...m},className:b,children:[e&&jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:O,children: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})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[A&&jsx("span",{style:{...Y,color:D.borderError},children:A}),!A&&o&&jsx("span",{style:{...Y,color:D.helperText},children:o})]}),c!==void 0&&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=useId(),f=useRef(null),C=useRef(null),w=u?e:[o,e],y=S=>(S-o)/(r-o)*100,g=y(w[0]),v=y(w[1]),M=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=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 jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:s?.5:1,...p},className:d,children:[(a||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:m,style:k,children:a}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,userSelect:"none"},children:h})]}),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:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackBg}}),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&&jsx("span",{style:{...F,left:`${g}%`}}),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=useId(),w=useRef(null),[y,g]=useState(false),[v,M]=useState([]),[D,k]=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=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=useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&L(z.dataTransfer.files);},[a,L]),T=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 jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...b},className:x,children:[s&&jsx("span",{style:E,children:s}),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"?jsxs("div",{style:N,onClick:()=>!a&&w.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:R,children:[jsx(UploadSimple,{size:32,color:f.textSecondary}),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"?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:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),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`)})]}):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:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:F.length>0?jsx(FileText,{size:18,color:f.textSecondary}):jsx(UploadSimple,{size:18,color:f.textSecondary})}),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&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(F[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:jsx(Folder,{size:16,color:f.textSecondary})})]}),p&&F.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(z=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:f.fileBg},children:[jsx(FileText,{size:24,color:f.textSecondary}),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}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(z.file.size)}),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:jsx(X,{size:14,color:f.removeColor})})]},z.id))}),I&&jsx("span",{style:{...W,color:f.borderError},children:I}),!I&&i&&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=useRef(null),f=useRef([]),[C,w]=useState({offset:0,size:0}),y=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 useEffect(()=>{y();},[y,t,e,r]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),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&&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 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&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:g.icon}),(g.label||!g.icon&&g.value)&&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=useId(),p=useRef(null),l=useRef(null),[x,b]=useState(false),[m,f]=useState(false),[C,w]=useState("idle"),[y,g]=useState(e),[v,M]=useState(false),[D,k]=useState({top:0,left:0,openAbove:false});useEffect(()=>{v||g(e);},[e,v]);let h=useCallback(()=>{n||(b(true),f(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[n]),F=useCallback(()=>{b(false),w("closing");let A=setTimeout(()=>{f(false),w("idle");},rr);return ()=>clearTimeout(A)},[]),S=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});},[]);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]),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?createPortal(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:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((A,Z)=>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 jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:s,children:[r&&jsx("label",{htmlFor:d,style:W,children:r}),jsxs("div",{ref:p,style:E,children:[jsx("div",{style:N,onClick:()=>{n||(x?F():h());}}),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"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(x?F():h());},children:jsx(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=useId(),p=$i[r],[l,x]=useState(null),b=!n&&!!t,m=useCallback(g=>{b&&t(g+1);},[b,t]),f=useCallback(g=>{b&&x(g);},[b]),C=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 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:jsx(Star,{size:p.starSize,weight:D?"fill":"regular",color:D?k?c.starHover:c.starFilled:c.starEmpty})},v)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:d,style:w,children:a}),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=useId(),b=useRef([]),[m,f]=useState(null),C=!!r,w=typeof r=="string"?r:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&b.current[0]&&b.current[0].focus();},[a]);let g=useCallback(R=>{R>=0&&R<e&&b.current[R]?.focus();},[e]),v=useCallback(R=>{let T=R.join("").replace(/[^0-9]/g,"");o(T);},[o]),M=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=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=useCallback((R,T)=>{let N=T.target.value.slice(-1);N&&/^[0-9]$/.test(N)&&M(R,N);},[M]),h=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=useCallback(R=>{f(R),b.current[R]?.select();},[]),S=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 jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:d,children:[s&&jsx("label",{htmlFor:`${x}-0`,style:I,children:s}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:h,children:Array.from({length:e},(R,T)=>jsxs(ur.Fragment,{children:[i&&T>0&&T%i===0&&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}),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&&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=useId(),f=r||tl,C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState(false),[S,I]=useState("idle"),[L,R]=useState(""),[T,E]=useState(-1),[N,W]=useState({top:0,left:0,width:0,openAbove:false}),z=!!a,A=typeof a=="string"?a:void 0,Z=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=useMemo(()=>!e||!Z?"":e.startsWith(Z.dialCode)?e.slice(Z.dialCode.length):e.replace(/^\+\d+/,""),[e,Z]),X=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=useCallback(()=>{k(true),F(true),I("opening"),R(""),E(-1);let H=setTimeout(()=>{I("open"),g.current?.focus();},10);return ()=>clearTimeout(H)},[]),Y=useCallback(()=>{k(false),I("closing");let H=setTimeout(()=>{F(false),I("idle");},ir);return ()=>clearTimeout(H)},[]),$=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});},[]);useEffect(()=>{if(h)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[h,$]),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=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?createPortal(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:[jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${x.divider}`},children: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:[jsx(MagnifyingGlass,{size:14,color:x.placeholder}),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}})]})}),jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[X.length===0&&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 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:[jsx("span",{style:{fontSize:"18px",flexShrink:0},children:H.flag}),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}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,flexShrink:0},children:H.dialCode})]},H.code)})]})]}),document.body):null;return jsxs("div",{className:p,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},children:[n&&jsx("label",{htmlFor:m,style:J,children:n}),jsxs("div",{ref:C,style:pe,children:[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:[jsx("span",{style:{fontSize:u==="sm"?"14px":"18px"},children:Z.flag}),jsx("span",{style:{fontSize:"13px",color:x.placeholder},children:Z.dialCode}),jsx(CaretDown,{size:12,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}),jsx("div",{style:{width:"1px",height:"60%",backgroundColor:x.divider,flexShrink:0}}),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&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:A}),!A&&s&&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=useRef(null),l=useRef(null),[x,b]=useState(""),[m,f]=useState(false),[C,w]=useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[y,g]=useState({x:0,y:0,width:0,height:0}),[v,M]=useState(null),D=s==="circle"?1:r;useEffect(()=>{if(e instanceof File){let T=URL.createObjectURL(e);return b(T),()=>URL.revokeObjectURL(T)}else b(e);},[e]);let k=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();};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};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=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=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 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:[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&&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&&jsxs(Fragment,{children:[jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:y.y,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y+y.height,left:0,right:0,bottom:0,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:0,width:y.x,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:y.x+y.width,right:0,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),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:[jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),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=>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))]})]})]}),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&&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:[jsx(X,{size:14}),"Zru\u0161it"]}),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:[jsx(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?jsx("style",{dangerouslySetInnerHTML:{__html:pl}}):null;return e==="text"&&r>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...s},children:[l,Array.from({length:r}).map((x,b)=>jsx("div",{style:{...p,width:b===r-1?"75%":p.width}},b))]}):jsxs(Fragment,{children:[l,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 jsxs("table",{className:c,style:b,children:[jsx("thead",{children:jsx("tr",{children:e.map(w=>jsx("th",{style:m(w),onClick:()=>x(w),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===w.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsx("tbody",{children:o?Array.from({length:5}).map((w,y)=>jsx("tr",{children:e.map(g=>jsx("td",{style:f,children:jsx(xe,{variant:"text",width:"80%"})},g.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...f,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((w,y)=>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=>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 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&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children: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]=useState(new Set),[m,f]=useState(null),C=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=useCallback(()=>{let I=w?new Set:new Set(C);b(I),r?.(Array.from(I));},[w,C,r]),v=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 jsx("div",{className:d,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...c},children:jsxs("table",{style:M,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:h,children:jsx(Qn,{checked:w,indeterminate:y,onChange:g,t:l})}),e.map(I=>jsx("th",{style:D(I),children:I.header},I.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((I,L)=>jsxs("tr",{children:[o&&jsx("td",{style:F,children:jsx(xe,{variant:"rect",width:16,height:16})}),e.map(R=>jsx("td",{style:k(R),children:jsx(xe,{variant:"text",width:"80%"})},R.key))]},`skel-${L}`)):t.length===0?jsx("tr",{children: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),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&&jsx("td",{style:{...F,borderBottom:N?"none":F.borderBottom},children:jsx(Qn,{checked:T,onChange:()=>v(R),t:l})}),e.map(z=>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})=>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&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children: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]=useState(new Set),[D,k]=useState(null),h=a!==void 0,F=useMemo(()=>h?new Set(a):v,[h,a,v]),S=useMemo(()=>e.find(z=>z.primary)||(o?e.find(z=>z.key===o):void 0),[e,o]),I=useMemo(()=>e.filter(z=>!z.hidden&&z!==S),[e,S]),L=useMemo(()=>e.filter(z=>z.sortable),[e]),R=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=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=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 jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:Array.from({length:l}).map((A,Z)=>jsxs("div",{style:{backgroundColor:g.cardBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(S||n)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${g.divider}`,backgroundColor:g.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[n&&jsx(xe,{variant:"rect",width:18,height:18}),jsx(xe,{variant:"text",width:"45%",height:18})]}),Array.from({length:z}).map((O,X)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:X<z-1?`1px solid ${g.divider}`:"none"},children:[jsx(xe,{variant:"text",width:70,height:12}),jsx(xe,{variant:"text",width:100,height:14})]},X)),f&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},children:[jsx(xe,{variant:"rect",width:64,height:30}),jsx(xe,{variant:"rect",width:64,height:30})]})]},Z))})}return t.length===0?jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children: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})}):jsxs("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...C},children:[(n||L.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(ta,{checked:E,indeterminate:N,onChange:T,t:g}),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&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:n?"auto":0},children:L.map(z=>{let A=c===z.key;return 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"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(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 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)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:g.headerBg,borderBottom:`1px solid ${g.divider}`},children:[n&&jsx(ta,{checked:O,onChange:()=>R(Z),t:g}),te!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:g.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te})]}),jsx("div",{children:I.map((Y,$)=>{let j=Y.render?Y.render(z[Y.key],z,A):z[Y.key];return 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:[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}),jsx("span",{style:{fontSize:"14px",color:g.text,textAlign:"right",wordBreak:"break-word"},children:j??"\u2014"})]},Y.key)})}),f&&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?jsxs("div",{style:{padding:l,paddingBottom:n||r?"0":l},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return 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&&jsx("div",{style:{padding:l},children:n}),r&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),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]=useState(o),p=n?!!a:c,l=useRef(null),[x,b]=useState(0);useEffect(()=>{l.current&&b(l.current.scrollHeight);},[t,p]);let m=useCallback(()=>{r||(n&&s?s():d(f=>!f));},[r,n,s]);return jsxs("div",{style:{borderBottom:`1px solid ${u.border}`},children:[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:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:r?u.chevronDisabled:u.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${x}px`:"0px",transition:"max-height 0.25s ease"},children: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.Children.toArray(e).filter(d=>ur.isValidElement(d)),[i,u]=useState(()=>{let d=new Set;return s.forEach((p,l)=>{p.props.defaultOpen&&d.add(l);}),d}),c=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 jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...r},children:s.map((d,p)=>ur.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.Children.toArray(o),l=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="Tab"),b=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxs("div",{className:s,style:i,children:[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 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&&jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),b&&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]=useState(false),[d,p]=useState({top:0,left:0}),l=useRef(null),x=useRef(null),b=useRef(void 0),m=6,f=8,C=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]);useEffect(()=>{u&&requestAnimationFrame(C);},[u,C]);let w=useCallback(()=>{b.current=setTimeout(()=>c(true),r);},[r]),y=useCallback(()=>{b.current&&clearTimeout(b.current),c(false);},[]);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?createPortal(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,jsx("div",{style:g})]}),document.body):null;return jsxs(Fragment,{children:[ur.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]=useState(false),[d,p]=useState(false),[l,x]=useState("idle"),[b,m]=useState({top:0,left:0}),f=useRef(null),C=useRef(null),w=useRef(void 0),y=useCallback(()=>{c(true),p(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));});},[]),g=useCallback(()=>{c(false),x("closing");let S=setTimeout(()=>{p(false),x("idle");},Sr);return ()=>clearTimeout(S)},[]),v=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]);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]),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]),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=useCallback(()=>{r==="click"&&(u?g():y());},[r,u,g,y]),k=useCallback(()=>{r==="hover"&&(w.current&&clearTimeout(w.current),u||y());},[r,u,y]),h=useCallback(()=>{r==="hover"&&(w.current=setTimeout(()=>{g();},150));},[r,g]);useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let F=d?createPortal(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 jsxs(Fragment,{children:[ur.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 jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...a},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color:i.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&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 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&&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}),jsxs("div",{style:{flex:1,minWidth:0},children:[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}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:c.text},children:t}),o!==void 0&&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"&&jsx(TrendUpIcon,{size:14,color:d}),a==="down"&&jsx(TrendDownIcon,{size:14,color:d}),jsx("span",{children:p(o)}),r&&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 jsx("div",{style:i,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children: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})=>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 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:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:n.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&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})=>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 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:[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&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Cr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(Cr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),r&&jsx(Cr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsx(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]=useState(()=>b.getMonth()),[C,w]=useState(()=>b.getFullYear()),[y,g]=useState(()=>Rr(b,u)),[v,M]=useState(null),D=useMemo(()=>o==="week"?dd(y,u):ga(C,m,u),[o,C,m,y,u]),k=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=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 jsxs("div",{className:i,style:I,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[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:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:S}),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:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:x.daysFull.map(R=>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))}),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),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[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&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map(($,j)=>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]=useState(()=>C.getMonth()),[g,v]=useState(()=>C.getFullYear()),[M,D]=useState(null),k=useMemo(()=>ga(g,w,d),[g,w,d]),h=useMemo(()=>{let E=[];for(let N=0;N<k.length;N+=7)E.push(k.slice(N,N+7));return E},[k]),F=useMemo(()=>{let E=h[h.length-1];return E&&E.every(N=>N.getMonth()!==w)?h.slice(0,-1):h},[h,w]),S=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=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 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&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[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:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:L}),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:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${b.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:b.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${b.cellBorder}`},children:f.days.map((E,N)=>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 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 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:[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?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(),"."]}):jsxs(Fragment,{children:[Y.getDate(),"."]})}),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=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&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:K.event.emoji}),K.isStart&&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?jsx(yr,{content:K.event.tooltip,children:H},q):H})}),A[$]>0&&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=useMemo(()=>{let n=new Date;return n.setHours(0,0,0,0),n},[]);return e.fullSize?jsx(fd,{...e,t:o,today:r}):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"?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 jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:u?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsx("div",{style:{flex:1}}),s.icon?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}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!u&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),u&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:s.title}),s.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:s.description})]})]},i)})}):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 jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:u?0:"4px",minHeight:s.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[s.icon?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}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!u&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:s.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:s.title}),s.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:s.date})]}),s.description&&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 jsx("div",{className:n,style:u,children:e.map((x,b)=>jsxs("div",{style:d(b),children:[jsx("span",{style:p,children:x.label}),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]=useState(false),l="transparent";return c?l=s.selectedBg:d&&(l=s.hover),jsxs(Fragment,{children:[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:[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&&jsx(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&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:c?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),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&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:s.line}}),e.children.map(x=>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]=useState(()=>new Set(r)),d=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 jsx("div",{className:a,style:p,role:"tree",children:e.map(l=>jsx(ma,{node:l,depth:0,expanded:u,selectedId:o,onToggle:d,onSelect:t,t:i},l.id))})};Cd.displayName="Tree";var Rd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Td={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Fd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Er=false,Ed=()=>{if(Er||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Er=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
12
+ `}),se&&jsx("div",{style:{padding:"16px",textAlign:"center"},children:jsx(Ir,{size:16,color:x.placeholder})}),!se&&Y.length===0&&!c&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),!se&&Y.length===0&&c&&L&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.optionSelectedText,cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{d?.(L),n||(o?.(L),q()),$("");},onMouseEnter:_=>{_.currentTarget.style.backgroundColor=x.optionHover;},onMouseLeave:_=>{_.currentTarget.style.backgroundColor="transparent";},children:['Vytvo\u0159it "',L,'"']}),!se&&Y.map((_,pe)=>{let le=te(_.value),Me=pe===C;return jsx("div",{role:"option","aria-selected":le,"aria-disabled":_.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:le?500:400,lineHeight:"normal",color:le?x.optionSelectedText:_.disabled?x.placeholder:x.text,backgroundColor:Me?x.optionHover:le?x.optionSelected:"transparent",cursor:_.disabled?"not-allowed":"pointer",opacity:_.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:pe<Y.length-1?"2px":0},onClick:()=>{_.disabled||ie(_.value);},onMouseEnter:()=>I(pe),onMouseLeave:()=>I(-1),children:p?p(_,le):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.label??_.value}),le&&jsx(Check,{size:16,color:x.optionSelectedText})]})},_.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...z},className:h,children:[m&&jsx("label",{htmlFor:M,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.text,userSelect:"none"},children:m}),jsxs("div",{ref:v,role:"combobox","aria-expanded":B,"aria-haspopup":"listbox",tabIndex:V?-1:0,style:mt,onClick:rt,onKeyDown:Pe,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[U.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.placeholder,lineHeight:"normal"},children:u}),n?s==="count"&&U.length>0?jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,lineHeight:"normal"},children:[U.length," vybr\xE1no"]}):U.map(_=>{let pe=e.find(le=>le.value===_);return jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:x.tagBg,color:x.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&pe?f(pe):Fe(_)}),!V&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:le=>{le.stopPropagation(),ie(_);},children:jsx(X,{size:14,color:x.tagText})})]},_)}):U.length>0&&(()=>{let _=e.find(pe=>pe.value===U[0]);return jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&_?f(_):Fe(U[0])})})()]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Ce&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Be,children:jsx(X,{size:14,color:x.placeholder})}),i?jsx(Ir,{size:16,color:x.placeholder}):jsx(CaretDown,{size:16,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:B?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),Z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:Z}),Bt]})};Ar.displayName="Select";var gi=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),i=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Pr[a].label,userSelect:"none"},children:e}),o??jsx(Ar,{options:[]})]})};gi.displayName="SelectGroup";var ki=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},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",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"}},rn=180,wi={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"}},Ri=Fn.forwardRef(({options:e,value:t,onChange:o,onInputChange:n,placeholder:r="Hledat\u2026",label:a,error:l,disabled:i=false,loading:g=false,multiple:b=false,clearable:c=false,onOpenChange:d,onSelect:s,onDeselect:p,onClear:f,onFocus:m,onBlur:u,allowCustom:R=false,onCreate:z,renderOption:h,notFoundContent:k,footer:x,size:M="md",style:v,className:F},y)=>{let D=A(),B=Ci[D],P=useId(),E=wi[M],w=useRef(null),T=useRef(null),L=useRef(null),$=useRef(null),[C,I]=useState(false),[H,O]=useState(false),[V,G]=useState("idle"),[Z,W]=useState(""),[q,U]=useState(-1),[te,K]=useState(false),[Q,se]=useState({top:0,left:0,width:0,openAbove:false}),be=i||g,ae=!!l,Y=typeof l=="string"?l:void 0,re=c&&!be,ie=b?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],Be=X=>ie.includes(X),rt=X=>{let ee=e.find(ce=>ce.value===X);return ee?ee.label??ee.value:X};useEffect(()=>{if(!b&&!te){let X=e.find(ee=>ee.value===t);W(X?X.label??X.value:(typeof t=="string"?t:"")||"");}},[t,e,te,b]);let Pe=Z?e.filter(X=>(X.label??X.value).toLowerCase().includes(Z.toLowerCase())):e,Fe=useCallback(()=>{I(true),O(true),G("opening"),d?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>G("open"));});},[d]),Ce=useCallback(()=>{I(false),G("closing"),d?.(false);let X=setTimeout(()=>{O(false),G("idle");},rn);return ()=>clearTimeout(X)},[d]),Ve=useCallback(()=>{if(!w.current)return;let X=w.current.getBoundingClientRect(),ee=L.current?.offsetHeight??240,ce=window.innerHeight-X.bottom-6,N=X.top-6,ne=ce<ee&&N>ce;se({top:ne?X.top-6:X.bottom+6,left:X.left,width:X.width,openAbove:ne});},[]);useEffect(()=>{if(H)return Ve(),window.addEventListener("scroll",Ve,true),window.addEventListener("resize",Ve),()=>{window.removeEventListener("scroll",Ve,true),window.removeEventListener("resize",Ve);}},[H,Ve]),useEffect(()=>{if(!C)return;let X=ee=>{let ce=ee.target;if(!w.current?.contains(ce)&&!L.current?.contains(ce))if(Ce(),b)W("");else {let N=e.find(ne=>ne.value===t);R||W(N?N.label??N.value:"");}};return document.addEventListener("mousedown",X),()=>document.removeEventListener("mousedown",X)},[C,Ce,t,e,R,b]),useEffect(()=>{q>=0&&$.current&&$.current.children[q]?.scrollIntoView({block:"nearest"});},[q]);let mt=X=>{let ee=X.target.value;W(ee),n?.(ee),U(0),C||Fe();},Bt=useCallback(X=>{let ee=e.find(ce=>ce.value===X)||{value:X};if(b){if(Be(X)){let ce=ie.filter(N=>N!==X);o(ce),p?.(X,ee);}else {let ce=[...ie,X];o(ce),s?.(X,ee);}W("");}else o(X),s?.(X,ee),W(ee.label??ee.value),Ce();},[o,e,Ce,b,ie,s,p]),_=useCallback(X=>{if(!b)return;let ee=e.find(N=>N.value===X)||{value:X},ce=ie.filter(N=>N!==X);o(ce),p?.(X,ee);},[b,ie,o,e,p]),pe=useCallback(X=>{X.stopPropagation(),o(b?[]:""),W(""),f?.();},[b,o,f]),le=X=>{if(!be)switch(X.key){case "ArrowDown":X.preventDefault(),C?U(ee=>Math.min(ee+1,Pe.length-1)):(Fe(),U(0));break;case "ArrowUp":X.preventDefault(),U(ee=>Math.max(ee-1,0));break;case "Enter":X.preventDefault(),C&&q>=0&&Pe[q]?Bt(Pe[q].value):R&&Z&&(b?(o([...ie,Z]),z?.(Z),W("")):(o(Z),z?.(Z),Ce()));break;case "Backspace":if(b&&Z===""&&ie.length>0){let ee=ie.slice(0,-1);o(ee);}break;case "Escape":Ce();break;case "Tab":C&&Ce();break}},Me=X=>{K(true),m?.(X),!C&&!be&&Fe();},at=X=>{let ee=X.relatedTarget;ee&&(L.current?.contains(ee)||w.current?.contains(ee))||(K(false),u?.(X),!b&&R&&Z&&o(Z),b&&W(""));},_o=()=>{let X=Q.openAbove,ee=X?"translateY(8px)":"translateY(-8px)",ce=X?"translateY(6px)":"translateY(-6px)",N={transition:`opacity ${rn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return V==="opening"||V==="idle"?{...N,opacity:0,transform:`${ee} scale(0.97)`}:V==="open"?{...N,opacity:1,transform:"translateY(0) scale(1)"}:{...N,opacity:0,transform:`${ce} scale(0.98)`,pointerEvents:"none"}},Ut={display:"flex",alignItems:"center",gap:E.gap,backgroundColor:be?B.backgroundDisabled:B.background,border:`1px solid ${ae?B.borderError:te?B.borderFocus:B.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:be?.6:1,cursor:be?"not-allowed":"text",flexWrap:"nowrap"},qo={flex:1,minWidth:b?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E.fontSize,lineHeight:"normal",color:B.text,cursor:be?"not-allowed":"text"},Go={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:B.label,userSelect:"none"},jo=H?createPortal(jsxs("div",{ref:L,style:{position:"fixed",...Q.openAbove?{bottom:window.innerHeight-Q.top,left:Q.left}:{top:Q.top,left:Q.left},width:Q.width,backgroundColor:B.dropdownBg,border:`1px solid ${B.dropdownBorder}`,borderRadius:"12px",boxShadow:D==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:Q.openAbove?"bottom center":"top center",..._o()},onMouseDown:X=>{X.preventDefault();},children:[jsxs("div",{ref:$,role:"listbox","aria-multiselectable":b,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[Pe.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:B.placeholder,textAlign:"center"},children:R&&Z?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof k=="function"?k(Ce):k??"\u017D\xE1dn\xE9 v\xFDsledky"}),Pe.map((X,ee)=>{let ce=Be(X.value),N=ee===q;return jsx("div",{role:"option","aria-selected":ce,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ce?500:400,lineHeight:"normal",color:ce?B.optionSelectedText:B.text,backgroundColor:N?B.optionHover:ce?B.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<Pe.length-1?"2px":0},onClick:()=>Bt(X.value),onMouseEnter:()=>U(ee),onMouseLeave:()=>U(-1),children:h?h(X,N):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:X.label??X.value}),ce&&jsx(Check,{size:16,color:B.optionSelectedText})]})},X.value)})]}),x&&jsx("div",{style:{borderTop:`1px solid ${B.divider}`,padding:"8px 6px"},children:typeof x=="function"?x(Ce):x})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...v},className:F,children:[a&&jsx("label",{htmlFor:P,style:Go,children:a}),jsxs("div",{ref:w,style:Ut,onClick:()=>T.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B.placeholder},children:g?jsx(ki,{size:E.iconSize,color:B.placeholder}):jsx(MagnifyingGlass,{size:E.iconSize,color:B.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[b&&ie.map(X$1=>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:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:rt(X$1)}),!be&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ee=>{ee.stopPropagation(),_(X$1);},children:jsx(X,{size:14,color:B.tagText})})]},X$1)),jsx("input",{ref:X=>{T.current=X,typeof y=="function"?y(X):y&&(y.current=X);},id:P,type:"text",value:Z,onChange:mt,onFocus:Me,onBlur:at,onKeyDown:le,placeholder:b&&ie.length>0?"":r,disabled:i,readOnly:g,style:qo})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[re&&ie.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:pe,children:jsx(X,{size:14,color:B.placeholder})}),jsx(CaretDown,{size:E.iconSize,color:B.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:B.borderError,lineHeight:"normal"},children:Y}),jo]})});Ri.displayName="Combobox";var Bi=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Yr={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)"}},an=180,Di={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"}},Ii=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],$r=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function Mi(e,t,o){let r=new Date(e,t,1).getDay();r=(r===0?7:r)-o,r<0&&(r+=7);let a=new Date(e,t,1-r),l=[];for(let i=0;i<42;i++){let g=new Date(a);g.setDate(a.getDate()+i),l.push(g);}return l}function ln(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Wr(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${ln(e)} ${t}:${o}`}function lt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Or(e,t,o){let n=e.getTime(),r=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return n>=r&&n<=a}function Pi(e){return lt(e,new Date)}var Vr=({mode:e="single",showTime:t=false,value:o,onChange:n,label:r,placeholder:a,error:l,helperText:i,disabled:g=false,loading:b=false,clearable:c=false,size:d="md",fullWidth:s=false,required:p,minDate:f,maxDate:m,presets:u,presetsLabel:R="Rychl\xFD v\xFDb\u011Br",disabledDates:z,firstDayOfWeek:h=1,style:k,className:x})=>{let M=A(),v=Yr[M],F=useId(),y=Di[d],D=useRef(null),B=useRef(null),[S,P]=useState(false),[E,w]=useState(false),[T,L]=useState("idle"),[$,C]=useState({top:0,left:0,width:0,openAbove:false}),[I,H]=useState(null),O=new Date,[V,G]=useState(O.getFullYear()),[Z,W]=useState(O.getMonth()),[q,U]=useState("days"),[te,K]=useState(0),Q=g||b,se=!!l,be=typeof l=="string"?l:void 0,ae=e==="single"&&o instanceof Date?o:null,Y=e==="range"&&Array.isArray(o)?o:[null,null],re=e==="single"?ae!==null:Y[0]!==null||Y[1]!==null,ie=c&&re&&!Q,Be=(()=>{if(e==="single")return ae?t?Wr(ae):ln(ae):"";let[N,ne]=Y;if(!N&&!ne)return "";let oe=t?Wr:ln;return `${N?oe(N):"\u2026"} \u2013 ${ne?oe(ne):"\u2026"}`})(),rt=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"),Pe=useCallback(()=>{let N=e==="single"?ae:Y[0];N&&(G(N.getFullYear()),W(N.getMonth())),U("days"),P(true),w(true),L("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>L("open"));});},[e,ae,Y]),Fe=useCallback(()=>{P(false),L("closing");let N=setTimeout(()=>{w(false),L("idle");},an);return ()=>clearTimeout(N)},[]),Ce=useCallback(()=>{if(!D.current)return;let N=D.current.getBoundingClientRect(),ne=B.current?.offsetHeight??380,oe=window.innerHeight-N.bottom-6,j=N.top-6,ue=oe<ne&&j>oe;C({top:ue?N.top-6:N.bottom+6,left:N.left,width:Math.max(N.width,300),openAbove:ue});},[]);useEffect(()=>{if(E)return Ce(),window.addEventListener("scroll",Ce,true),window.addEventListener("resize",Ce),()=>{window.removeEventListener("scroll",Ce,true),window.removeEventListener("resize",Ce);}},[E,Ce]),useEffect(()=>{if(!S)return;let N=ne=>{let oe=ne.target,j=D.current?.contains(oe),ue=B.current?.contains(oe);!j&&!ue&&Fe();};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[S,Fe]);let Ve=N=>{Q||(N.key==="Escape"&&S&&(N.preventDefault(),Fe()),(N.key==="Enter"||N.key===" ")&&!S&&(N.preventDefault(),Pe()));},mt=useCallback(N=>{if(f){let ne=new Date(f.getFullYear(),f.getMonth(),f.getDate());if(N<ne)return true}if(m){let ne=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(N>ne)return true}return !!(z&&z(N))},[f,m,z]),Bt=useCallback(N=>{if(!mt(N)&&n)if(e==="single")t&&ae&&N.setHours(ae.getHours(),ae.getMinutes()),n(new Date(N)),t||Fe();else if(te===0)t&&Y[0]&&N.setHours(Y[0].getHours(),Y[0].getMinutes()),n([new Date(N),null]),K(1);else {let ne=Y[0];t&&Y[1]&&N.setHours(Y[1].getHours(),Y[1].getMinutes());let[oe,j]=N>=ne?[ne,new Date(N)]:[new Date(N),ne];n([oe,j]),K(0),t||Fe();}},[e,t,ae,Y,te,n,Fe,mt]),_=useCallback((N,ne,oe)=>{if(!n)return;let j=parseInt(ne,10);if(isNaN(j)&&(j=0),N==="hour"&&(j=Math.max(0,Math.min(23,j))),N==="minute"&&(j=Math.max(0,Math.min(59,j))),e==="single"){let ue=ae?new Date(ae):new Date;N==="hour"?ue.setHours(j):ue.setMinutes(j),n(ue);}else {let ue=oe??0,me=[Y[0]?new Date(Y[0]):null,Y[1]?new Date(Y[1]):null],Ae=me[ue]??new Date;N==="hour"?Ae.setHours(j):Ae.setMinutes(j),me[ue]=Ae,n(me);}},[e,ae,Y,n]),pe=()=>{Z===0?(W(11),G(N=>N-1)):W(N=>N-1);},le=()=>{Z===11?(W(0),G(N=>N+1)):W(N=>N+1);},Me=N=>{N.stopPropagation(),n&&(n(e==="single"?null:[null,null]),K(0));},at=()=>{let N=$.openAbove,ne=N?"translateY(8px)":"translateY(-8px)",oe=N?"translateY(6px)":"translateY(-6px)",j={transition:`opacity ${an}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${an}ms cubic-bezier(0.16, 1, 0.3, 1)`};return T==="opening"||T==="idle"?{...j,opacity:0,transform:`${ne} scale(0.97)`}:T==="open"?{...j,opacity:1,transform:"translateY(0) scale(1)"}:{...j,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},_o=Mi(V,Z,h),Ut=(N,ne)=>{let oe=N?N.getHours():0,j=N?N.getMinutes():0,ue={width:"42px",background:"transparent",border:`1px solid ${v.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:v.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(oe).padStart(2,"0"),onChange:me=>_("hour",me.target.value,ne),style:ue,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:v.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(j).padStart(2,"0"),onChange:me=>_("minute",me.target.value,ne),style:ue,maxLength:2,"aria-label":"Minuty"})]})},qo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:$r.map((N,ne)=>{let oe=ne===Z;return jsx("button",{type:"button",onClick:()=>{W(ne),U("days");},style:{background:oe?v.daySelected:"transparent",color:oe?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:j=>{oe||(j.target.style.backgroundColor=v.dayHover);},onMouseLeave:j=>{oe||(j.target.style.backgroundColor="transparent");},children:N},ne)})}),Go=()=>{let N=Math.floor(V/12)*12,ne=Array.from({length:12},(oe,j)=>N+j);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>G(oe=>oe-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:v.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:v.text},children:[N," \u2013 ",N+11]}),jsx("button",{type:"button",onClick:()=>G(oe=>oe+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:v.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:ne.map(oe=>{let j=oe===V;return jsx("button",{type:"button",onClick:()=>{G(oe),U("months");},style:{background:j?v.daySelected:"transparent",color:j?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:ue=>{j||(ue.target.style.backgroundColor=v.dayHover);},onMouseLeave:ue=>{j||(ue.target.style.backgroundColor="transparent");},children:oe},oe)})})]})},jo=E?createPortal(jsx("div",{ref:B,style:{position:"fixed",...$.openAbove?{bottom:window.innerHeight-$.top,left:$.left}:{top:$.top,left:$.left},width:$.width,backgroundColor:v.dropdownBg,border:`1px solid ${v.dropdownBorder}`,borderRadius:"12px",boxShadow:M==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:$.openAbove?"bottom center":"top center",...at()},children:jsxs("div",{style:{display:"flex"},children:[u&&u.length>0&&jsxs("div",{style:{width:"140px",flexShrink:0,borderRight:`1px solid ${v.dropdownBorder}`,padding:"8px",overflowY:"auto",maxHeight:"320px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"9px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em",color:v.dayOutside,padding:"4px 6px 8px",userSelect:"none"},children:R}),u.map((N,ne)=>{let oe=(()=>{if(e==="range"&&Array.isArray(N.value)){let[j,ue]=Y,[me,Ae]=N.value;return j&&ue&&me&&Ae&&j.getFullYear()===me.getFullYear()&&j.getMonth()===me.getMonth()&&j.getDate()===me.getDate()&&ue.getFullYear()===Ae.getFullYear()&&ue.getMonth()===Ae.getMonth()&&ue.getDate()===Ae.getDate()}return !Array.isArray(N.value)&&ae?ae.getFullYear()===N.value.getFullYear()&&ae.getMonth()===N.value.getMonth()&&ae.getDate()===N.value.getDate():false})();return jsx("div",{style:{padding:"7px 8px",borderRadius:"6px",fontSize:"13px",fontFamily:"'Zalando Sans', sans-serif",color:oe?v.daySelected:v.text,fontWeight:oe?600:400,backgroundColor:oe?`${v.daySelected}18`:"transparent",cursor:"pointer",userSelect:"none",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>{n?.(N.value),Fe();},onMouseEnter:j=>{oe||(j.currentTarget.style.backgroundColor=v.dayHover);},onMouseLeave:j=>{oe||(j.currentTarget.style.backgroundColor="transparent");},children:N.label},ne)})]}),jsx("div",{style:{flex:1,minWidth:0},children:q==="years"?Go():q==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children: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:v.text,padding:"4px 8px",borderRadius:"4px"},children:V})}),qo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:pe,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:v.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[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:v.text,padding:"4px 8px",borderRadius:"4px"},children:$r[Z]}),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:v.text,padding:"4px 8px",borderRadius:"4px"},children:V})]}),jsx("button",{type:"button",onClick:le,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:v.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Ii.map(N=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:v.placeholder,padding:"4px 0",userSelect:"none"},children:N},N))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:_o.map((N,ne)=>{let oe=N.getMonth()!==Z,j=mt(N),ue=Pi(N),me=false,Ae=false,Ko=false,mo=false;if(e==="single"&&ae)me=lt(N,ae);else if(e==="range"){let[st,ho]=Y;st&&lt(N,st)&&(Ae=true,me=true),ho&&lt(N,ho)&&(Ko=true,me=true),st&&ho&&Or(N,st,ho)&&!Ae&&!Ko&&(mo=true),te===1&&st&&I&&!j&&(lt(N,I)&&!lt(N,st)&&(me=true),Or(N,st,I)&&!lt(N,st)&&!lt(N,I)&&(mo=true));}let Jo="transparent",xo=v.text;return me?(Jo=v.daySelected,xo=v.daySelectedText):mo&&(Jo=v.dayRangeMiddle),oe&&(xo=me?v.daySelectedText:v.dayOutside),j&&(xo=v.dayDisabled),jsx("button",{type:"button",disabled:j,onClick:()=>Bt(N),onMouseEnter:()=>{j||H(N);},onMouseLeave:()=>H(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Jo,color:xo,border:"none",borderRadius:Ae?"6px 0 0 6px":Ko?"0 6px 6px 0":mo?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:me?600:400,cursor:j?"not-allowed":"pointer",opacity:j?.4:1,transition:"background-color 0.1s ease",outline:ue&&!me?`1.5px solid ${v.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:N.getDate()},ne)})}),t&&jsx("div",{style:{borderTop:`1px solid ${v.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:v.placeholder},children:"\u010Cas:"}),Ut(ae)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:v.placeholder},children:"Od:"}),Ut(Y[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:v.placeholder},children:"Do:"}),Ut(Y[1],1)]})]})})]})})]})}),document.body):null,X$1={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:Q?v.backgroundDisabled:v.background,border:`1px solid ${se?v.borderError:S?v.borderFocus:v.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:Q?.6:1,cursor:Q?"not-allowed":"pointer",userSelect:"none",outline:"none"},ee={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},ce={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...k},className:x,children:[r&&jsxs("label",{htmlFor:F,style:ee,children:[r,p&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:D,role:"button",tabIndex:Q?-1:0,style:X$1,onClick:()=>{Q||(S?Fe():Pe());},onKeyDown:Ve,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Be?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.text,lineHeight:"normal"},children:Be}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.placeholder,lineHeight:"normal"},children:rt})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ie&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Me,children:jsx(X,{size:y.iconSize-2,color:v.placeholder})}),b?jsx(Bi,{size:y.iconSize,color:v.placeholder}):jsx(CalendarBlank,{size:y.iconSize,color:v.placeholder})]})]}),be&&jsx("span",{style:{...ce,color:v.borderError},children:be}),!be&&i&&jsx("span",{style:{...ce,color:v.helperText},children:i}),jo]})};Vr.displayName="DatePicker";var Ai=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),i=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Yr[a].label,userSelect:"none"},children:e}),o??jsx(Vr,{})]})};Ai.displayName="DatePickerGroup";var Ur={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"}},$i={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}},Xr=({checked:e=false,onChange:t,label:o,disabled:n=false,error:r,size:a="md",indeterminate:l=false,className:i,style:g})=>{let b=A(),c=Ur[b],d=$i[a],s=useId(),p=useRef(null),f=!!r,m=typeof r=="string"?r:void 0;useEffect(()=>{p.current&&(p.current.indeterminate=l);},[l]);let u=()=>{n||t?.(!e);},R=f?c.borderError:e||l?c.checkBg:c.border,z=e||l?c.checkBg:n?c.backgroundDisabled:c.background,h={width:d.box,height:d.box,borderRadius:d.radius,border:`1.5px solid ${R}`,backgroundColor:z,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:n?.5:1},k={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...g},className:i,children:[jsxs("label",{htmlFor:s,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:M=>{M.preventDefault(),u();},children:[jsx("input",{ref:p,id:s,type:"checkbox",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":f||void 0}),jsxs("span",{style:h,children:[e&&!l&&jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:k,children:o})]}),m&&jsx("span",{style:{...x,color:c.borderError,marginLeft:`${d.box+parseInt(d.gap)}px`},children:m})]})};Xr.displayName="Checkbox";var _r=({label:e,children:t,error:o,className:n,style:r})=>{let a=A(),l=Ur[a],i=typeof o=="string"?o:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[e&&jsx("span",{style:g,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsx("span",{style:{...b,color:l.borderError},children:i})]})};_r.displayName="CheckboxGroup";var qr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},Oi={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"}},cn=({value:e,checked:t=false,onChange:o,label:n,disabled:r=false,size:a="md",className:l,style:i})=>{let g=A(),b=qr[g],c=Oi[a],d=useId(),s=()=>{r||o?.(e);},p=t?b.dotRing:b.border,f=r?b.backgroundDisabled:b.background,m={width:c.box,height:c.box,borderRadius:"50%",border:`1.5px solid ${p}`,backgroundColor:f,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:r?.5:1},u={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:b.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...i},className:l,children:jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:R=>{R.preventDefault(),s();},children:[jsx("input",{id:d,type:"radio",value:e,checked:t,disabled:r,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:m,children:t&&jsx("span",{style:{width:c.dot,height:c.dot,borderRadius:"50%",backgroundColor:b.dot,transition:"transform 0.15s ease"}})}),n&&jsx("span",{style:u,children:n})]})})};cn.displayName="Radio";var Gr=({value:e,onChange:t,label:o,options:n,direction:r="vertical",error:a,helperText:l,size:i="md",className:g,style:b})=>{let c=A(),d=qr[c],s=!!a,p=typeof a=="string"?a:void 0,f={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":s||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...b},className:g,children:[o&&jsx("span",{style:f,children:o}),jsx("div",{style:{display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:r==="horizontal"?"16px":"6px"},children:n.map(u=>jsx(cn,{value:u.value,label:u.label,checked:e===u.value,onChange:t,disabled:u.disabled,size:i},u.value))}),p&&jsx("span",{style:{...m,color:d.borderError},children:p}),!p&&l&&jsx("span",{style:{...m,color:d.helperText},children:l})]})};Gr.displayName="RadioGroup";var Yi={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"}},Vi={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"}},Kr=({checked:e=false,onChange:t,label:o,disabled:n=false,size:r="md",className:a,style:l})=>{let i=A(),g=Yi[i],b=Vi[r],c=useId(),d=()=>{n||t?.(!e);},s=1.5,p=2,m=b.trackW-s*2-b.thumb-p,u=e?m:0,R={width:b.trackW,height:b.trackH,borderRadius:b.trackH/2,backgroundColor:e?g.trackOn:g.trackOff,border:`${s}px solid ${e?g.trackOnBorder:g.trackOffBorder}`,position:"relative",cursor:n?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:n?.5:1,boxSizing:"border-box"},z={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:g.thumb,position:"absolute",top:"50%",left:p,transform:`translateY(-50%) translateX(${u}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},h={fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:g.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:`${b.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:b.gap,cursor:n?"not-allowed":"pointer"},onClick:k=>{k.preventDefault(),d();},children:[jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:R,children:jsx("span",{style:z})}),o&&jsx("span",{style:h,children:o})]})})};Kr.displayName="Switch";var Ki={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"}},Ji={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Qr=Fn.forwardRef(({label:e,error:t,helperText:o,disabled:n,loading:r=false,size:a="md",fullWidth:l=false,required:i,rows:g=4,maxLength:b,resize:c="vertical",autoHeight:d=false,minRows:s,maxRows:p,className:f,style:m,value:u,onChange:R,onFocus:z,onBlur:h,...k},x)=>{let M=A(),v=Ki[M],F=Ji[a],y=useId(),D=k.id??y,[B,S]=useState(false),P=useRef(null),E=useCallback(()=>{let W=P.current;if(!W||!d)return;W.style.height="auto";let q=getComputedStyle(W),U=parseFloat(q.lineHeight)||parseFloat(q.fontSize)*1.5,te=parseFloat(q.paddingTop)||0,K=parseFloat(q.paddingBottom)||0,Q=te+K,be=U*(s??1)+Q,ae=p?U*p+Q:1/0,Y=Math.min(Math.max(W.scrollHeight,be),ae);W.style.height=`${Y}px`,W.style.overflowY=W.scrollHeight>ae?"auto":"hidden";},[d,s,p]);useEffect(()=>{E();},[u,E]);let w=useCallback(W=>{P.current=W,typeof x=="function"?x(W):x&&(x.current=W);},[x]),T=d?"none":c,L=d?s??1:g,$=n||r,C=!!t,I=typeof t=="string"?t:void 0,H=typeof u=="string"?u.length:0,O={backgroundColor:$?v.backgroundDisabled:v.background,border:`1px solid ${C?v.borderError:B?v.borderFocus:v.border}`,borderRadius:"8px",padding:F.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:$?.6:1,cursor:$?"not-allowed":"text"},V={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:F.fontSize,lineHeight:"1.5",color:v.text,cursor:$?"not-allowed":"text",resize:T,boxSizing:"border-box",overflow:d?"hidden":void 0},G={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...m},className:f,children:[e&&jsxs("label",{htmlFor:D,style:G,children:[e,i&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:O,children:jsx("textarea",{ref:w,id:D,rows:L,maxLength:b,disabled:n,required:i,readOnly:r||k.readOnly,value:u,onChange:R,style:V,onFocus:W=>{S(true),z?.(W);},onBlur:W=>{S(false),h?.(W);},...k})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[I&&jsx("span",{style:{...Z,color:v.borderError},children:I}),!I&&o&&jsx("span",{style:{...Z,color:v.helperText},children:o})]}),b!==void 0&&jsxs("span",{style:{...Z,color:H>b?v.borderError:v.counter,flexShrink:0},children:[H,"/",b]})]})]})});Qr.displayName="Textarea";var el={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)"}},tl={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function oa(e,t,o){return Math.min(Math.max(e,t),o)}function ol(e,t,o){return Math.round((e-t)/o)*o+t}var na=({value:e,onChange:t,min:o=0,max:n=100,step:r=1,label:a,disabled:l=false,showValue:i=false,range:g=false,size:b="md",className:c,style:d})=>{let s=A(),p=el[s],f=tl[b],m=useId(),u=useRef(null),R=useRef(null),z=g?e:[o,e],h=B=>(B-o)/(n-o)*100,k=h(z[0]),x=h(z[1]),M=useCallback(B=>{let S=u.current;if(!S)return o;let P=S.getBoundingClientRect(),E=oa((B-P.left)/P.width,0,1),w=o+E*(n-o);return oa(ol(w,o,r),o,n)},[o,n,r]),v=useCallback(B=>{if(l)return;B.preventDefault();let S=M(B.clientX);if(g){let w=e,T=Math.abs(S-w[0]),L=Math.abs(S-w[1]),$=T<=L?"start":"end";R.current=$;let C=$==="start"?[Math.min(S,w[1]),w[1]]:[w[0],Math.max(S,w[0])];t?.(C);}else R.current="end",t?.(S);let P=w=>{let T=M(w.clientX);if(g){let L=e;R.current==="start"?t?.([Math.min(T,L[1]),L[1]]):t?.([L[0],Math.max(T,L[0])]);}else t?.(T);},E=()=>{R.current=null,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",E);};document.addEventListener("mousemove",P),document.addEventListener("mouseup",E);},[l,M,t,g,e]),F={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},y=g?`${z[0]} \u2013 ${z[1]}`:`${e}`,D={width:f.thumb,height:f.thumb,borderRadius:"50%",backgroundColor:p.thumb,border:`2px solid ${p.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...d},className:c,children:[(a||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:m,style:F,children:a}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:p.text,userSelect:"none"},children:y})]}),jsxs("div",{ref:u,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":g?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:f.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:p.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${g?k:0}%`,width:`${x-(g?k:0)}%`,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:p.trackFill}}),g&&jsx("span",{style:{...D,left:`${k}%`}}),jsx("span",{style:{...D,left:`${x}%`}})]})]})};na.displayName="Slider";var il={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 gn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var ll=0,aa=({variant:e="dropzone",onFiles:t,accept:o,multiple:n=false,maxSize:r,disabled:a=false,label:l,helperText:i,error:g,value:b,buttonStyle:c="default",showFileList:d=true,buttonLabel:s,className:p,style:f})=>{let m=A(),u=il[m],R=useId(),z=useRef(null),[h,k]=useState(false),[x,M]=useState([]),[v,F]=useState(null),y=b!==void 0,D=y?b.map((C,I)=>({file:C,id:`controlled-${I}`})):x,B=!!g||!!v,S=typeof g=="string"?g:v??void 0,P=useCallback(C=>{let I=Array.from(C);if(F(null),r){let H=I.find(O=>O.size>r);if(H){F(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${gn(r)}.`);return}}if(y){let O=n?[...b||[],...I]:I;t?.(O);}else {let H=I.map(V=>({file:V,id:`file-${++ll}`})),O=n?[...x,...H]:H;M(O),t?.(O.map(V=>V.file));}},[y,b,x,r,n,t]),E=useCallback(C=>{C.preventDefault(),k(false),!a&&C.dataTransfer.files.length>0&&P(C.dataTransfer.files);},[a,P]),w=useCallback(C=>{if(y){let I=(b||[]).filter((H,O)=>`controlled-${O}`!==C);t?.(I);}else {let I=x.filter(H=>H.id!==C);M(I),t?.(I.map(H=>H.file));}},[y,b,x,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${B?u.borderError:h?u.borderDrag:u.border}`,borderRadius:"8px",backgroundColor:h?u.backgroundDrag:a?u.backgroundDisabled:u.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},$={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:p,children:[l&&jsx("span",{style:T,children:l}),jsx("input",{ref:z,id:R,type:"file",accept:o,multiple:n,disabled:a,onChange:C=>{C.target.files&&C.target.files.length>0&&P(C.target.files),C.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:L,onClick:()=>!a&&z.current?.click(),onDragOver:C=>{C.preventDefault(),a||k(true);},onDragLeave:()=>k(false),onDrop:E,children:[jsx(UploadSimple,{size:32,color:u.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:u.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):c==="primary"?jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&z.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:C=>{a||(C.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s||(D.length===0?"Nahr\xE1t soubor":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!a&&z.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${B?u.borderError:u.border}`,backgroundColor:a?u.backgroundDisabled:u.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:C=>{a||(C.currentTarget.style.borderColor=B?u.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:C=>{C.currentTarget.style.borderColor=B?u.borderError:u.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.textSecondary},children:D.length>0?jsx(FileText,{size:18,color:u.textSecondary}):jsx(UploadSimple,{size:18,color:u.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.length>0?u.text:u.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s||(D.length===0?"Vyberte soubor...":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)}),D.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.textSecondary,flexShrink:0},children:gn(D[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.textSecondary},children:jsx(Folder,{size:16,color:u.textSecondary})})]}),d&&D.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:D.map(C=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:u.fileBg},children:[jsx(FileText,{size:24,color:u.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.textSecondary,flexShrink:0},children:gn(C.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${C.file.name}`,onClick:I=>{I.stopPropagation(),w(C.id);},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&w(C.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:u.removeColor})})]},C.id))}),S&&jsx("span",{style:{...$,color:u.borderError},children:S}),!S&&i&&jsx("span",{style:{...$,color:u.helperText},children:i})]})};aa.displayName="FileUpload";var pl={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)"}},ul={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"}},fl=({data:e,value:t,onChange:o,size:n="md",fullWidth:r=false,orientation:a="horizontal",disabled:l=false,className:i,style:g})=>{let b=A(),c=pl[b],d=ul[n],s=a==="vertical",p=e.map(k=>typeof k=="string"?{value:k,label:k}:k),f=p.findIndex(k=>k.value===t),m=useRef(null),u=useRef([]),[R,z]=useState({offset:0,size:0}),h=useCallback(()=>{let k=m.current,x=u.current[f];if(!k||!x||f<0)return;let M=k.getBoundingClientRect(),v=x.getBoundingClientRect();z(s?{offset:v.top-M.top,size:v.height}:{offset:v.left-M.left,size:v.width});},[f,s]);return useEffect(()=>{h();},[h,t,e,n]),useEffect(()=>(window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h]),jsxs("div",{ref:m,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:r?"100%":void 0,flexDirection:s?"column":"row",backgroundColor:c.bg,border:`1px solid ${c.border}`,borderRadius:d.borderRadius,padding:d.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...g},children:[f>=0&&R.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:d.itemRadius,backgroundColor:c.indicator,border:`1px solid ${c.indicatorBorder}`,boxShadow:c.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...s?{left:d.padding,right:d.padding,top:R.offset,height:R.size}:{top:d.padding,bottom:d.padding,left:R.offset,width:R.size}}}),p.map((k,x)=>{let M=k.value===t,v=l||k.disabled;return jsxs("button",{ref:F=>{u.current[x]=F;},type:"button",role:"radio","aria-checked":M,disabled:v,onClick:()=>{v||o(k.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:r?1:void 0,padding:d.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:d.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:M?500:400,color:v?c.textDisabled:M?c.textActive:c.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:F=>{!v&&!M&&(F.currentTarget.style.color=c.textHover);},onMouseLeave:F=>{!v&&!M&&(F.currentTarget.style.color=c.text);},children:[k.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:k.icon}),(k.label||!k.icon&&k.value)&&jsx("span",{children:k.label??k.value})]},k.value)})]})};fl.displayName="SegmentedControl";var xl={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)"}},hn=180,hl=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],yn=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),yl=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},vl=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),n=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),r=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+n*587+r*114)/1e3>150},Sl=({value:e,onChange:t,presets:o=hl,label:n,disabled:r=false,style:a,className:l})=>{let i=A(),g=xl[i],c=useId(),d=useRef(null),s=useRef(null),[p,f]=useState(false),[m,u]=useState(false),[R,z]=useState("idle"),[h,k]=useState(e),[x,M]=useState(false),[v,F]=useState({top:0,left:0,openAbove:false});useEffect(()=>{x||k(e);},[e,x]);let y=useCallback(()=>{r||(f(true),u(true),z("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>z("open"));}));},[r]),D=useCallback(()=>{f(false),z("closing");let I=setTimeout(()=>{u(false),z("idle");},hn);return ()=>clearTimeout(I)},[]),B=useCallback(()=>{if(!d.current)return;let I=d.current.getBoundingClientRect(),H=220,O=window.innerHeight-I.bottom-8,V=O<H&&I.top>O;F({top:V?I.top-8:I.bottom+8,left:I.left,openAbove:V});},[]);useEffect(()=>{if(m)return B(),window.addEventListener("scroll",B,true),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,true),window.removeEventListener("resize",B);}},[m,B]),useEffect(()=>{if(!p)return;let I=H=>{let O=H.target;!d.current?.contains(O)&&!s.current?.contains(O)&&D();};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[p,D]);let S=I=>{let H=yl(I.target.value);k(H),yn(H)&&t(H);},P=()=>{M(false),yn(h)?t(h):k(e);},E=I=>{t(I),k(I),D();},w=()=>{let I=v.openAbove,H=I?"translateY(8px)":"translateY(-8px)",O=I?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${hn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${hn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...V,opacity:0,transform:`${H} scale(0.97)`}:R==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},T={display:"flex",alignItems:"center",gap:"10px",backgroundColor:r?g.backgroundDisabled:g.background,border:`1px solid ${x?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:yn(e)?e:"#cccccc",border:`1px solid ${g.swatchBorder}`,flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"transform 0.12s ease"},$={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},C=m?createPortal(jsx("div",{ref:s,style:{position:"fixed",...v.openAbove?{bottom:window.innerHeight-v.top,left:v.left}:{top:v.top,left:v.left},backgroundColor:g.popoverBg,border:`1px solid ${g.popoverBorder}`,borderRadius:"12px",boxShadow: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:v.openAbove?"bottom left":"top left",...w()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((I,H)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${I}`,onClick:()=>E(I),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:I,border:I===e?"2px solid #FC4F00":`1px solid ${g.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${I}-${H}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:l,children:[n&&jsx("label",{htmlFor:c,style:$,children:n}),jsxs("div",{ref:d,style:T,children:[jsx("div",{style:L,onClick:()=>{r||(p?D():y());}}),jsx("input",{id:c,type:"text",value:h,onChange:S,onFocus:()=>M(true),onBlur:P,disabled:r,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:g.text,cursor:r?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.placeholder,cursor:r?"not-allowed":"pointer"},onClick:()=>{r||(p?D():y());},children:jsx(Eyedropper,{size:16,color:(vl(e)&&i==="light",g.placeholder)})})]}),C]})};Sl.displayName="ColorPicker";var Rl={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"}},Tl={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},El=({value:e,onChange:t,max:o=5,size:n="md",readOnly:r=false,label:a,style:l,className:i})=>{let g=A(),b=Rl[g],c=useId(),d=Tl[n],[s,p]=useState(null),f=!r&&!!t,m=useCallback(k=>{f&&t(k+1);},[f,t]),u=useCallback(k=>{f&&p(k);},[f]),R=useCallback(()=>{p(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},h=Array.from({length:o},(k,x)=>{let M=s!==null?s+1:e,v=x<M,F=s!==null&&x<=s;return jsx("span",{role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":f?`Hodnocen\xED ${x+1} z ${o}`:void 0,onClick:()=>m(x),onMouseEnter:()=>u(x),onMouseLeave:R,onKeyDown:y=>{f&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),m(x));},style:{display:"inline-flex",cursor:f?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:F?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:d.starSize,weight:v?"fill":"regular",color:v?F?b.starHover:b.starFilled:b.starEmpty})},x)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:c,style:z,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:d.gap},onMouseLeave:R,children:h})]})};El.displayName="Rating";var Pl={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"}},Al=({length:e=6,value:t,onChange:o,error:n,disabled:r=false,autoFocus:a=false,label:l,separatorAfter:i,separator:g="-",style:b,className:c})=>{let d=A(),s=Pl[d],p=useId(),f=useRef([]),[m,u]=useState(null),R=!!n,z=typeof n=="string"?n:void 0,h=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&f.current[0]&&f.current[0].focus();},[a]);let k=useCallback(E=>{E>=0&&E<e&&f.current[E]?.focus();},[e]),x=useCallback(E=>{let w=E.join("").replace(/[^0-9]/g,"");o(w);},[o]),M=useCallback((E,w)=>{if(!/^[0-9]$/.test(w))return;let T=[...h];T[E]=w,x(T),E<e-1&&k(E+1);},[h,e,x,k]),v=useCallback((E,w)=>{switch(w.key){case "Backspace":if(w.preventDefault(),h[E]){let T=[...h];T[E]="",x(T);}else if(E>0){let T=[...h];T[E-1]="",x(T),k(E-1);}break;case "Delete":w.preventDefault();{let T=[...h];T[E]="",x(T);}break;case "ArrowLeft":w.preventDefault(),E>0&&k(E-1);break;case "ArrowRight":w.preventDefault(),E<e-1&&k(E+1);break}},[h,e,x,k]),F=useCallback((E,w)=>{let L=w.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&M(E,L);},[M]),y=useCallback(E=>{E.preventDefault();let w=E.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!w)return;let T=[...h];for(let $=0;$<w.length;$++)T[$]=w[$];x(T);let L=Math.min(w.length,e-1);k(L);},[h,e,x,k]),D=useCallback(E=>{u(E),f.current[E]?.select();},[]),B=useCallback(()=>{u(null);},[]),S={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},P=E=>{let w=m===E,T=!!h[E];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:s.text,textAlign:"center",backgroundColor:r?s.backgroundDisabled:T?s.backgroundFilled:s.background,border:`1px solid ${R?s.borderError:w?s.borderFocus:T?s.borderFilled:s.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"text",caretColor:s.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...b},className:c,children:[l&&jsx("label",{htmlFor:`${p}-0`,style:S,children:l}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:y,children:Array.from({length:e},(E,w)=>jsxs(Fn.Fragment,{children:[i&&w>0&&w%i===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:s.text,userSelect:"none",lineHeight:"normal",opacity:r?.6:.5,padding:"0 2px"},children:g}),jsx("input",{ref:T=>{f.current[w]=T;},id:`${p}-${w}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:h[w]||"",onChange:T=>F(w,T),onKeyDown:T=>v(w,T),onFocus:()=>D(w),onBlur:B,disabled:r,"aria-label":`\u010C\xEDslice ${w+1} z ${e}`,style:P(w)})]},w))}),z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:z})]})};Al.displayName="OTPInput";var Wl={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"}},kn=180,Ol={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"}},Zl=[{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 Yl(e,t){return [...t].sort((n,r)=>r.dialCode.length-n.dialCode.length).find(n=>e.startsWith(n.dialCode))}var Vl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:n,label:r,error:a,helperText:l,disabled:i=false,size:g="md",placeholder:b="123 456 789",style:c,className:d})=>{let s=A(),p=Wl[s],f=Ol[g],m=useId(),u=n||Zl,R=useRef(null),z=useRef(null),h=useRef(null),k=useRef(null),[x,M]=useState(false),[v,F]=useState(false),[y,D]=useState(false),[B,S]=useState("idle"),[P,E]=useState(""),[w,T]=useState(-1),[L,$]=useState({top:0,left:0,width:0,openAbove:false}),C=!!a,I=typeof a=="string"?a:void 0,H=useMemo(()=>{if(e){let Y=Yl(e,u);if(Y)return Y}return u.find(Y=>Y.code===o)||u[0]},[e,u,o]),O=useMemo(()=>!e||!H?"":e.startsWith(H.dialCode)?e.slice(H.dialCode.length):e.replace(/^\+\d+/,""),[e,H]),V=useMemo(()=>{if(!P)return u;let Y=P.toLowerCase();return u.filter(re=>re.name.toLowerCase().includes(Y)||re.dialCode.includes(Y)||re.code.toLowerCase().includes(Y))},[u,P]),G=useCallback(()=>{F(true),D(true),S("opening"),E(""),T(-1);let Y=setTimeout(()=>{S("open"),k.current?.focus();},10);return ()=>clearTimeout(Y)},[]),Z=useCallback(()=>{F(false),S("closing");let Y=setTimeout(()=>{D(false),S("idle");},kn);return ()=>clearTimeout(Y)},[]),W=useCallback(()=>{if(!R.current)return;let Y=R.current.getBoundingClientRect(),re=z.current?.offsetHeight??300,ie=window.innerHeight-Y.bottom-6,Be=Y.top-6,rt=ie<re&&Be>ie;$({top:rt?Y.top-6:Y.bottom+6,left:Y.left,width:Math.max(Y.width,280),openAbove:rt});},[]);useEffect(()=>{if(y)return W(),window.addEventListener("scroll",W,true),window.addEventListener("resize",W),()=>{window.removeEventListener("scroll",W,true),window.removeEventListener("resize",W);}},[y,W]),useEffect(()=>{if(!v)return;let Y=re=>{let ie=re.target;!R.current?.contains(ie)&&!z.current?.contains(ie)&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[v,Z]);let q=useCallback(Y=>{let re=Y.dialCode+O;t?.(re),Z(),h.current?.focus();},[O,t,Z]),U=Y=>{let re=Y.target.value.replace(/[^0-9\s]/g,"");t?.(H.dialCode+re);},te=Y=>{let re=Y.clipboardData.getData("text").trim();re.startsWith("+")&&(Y.preventDefault(),t?.(re.replace(/[^0-9+]/g,"")));},K=Y=>{switch(Y.key){case "ArrowDown":Y.preventDefault(),T(re=>Math.min(re+1,V.length-1));break;case "ArrowUp":Y.preventDefault(),T(re=>Math.max(re-1,0));break;case "Enter":Y.preventDefault(),w>=0&&V[w]&&q(V[w]);break;case "Escape":Y.preventDefault(),Z(),h.current?.focus();break}},Q=()=>{let Y=L.openAbove,re=Y?"translateY(8px)":"translateY(-8px)",ie=Y?"translateY(6px)":"translateY(-6px)",Be={transition:`opacity ${kn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${kn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...Be,opacity:0,transform:`${re} scale(0.97)`}:B==="open"?{...Be,opacity:1,transform:"translateY(0) scale(1)"}:{...Be,opacity:0,transform:`${ie} scale(0.98)`,pointerEvents:"none"}},se={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},be={display:"flex",alignItems:"center",backgroundColor:i?p.backgroundDisabled:p.background,border:`1px solid ${C?p.borderError:x?p.borderFocus:p.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden"},ae=y?createPortal(jsxs("div",{ref:z,style:{position:"fixed",...L.openAbove?{bottom:window.innerHeight-L.top,left:L.left}:{top:L.top,left:L.left},width:L.width,backgroundColor:p.dropdownBg,border:`1px solid ${p.dropdownBorder}`,borderRadius:"12px",boxShadow:p.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:L.openAbove?"bottom center":"top center",...Q()},onKeyDown:K,children:[jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${p.divider}`},children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:s==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsx(MagnifyingGlass,{size:14,color:p.placeholder}),jsx("input",{ref:k,type:"text",value:P,onChange:Y=>{E(Y.target.value),T(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.text}})]})}),jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[V.length===0&&jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:p.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((Y,re)=>{let ie=Y.code===H.code;return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:re===w?p.optionHover:ie?p.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>q(Y),onMouseEnter:()=>T(re),onMouseLeave:()=>T(-1),children:[jsx("span",{style:{fontSize:"18px",flexShrink:0},children:Y.flag}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ie?p.optionSelectedText:p.text,fontWeight:ie?500:400},children:Y.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.placeholder,flexShrink:0},children:Y.dialCode})]},Y.code)})]})]}),document.body):null;return jsxs("div",{className:d,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},children:[r&&jsx("label",{htmlFor:m,style:se,children:r}),jsxs("div",{ref:R,style:be,children:[jsxs("button",{type:"button",disabled:i,onClick:()=>{i||(v?Z():G());},style:{display:"flex",alignItems:"center",gap:"4px",padding:f.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:i?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:p.text,flexShrink:0,outline:"none"},children:[jsx("span",{style:{fontSize:g==="sm"?"14px":"18px"},children:H.flag}),jsx("span",{style:{fontSize:"13px",color:p.placeholder},children:H.dialCode}),jsx(CaretDown,{size:12,color:p.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}),jsx("div",{style:{width:"1px",height:"60%",backgroundColor:p.divider,flexShrink:0}}),jsx("input",{ref:h,id:m,type:"tel",value:O,onChange:U,onPaste:te,onFocus:()=>M(true),onBlur:()=>M(false),placeholder:b,disabled:i,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:p.text,padding:f.padding,paddingLeft:"8px"}})]}),I&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:I}),!I&&l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.helperText,lineHeight:"normal"},children:l}),ae]})};Vl.displayName="PhoneInput";var ql={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)"}},wn=10;function Ro(e,t,o){return Math.max(t,Math.min(o,e))}var Gl=({src:e,onCrop:t,onCancel:o,aspectRatio:n,minWidth:r=50,minHeight:a=50,shape:l="rect",style:i,className:g})=>{let b=A(),c=ql[b],d=useRef(null),s=useRef(null),[p,f]=useState(""),[m,u]=useState(false),[R,z]=useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[h,k]=useState({x:0,y:0,width:0,height:0}),[x,M]=useState(null),v=l==="circle"?1:n;useEffect(()=>{if(e instanceof File){let w=URL.createObjectURL(e);return f(w),()=>URL.revokeObjectURL(w)}else f(e);},[e]);let F=useCallback(()=>{let w=d.current,T=s.current;if(!w||!T||!T.naturalWidth)return;let L=w.clientWidth,$=w.clientHeight,C=T.naturalWidth,I=T.naturalHeight,H=Math.min(L/C,$/I),O=C*H,V=I*H,G=(L-O)/2,Z=($-V)/2;z({natural:{w:C,h:I},display:{w:O,h:V},offset:{x:G,y:Z}});let W=O*.8,q=V*.8,U,te;v?W/v<=q?(U=W,te=W/v):(te=q,U=q*v):(U=W,te=q),U=Math.max(U,r),te=Math.max(te,a),k({x:G+(O-U)/2,y:Z+(V-te)/2,width:U,height:te});},[v,r,a]),y=()=>{u(true),F();};useEffect(()=>(window.addEventListener("resize",F),()=>window.removeEventListener("resize",F)),[F]);let D=w=>"touches"in w?{x:w.touches[0].clientX,y:w.touches[0].clientY}:{x:w.clientX,y:w.clientY};useEffect(()=>{if(!x)return;let{display:{w,h:T},offset:{x:L,y:$}}=R,C=H=>{H.preventDefault();let O=D(H);if(!d.current?.getBoundingClientRect())return;let G=O.x-x.startX,Z=O.y-x.startY,W=x.startCrop,q={...W};if(x.type==="move")q.x=Ro(W.x+G,L,L+w-W.width),q.y=Ro(W.y+Z,$,$+T-W.height);else {let U=W.x,te=W.y,K=W.width,Q=W.height,se=x.type;se.includes("e")&&(K=Math.max(r,W.width+G)),se.includes("w")&&(K=Math.max(r,W.width-G),U=W.x+W.width-K),se.includes("s")&&(Q=Math.max(a,W.height+Z)),se.includes("n")&&(Q=Math.max(a,W.height-Z),te=W.y+W.height-Q),v&&(se==="n"||se==="s"?(K=Q*v,U=W.x+(W.width-K)/2):se==="e"||se==="w"?(Q=K/v,te=W.y+(W.height-Q)/2):(Q=K/v,se.includes("n")&&(te=W.y+W.height-Q))),U=Ro(U,L,L+w-K),te=Ro(te,$,$+T-Q),K=Math.min(K,L+w-U),Q=Math.min(Q,$+T-te),q={x:U,y:te,width:K,height:Q};}k(q);},I=()=>M(null);return document.addEventListener("mousemove",C),document.addEventListener("mouseup",I),document.addEventListener("touchmove",C,{passive:false}),document.addEventListener("touchend",I),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",I),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",I);}},[x,R,v,r,a]);let B=(w,T)=>{T.preventDefault(),T.stopPropagation();let L="touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};M({type:w,startX:L.x,startY:L.y,startCrop:{...h}});},S=useCallback(()=>{let w=s.current;if(!w||!R.display.w)return;let T=R.natural.w/R.display.w,L=(h.x-R.offset.x)*T,$=(h.y-R.offset.y)*T,C=h.width*T,I=h.height*T,H=document.createElement("canvas");H.width=C,H.height=I;let O=H.getContext("2d");O&&(l==="circle"&&(O.beginPath(),O.arc(C/2,I/2,C/2,0,Math.PI*2),O.clip()),O.drawImage(w,L,$,C,I,0,0,C,I),H.toBlob(V=>{V&&t(V);},"image/png"));},[h,R,l,t]),P=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}}]},[]),E={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 jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",backgroundColor:c.containerBg,border:`1px solid ${c.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...i},children:[jsxs("div",{ref:d,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:x?x.type==="move"?"grabbing":`${x.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[p&&jsx("img",{ref:s,src:p,crossOrigin:"anonymous",onLoad:y,style:{position:"absolute",top:R.offset.y,left:R.offset.x,width:R.display.w||"100%",height:R.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxs(Fragment,{children:[jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:h.y,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y+h.height,left:0,right:0,bottom:0,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y,left:0,width:h.x,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y,left:h.x+h.width,right:0,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxs("div",{style:{position:"absolute",left:h.x,top:h.y,width:h.width,height:h.height,border:`2px dashed ${c.cropBorder}`,borderRadius:l==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:w=>B("move",w),onTouchStart:w=>B("move",w),children:[jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),P.map(w=>jsx("div",{style:{position:"absolute",width:wn,height:wn,backgroundColor:c.handleBg,border:`1px solid ${c.handleBorder}`,borderRadius:"2px",cursor:w.cursor,zIndex:2,...w.style},onMouseDown:T=>B(w.type,T),onTouchStart:T=>B(w.type,T)},w.type))]})]})]}),jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:c.actionBarBg,borderTop:`1px solid ${c.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxs("button",{type:"button",style:{...E,backgroundColor:c.buttonSecondaryBg,color:c.buttonSecondaryText,border:`1px solid ${c.buttonSecondaryBorder}`},onClick:o,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryBg;},children:[jsx(X,{size:14}),"Zru\u0161it"]}),jsxs("button",{type:"button",style:{...E,backgroundColor:c.buttonPrimary,color:c.buttonPrimaryText,border:"1px solid transparent"},onClick:S,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimary;},children:[jsx(Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};Gl.displayName="ImageCropper";var Kl={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)"}},ma="smSkeletonShimmer",Jl=`@keyframes ${ma}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,ye=({variant:e="text",width:t,height:o,lines:n=1,animate:r=true,className:a,style:l})=>{let i=A(),g=Kl[i],b=t??(e==="circle"?40:"100%"),c=o??(e==="circle"?40:e==="text"?"1em":100),d={backgroundColor:g.base,backgroundImage:r?`linear-gradient(90deg, ${g.base} 25%, ${g.shimmer} 50%, ${g.base} 75%)`:void 0,backgroundSize:r?"200% 100%":void 0,animation:r?`${ma} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof b=="number"?`${b}px`:b,height:typeof c=="number"?`${c}px`:c},s=r?jsx("style",{dangerouslySetInnerHTML:{__html:Jl}}):null;return e==="text"&&n>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[s,Array.from({length:n}).map((p,f)=>jsx("div",{style:{...d,width:f===n-1?"75%":d.width}},f))]}):jsxs(Fragment,{children:[s,jsx("div",{className:a,style:{...d,...l}})]})};ye.displayName="Skeleton";var tc={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)"}},oc=({columns:e,data:t,loading:o=false,emptyText:n="\u017D\xE1dn\xE1 data",onSort:r,sortKey:a,sortDirection:l,striped:i=false,hoverable:g=true,onRowClick:b,rowActions:c,className:d,style:s})=>{let p=A(),f=tc[p],m=k=>{if(!k.sortable||!r)return;let x=a===k.key&&l==="asc"?"desc":"asc";r(k.key,x);},u={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,backgroundColor:f.background,border:`1px solid ${f.border}`,borderRadius:"12px",overflow:"hidden",...s},R=k=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:f.textSecondary,backgroundColor:f.headerBg,borderBottom:`1px solid ${f.border}`,whiteSpace:"nowrap",cursor:k.sortable?"pointer":"default",userSelect:"none",width:k.width!=null?typeof k.width=="number"?`${k.width}px`:k.width:void 0}),z={padding:"10px 16px",borderBottom:`1px solid ${f.border}`,lineHeight:"normal"};return jsxs("table",{className:d,style:u,children:[jsx("thead",{children:jsxs("tr",{children:[e.map(k=>jsx("th",{style:R(k),onClick:()=>m(k),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[k.header,k.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===k.key?f.sortActive:f.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},k.key)),c&&jsx("th",{style:{...R({sortable:false}),width:"auto"}})]})}),jsx("tbody",{children:o?Array.from({length:5}).map((k,x)=>jsx("tr",{children:e.map(M=>jsx("td",{style:z,children:jsx(ye,{variant:"text",width:"80%"})},M.key))},`skel-${x}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...z,textAlign:"center",padding:"32px 16px",color:f.textSecondary,borderBottom:"none"},children:n})}):t.map((k,x)=>jsxs("tr",{style:{backgroundColor:i&&x%2===1?f.stripedBg:"transparent",transition:"background-color 0.12s ease",cursor:b?"pointer":"default"},onClick:M=>{b&&!M.target.closest("[data-no-row-click]")&&b(k,x);},onMouseEnter:M=>{(g||b)&&(M.currentTarget.style.backgroundColor=f.rowHover);},onMouseLeave:M=>{(g||b)&&(M.currentTarget.style.backgroundColor=i&&x%2===1?f.stripedBg:"transparent");},children:[e.map(M=>jsx("td",{style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom},children:M.render?M.render(k[M.key],k,x):k[M.key]},M.key)),c&&jsx("td",{"data-no-row-click":true,style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom,textAlign:"right",whiteSpace:"nowrap"},onClick:M=>M.stopPropagation(),children:c(k)})]},x))})]})};oc.displayName="Table";var rc={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"}},ya=({checked:e,indeterminate:t,onChange:o,t:n})=>{let r=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${r?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:r?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},ac=({columns:e,data:t,selectable:o=false,onSelectionChange:n,loading:r=false,rowKey:a="id",onRowClick:l,stickyHeader:i=false,emptyText:g="\u017D\xE1dn\xE1 data",style:b,className:c})=>{let d=A(),s=rc[d],[p,f]=useState(new Set),[m,u]=useState(null),R=useMemo(()=>t.map(S=>String(S[a])),[t,a]),z=R.length>0&&R.every(S=>p.has(S)),h=R.some(S=>p.has(S))&&!z,k=useCallback(()=>{let S=z?new Set:new Set(R);f(S),n?.(Array.from(S));},[z,R,n]),x=useCallback(S=>{f(P=>{let E=new Set(P);return E.has(S)?E.delete(S):E.add(S),n?.(Array.from(E)),E});},[n]),M={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,backgroundColor:s.background},v=S=>({padding:"12px 16px",textAlign:S.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:s.textSecondary,backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,whiteSpace:"nowrap",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0,minWidth:S.minWidth!=null?`${S.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),F=S=>({padding:"10px 16px",borderBottom:`1px solid ${s.border}`,lineHeight:"normal",textAlign:S.align||"left"}),y={padding:"12px 12px 12px 16px",backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},D={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${s.border}`,width:"40px"};return jsx("div",{className:c,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${s.border}`,...b},children:jsxs("table",{style:M,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:y,children:jsx(ya,{checked:z,indeterminate:h,onChange:k,t:s})}),e.map(S=>jsx("th",{style:v(S),children:S.header},S.key))]})}),jsx("tbody",{children:r?Array.from({length:5}).map((S,P)=>jsxs("tr",{children:[o&&jsx("td",{style:D,children:jsx(ye,{variant:"rect",width:16,height:16})}),e.map(E=>jsx("td",{style:F(E),children:jsx(ye,{variant:"text",width:"80%"})},E.key))]},`skel-${P}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:s.textSecondary,borderBottom:"none"},children:g})}):t.map((S,P)=>{let E=String(S[a]),w=p.has(E),T=m===E,L=P===t.length-1,$="transparent";return w?$=s.selectedRowBg:T&&($=s.rowHover),jsxs("tr",{style:{backgroundColor:$,cursor:l?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>u(E),onMouseLeave:()=>u(null),onClick:()=>l?.(S),children:[o&&jsx("td",{style:{...D,borderBottom:L?"none":D.borderBottom},children:jsx(ya,{checked:w,onChange:()=>x(E),t:s})}),e.map(C=>jsx("td",{style:{...F(C),borderBottom:L?"none":F(C).borderBottom},children:C.render?C.render(S[C.key],S,P):S[C.key]},C.key))]},E)})})]})})};ac.displayName="DataGrid";var cc={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)"}},Sa=({checked:e,indeterminate:t,onChange:o,t:n})=>jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:r=>{r.stopPropagation(),o();},onKeyDown:r=>{(r.key===" "||r.key==="Enter")&&(r.preventDefault(),r.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:e||t?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M3 6H9",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),dc=({columns:e,data:t,primaryKey:o,rowKey:n="id",selectable:r=false,selectedIds:a,onSelectionChange:l,onCardClick:i,onSort:g,sortKey:b,sortDirection:c,loading:d=false,skeletonCount:s=3,emptyText:p="\u017D\xE1dn\xE1 data",emptyContent:f,gap:m=12,cardActions:u,style:R,className:z})=>{let h=A(),k=cc[h],[x,M]=useState(new Set),[v,F]=useState(null),y=a!==void 0,D=useMemo(()=>y?new Set(a):x,[y,a,x]),B=useMemo(()=>e.find(C=>C.primary)||(o?e.find(C=>C.key===o):void 0),[e,o]),S=useMemo(()=>e.filter(C=>!C.hidden&&C!==B),[e,B]),P=useMemo(()=>e.filter(C=>C.sortable),[e]),E=useCallback(C=>{let I=new Set(D);I.has(C)?I.delete(C):I.add(C),y||M(I),l?.(Array.from(I));},[D,y,l]),w=useCallback(()=>{let C=t.map(O=>String(O[n])),H=C.every(O=>D.has(O))?new Set:new Set(C);y||M(H),l?.(Array.from(H));},[t,n,D,y,l]),T=t.length>0&&t.every(C=>D.has(String(C[n]))),L=t.some(C=>D.has(String(C[n])))&&!T,$=useCallback(C=>{if(!g)return;g(C,b===C&&c==="asc"?"desc":"asc");},[g,b,c]);if(d){let C=S.length>0?S.length:3;return jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:Array.from({length:s}).map((I,H)=>jsxs("div",{style:{backgroundColor:k.cardBg,border:`1px solid ${k.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(B||r)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${k.divider}`,backgroundColor:k.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[r&&jsx(ye,{variant:"rect",width:18,height:18}),jsx(ye,{variant:"text",width:"45%",height:18})]}),Array.from({length:C}).map((O,V)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:V<C-1?`1px solid ${k.divider}`:"none"},children:[jsx(ye,{variant:"text",width:70,height:12}),jsx(ye,{variant:"text",width:100,height:14})]},V)),u&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${k.divider}`},children:[jsx(ye,{variant:"rect",width:64,height:30}),jsx(ye,{variant:"rect",width:64,height:30})]})]},H))})}return t.length===0?jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:jsx("div",{style:{backgroundColor:k.emptyBg,border:`1px solid ${k.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:k.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:f??p})}):jsxs("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...R},children:[(r||P.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[r&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(Sa,{checked:T,indeterminate:L,onChange:w,t:k}),jsx("span",{style:{fontSize:"12px",color:k.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:D.size>0?`${D.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),P.length>0&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:r?"auto":0},children:P.map(C=>{let I=b===C.key;return jsxs("button",{onClick:()=>$(C.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:I?k.sortChipActiveBg:k.sortChipBg,color:I?k.sortActive:k.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:I?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[C.header,I?c==="asc"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(CaretUpDown,{size:12})]},C.key)})})]}),t.map((C,I)=>{let H=String(C[n]),O=D.has(H),V=v===H,G=B?B.render?B.render(C[B.key],C,I):C[B.key]:null;return jsxs("div",{style:{backgroundColor:O?k.selectedBg:V?k.hover:k.cardBg,border:`1px solid ${O?k.selectedBorder:k.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?.(C),onMouseEnter:()=>F(H),onMouseLeave:()=>F(null),children:[(G!==null||r)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:k.headerBg,borderBottom:`1px solid ${k.divider}`},children:[r&&jsx(Sa,{checked:O,onChange:()=>E(H),t:k}),G!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:k.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:G})]}),jsx("div",{children:S.map((Z,W)=>{let q=Z.render?Z.render(C[Z.key],C,I):C[Z.key];return jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:W<S.length-1?`1px solid ${k.divider}`:"none"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:k.textSecondary,flexShrink:0,paddingTop:"2px"},children:Z.header}),jsx("span",{style:{fontSize:"14px",color:k.text,textAlign:"right",wordBreak:"break-word"},children:q??"\u2014"})]},Z.key)})}),u&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${k.divider}`},onClick:Z=>Z.stopPropagation(),children:u(C,I)})]},H??I)})]})};dc.displayName="MobileDataCard";var pc={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)"}},uc={none:"0",sm:"12px",md:"20px",lg:"28px"},fc=({title:e,subtitle:t,header:o,footer:n,children:r,hoverable:a=false,bordered:l=true,padding:i="md",className:g,style:b})=>{let c=A(),d=pc[c],s=uc[i],p={backgroundColor:d.background,border:l?`1px solid ${d.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...b},f=o??(e||t?jsxs("div",{style:{padding:s,paddingBottom:r||n?"0":s},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:d.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:g,style:p,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=d.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=c==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=l?d.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[f,r&&jsx("div",{style:{padding:s},children:r}),n&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${d.divider}`}}),jsx("div",{style:{padding:s},children:n})]})]})};fc.displayName="Card";var wa={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)"}},hc=({title:e,children:t,defaultOpen:o=false,disabled:n=false,_controlled:r,_open:a,_onToggle:l})=>{let i=A(),g=wa[i],[b,c]=useState(o),d=r?!!a:b,s=useRef(null),[p,f]=useState(0);useEffect(()=>{s.current&&f(s.current.scrollHeight);},[t,d]);let m=useCallback(()=>{n||(r&&l?l():c(u=>!u));},[n,r,l]);return jsxs("div",{style:{borderBottom:`1px solid ${g.border}`},children:[jsxs("button",{type:"button",disabled:n,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:n?g.textDisabled:g.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:u=>{n||(u.currentTarget.style.backgroundColor=g.hoverBg);},onMouseLeave:u=>{u.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:n?g.chevronDisabled:g.chevron,style:{transition:"transform 0.25s ease",transform:d?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:s,style:{overflow:"hidden",maxHeight:d?`${p}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:g.textSecondary},children:t})})]})};hc.displayName="AccordionItem";var yc=({children:e,multiple:t=false,className:o,style:n})=>{let r=A(),a=wa[r],l=Fn.Children.toArray(e).filter(c=>Fn.isValidElement(c)),[i,g]=useState(()=>{let c=new Set;return l.forEach((d,s)=>{d.props.defaultOpen&&c.add(s);}),c}),b=useCallback(c=>{g(d=>{let s=new Set(d);return s.has(c)?s.delete(c):(t||s.clear(),s.add(c)),s});},[t]);return jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...n},children:l.map((c,d)=>Fn.cloneElement(c,{key:d,_controlled:true,_open:i.has(d),_onToggle:()=>b(d)}))})};yc.displayName="Accordion";var vc={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)"}},Sc={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},kc=()=>null;kc.displayName="Tab";var Cc=()=>null;Cc.displayName="TabPanel";var wc=({value:e,onChange:t,children:o,variant:n="underline",fullWidth:r=false,size:a="md",className:l,style:i})=>{let g=A(),b=vc[g],c=Sc[a],d=Fn.Children.toArray(o),s=d.filter(m=>Fn.isValidElement(m)&&m.type?.displayName==="Tab"),f=d.filter(m=>Fn.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxs("div",{className:l,style:i,children:[jsx("div",{style:{display:"flex",gap:n==="pills"?"4px":"0",borderBottom:n==="underline"?`1px solid ${b.border}`:"none"},children:s.map(m=>{let u=m.props.value===e,R=m.props.disabled,z=n==="underline"?{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:u?500:400,color:R?b.textDisabled:u?b.text:b.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${u?b.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:u?500:400,color:R?b.textDisabled:u?b.pillText:b.textInactive,backgroundColor:u?b.pillBg:b.pillInactiveBg,border:"none",borderRadius:"8px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:R,style:z,onClick:()=>{R||t(m.props.value);},onMouseEnter:h=>{!R&&!u&&(h.currentTarget.style.backgroundColor=b.hoverBg);},onMouseLeave:h=>{R||(h.currentTarget.style.backgroundColor=n==="pills"&&u?b.pillBg:"transparent");},children:[m.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),f&&jsx("div",{style:{paddingTop:"16px"},children:f.props.children})]})};wc.displayName="Tabs";var Ec={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Mn=180,Bo=8,Fc=({content:e,children:t,position:o="bottom",trigger:n="click",className:r,style:a})=>{let l=A(),i=Ec[l],[g,b]=useState(false),[c,d]=useState(false),[s,p]=useState("idle"),[f,m]=useState({top:0,left:0}),u=useRef(null),R=useRef(null),z=useRef(void 0),h=useCallback(()=>{b(true),d(true),p("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>p("open"));});},[]),k=useCallback(()=>{b(false),p("closing");let B=setTimeout(()=>{d(false),p("idle");},Mn);return ()=>clearTimeout(B)},[]),x=useCallback(()=>{let B=u.current,S=R.current;if(!B||!S)return;let P=B.getBoundingClientRect(),E=S.getBoundingClientRect(),w=0,T=0;switch(o){case "top":w=P.top-E.height-Bo,T=P.left+P.width/2-E.width/2;break;case "bottom":w=P.bottom+Bo,T=P.left+P.width/2-E.width/2;break;case "left":w=P.top+P.height/2-E.height/2,T=P.left-E.width-Bo;break;case "right":w=P.top+P.height/2-E.height/2,T=P.right+Bo;break}m({top:w,left:T});},[o]);useEffect(()=>{if(c)return requestAnimationFrame(x),window.addEventListener("scroll",x,true),window.addEventListener("resize",x),()=>{window.removeEventListener("scroll",x,true),window.removeEventListener("resize",x);}},[c,x]),useEffect(()=>{if(!g)return;let B=S=>{let P=S.target;!u.current?.contains(P)&&!R.current?.contains(P)&&k();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[g,k]),useEffect(()=>{if(!g)return;let B=S=>{S.key==="Escape"&&k();};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[g,k]);let M=()=>{let B={transition:`opacity ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1)`},S={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},P=o==="top"||o==="bottom"?"Y":"X";return s==="opening"||s==="idle"?{...B,opacity:0,transform:`translate${P}(${S[o]}) scale(0.97)`}:s==="open"?{...B,opacity:1,transform:"translateY(0) scale(1)"}:{...B,opacity:0,transform:`translate${P}(${S[o]}) scale(0.98)`,pointerEvents:"none"}},v=useCallback(()=>{n==="click"&&(g?k():h());},[n,g,k,h]),F=useCallback(()=>{n==="hover"&&(z.current&&clearTimeout(z.current),g||h());},[n,g,h]),y=useCallback(()=>{n==="hover"&&(z.current=setTimeout(()=>{k();},150));},[n,k]);useEffect(()=>()=>{z.current&&clearTimeout(z.current);},[]);let D=c?createPortal(jsx("div",{ref:R,className:r,onMouseEnter:()=>{n==="hover"&&z.current&&clearTimeout(z.current);},onMouseLeave:y,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"16px",backgroundColor: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 jsxs(Fragment,{children:[Fn.cloneElement(t,{ref:u,onClick:B=>{v(),t.props.onClick?.(B);},onMouseEnter:B=>{F(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{y(),t.props.onMouseLeave?.(B);}}),D]})};Fc.displayName="Popover";var Lc={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Nc={"no-data":{icon:jsx(Tray,{size:48}),title:"\u017D\xE1dn\xE1 data",description:"Zat\xEDm zde nejsou \u017E\xE1dn\xE9 z\xE1znamy."},"no-results":{icon:jsx(MagnifyingGlass,{size:48}),title:"\u017D\xE1dn\xE9 v\xFDsledky",description:"Zkuste upravit filtr nebo hledan\xFD v\xFDraz."},"no-permission":{icon:jsx(Lock,{size:48}),title:"Nem\xE1te opr\xE1vn\u011Bn\xED",description:"Pro p\u0159\xEDstup kontaktujte administr\xE1tora."},error:{icon:jsx(WarningCircle,{size:48}),title:"N\u011Bco se pokazilo",description:"Nepoda\u0159ilo se na\u010D\xEDst data. Zkuste to znovu."},"coming-soon":{icon:jsx(Rocket,{size:48}),title:"Ji\u017E brzy",description:"Tato funkce je ve v\xFDvoji."}},$c={sm:{padding:"24px 16px",iconSize:32,titleSize:"14px",descSize:"12px",maxWidth:"280px"},md:{padding:"48px 24px",iconSize:48,titleSize:"18px",descSize:"14px",maxWidth:"360px"},lg:{padding:"64px 32px",iconSize:64,titleSize:"22px",descSize:"15px",maxWidth:"440px"}},Wc=({icon:e,title:t,description:o,action:n,preset:r,size:a="md",className:l,style:i})=>{let g=A(),b=Lc[g],c=$c[a],d=r?Nc[r]:void 0,s=e??d?.icon,p=t??d?.title??"",f=o??d?.description;return jsxs("div",{className:l,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:c.padding,gap:"12px",...i},children:[s&&jsx("div",{style:{lineHeight:1,color:b.iconColor,marginBottom:"4px"},children:s}),p&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:c.titleSize,lineHeight:"normal",color:b.text},children:p}),f&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.descSize,lineHeight:"1.5",color:b.textSecondary,maxWidth:c.maxWidth},children:f}),n&&jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px",alignItems:"center"},children:n})]})};Wc.displayName="EmptyState";var Uc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",helper:"#888888",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)",hoverBg:"rgba(255,255,255,0.04)",hoverShadow:"0 4px 16px rgba(0,0,0,0.3)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",helper:"#999999",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)",hoverBg:"rgba(0,0,0,0.02)",hoverShadow:"0 4px 16px rgba(0,0,0,0.08)"}},Xc=({label:e,value:t,change:o,changeLabel:n,icon:r,trend:a="neutral",loading:l=false,onClick:i,helper:g,className:b,style:c})=>{let d=A(),s=Uc[d],[p,f]=useState(false),m=!!i,u=a==="up"?s.trendUp:a==="down"?s.trendDown:s.trendNeutral,R=h=>`${h>0?"+":""}${h.toFixed(1)} %`;return jsxs(m?"button":"div",{className:b,onClick:m?i:void 0,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),type:m?"button":void 0,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:p&&m?s.hoverBg:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",padding:"16px 20px",cursor:m?"pointer":"default",transition:"transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease",transform:p&&m?"translateY(-2px)":"translateY(0)",boxShadow:p&&m?s.hoverShadow:"none",outline:"none",textAlign:"left",width:"100%",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...c},children:[r&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:s.iconColor,flexShrink:0,color:s.text},children:r}),jsxs("div",{style:{flex:1,minWidth:0},children:[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}),l?jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"2px"},children:[jsx(ye,{variant:"text",width:"60%",height:24}),o!==void 0&&jsx(ye,{variant:"text",width:"40%",height:14})]}):jsxs(Fragment,{children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:s.text},children:t}),g&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:s.helper,marginTop:"2px"},children:g}),o!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u},children:[a==="up"&&jsx(TrendUp,{size:14,color:u}),a==="down"&&jsx(TrendDown,{size:14,color:u}),jsx("span",{children:R(o)}),n&&jsx("span",{style:{color:s.label,marginLeft:"2px"},children:n})]})]})]})]})};Xc.displayName="Stat";var qc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Eb=({initials:e,size:t="md",borderRadius:o="8px",style:n,className:r,"aria-label":a})=>{let l=qc(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...n},g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:i,className:r,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:g,children:e.toUpperCase()})})};var Gc={dark:{overflowBg:"rgba(60,60,60,0.95)",overflowText:"#ffffff",overflowBorder:"rgba(3,3,3,1)",ringColor:"rgba(3,3,3,1)"},light:{overflowBg:"rgba(220,220,220,0.95)",overflowText:"#1a1a1a",overflowBorder:"rgba(255,255,255,1)",ringColor:"rgba(255,255,255,1)"}},jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Kc={tight:-0.4,normal:-0.3,loose:-0.15},Jc=({children:e,max:t=3,size:o="sm",spacing:n="normal",direction:r="ltr",overflowTooltip:a,style:l,className:i})=>{let g=A(),b=Gc[g],c=jc(o),d=Math.round(c*Kc[n]),s=Math.max(2,Math.round(c*.06)),p=Fn.Children.toArray(e),f=p.slice(0,t),m=Math.max(0,p.length-t),u=m>0?jsxs("div",{style:{width:c,height:c,borderRadius:"50%",backgroundColor:b.overflowBg,border:`${s}px solid ${b.overflowBorder}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:Math.max(9,Math.round(c*.3)),color:b.overflowText,flexShrink:0,boxSizing:"border-box",marginLeft:f.length>0?d:0,zIndex:r==="ltr"?0:p.length+1,position:"relative",userSelect:"none"},children:["+",m]}):null,R=u&&a?jsx(xt,{content:typeof a=="function"?a(m):a,children:u}):u;return jsxs("div",{className:i,style:{display:"inline-flex",alignItems:"center",flexDirection:r==="rtl"?"row-reverse":"row",...l},children:[f.map((z,h)=>{let k=Fn.isValidElement(z),x=r==="ltr"?f.length-h:h+1,M=k?Fn.cloneElement(z,{size:o,borderRadius:"50%",style:{...z.props.style||{},border:`${s}px solid ${b.ringColor}`,boxSizing:"border-box"}}):z;return jsx("div",{style:{position:"relative",zIndex:x,marginLeft:h>0?d:0,flexShrink:0,lineHeight:0},children:M},h)}),R]})};Jc.displayName="AvatarStack";var za={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)"}},An=({onClick:e,title:t,color:o,children:n})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:n}),Lb=({label:e,onRemove:t,style:o,className:n})=>{let r=za[A()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:r.tagBg,border:`1px solid ${r.tagBorder}`,borderRadius:"4px",...o},className:n,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:r.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Nb=({label:e,style:t,className:o})=>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}),$b=({label:e,onFilter:t,onEdit:o,onDelete:n,showActions:r=true,style:a,className:l})=>{let i=za[A()],g=t||o||n;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...a},className:l,children:[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}),r&&g&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(An,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(An,{onClick:o,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),n&&jsx(An,{onClick:n,title:"Smazat",color:i.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var od={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"}},Ia={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"]}},wt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),nd=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,Ge=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Ln=(e,t=1)=>{let o=new Date(e),n=o.getDay(),r=t===1?(n===0?-6:1)-n:-n;return o.setDate(o.getDate()+r),o.setHours(0,0,0,0),o},Ma=(e,t,o=1)=>{let n=new Date(e,t,1),r=Ln(n,o),a=[],l=new Date(r);for(let i=0;i<42;i++)a.push(new Date(l)),l.setDate(l.getDate()+1);return a},rd=(e,t=1)=>{let o=Ln(e,t),n=[];for(let r=0;r<7;r++){let a=new Date(o);a.setDate(o.getDate()+r),n.push(a);}return n},Pa=(e,t,o)=>{if(t){let n=new Date(t);if(n.setHours(0,0,0,0),e<n)return true}if(o){let n=new Date(o);if(n.setHours(23,59,59,999),e>n)return true}return false};function ad(e,t){let o=[],n=new Map,r=Ge(e[0]),a=Ge(e[6]),l=t.filter(i=>{let g=Ge(i.date);return (i.endDate?Ge(i.endDate):g)>=r&&g<=a}).sort((i,g)=>{let b=Ge(i.date).getTime(),c=Ge(g.date).getTime();if(b!==c)return b-c;let d=i.endDate?Ge(i.endDate).getTime():b;return (g.endDate?Ge(g.endDate).getTime():c)-c-(d-b)});for(let i of l){let g=Ge(i.date),b=i.endDate?Ge(i.endDate):g,c=g<r?r:g,d=b>a?a:b,s=e.findIndex(z=>wt(z,c)),p=e.findIndex(z=>wt(z,d));if(s===-1||p===-1)continue;let f=p-s+1,m=g>=r,u=0;for(;;){n.has(u)||n.set(u,new Set);let z=n.get(u),h=true;for(let k=s;k<=p;k++)if(z.has(k)){h=false;break}if(h)break;u++;}let R=n.get(u);for(let z=s;z<=p;z++)R.add(z);o.push({event:i,row:u,startCol:s,span:f,isStart:m});}return o}var sd=({value:e,onChange:t,view:o="month",events:n=[],minDate:r,maxDate:a,style:l,className:i,firstDay:g=1,locale:b="cs",initialDate:c,t:d,today:s})=>{let p=Ia[b],f=c||e||s,[m,u]=useState(()=>f.getMonth()),[R,z]=useState(()=>f.getFullYear()),[h,k]=useState(()=>Ln(f,g)),[x,M]=useState(null),v=useMemo(()=>o==="week"?rd(h,g):Ma(R,m,g),[o,R,m,h,g]),F=useCallback(()=>{o==="week"?k(E=>{let w=new Date(E);return w.setDate(w.getDate()-7),w}):u(E=>E===0?(z(w=>w-1),11):E-1);},[o]),y=useCallback(()=>{o==="week"?k(E=>{let w=new Date(E);return w.setDate(w.getDate()+7),w}):u(E=>E===11?(z(w=>w+1),0):E+1);},[o]),D=E=>n.filter(w=>wt(w.date,E)),B=o==="week"?(()=>{let E=new Date(h);return E.setDate(E.getDate()+6),h.getMonth()===E.getMonth()?`${h.getDate()}. \u2013 ${E.getDate()}. ${p.months[E.getMonth()]} ${E.getFullYear()}`:`${h.getDate()}. ${p.months[h.getMonth()].slice(0,3)} \u2013 ${E.getDate()}. ${p.months[E.getMonth()].slice(0,3)} ${E.getFullYear()}`})():`${p.months[m]} ${R}`,S={backgroundColor:d.background,border:`1px solid ${d.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,overflow:"hidden",userSelect:"none",...l},P={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:d.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:i,style:S,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:d.headerBg,borderBottom:`1px solid ${d.border}`},children:[jsx("button",{style:P,onClick:F,onMouseEnter:E=>{E.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:B}),jsx("button",{style:P,onClick:y,onMouseEnter:E=>{E.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:p.daysFull.map(E=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.textMuted,padding:"6px 0 8px"},children:E},E))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:v.map((E,w)=>{let T=wt(E,s),L=e?wt(E,e):false,$=o==="month"&&E.getMonth()!==m,C=Pa(E,r,a),I=E.toISOString(),H=x===I,O=D(E),V="transparent",G=$?d.outsideText:d.text,Z="2px solid transparent";return L?(V=d.selectedBg,G=d.selectedText):T?(V=d.todayBg,Z=`2px solid ${d.todayBorder}`):H&&!C&&(V=d.hover),C&&(G=d.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:V,color:G,fontSize:"13px",fontWeight:T?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:C?"default":"pointer",opacity:C?.4:1,transition:"background-color 0.12s ease"},disabled:C,onClick:()=>{!C&&t&&t(E);},onMouseEnter:()=>!C&&M(I),onMouseLeave:()=>M(null),children:E.getDate()}),O.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map((W,q)=>jsx("div",{title:W.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:W.color||d.eventDot}},q))})]},w)})})]})},Do=24,$t=2,id=({value:e,onChange:t,events:o=[],onEventClick:n,showHeader:r=true,onNavigate:a,minDate:l,maxDate:i,style:g,className:b,firstDay:c=1,locale:d="cs",maxEventsPerDay:s=3,initialDate:p,t:f,today:m})=>{let u=Ia[d],R=p||e||m,[z,h]=useState(()=>R.getMonth()),[k,x]=useState(()=>R.getFullYear()),[M,v]=useState(null),F=useMemo(()=>Ma(k,z,c),[k,z,c]),y=useMemo(()=>{let T=[];for(let L=0;L<F.length;L+=7)T.push(F.slice(L,L+7));return T},[F]),D=useMemo(()=>{let T=y[y.length-1];return T&&T.every(L=>L.getMonth()!==z)?y.slice(0,-1):y},[y,z]),B=useCallback(()=>{let T=z-1,L=k;T<0&&(T=11,L--),h(T),x(L),a&&a(new Date(L,T,1));},[z,k,a]),S=useCallback(()=>{let T=z+1,L=k;T>11&&(T=0,L++),h(T),x(L),a&&a(new Date(L,T,1));},[z,k,a]),P=`${u.months[z]} ${k}`,w={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:b,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,userSelect:"none",...g},children:[r&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:w,onClick:B,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:P}),jsx("button",{style:w,onClick:S,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${f.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:f.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${f.cellBorder}`},children:u.days.map((T,L)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:f.text,padding:"10px 0",borderRight:L<6?`1px solid ${f.cellBorder}`:"none"},children:T},T))}),D.map((T,L)=>{let $=ad(T,o),C=$.length>0?Math.max(...$.map(Z=>Z.row))+1:0,I=T.map((Z,W)=>{let q=$.filter(U=>W>=U.startCol&&W<U.startCol+U.span);return Math.max(0,q.filter(U=>U.row>=s).length)}),O=Math.min(C,s)*(Do+$t)+$t,G=I.some(Z=>Z>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<D.length-1?`1px solid ${f.cellBorder}`:"none"},children:T.map((Z,W)=>{let q=wt(Z,m),U=Z.getMonth()!==z,te=e?wt(Z,e):false;return jsxs("div",{style:{borderRight:W<6?`1px solid ${f.cellBorder}`:"none",backgroundColor:q?f.todayCellBg:"transparent",minHeight:`${30+O+G}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Pa(Z,l,i)&&t(Z);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:q?700:400,color:U?f.outsideText:q?"#FC4F00":f.text},children:te?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Z.getDate(),"."]}):jsxs(Fragment,{children:[Z.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${O}px`},children:$.filter(K=>K.startCol===W&&K.row<s).map((K,Q)=>{let se=K.event.id||`${nd(K.event.date)}-${K.event.title}`,be=M===se,ae=K.event.color||f.eventBarDefault,Y=jsxs("div",{style:{position:"absolute",top:`${$t+K.row*(Do+$t)}px`,left:"2px",width:K.span>1?`calc(${K.span*100}% - 4px)`:"calc(100% - 4px)",height:`${Do}px`,backgroundColor:ae,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:n?"pointer":"default",zIndex:be?2:1,opacity:be?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:K.event.tooltip?void 0:K.event.title,onClick:re=>{re.stopPropagation(),n&&n(K.event);},onMouseEnter:()=>v(se),onMouseLeave:()=>v(null),children:[K.isStart&&K.event.emoji&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:K.event.emoji}),K.isStart&&jsx("span",{style:{fontSize:"11px",fontWeight:500,color:K.event.textColor||f.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K.event.title})]},Q);return K.event.tooltip?jsx(xt,{content:K.event.tooltip,children:Y},Q):Y})}),I[W]>0&&jsxs("div",{style:{fontSize:"10px",color:f.moreText,textAlign:"center",padding:"2px 0"},children:["+",I[W]]})]},W)})},L)})]})]})},ld=e=>{let t=A(),o=od[t],n=useMemo(()=>{let r=new Date;return r.setHours(0,0,0,0),r},[]);return e.fullSize?jsx(id,{...e,t:o,today:n}):jsx(sd,{...e,t:o,today:n})};ld.displayName="Calendar";var dd={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)"}},pd=({items:e,orientation:t="vertical",style:o,className:n})=>{let r=A(),a=dd[r];return t==="horizontal"?jsx("div",{className:n,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((l,i)=>{let g=i===e.length-1,b=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:g?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsx("div",{style:{flex:1}}),l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0}}),!g&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),g&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:l.title}),l.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:l.date}),l.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:l.description})]})]},i)})}):jsx("div",{className:n,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((l,i)=>{let g=i===e.length-1,b=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:g?0:"4px",minHeight:l.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!g&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:l.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:l.title}),l.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:l.date})]}),l.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:l.description})]})]},i)})})};pd.displayName="Timeline";var ud={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)"}},fd=({items:e,columns:t=1,striped:o=false,style:n,className:r})=>{let a=A(),l=ud[a],i=Math.max(1,Math.round(t)),g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...n},b=p=>i<=1?p:Math.floor(p/i),c=p=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${l.border}`,backgroundColor:o&&b(p)%2===1?l.stripedBg:l.background}),d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:l.textMuted,flexShrink:0,letterSpacing:"0.01em"},s={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:r,style:g,children:e.map((p,f)=>jsxs("div",{style:c(f),children:[jsx("span",{style:d,children:p.label}),jsx("span",{style:s,children:p.value})]},f))})};fd.displayName="DataList";var xd={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"}},Ha=({node:e,depth:t,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l})=>{let i=e.children&&e.children.length>0,g=o.has(e.id),b=n===e.id,[c,d]=useState(false),s="transparent";return b?s=l.selectedBg:c&&(s=l.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:s,borderLeft:b?`2px solid ${l.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:p=>{p.stopPropagation(),i&&r(e.id);},children:i&&jsx(CaretRightIcon,{size:14,color:g?l.iconExpanded:l.iconColor,style:{transform:g?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:b?l.selectedBorder:l.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:b?500:400,color:b?l.selectedText:l.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&g&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:l.line}}),e.children.map(p=>jsx(Ha,{node:p,depth:t+1,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l},p.id))]})]})},hd=({data:e,onSelect:t,selectedId:o,defaultExpanded:n=[],style:r,className:a})=>{let l=A(),i=xd[l],[g,b]=useState(()=>new Set(n)),c=useCallback(s=>{b(p=>{let f=new Set(p);return f.has(s)?f.delete(s):f.add(s),f});},[]),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...r};return jsx("div",{className:a,style:d,role:"tree",children:e.map(s=>jsx(Ha,{node:s,depth:0,expanded:g,selectedId:o,onToggle:c,onSelect:t,t:i},s.id))})};hd.displayName="Tree";var vd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Sd={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},kd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Wn=false,Cd=()=>{if(Wn||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Wn=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
13
13
  @keyframes sm-statusbadge-pulse {
14
14
  0% { transform: scale(1); opacity: 1; }
15
15
  50% { transform: scale(1.8); opacity: 0; }
16
16
  100% { transform: scale(1.8); opacity: 0; }
17
17
  }
18
- `,document.head.appendChild(t),Er=true;},Bd=({status:e,label:t,size:o="md",pulse:r=false,color:n,style:a,className:s})=>{let i=P(),u=Rd[i],c=Fd[o],d=n||Td[e]||"#888888";return r&&Ed(),jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:c.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${c.dot}px`,height:`${c.dot}px`,flexShrink:0},children:[r&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:d,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:d}})]}),t&&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]=useState(false),[f,C]=useState("idle"),w=useRef(null),y=useRef(null);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]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!b||!i)return;let D=k=>{k.key==="Escape"&&t();};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[b,i,t]),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 createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:v?"stretch":"center",justifyContent:"center",...f==="closing"?{pointerEvents:"none"}:{}},children:[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"}),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)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:o}),u&&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:jsx(XIcon,{size:16,color:l.closeColor})})]}),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&&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]=useState(false),[m,f]=useState("idle"),C=useRef(null),w=typeof s=="number"?`${s}px`:s;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]),useEffect(()=>()=>{document.body.style.overflow="";},[]),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?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[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"}),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)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&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:jsx(XIcon,{size:16,color:l.closeColor})})]}),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&&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]=useState(false),[l,x]=useState("idle"),b=useRef(null);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]),useEffect(()=>()=>{document.body.style.overflow="";},[]),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?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[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"}),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"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:c.handleBg}})}),(n||a)&&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&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:n}),a&&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:jsx(XIcon,{size:16,color:c.closeColor})})]}),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 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 jsxs(ur.Fragment,{children:[i>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),u?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]}):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&&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 jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...u},children:[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:jsx(CaretLeftIcon,{size:p.iconSize,color:e<=1?d.disabledText:d.text})}),l.map((b,m)=>{if(b==="ellipsis-start"||b==="ellipsis-end")return jsx("span",{style:{...x,cursor:"default",color:d.text},"aria-hidden":"true",children:"..."},b);let f=b===e;return 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)}),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:jsx(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]=useState(null),p=o==="horizontal",l=32,x=b=>!r||!n?false:r==="completed"?b<=t:true;return 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 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:[jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[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?jsx(CheckIcon,{size:14,color:u.completedText,weight:"bold"}):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&&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"}})]}),jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||y?void 0:"48px"},children:[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&&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]=useState(0),n=useRef(void 0),a=useRef(void 0);return 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);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),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]=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=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=useCallback(()=>{f>0&&o(f-1);},[f,o]),v=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 jsxs("div",{className:c,style:{display:"flex",flexDirection:C?"column":"row",gap:C?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...u},children:[jsx("div",{style:{flexShrink:0,...C?{}:{width:"240px"}},children:jsx(Wr,{steps:w,activeStep:f,orientation:r,clickable:"completed",onStepClick:v})}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsx("div",{style:{flex:1,padding:C?"24px 0":"0"},children:e[f]?.content}),n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${p.navBorder}`,marginTop:"8px"},children:[jsx("div",{children:!b&&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:[jsx(CaretLeft,{size:14}),i]})}),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?jsx(ic,{size:14,color:p.buttonDisabledText}):m?jsxs(Fragment,{children:[jsx(Check,{size:14}),a]}):jsxs(Fragment,{children:[s,jsx(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=useRef(null),u=useRef(null),[c,d]=useState(false),[p,l]=useState(false),[x,b]=useState("idle"),[m,f]=useState({top:0,left:0,openAbove:false}),[C,w]=useState(-1),y=useCallback(()=>{d(true),l(true),b("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));});},[]),g=useCallback(()=>{d(false),b("closing");let k=setTimeout(()=>{l(false),b("idle");},Vr);return ()=>clearTimeout(k)},[]),v=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]);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]),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]),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?createPortal(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 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 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?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):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&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label}):k.label]},h)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...n},children:[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]=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?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return 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"?jsxs(Fragment,{children:[n,w]}):jsxs(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]=useState(false),[x,b]=useState("idle"),[m,f]=useState(-1),C=useRef(null),w=useRef(null);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;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]),useEffect(()=>{p&&x==="open"&&C.current?.focus();},[p,x]),useEffect(()=>{f(-1);},[n]),useEffect(()=>{if(m<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${m}"]`);h&&h.scrollIntoView({block:"nearest"});},[m]);let g=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?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:g,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:d.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),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:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${d.divider}`},children:[jsx(MagnifyingGlass,{size:18,color:d.textSecondary}),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"}}),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"})]}),jsx("div",{ref:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(h=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsx(xe,{variant:"rect",width:28,height:28}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(xe,{variant:"text",width:`${50+h%3*15}%`,height:14}),jsx(xe,{variant:"text",width:`${30+h%2*20}%`,height:11})]})]},h))}):v.length===0?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=>jsxs("div",{role:"group","aria-label":h.category,children:[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 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&&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}),jsxs("div",{style:{flex:1,minWidth:0},children:[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&&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]=useState(false),[d,p]=useState("idle"),[l,x]=useState(""),[b,m]=useState(-1),f=useRef(null),C=useRef(null);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);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]),useEffect(()=>{u&&d==="open"&&f.current?.focus();},[u,d]),useEffect(()=>{m(-1);},[l]),useEffect(()=>{if(b<0||!C.current)return;let k=C.current.querySelector(`[data-cmd-index="${b}"]`);k&&k.scrollIntoView({block:"nearest"});},[b]);let g=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?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:g,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),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:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:i.textSecondary}),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"}}),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"})]}),jsx("div",{ref:C,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?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=>jsxs("div",{role:"group","aria-label":k.label,children:[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 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&&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}),jsxs("div",{style:{flex:1,minWidth:0},children:[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&&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&&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 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: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.Children.count(i)>0,m=n!==void 0,[f,C]=useState(r),w=m?n:f,[y,g]=useState(false),v=useRef(null),[M,D]=useState(0);useEffect(()=>{v.current&&D(v.current.scrollHeight);},[i,w]);let k=useCallback(()=>{m?a?.(!n):C(L=>{let R=!L;return a?.(R),R});},[m,n,a]),h=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?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||jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxs("div",{className:p,style:d,children:[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&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),b&&jsx(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&&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: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 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&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&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&&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:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(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 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:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:c.iconColor},children:l}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:c.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:c.textSecondary,lineHeight:"normal"},children:o})]})]}),n&&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:jsx(X,{size:16,color:"currentColor"})})]})};var La=3,Uc=.06,Na=12,To=320,$a=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]=useState([]),c=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=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=useCallback((l,x)=>{u(b=>b.map(m=>m.id===l&&m.height!==x?{...m,height:x}:m));},[]);return jsxs($a.Provider,{value:{toast:d,dismiss:c},children:[e,i.length>0&&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=useCallback(v=>{v&&t.height===0&&c(t.id,v.offsetHeight);},[t.id,t.height===0]);return 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: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]=useState(false),[c,d]=useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),x=t.endsWith("center");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 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 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=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]=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:jsx(Info,{size:24,color:f}),success:jsx(CheckCircle,{size:24,color:f}),warning:jsx(Warning,{size:24,color:f}),error:jsx(XCircle,{size:24,color:f})}[e],y=()=>{l(false),a?.();};return 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:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:o})]}),n&&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:jsx(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:jsx(Info,{size:20}),success:jsx(CheckCircle,{size:20}),warning:jsx(Warning,{size:20}),error:jsx(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]=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 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:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:w,marginTop:"1px"},children:y}),jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),r&&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:jsx(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]=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:jsx(Info,{size:20,color:f}),success:jsx(CheckCircle,{size:20,color:f}),warning:jsx(Warning,{size:20,color:f}),error:jsx(XCircle,{size:20,color:f})}[e],y=()=>{x(false),n?.();};return 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:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:d.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:d.bodyText},children:o})]}),s&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),r&&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:jsx(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 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)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&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&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:d.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsx("div",{style:{width:"100%",height:p.height,backgroundColor:d.trackBg,borderRadius:p.height/2,overflow:"hidden"},children: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 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:[jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:c.trackBg,strokeWidth:o}),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&&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&&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]=useState(0),i=useRef(void 0),u=useRef(void 0);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 jsx("span",{role:"status","aria-label":o,className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...n},children:jsxs("svg",{width:c,height:c,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:d,strokeWidth:"2",strokeOpacity:"0.25"}),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]=useState(false),[m,f]=useState(false),C=i==="danger",w=C?m?l.dangerHover:l.dangerBg:m?l.confirmHover:l.confirmBg,y=C?l.dangerText:l.confirmText;return jsx(zr,{open:e,onClose:o,title:r,size:"sm",className:d,style:c,footer:jsxs(Fragment,{children:[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}),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&&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]=useState(false),[b,m]=useState(false),f=useRef(null),C=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?CheckIcon:CopySimpleIcon;return t?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"?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:jsx(y,{size:p.iconSize,color:w})}):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:[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"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...r}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),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}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):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})=>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 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})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ja} 1.2s ease-in-out infinite`,width:"100%"},children: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]=useState(false),[C,w]=useState(false),[y,g]=useState(false),v=useRef(false),M=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 jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[L&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),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&&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:jsx(DotsSixVertical,{size:14,color:m?b.gripHover:b.gripColor})}),T&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:b.dropIndicator})}),D?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:jsx(CaretRight,{size:16,color:y?b.chevronHover:b.chevron,style:{transition:"transform 0.2s ease",transform:k?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,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}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),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&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),D&&k&&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=>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]=useState(null),[l,x]=useState(null),b=useRef(null),m=useRef(void 0),f=useRef(void 0),C=useRef(null),w=useCallback(k=>{p(k);},[]),y=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=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=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=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=useCallback(k=>{t(Ka(e,k));},[e,t]);return useEffect(()=>()=>{m.current&&clearTimeout(m.current),f.current&&clearTimeout(f.current);},[]),jsxs("div",{ref:b,className:s,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:tf}}),e.length===0?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=>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";export{Il as Accordion,zl as AccordionItem,Ex as Alert,Tc as AppSidebar,l0 as Avatar,g0 as Badge,gp as Banner,_d as Breadcrumb,ss as Button,ud as Calendar,Tl as Card,Rn as Checkbox,Tn as CheckboxGroup,Mi as ColorPicker,Ns as Combobox,wc as CommandMenu,zp as ConfirmDialog,Sm as Container,Zp as CopyButton,hl as DataGrid,hd as DataList,Cn as DatePicker,Gs as DatePickerGroup,bm as Divider,of as DragList,Nd as Drawer,fc as DropdownMenu,Kl as EmptyState,Nn as FileUpload,dc as FormWizard,ll as ImageCropper,ln as Input,gf as InputGroup,Nb as Link,Cl as MobileDataCard,zr as Modal,Mc as Navbar,Cp as Notification,Cs as NumberInput,Gi as OTPInput,Jd as Pagination,rl as PhoneInput,_l as Popover,Vx as ProgressBar,Ux as ProgressCircle,Go as Radio,En as RadioGroup,Wi as Rating,Ti as SegmentedControl,gn as Select,Es as SelectGroup,Yd as Sheet,Ic as SidebarItem,xe as Skeleton,Hn as Slider,qx as Spinner,yc as Spotlight,hm as Stack,od as Stat,Bd as StatusBadge,Wr as Stepper,Dn as Switch,Al as Tab,Hl as TabPanel,bl as Table,Ll as Tabs,u0 as Tag,b0 as TagItem,In as Textarea,xd as Timeline,Ha as Toast,vx as ToasterProvider,yr as Tooltip,Cd as Tree,P as useTheme,Sx as useToast};//# sourceMappingURL=index.mjs.map
18
+ `,document.head.appendChild(t),Wn=true;},wd=({status:e,label:t,size:o="md",pulse:n=false,color:r,style:a,className:l})=>{let i=A(),g=vd[i],b=kd[o],c=r||Sd[e]||"#888888";return n&&Cd(),jsxs("span",{className:l,style:{display:"inline-flex",alignItems:"center",gap:b.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${b.dot}px`,height:`${b.dot}px`,flexShrink:0},children:[n&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:c,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:c}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,fontWeight:400,color:g.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};wd.displayName="StatusBadge";var Ed={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"}},Po=180,Fd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Yn=({open:e,onClose:t,title:o,titleSlot:n,children:r,footer:a,size:l="md",width:i,closeOnOverlay:g=true,closeOnEscape:b=true,dismissable:c=true,showClose:d=true,showHeaderDivider:s=true,className:p,style:f})=>{let m=A(),u=Ed[m],R=Fd[l],z=i?typeof i=="number"?`${i}px`:i:R.width,[h,k]=useState(false),[x,M]=useState("idle"),v=useRef(null),F=useRef(null);useEffect(()=>{if(e){F.current=document.activeElement,k(true),M("opening");let S=setTimeout(()=>{M("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(S)}else if(h){M("closing");let S=setTimeout(()=>{k(false),M("idle"),document.body.style.overflow="",F.current instanceof HTMLElement&&F.current.focus();},Po);return ()=>clearTimeout(S)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h||!b||!c)return;let S=P=>{P.key==="Escape"&&t();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[h,b,t]),useEffect(()=>{if(!h||!v.current)return;let S=v.current,P='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',E=w=>{if(w.key!=="Tab")return;let T=S.querySelectorAll(P);if(T.length===0){w.preventDefault();return}let L=T[0],$=T[T.length-1];w.shiftKey?document.activeElement===L&&(w.preventDefault(),$.focus()):document.activeElement===$&&(w.preventDefault(),L.focus());};return document.addEventListener("keydown",E),S.focus(),()=>document.removeEventListener("keydown",E)},[h]);let y=()=>{let S={transition:`opacity ${Po}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Po}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...S,opacity:0,transform:"scale(0.95)"}:x==="open"?{...S,opacity:1,transform:"scale(1)"}:{...S,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!h)return null;let D=l==="fullscreen",B=()=>{let S={transition:`opacity ${Po}ms ease`};return x==="opening"||x==="idle"?{...S,opacity:0}:x==="open"?{...S,opacity:1}:{...S,opacity:0}};return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...x==="closing"?{pointerEvents:"none"}:{}},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:u.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...B()},onClick:g&&c?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:v,role:"dialog","aria-modal":"true","aria-label":typeof o=="string"?o:void 0,tabIndex:-1,className:p,style:{position:"relative",display:"flex",flexDirection:"column",width:z,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":R.maxHeight,backgroundColor:u.cardBg,border:D?"none":`1px solid ${u.cardBorder}`,borderRadius:D?0:"16px",boxShadow:u.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...y(),...f},children:[n?jsx("div",{style:{flexShrink:0,borderBottom:s?`1px solid ${u.divider}`:"none"},children:n}):o||d&&c?jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:s?`1px solid ${u.divider}`:"none"},children:[o&&(typeof o=="string"?jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:u.titleText},children:o}):jsx("div",{style:{flex:1,minWidth:0},children:o})),d&&c&&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:u.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:S=>{S.currentTarget.style.backgroundColor=u.closeHover;},onMouseLeave:S=>{S.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:u.closeColor})})]}):null,jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:u.bodyText},children:r}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${u.divider}`},children:a})]})]}),document.body)};Yn.displayName="Modal";var Id={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)"}},Un=220,Md=({open:e,onClose:t,position:o="right",title:n,children:r,footer:a,width:l=400,showClose:i=true,closeOnOverlay:g=true,className:b,style:c})=>{let d=A(),s=Id[d],[p,f]=useState(false),[m,u]=useState("idle"),R=useRef(null),z=typeof l=="number"?`${l}px`:l;useEffect(()=>{if(e){f(true),u("opening");let x=setTimeout(()=>{u("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(p){u("closing");let x=setTimeout(()=>{f(false),u("idle"),document.body.style.overflow="";},Un);return ()=>clearTimeout(x)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!p)return;let x=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[p,t]);let h=x=>{let M=o==="right"?"100%":"-100%";return x==="opening"||x==="idle"?M:x==="open"?"0%":M},k=()=>m==="open"?1:0;return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:k(),transition:`opacity ${Un}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:g?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":n,className:b,style:{position:"absolute",top:0,bottom:0,[o]:0,width:z,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,borderLeft:o==="right"?`1px solid ${s.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${s.panelBorder}`:"none",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${h(m)})`,transition:`transform ${Un}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...c},children:[(n||i)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:n}),i&&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:x=>{x.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:s.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.bodyText},children:r}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${s.divider}`},children:a})]})]}),document.body):null};Md.displayName="Drawer";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)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},qn=180,Nd=({open:e,onClose:t,children:o,side:n="bottom",title:r,showClose:a=true,style:l,className:i})=>{let g=A(),b=Ld[g],[c,d]=useState(false),[s,p]=useState("idle"),f=useRef(null);useEffect(()=>{if(e){d(true),p("opening");let x=setTimeout(()=>{p("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(c){p("closing");let x=setTimeout(()=>{d(false),p("idle"),document.body.style.overflow="";},qn);return ()=>clearTimeout(x)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!c)return;let x=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,t]);let R=x=>{let M={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return x==="opening"||x==="idle"?M[n]:x==="open"?"translate(0, 0)":M[n]},z=()=>s==="open"?1:0,h={};n==="bottom"?(h.bottom=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderTopLeftRadius="16px",h.borderTopRightRadius="16px"):n==="top"?(h.top=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderBottomLeftRadius="16px",h.borderBottomRightRadius="16px"):n==="right"?(h.top=0,h.bottom=0,h.right=0,h.width="400px",h.maxWidth="100vw"):n==="left"&&(h.top=0,h.bottom=0,h.left=0,h.width="400px",h.maxWidth="100vw");let k={};return n==="bottom"?k.borderTop=`1px solid ${b.panelBorder}`:n==="top"?k.borderBottom=`1px solid ${b.panelBorder}`:n==="right"?k.borderLeft=`1px solid ${b.panelBorder}`:n==="left"&&(k.borderRight=`1px solid ${b.panelBorder}`),c?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:b.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:z(),transition:`opacity ${qn}ms ease`,...s==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:b.panelBg,boxShadow:b.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:R(s),transition:`transform ${qn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...h,...k,...l},children:[n==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:b.handleBg}})}),(r||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:n==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${b.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:b.titleText},children:r}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:b.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=b.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:b.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:b.bodyText},children:o})]})]}),document.body):null};Nd.displayName="Sheet";var Wd={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)"}},Od=({items:e,separator:t="/",className:o,style:n})=>{let r=A(),a=Wd[r];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...n},children:e.map((l,i)=>{let g=i===e.length-1;return jsxs(Fn.Fragment,{children:[i>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),g?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxs("a",{href:l.href??"#",onClick:l.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:b=>{b.currentTarget.style.color=a.linkHover;},onMouseLeave:b=>{b.currentTarget.style.color=a.text;},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},i)})})};Od.displayName="Breadcrumb";var Vd={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)"}},Ud={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Xd(e,t,o,n,r){let a=[],l=Math.max(2,e-o),i=Math.min(t-1,e+o);(n||e-o<=1)&&a.push(1),l>2&&(n&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let g=l;g<=i;g++)a.includes(g)||a.push(g);return i<t-1&&a.push("ellipsis-end"),(r||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var _d=({page:e,totalPages:t,onChange:o,siblings:n=1,showFirst:r=true,showLast:a=true,size:l="md",className:i,style:g})=>{let b=A(),c=Vd[b],d=Ud[l];if(t<=0)return null;let s=Xd(e,t,n,r,a),p={display:"inline-flex",alignItems:"center",justifyContent:"center",width:d.size,height:d.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...g},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...p,color:e<=1?c.disabledText:c.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:f=>{e>1&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:d.iconSize,color:e<=1?c.disabledText:c.text})}),s.map((f,m)=>{if(f==="ellipsis-start"||f==="ellipsis-end")return jsx("span",{style:{...p,cursor:"default",color:c.text},"aria-hidden":"true",children:"..."},f);let u=f===e;return jsx("button",{type:"button","aria-current":u?"page":void 0,"aria-label":`Str\xE1nka ${f}`,onClick:()=>o(f),style:{...p,color:u?c.activeText:c.text,backgroundColor:u?c.activeBg:"transparent",fontWeight:u?600:500},onMouseEnter:R=>{u||(R.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:R=>{u||(R.currentTarget.style.backgroundColor="transparent");},children:f},f)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...p,color:e>=t?c.disabledText:c.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:f=>{e<t&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:d.iconSize,color:e>=t?c.disabledText:c.text})})]})};_d.displayName="Pagination";var Kd={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)"}},Jn=({steps:e,activeStep:t,orientation:o="horizontal",clickable:n=false,onStepClick:r,className:a,style:l})=>{let i=A(),g=Kd[i],[b,c]=useState(null),d=o==="horizontal",s=32,p=f=>!n||!r?false:n==="completed"?f<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:d?"row":"column",alignItems:d?"flex-start":"stretch",gap:0,...l},children:e.map((f,m)=>{let u=m<t,R=m===t,z=m>t,h=m===e.length-1,k=p(m),x=b===m&&k,M=u?g.completedBg:x?g.hoverBg:g.activeBg,v=u?g.completedBg:R||x?g.activeBorder:g.futureBorder,F=u?g.completedText:R||x?g.activeText:g.futureText,y=x?g.activeText:z?g.labelFuture:g.labelText,D=z?g.descFuture:g.descText,B=u?g.lineCompleted:g.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:d?"column":"row",alignItems:"flex-start",flex:h?"0 0 auto":"1 1 0",minWidth:0,cursor:k?"pointer":"default"},onClick:()=>k&&r?.(m),onMouseEnter:()=>c(m),onMouseLeave:()=>c(null),children:[jsxs("div",{style:{display:"flex",flexDirection:d?"row":"column",alignItems:"center",width:d?"100%":"auto"},children:[jsx("div",{style:{width:s,height:s,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:u?jsx(CheckIcon,{size:14,color:g.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:F,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!h&&jsx("div",{style:d?{flex:1,height:"2px",backgroundColor:B,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:B,margin:"6px 0",marginLeft:`${s/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:d?"10px":0,marginLeft:d?0:"14px",paddingTop:d?0:"4px",textAlign:"left",minHeight:d||h?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:R||x?600:500,color:y,lineHeight:"normal",transition:"color 0.2s ease"},children:f.label}),f.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:D,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:f.description})]})]},m)})})};Jn.displayName="Stepper";var op=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=i=>{a.current===void 0&&(a.current=i),n((i-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},np={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)"}},rp=({steps:e,activeStep:t,onStepChange:o,orientation:n="horizontal",showNavigation:r=true,finishLabel:a="Dokon\u010Dit",nextLabel:l="Dal\u0161\xED",prevLabel:i="P\u0159edchoz\xED",style:g,className:b})=>{let c=A(),d=np[c],[s,p]=useState(false),f=t<=0,m=t>=e.length-1,u=Math.max(0,Math.min(t,e.length-1)),R=n==="horizontal",z=e.map(y=>({label:y.label,description:y.description})),h=useCallback(async()=>{if(s)return;let y=e[u];if(y.validate){p(true);try{if(!await y.validate()){p(!1);return}}catch{p(false);return}p(false);}o(u+1);},[s,e,u,o]),k=useCallback(()=>{u>0&&o(u-1);},[u,o]),x=useCallback(y=>{y<u&&o(y);},[u,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"},v={...M,backgroundColor:s?d.buttonDisabledBg:d.buttonPrimary,color:s?d.buttonDisabledText:d.buttonPrimaryText,border:"1px solid transparent",cursor:s?"not-allowed":"pointer"},F={...M,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`};return jsxs("div",{className:b,style:{display:"flex",flexDirection:R?"column":"row",gap:R?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...g},children:[jsx("div",{style:{flexShrink:0,...R?{}:{width:"240px"}},children:jsx(Jn,{steps:z,activeStep:u,orientation:n,clickable:"completed",onStepClick:x})}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsx("div",{style:{flex:1,padding:R?"24px 0":"0"},children:e[u]?.content}),r&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${d.navBorder}`,marginTop:"8px"},children:[jsx("div",{children:!f&&jsxs("button",{type:"button",style:F,onClick:k,disabled:s,onMouseEnter:y=>{s||(y.currentTarget.style.backgroundColor=d.buttonSecondaryHover);},onMouseLeave:y=>{y.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsx(CaretLeft,{size:14}),i]})}),jsx("button",{type:"button",style:v,onClick:h,disabled:s,onMouseEnter:y=>{s||(y.currentTarget.style.backgroundColor=d.buttonPrimaryHover);},onMouseLeave:y=>{s||(y.currentTarget.style.backgroundColor=d.buttonPrimary);},children:s?jsx(op,{size:14,color:d.buttonDisabledText}):m?jsxs(Fragment,{children:[jsx(Check,{size:14}),a]}):jsxs(Fragment,{children:[l,jsx(CaretRight,{size:14})]})})]})]})]})};rp.displayName="FormWizard";var Xa={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"}},tr=180,sp=({items:e,parentRef:t,itemIndex:o,theme:n,onClose:r})=>{let a=Xa[n],l=useRef(null),[i,g]=useState({top:0,left:0}),[b,c]=useState(-1);return useEffect(()=>{if(!t.current)return;let s=t.current.querySelectorAll('[role="menuitem"]')[o];if(!s)return;let p=s.getBoundingClientRect(),f=l.current?.offsetWidth??180,m=window.innerWidth-p.right-4;g({top:p.top,left:m>=f?p.right+4:p.left-f-4});},[t,o]),createPortal(jsx("div",{ref:l,role:"menu",style:{position:"fixed",top:i.top,left:i.left,minWidth:"160px",backgroundColor:a.dropdownBg,border:`1px solid ${a.dropdownBorder}`,borderRadius:"12px",boxShadow:a.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:1e5,overflow:"hidden",boxSizing:"border-box",padding:"6px"},onMouseLeave:()=>c(-1),children:e.map((d,s)=>{if(d.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:a.divider,margin:"4px 6px"}},s);if(d.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:a.textDisabled,padding:`${s>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:d.category},s);let p=d.danger,f=d.disabled,m=s===b,u=f?a.textDisabled:p?a.dangerText:a.text,R=p?a.dangerHover:a.hoverBg;return jsxs("div",{role:"menuitem",style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:u,backgroundColor:m?R:"transparent",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{f||(d.onClick?.(),r());},onMouseEnter:()=>{f||c(s);},children:[d.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:d.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:d.label}),d.shortcut&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:a.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:d.shortcut})]},s)})}),document.body)},ip=({trigger:e,items:t,position:o="bottom-left",triggerOnRightClick:n=false,className:r,style:a})=>{let l=A(),i=Xa[l],g=useRef(null),b=useRef(null),[c,d]=useState(false),[s,p]=useState(false),[f,m]=useState("idle"),[u,R]=useState({top:0,left:0,openAbove:false}),[z,h]=useState(-1),[k,x]=useState(null),M=useRef(void 0),v=useCallback(()=>{d(true),p(true),m("opening"),h(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),F=useCallback(()=>{d(false),m("closing");let S=setTimeout(()=>{p(false),m("idle");},tr);return ()=>clearTimeout(S)},[]),y=useCallback(()=>{if(!g.current)return;let S=g.current.getBoundingClientRect(),P=b.current?.offsetHeight??200,E=b.current?.offsetWidth??200,w=window.innerHeight-S.bottom-6,T=S.top-6,L=w<P&&T>w,$;o==="bottom-right"?($=S.right-E,$<4&&($=4)):($=S.left,$+E>window.innerWidth-4&&($=window.innerWidth-E-4)),R({top:L?S.top-6:S.bottom+6,left:$,openAbove:L});},[o]);useEffect(()=>{if(s)return y(),window.addEventListener("scroll",y,true),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y,true),window.removeEventListener("resize",y);}},[s,y]),useEffect(()=>{if(!c)return;let S=P=>{let E=P.target,w=g.current?.contains(E),T=b.current?.contains(E);!w&&!T&&F();};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[c,F]),useEffect(()=>{if(!c)return;let S=t.map((E,w)=>({item:E,idx:w})).filter(({item:E})=>!E.divider&&!E.disabled),P=E=>{switch(E.key){case "Escape":E.preventDefault(),F();break;case "ArrowDown":{E.preventDefault();let w=S.findIndex(({idx:L})=>L===z),T=w<S.length-1?w+1:0;h(S[T]?.idx??-1);break}case "ArrowUp":{E.preventDefault();let w=S.findIndex(({idx:L})=>L===z),T=w>0?w-1:S.length-1;h(S[T]?.idx??-1);break}case "Enter":case " ":if(E.preventDefault(),z>=0){let w=t[z];w&&!w.divider&&!w.disabled&&(w.onClick?.(),F());}break}};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[c,z,t,F]);let D=()=>{let S=u.openAbove,P=S?"translateY(8px)":"translateY(-8px)",E=S?"translateY(6px)":"translateY(-6px)",w={transition:`opacity ${tr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${tr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...w,opacity:0,transform:`${P} scale(0.97)`}:f==="open"?{...w,opacity:1,transform:"translateY(0) scale(1)"}:{...w,opacity:0,transform:`${E} scale(0.98)`,pointerEvents:"none"}},B=s?createPortal(jsx("div",{ref:b,role:"menu",style:{position:"fixed",...u.openAbove?{bottom:window.innerHeight-u.top,left:u.left}:{top:u.top,left:u.left},minWidth:"180px",backgroundColor:i.dropdownBg,border:`1px solid ${i.dropdownBorder}`,borderRadius:"12px",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:u.openAbove?"bottom center":"top center",...D()},children:t.map((S,P)=>{if(S.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:i.textDisabled,padding:`${P>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:S.category},P);if(S.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:i.divider,margin:"4px 6px"}},P);let E=S.danger,w=S.disabled,T=P===z,L=typeof S.label!="string",$=L&&!S.onClick,C=w?i.textDisabled:E?i.dangerText:i.text,I=E?i.dangerHover:i.hoverBg;return $?jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:i.text,userSelect:"none"},children:S.label},P):jsxs("div",{role:"menuitem","aria-disabled":w,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:C,backgroundColor:T?I:"transparent",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{if(!w){if(S.subItems){x(k===P?null:P);return}S.onClick?.(),S.keepOpenOnClick||F();}},onMouseEnter:()=>{w||h(P),S.subItems?(M.current&&clearTimeout(M.current),M.current=setTimeout(()=>x(P),300)):(M.current&&clearTimeout(M.current),x(null));},onMouseLeave:()=>{h(-1),S.subItems&&M.current&&clearTimeout(M.current);},children:[S.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:S.icon}),typeof S.label=="string"?jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:S.label}):S.label,S.shortcut&&!S.subItems&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:i.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:S.shortcut}),S.subItems&&jsx(CaretRight,{size:12,color:i.textDisabled,style:{flexShrink:0,marginLeft:"auto"}}),S.subItems&&k===P&&jsx(sp,{items:S.subItems,parentRef:b,itemIndex:P,theme:l,onClose:F})]},P)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:g,onClick:n?void 0:()=>{c?F():v();},onContextMenu:n?S=>{S.preventDefault(),c?F():v();}:void 0,style:{display:"inline-flex",cursor:"pointer"},children:e}),B]})};ip.displayName="DropdownMenu";var cp={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},cx=({variant:e="default",icon:t,iconPosition:o="left",showIcon:n=true,children:r,style:a,className:l,onMouseEnter:i,onMouseLeave:g,target:b,rel:c,...d})=>{let s=A(),p=cp[s],[f,m]=useState(false),u=e==="danger"?p.danger:p.default,R={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:f?p.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:u,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},z=n&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:R,className:l,target:b,rel:c??(b==="_blank"?"noopener noreferrer":void 0),onMouseEnter:h=>{m(true),i?.(h);},onMouseLeave:h=>{m(false),g?.(h);},...d,children:o==="right"?jsxs(Fragment,{children:[r,z]}):jsxs(Fragment,{children:[z,r]})})};var fp={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"}},No=180,gp=({open:e,onClose:t,value:o,onChange:n,results:r,loading:a=false,placeholder:l="Hledat...",className:i,style:g})=>{let b=A(),c=fp[b],[d,s]=useState(false),[p,f]=useState("idle"),[m,u]=useState(-1),R=useRef(null),z=useRef(null);useEffect(()=>{let y="sm-spotlight-scrollbar-hide";if(document.getElementById(y))return;let D=document.createElement("style");D.id=y,D.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(D);},[]);let h=r;useEffect(()=>{if(e){s(true),f("opening"),u(-1);let y=setTimeout(()=>{f("open");},10);return ()=>clearTimeout(y)}else if(d){f("closing");let y=setTimeout(()=>{s(false),f("idle");},No);return ()=>clearTimeout(y)}},[e]),useEffect(()=>{d&&p==="open"&&R.current?.focus();},[d,p]),useEffect(()=>{u(-1);},[r]),useEffect(()=>{if(m<0||!z.current)return;let y=z.current.querySelector(`[data-spotlight-index="${m}"]`);y&&y.scrollIntoView({block:"nearest"});},[m]);let k=useCallback(y=>{switch(y.key){case "Escape":y.preventDefault(),t();break;case "ArrowDown":{y.preventDefault(),u(D=>{let B=D+1;return B>=h.length?0:B});break}case "ArrowUp":{y.preventDefault(),u(D=>{let B=D-1;return B<0?h.length-1:B});break}case "Enter":{y.preventDefault(),m>=0&&m<h.length&&(h[m].onSelect(),t());break}}},[h,m,t]),x=[],M=new Map;h.forEach((y,D)=>{let B=M.get(y.category);B||(B=[],M.set(y.category,B),x.push({category:y.category,items:B})),B.push({...y,flatIndex:D});});let v=()=>{let y={transition:`opacity ${No}ms ease`};return p==="opening"||p==="idle"?{...y,opacity:0}:p==="open"?{...y,opacity:1}:{...y,opacity:0,pointerEvents:"none"}},F=()=>{let y={transition:`opacity ${No}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${No}ms cubic-bezier(0.16, 1, 0.3, 1)`};return p==="opening"||p==="idle"?{...y,opacity:0,transform:"scale(0.95) translateY(-10px)"}:p==="open"?{...y,opacity:1,transform:"scale(1) translateY(0)"}:{...y,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:k,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),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:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...F(),...g},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsx(MagnifyingGlass,{size:18,color:c.textSecondary}),jsx("input",{ref:R,type:"text",value:o,onChange:y=>n(y.target.value),placeholder:l,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:z,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(y=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsx(ye,{variant:"rect",width:28,height:28}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(ye,{variant:"text",width:`${50+y%3*15}%`,height:14}),jsx(ye,{variant:"text",width:`${30+y%2*20}%`,height:11})]})]},y))}):x.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(y=>jsxs("div",{role:"group","aria-label":y.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:y.category}),y.items.map(D=>{let B=D.flatIndex===m;return jsxs("div",{role:"option","aria-selected":B,"data-spotlight-index":D.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{D.onSelect(),t();},onMouseEnter:()=>u(D.flatIndex),onMouseLeave:()=>u(-1),children:[D.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:D.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.label}),D.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:D.description})]})]},D.id)})]},y.category))})]})]}),document.body):null};gp.displayName="Spotlight";var hp={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,yp=({open:e,onClose:t,groups:o,placeholder:n="Zadejte p\u0159\xEDkaz...",style:r,className:a})=>{let l=A(),i=hp[l],[g,b]=useState(false),[c,d]=useState("idle"),[s,p]=useState(""),[f,m]=useState(-1),u=useRef(null),R=useRef(null);useEffect(()=>{let F="sm-commandmenu-scrollbar-hide";if(document.getElementById(F))return;let y=document.createElement("style");y.id=F,y.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(y);},[]);let z=o.map(F=>({...F,items:F.items.filter(y=>y.label.toLowerCase().includes(s.toLowerCase())||y.description?.toLowerCase().includes(s.toLowerCase()))})).filter(F=>F.items.length>0),h=z.flatMap(F=>F.items);useEffect(()=>{if(e){p(""),m(-1),b(true),d("opening");let F=setTimeout(()=>{d("open");},10);return ()=>clearTimeout(F)}else if(g){d("closing");let F=setTimeout(()=>{b(false),d("idle");},Wo);return ()=>clearTimeout(F)}},[e]),useEffect(()=>{g&&c==="open"&&u.current?.focus();},[g,c]),useEffect(()=>{m(-1);},[s]),useEffect(()=>{if(f<0||!R.current)return;let F=R.current.querySelector(`[data-cmd-index="${f}"]`);F&&F.scrollIntoView({block:"nearest"});},[f]);let k=useCallback(F=>{switch(F.key){case "Escape":F.preventDefault(),t();break;case "ArrowDown":{F.preventDefault(),m(y=>{let D=y+1;return D>=h.length?0:D});break}case "ArrowUp":{F.preventDefault(),m(y=>{let D=y-1;return D<0?h.length-1:D});break}case "Enter":{F.preventDefault(),f>=0&&f<h.length&&(h[f].onSelect(),t());break}}},[h,f,t]),x=()=>{let F={transition:`opacity ${Wo}ms ease`};return c==="opening"||c==="idle"?{...F,opacity:0}:c==="open"?{...F,opacity:1}:{...F,opacity:0,pointerEvents:"none"}},M=()=>{let F={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...F,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...F,opacity:1,transform:"scale(1) translateY(0)"}:{...F,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},v=0;return g?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...x()},onKeyDown:k,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),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(),...r},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsx("input",{ref:u,type:"text",value:s,onChange:F=>p(F.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),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"})]}),jsx("div",{ref:R,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:z.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):z.map(F=>jsxs("div",{role:"group","aria-label":F.label,children:[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:F.label}),F.items.map(y=>{let D=v++,B=D===f;return jsxs("div",{role:"option","aria-selected":B,"data-cmd-index":D,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{y.onSelect(),t();},onMouseEnter:()=>m(D),onMouseLeave:()=>m(-1),children:[y.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:y.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y.label}),y.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:y.description})]}),y.shortcut&&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:y.shortcut})]},y.id)})]},F.label))})]})]}),document.body):null};yp.displayName="CommandMenu";var vp={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)"}},rr=250,Sp=({children:e,collapsed:t=false,onCollapse:o,width:n=260,collapsedWidth:r=64,style:a,className:l})=>{let i=A(),g=vp[i],b=t?r:n;return jsx("aside",{className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:`${b}px`,minWidth:`${b}px`,height:"100%",backgroundColor:g.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${g.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${rr}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children: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 ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Sp.displayName="AppSidebar";var Tp={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)"}},Ep=({label:e,icon:t,active:o=false,defaultExpanded:n=false,expanded:r,onExpandedChange:a,onClick:l,children:i,collapsed:g=false,disabled:b=false,style:c,className:d})=>{let s=A(),p=Tp[s],f=Fn.Children.count(i)>0,m=r!==void 0,[u,R]=useState(n),z=m?r:u,[h,k]=useState(false),x=useRef(null),[M,v]=useState(0);useEffect(()=>{x.current&&v(x.current.scrollHeight);},[i,z]);let F=useCallback(()=>{m?a?.(!r):R(P=>{let E=!P;return a?.(E),E});},[m,r,a]),y=useCallback(()=>{b||(f&&F(),l?.());},[b,f,F,l]),D=b?`${p.text}66`:o?p.textActive:h?p.textHover:p.text,B=b?`${p.icon}66`:o?p.iconActive:h?p.iconHover:p.icon,S=o?p.activeBg:h&&!b?p.hoverBg:"transparent";return g?jsx("button",{type:"button",onClick:y,disabled:b,title:e,className:d,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:S,color:B,cursor:b?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...c},onMouseEnter:()=>k(true),onMouseLeave:()=>k(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:D},children:e[0]})}):jsxs("div",{className:d,style:c,children:[jsxs("button",{type:"button",onClick:y,disabled:b,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:S,color:D,cursor:b?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>k(true),onMouseLeave:()=>k(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),f&&jsx(CaretDownIcon,{size:14,color:h?p.chevronHover:p.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:z?"rotate(0deg)":"rotate(-90deg)"}})]}),f&&jsx("div",{ref:x,style:{overflow:"hidden",maxHeight:z?`${M}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:i})})]})};Ep.displayName="SidebarItem";var Fp={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)"}},zp=({logo:e,children:t,actions:o,sticky:n=true,glass:r=true,style:a,className:l})=>{let i=A(),g=Fp[i];return jsxs("header",{className:l,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:r?g.background:g.backgroundSolid,borderBottom:`1px solid ${g.border}`,boxShadow:g.shadow,boxSizing:"border-box",...r?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...n?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&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&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};zp.displayName="Navbar";var Ap={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"}},Hp={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},ts=({variant:e="info",title:t,content:o,icon:n,onClose:r,role:a="alert",style:l,className:i})=>{let g=A(),b=Ap[g],{border:c,background:d}=b[e],s=n??Hp[e];return jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:d,border:`2px solid ${c}`,borderRadius:"8px",boxSizing:"border-box",...l},className:i,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.iconColor},children:s}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:b.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:b.textSecondary,lineHeight:"normal"},children:o})]})]}),r&&jsx("button",{type:"button",onClick:r,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:b.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var os=3,Wp=.06,ns=12,Zo=320,rs=createContext(null),Op=0,Zp=()=>`sm-toast-${++Op}-${Date.now()}`,Ux=({children:e,position:t="bottom-right",toastWidth:o=380,gap:n=8,offset:r=16,maxToasts:a=5,duration:l=4e3})=>{let[i,g]=useState([]),b=useCallback(s=>{g(p=>p.map(f=>f.id===s?{...f,lifecycle:"leaving"}:f)),setTimeout(()=>{g(p=>p.filter(f=>f.id!==s));},Zo+100);},[]),c=useCallback(s=>{let p=Zp(),f=s.duration??l,m={id:p,variant:s.variant??"info",title:s.title,content:s.content,icon:s.icon,duration:f,lifecycle:"entering",height:0};return g(u=>{let R=[...u,m];return R.length>a?R.slice(R.length-a):R}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{g(u=>u.map(R=>R.id===p?{...R,lifecycle:"visible"}:R));});}),f>0&&setTimeout(()=>b(p),f),p},[a,b,l]),d=useCallback((s,p)=>{g(f=>f.map(m=>m.id===s&&m.height!==p?{...m,height:p}:m));},[]);return jsxs(rs.Provider,{value:{toast:c,dismiss:b},children:[e,i.length>0&&jsx(Vp,{toasts:i,position:t,toastWidth:o,gap:n,offset:r,onDismiss:b,onHeightMeasured:d})]})},Yp=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:n,expanded:r,isBottom:a,appeared:l,toastWidth:i,onDismiss:g,onHeightMeasured:b})=>{let c=t.lifecycle==="leaving",d=!l||c,s=r?1:Math.max(.7,1-o*Wp),p=r?0:o*ns,f=a?-p:p,u=d?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${s}) translateY(${f}px)`,R=d?0:r?1:Math.max(.4,1-o*.18),z=!r&&o>=os,h=n-o,k=useCallback(x=>{x&&t.height===0&&b(t.id,x.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:k,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:u,opacity:z?0:R,zIndex:h,transition:[`transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${Zo}ms ease`].join(", "),pointerEvents:o===0||r?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(ts,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>g(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},Vp=({toasts:e,position:t,toastWidth:o,gap:n,offset:r,onDismiss:a,onHeightMeasured:l})=>{let[i,g]=useState(false),[b,c]=useState(new Set),d=t.startsWith("bottom"),s=t.endsWith("right"),p=t.endsWith("center");useEffect(()=>{c(k=>{let x=new Set(k);return e.forEach(M=>{M.lifecycle==="visible"&&x.add(M.id);}),[...x].forEach(M=>{e.find(v=>v.id===M)||x.delete(M);}),x});},[e]);let u=(e[e.length-1]?.height||80)+Math.min(e.length-1,os-1)*ns,R=e.reduce((k,x)=>k+(x.height||80),0)+Math.max(0,e.length-1)*n,z=i?R:u,h=p?{left:"50%",transform:"translateX(-50%)"}:s?{right:r}:{left:r};return jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${r*2}px)`,height:z,...d?{bottom:r}:{top:r},...h,transition:`height ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),"aria-live":"polite","aria-atomic":"false",children:e.map((k,x)=>{let M=e.length-1-x,v=b.has(k.id),F=k.lifecycle==="leaving",y=!v||F,D;if(i&&!y){let S=e.slice(x+1).reduce((E,w)=>E+(w.height||80)+n,0);D=`translateY(${d?-S:S}px)`;}return jsx(Yp,{item:k,depthIndex:M,stackSize:e.length,expanded:i,isBottom:d,appeared:v,toastWidth:o,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:D},k.id)})})},Xx=()=>{let e=useContext(rs);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 Jp={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)"}},Qp={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"}},Qx=({variant:e="info",title:t,children:o,icon:n,closable:r=false,onClose:a,className:l,style:i})=>{let g=A(),b=Jp[g],c=Qp[e],[d,s]=useState(true);if(!d)return null;let p=g==="light",f=p?c.borderLight:c.border,m=p?c.backgroundLight:c.background,u=p?c.iconColorLight:c.iconColor,z=n??{info:jsx(Info,{size:24,color:u}),success:jsx(CheckCircle,{size:24,color:u}),warning:jsx(Warning,{size:24,color:u}),error:jsx(XCircle,{size:24,color:u})}[e],h=()=>{s(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${f}`,borderRadius:"4px",boxSizing:"border-box",...i},className:l,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:b.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:b.descriptionText},children:o})]}),r&&jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:b.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var su={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)"}},iu={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"}},lu={info:jsx(Info,{size:20}),success:jsx(CheckCircle,{size:20}),warning:jsx(Warning,{size:20}),error:jsx(XCircle,{size:20})},cu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,actions:l,dismissKey:i,position:g="top",sticky:b=false,style:c,className:d})=>{let s=A(),p=su[s],f=iu[e],[m,u]=useState(()=>i&&typeof window<"u"?localStorage.getItem(`banner-dismiss-${i}`)!=="1":true);if(!m||!t&&!o)return null;let R=s==="light",z=R?f.accentLight:f.accent,h=b?p.glassBg:R?f.bgLight:f.bg,k=R?f.iconLight:f.icon,x=a??lu[e],M=()=>{u(false),i&&typeof window<"u"&&localStorage.setItem(`banner-dismiss-${i}`,"1"),r?.();};return jsxs("div",{role:"alert",className:d,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:h,borderTop:g==="bottom"?`3px solid ${z}`:"none",borderBottom:g==="top"?`3px solid ${z}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...b?{position:"sticky",[g]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${p.glassBorder}`,borderRight:`1px solid ${p.glassBorder}`}:{},...c},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:k,marginTop:"1px"},children:x}),jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),l&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:l}),n&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:M,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:jsx(X,{size:16})})]})};cu.displayName="Banner";var mu={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)"}},xu={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"}},hu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,action:l,style:i,className:g})=>{let b=A(),c=mu[b],d=xu[e],[s,p]=useState(true);if(!s)return null;let f=b==="light",m=f?d.bgLight:d.bg,u=f?d.accentLight:d.accent,z=a??{info:jsx(Info,{size:20,color:u}),success:jsx(CheckCircle,{size:20,color:u}),warning:jsx(Warning,{size:20,color:u}),error:jsx(XCircle,{size:20,color:u})}[e],h=()=>{p(false),r?.();};return jsxs("div",{role:"status",className:g,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${c.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.bodyText},children:o})]}),l&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:l}),n&&jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};hu.displayName="Notification";var ds={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},ps={default:"#E8612D",success:"#00A205",warning:"#F5A623",danger:"#EF3838"},yu={xs:{height:4,fontSize:"10px"},sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"}},ls="sm-ui-progress-stripes",cs="sm-ui-progress-indeterminate",vu=()=>{if(typeof document>"u"||document.getElementById(ls))return;let e=document.createElement("style");e.id=ls,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Su=()=>{if(typeof document>"u"||document.getElementById(cs))return;let e=document.createElement("style");e.id=cs,e.textContent="@keyframes sm-ui-progress-indeterminate { 0% { left: -40%; width: 40%; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 40%; } }",document.head.appendChild(e);};function us(e,t,o){if(!o||o.length===0)return e;let n=[...o].sort((a,l)=>a.value-l.value),r=e;for(let a of n)t>=a.value&&(r=a.variant);return r}var bh=({value:e,max:t=100,label:o=false,variant:n="default",thresholds:r,size:a="sm",striped:l=false,animated:i=false,indeterminate:g=false,className:b,style:c})=>{let d=A(),s=ds[d],p=yu[a],f=t>0?Math.max(0,Math.min(100,e/t*100)):0,m=us(n,e,r),u=ps[m];l&&i&&vu(),g&&Su();let R=l?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...i?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{},z=typeof o=="string"?o:o?`${Math.round(f)}%`:null;return jsxs("div",{role:"progressbar","aria-valuenow":g?void 0:Math.round(e),"aria-valuemin":0,"aria-valuemax":t,style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",...c},className:b,children:[z&&jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:s.text,userSelect:"none"},children:z})}),jsx("div",{style:{width:"100%",height:p.height,backgroundColor:s.trackBg,borderRadius:p.height/2,overflow:"hidden",position:"relative"},children:g?jsx("div",{style:{position:"absolute",height:"100%",backgroundColor:u,borderRadius:p.height/2,animation:"sm-ui-progress-indeterminate 1.5s ease-in-out infinite",...R}}):jsx("div",{style:{width:`${f}%`,height:"100%",backgroundColor:u,borderRadius:p.height/2,transition:"width 0.3s ease, background-color 0.3s ease",...R}})})]})},mh=({value:e,max:t=100,variant:o="default",thresholds:n,size:r=48,thickness:a=4,showValue:l=false,valueLabel:i,label:g,className:b,style:c})=>{let d=A(),s=ds[d],p=t>0?Math.max(0,Math.min(100,e/t*100)):0,f=us(o,e,n),m=ps[f],u=(r-a)/2,R=2*Math.PI*u,z=R-p/100*R,h=i?i(e,t):l?`${Math.round(p)}%`:null;return jsxs("div",{role:"progressbar","aria-valuenow":Math.round(e),"aria-valuemin":0,"aria-valuemax":t,"aria-label":g,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...c},className:b,children:[jsxs("div",{style:{position:"relative",width:r,height:r},children:[jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:r/2,cy:r/2,r:u,fill:"none",stroke:s.trackBg,strokeWidth:a}),jsx("circle",{cx:r/2,cy:r/2,r:u,fill:"none",stroke:m,strokeWidth:a,strokeLinecap:"round",strokeDasharray:R,strokeDashoffset:z,style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]}),h!=null&&jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(10,r*.22)}px`,color:s.text,userSelect:"none"},children:h})]}),g&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},children:g})]})};var wu={sm:16,md:24,lg:40},Sh=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:n,style:r})=>{let[a,l]=useState(0),i=useRef(void 0),g=useRef(void 0);useEffect(()=>{let d=s=>{g.current===void 0&&(g.current=s),l((s-g.current)/800*360%360),i.current=requestAnimationFrame(d);};return i.current=requestAnimationFrame(d),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let b=typeof e=="number"?e:wu[e]??24,c=t??"currentColor";return jsx("span",{role:"status","aria-label":o,className:n,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...r},children:jsxs("svg",{width:b,height:b,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:c,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:c,strokeWidth:"2",strokeLinecap:"round"})]})})};var Tu={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"}},Eu=({open:e,onConfirm:t,onCancel:o,title:n,description:r,confirmLabel:a="Potvrdit",cancelLabel:l="Zru\u0161it",variant:i="default",loading:g=false,style:b,className:c})=>{let d=A(),s=Tu[d],[p,f]=useState(false),[m,u]=useState(false),R=i==="danger",z=R?m?s.dangerHover:s.dangerBg:m?s.confirmHover:s.confirmBg,h=R?s.dangerText:s.confirmText;return jsx(Yn,{open:e,onClose:o,title:n,size:"sm",className:c,style:b,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:p?s.cancelHover:s.cancelBg,border:`1px solid ${s.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:l}),jsx("button",{type:"button",onClick:t,disabled:g,onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:z,border:"none",borderRadius:"6px",cursor:g?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:h,lineHeight:"normal",opacity:g?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:g?"Zpracov\xE1v\xE1m...":a})]}),children:r&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.descriptionText},children:r})})};Eu.displayName="ConfirmDialog";var Pu={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"}},Au={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"}},Hu=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}},Lu=({text:e,children:t,size:o="md",variant:n="icon",label:r="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:l,style:i,className:g})=>{let b=A(),c=Pu[b],d=Au[o],[s,p]=useState(false),[f,m]=useState(false),u=useRef(null),R=useCallback(async()=>{await Hu(e)&&(p(true),l?.(),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p(false),u.current=null;},2e3));},[e,l]),z=s?c.successColor:f?c.iconHover:c.iconColor,h=s?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":s?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:z,...i},children:t}):n==="icon"?jsx("button",{type:"button","aria-label":s?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:z,...i},children:jsx(h,{size:d.iconSize,color:z})}):jsxs("button",{type:"button","aria-label":s?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.buttonPadding,background:f?c.buttonHover:c.buttonBg,border:`1px solid ${c.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,color:s?c.successColor:c.buttonText,lineHeight:"normal",...i},children:[jsx(h,{size:d.iconSize,color:s?c.successColor:c.buttonText}),s?a:r]})};Lu.displayName="CopyButton";var $u={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"}},Wh=({orientation:e="horizontal",label:t,className:o,style:n})=>{let r=A(),a=$u[r];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...n}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...n},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),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}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...n}})};var Ou={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Zu={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Yh=({direction:e="column",gap:t=8,align:o="stretch",justify:n="start",wrap:r=false,fullWidth:a=false,children:l,className:i,style:g})=>jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Ou[o],justifyContent:Zu[n],flexWrap:r?"wrap":"nowrap",width:a?"100%":void 0,...g},children:l});var Vu={sm:640,md:768,lg:1024,xl:1280},Xh=({maxWidth:e="lg",padding:t=16,centered:o=true,children:n,className:r,style:a})=>{let l=typeof e=="number"?e:Vu[e],i=typeof t=="number"?`${t}px`:t;return jsx("div",{className:r,style:{maxWidth:`${l}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:n})};var ju={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},xs="smDragListPulse",Ku=`@keyframes ${xs}{0%,100%{opacity:1}50%{opacity:0.5}}`;function ur(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let n=ur(o.children,t);if(n)return n}}return null}function dr(e,t,o){let n=ur(e,t);if(!n||!n.children)return false;for(let r of n.children)if(r.id===o||dr([r],r.id,o))return true;return false}function hs(e,t){let o=null;return [e.reduce((r,a)=>{if(a.id===t)return o=a,r;if(a.children){let[l,i]=hs(a.children,t);i&&(o=i),r.push({...a,children:l.length>0?l:void 0});}else r.push(a);return r},[]),o]}function pr(e,t,o,n){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],n],expanded:true}:a.children?{...a,children:pr(a.children,t,o,n)}:a);let r=[];for(let a of e)a.id===t?o==="before"?(r.push(n),r.push(a)):(r.push(a),r.push(n)):a.children?r.push({...a,children:pr(a.children,t,o,n)}):r.push(a);return r}function ys(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:ys(o.children,t)}:o)}function vs(e,t,o){return e.map(n=>n.id===t?{...n,expanded:o}:n.children?{...n,children:vs(n.children,t,o)}:n)}var ms=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${xs} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),Ss=({item:e,depth:t,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:i,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:s,dragMode:p,tokens:f})=>{let[m,u]=useState(false),[R,z]=useState(false),[h,k]=useState(false),x=useRef(false),M=useRef(null),v=e.children&&e.children.length>0,F=e.expanded??false,y=r===e.id,D=r!==null,B=p==="handle",S=a?.targetId===e.id,P=S&&a?.position==="before",E=S&&a?.position==="after",w=S&&a?.position==="inside",T=y?"transparent":w?f.nestHighlight:R&&!D?f.itemHoverBg:f.itemBg,L=w?f.nestBorder:y?"transparent":f.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[P&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ms,{color:f.dropIndicator})}),jsxs("div",{ref:M,draggable:true,onDragStart:$=>{if(B&&!x.current){$.preventDefault();return}if(x.current=false,$.dataTransfer.effectAllowed="move",$.dataTransfer.setData("text/plain",e.id),M.current){let C=M.current.cloneNode(true);C.style.width=`${M.current.offsetWidth}px`,C.style.opacity="0.85",C.style.transform="rotate(1.5deg) scale(1.02)",C.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",C.style.position="fixed",C.style.top="-1000px",document.body.appendChild(C),$.dataTransfer.setDragImage(C,$.nativeEvent.offsetX,$.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(C));}l(e.id);},onDragOver:$=>{$.preventDefault(),$.stopPropagation(),i($,e.id,t);},onDragLeave:$=>{let C=$.relatedTarget;M.current&&C&&M.current.contains(C)||($.stopPropagation(),g($,M.current),z(false));},onDrop:$=>{$.preventDefault(),$.stopPropagation(),b($);},onDragEnd:c,onMouseEnter:()=>z(true),onMouseLeave:()=>z(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:y?"transparent":f.text,cursor:D?"grabbing":B?"default":"grab",opacity:y?.35:1,backgroundColor:T,borderWidth:"1px",borderColor:L,borderStyle:y?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:w?`inset 0 0 0 1px ${f.nestBorder}`:R&&!D?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:w?"scale(1.01)":"scale(1)"},children:[!s&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:D?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:y?"hidden":"visible"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onMouseDown:()=>{x.current=true;},children:jsx(DotsSixVertical,{size:14,color:m?f.gripHover:f.gripColor})}),w&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:f.dropIndicator})}),v?jsx("button",{type:"button",onClick:$=>{$.stopPropagation(),d(e.id);},onMouseEnter:()=>k(true),onMouseLeave:()=>k(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:y?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:h?f.chevronHover:f.chevron,style:{transition:"transform 0.2s ease",transform:F?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:y?"hidden":"visible"},children:s?s(e,{handleProps:{onMouseDown:()=>{x.current=true;},style:{cursor:D?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:y,depth:t,isExpanded:F,toggleExpand:()=>d(e.id),hasChildren:!!v}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),E&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(ms,{color:f.dropIndicator})}),v&&F&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${f.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map($=>jsx(Ss,{item:$,depth:t+1,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:i,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:s,dragMode:p,tokens:f},$.id))})]})},Ju=({items:e,onReorder:t,renderItem:o,allowNesting:n=false,maxDepth:r=3,dragMode:a="full",className:l,style:i})=>{let g=A(),b=ju[g],[c,d]=useState(null),[s,p]=useState(null),f=useRef(null),m=useRef(void 0),u=useRef(void 0),R=useRef(null),z=useCallback(F=>{d(F);},[]),h=useCallback((F,y,D)=>{if(!c||c===y||dr(e,c,y))return;m.current&&(clearTimeout(m.current),m.current=void 0);let B=F.currentTarget.getBoundingClientRect(),S=F.clientY-B.top,P=B.height,E;n&&D<r?S<P*.25?E="before":S>P*.75?E="after":E="inside":S<P*.35?E="before":S>P*.65?E="after":R.current?.targetId===y?E=R.current.position:E=S<P/2?"before":"after";let w={targetId:y,position:E},T=ur(e,y);E==="inside"&&T?.children&&T.children.length>0&&!T.expanded?(R.current?.targetId!==y||R.current?.position!=="inside")&&(u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{t(vs(e,y,true));},600)):u.current&&(clearTimeout(u.current),u.current=void 0),R.current=w,p(w);},[c,e,n,r,t]),k=useCallback((F,y)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{p(null),R.current=null;},60),u.current&&(clearTimeout(u.current),u.current=void 0);},[]),x=useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),u.current&&(clearTimeout(u.current),u.current=void 0),!c||!s)return;let{targetId:F,position:y}=s;if(c===F||dr(e,c,F))return;let[D,B]=hs(e,c);if(!B)return;let S=pr(D,F,y,B);t(S),d(null),p(null),R.current=null;},[c,s,e,t]),M=useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),u.current&&(clearTimeout(u.current),u.current=void 0),d(null),p(null),R.current=null;},[]),v=useCallback(F=>{t(ys(e,F));},[e,t]);return useEffect(()=>()=>{m.current&&clearTimeout(m.current),u.current&&clearTimeout(u.current);},[]),jsxs("div",{ref:f,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Ku}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.textSecondary,backgroundColor:b.itemBg,borderRadius:"10px",border:`1px solid ${b.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(F=>jsx(Ss,{item:F,depth:0,allowNesting:n,maxDepth:r,draggedId:c,dropState:s,onDragStart:z,onDragOver:h,onDragLeave:k,onDrop:x,onDragEnd:M,onToggleExpand:v,renderItem:o,dragMode:a,tokens:b},F.id))]})};Ju.displayName="DragList";var of={dark:{insertionLine:"#FC4F00",dragOverlay:"rgba(24,24,24,0.95)",dragBorder:"rgba(255,255,255,0.12)",dragShadow:"0 8px 30px rgba(0,0,0,0.5)",handleColor:"rgba(255,255,255,0.3)",handleHover:"rgba(255,255,255,0.6)"},light:{insertionLine:"#FC4F00",dragOverlay:"rgba(255,255,255,0.95)",dragBorder:"rgba(0,0,0,0.1)",dragShadow:"0 8px 30px rgba(0,0,0,0.15)",handleColor:"rgba(0,0,0,0.2)",handleHover:"rgba(0,0,0,0.5)"}};function nf({items:e,keyExtractor:t,renderItem:o,onReorder:n,direction:r="vertical",handle:a="whole",disabled:l=false,gap:i,style:g,className:b}){let c=A(),d=of[c],s=r==="vertical",[p,f]=useState(null),[m,u]=useState(null),[R,z]=useState(null),h=useRef(new Map),k=useRef({x:0,y:0}),x=useCallback((v,F)=>{if(l)return;F.preventDefault();let y="touches"in F?{x:F.touches[0].clientX,y:F.touches[0].clientY}:{x:F.clientX,y:F.clientY};k.current=y,f(v),u(v);},[l]);useEffect(()=>{if(p===null)return;let v=y=>{let D="touches"in y?{x:y.touches[0].clientX,y:y.touches[0].clientY}:{x:y.clientX,y:y.clientY},B=p,S=1/0;h.current.forEach((P,E)=>{let w=P.getBoundingClientRect(),T=s?w.top+w.height/2:w.left+w.width/2,L=s?D.y:D.x,$=Math.abs(L-T);$<S&&(S=$,B=E);}),u(B);},F=()=>{if(p!==null&&m!==null&&p!==m){let y=[...e],[D]=y.splice(p,1);y.splice(m,0,D),n(y);}f(null),u(null);};return document.addEventListener("mousemove",v),document.addEventListener("mouseup",F),document.addEventListener("touchmove",v,{passive:false}),document.addEventListener("touchend",F),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",F),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",F);}},[p,m,e,n,s]);let M=useCallback((v,F)=>{if(!l){if(F.key===" "||F.key==="Enter")if(F.preventDefault(),R===null)z(v);else {if(R!==v){let y=[...e],[D]=y.splice(R,1);y.splice(v,0,D),n(y);}z(null);}else if(R!==null){let y=s?F.key==="ArrowDown"?1:F.key==="ArrowUp"?-1:0:F.key==="ArrowRight"?1:F.key==="ArrowLeft"?-1:0;if(y!==0){F.preventDefault();let D=Math.max(0,Math.min(e.length-1,R+y));if(D!==R){let B=[...e],[S]=B.splice(R,1);B.splice(D,0,S),n(B),z(D);}}F.key==="Escape"&&z(null);}}},[l,R,e,n,s]);return jsx("div",{className:b,style:{display:"flex",flexDirection:s?"column":"row",gap:i??0,position:"relative",...g},children:e.map((v,F)=>{let y=t(v),D=p===F,B=R===F,S=p!==null&&m===F&&p>F,P=p!==null&&m===F&&p<F,E=a==="explicit"?jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:l?"default":"grab",color:d.handleColor,transition:"color 0.12s ease",touchAction:"none"},onMouseDown:T=>x(F,T),onTouchStart:T=>x(F,T),onMouseEnter:T=>{T.currentTarget.style.color=d.handleHover;},onMouseLeave:T=>{T.currentTarget.style.color=d.handleColor;},children:jsx(DotsSixVertical,{size:16})}):null,w=a==="whole"?{onMouseDown:T=>x(F,T),onTouchStart:T=>x(F,T),style:{cursor:l?"default":"grab",touchAction:"none"}}:{};return jsxs("div",{ref:T=>{T?h.current.set(F,T):h.current.delete(F);},tabIndex:l?-1:0,role:"listitem","aria-grabbed":D||B,onKeyDown:T=>M(F,T),...a==="whole"?w:{},style:{position:"relative",opacity:D?.4:1,outline:B?`2px solid ${d.insertionLine}`:"none",outlineOffset:"2px",borderRadius:"4px",transition:"opacity 0.15s ease",...a==="whole"?w.style:{}},children:[S&&jsx("div",{style:{position:"absolute",[s?"top":"left"]:-1,[s?"left":"top"]:0,[s?"right":"bottom"]:0,[s?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}}),o(v,E),P&&jsx("div",{style:{position:"absolute",[s?"bottom":"right"]:-1,[s?"left":"top"]:0,[s?"right":"bottom"]:0,[s?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}})]},y)})})}nf.displayName="SortableList";var af={dark:{dividerBg:"rgba(255,255,255,0.06)",dividerHover:"rgba(255,255,255,0.15)",dividerActive:"#FC4F00"},light:{dividerBg:"rgba(0,0,0,0.06)",dividerHover:"rgba(0,0,0,0.12)",dividerActive:"#FC4F00"}},sf=({orientation:e="horizontal",children:t,defaultSizes:o,minSizes:n,maxSizes:r,onResize:a,persistKey:l,dividerSize:i=4,disabled:g=false,style:b,className:c})=>{let d=A(),s=af[d],p=useRef(null),f=Fn.Children.count(t),m=e==="horizontal",u=()=>{if(l&&typeof window<"u"){let B=localStorage.getItem(`splitter-${l}`);if(B)try{let S=JSON.parse(B);if(Array.isArray(S)&&S.length===f)return S}catch{}}return o&&o.length===f?o:Array.from({length:f},()=>100/f)},[R,z]=useState(u),[h,k]=useState(null),[x,M]=useState(null),v=useRef(null);useEffect(()=>{l&&typeof window<"u"&&h===null&&localStorage.setItem(`splitter-${l}`,JSON.stringify(R));},[R,l,h]);let F=useCallback(()=>p.current?m?p.current.clientWidth:p.current.clientHeight:0,[m]),y=useCallback((B,S)=>{g||(k(B),v.current={pos:S,sizes:[...R]});},[g,R]);useEffect(()=>{if(h===null)return;let B=m?"col-resize":"row-resize";document.body.style.cursor=B,document.body.style.userSelect="none";let S=E=>{if(!v.current||h===null)return;let w="touches"in E?E.touches[0][m?"clientX":"clientY"]:E[m?"clientX":"clientY"],T=F();if(!T)return;let $=(w-v.current.pos)/T*100,C=[...v.current.sizes],I=h,H=h+1;C[I]=v.current.sizes[I]+$,C[H]=v.current.sizes[H]-$;let O=T/100;if(n){let V=(n[I]??0)/O,G=(n[H]??0)/O;C[I]<V&&(C[H]+=C[I]-V,C[I]=V),C[H]<G&&(C[I]+=C[H]-G,C[H]=G);}if(r){let V=r[I]?r[I]/O:100,G=r[H]?r[H]/O:100;C[I]>V&&(C[H]+=C[I]-V,C[I]=V),C[H]>G&&(C[I]+=C[H]-G,C[H]=G);}C[I]<0||C[H]<0||(z(C),a&&a(C.map(V=>Math.round(V*O))));},P=()=>{k(null),v.current=null,document.body.style.cursor="",document.body.style.userSelect="";};return document.addEventListener("mousemove",S),document.addEventListener("mouseup",P),document.addEventListener("touchmove",S,{passive:false}),document.addEventListener("touchend",P),()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",P),document.body.style.cursor="",document.body.style.userSelect="";}},[h,m,F,n,r,a]);let D=Fn.Children.toArray(t);return jsx("div",{ref:p,className:c,style:{display:"flex",flexDirection:m?"row":"column",width:"100%",height:"100%",overflow:"hidden",...b},children:D.map((B,S)=>jsxs(Fn.Fragment,{children:[jsx("div",{style:{flex:`0 0 calc(${R[S]??100/f}% - ${(f-1)*i/f}px)`,overflow:"auto",minWidth:0,minHeight:0},children:B}),S<D.length-1&&jsx("div",{style:{flex:`0 0 ${i}px`,backgroundColor:h===S?s.dividerActive:x===S?s.dividerHover:s.dividerBg,cursor:g?"default":m?"col-resize":"row-resize",transition:h===S?"none":"background-color 0.15s ease",touchAction:"none"},onMouseDown:P=>y(S,m?P.clientX:P.clientY),onTouchStart:P=>y(S,m?P.touches[0].clientX:P.touches[0].clientY),onMouseEnter:()=>!g&&M(S),onMouseLeave:()=>M(null)})]},S))})};sf.displayName="Splitter";export{yc as Accordion,hc as AccordionItem,Qx as Alert,Sp as AppSidebar,Eb as Avatar,Jc as AvatarStack,Nb as Badge,cu as Banner,Od as Breadcrumb,Ms as Button,ld as Calendar,fc as Card,Xr as Checkbox,_r as CheckboxGroup,Sl as ColorPicker,Ri as Combobox,yp as CommandMenu,Eu as ConfirmDialog,Xh as Container,Lu as CopyButton,ac as DataGrid,fd as DataList,Vr as DatePicker,Ai as DatePickerGroup,Wh as Divider,Ju as DragList,Md as Drawer,ip as DropdownMenu,Wc as EmptyState,aa as FileUpload,_s as FormField,rp as FormWizard,Ys as IconButton,Gl as ImageCropper,Fr as Input,Pf as InputGroup,cx as Link,dc as MobileDataCard,Yn as Modal,zp as Navbar,hu as Notification,di as NumberInput,Al as OTPInput,_d as Pagination,Vl as PhoneInput,Fc as Popover,bh as ProgressBar,mh as ProgressCircle,cn as Radio,Gr as RadioGroup,El as Rating,fl as SegmentedControl,Ar as Select,gi as SelectGroup,Nd as Sheet,Ep as SidebarItem,ye as Skeleton,na as Slider,nf as SortableList,Sh as Spinner,sf as Splitter,gp as Spotlight,Yh as Stack,Xc as Stat,wd as StatusBadge,Jn as Stepper,Kr as Switch,kc as Tab,Cc as TabPanel,oc as Table,wc as Tabs,Lb as Tag,$b as TagItem,Qr as Textarea,pd as Timeline,ts as Toast,Ux as ToasterProvider,xt as Tooltip,hd as Tree,A as useTheme,Xx as useToast};//# sourceMappingURL=index.mjs.map
19
19
  //# sourceMappingURL=index.mjs.map