@smworks-cz/ui-kit 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +829 -49
- package/dist/index.d.ts +829 -49
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import $t,{useState,useId,useRef,useCallback,useEffect,createContext,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,XCircle,CheckCircle,Info,Check,CaretDown,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,Warning,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var F=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),n=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};o.addEventListener("change",n);let a=new MutationObserver(l=>{l.forEach(u=>{u.attributeName==="data-theme"&&t(r());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",n),a.disconnect();}},[]),e};var le={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},jo={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px"}},Jo=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=l=>{n.current===void 0&&(n.current=l),r((l-n.current)/800*360%360),o.current=requestAnimationFrame(a);};return o.current=requestAnimationFrame(a),()=>{o.current!==void 0&&cancelAnimationFrame(o.current);}},[]),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"})]})},Qo=$t.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:l,style:u,className:d,...c},p)=>{let[g,i]=useState(false),s=F()==="dark",b=typeof c.href=="string",m=n||(b?false:!!c.disabled),h=l!=null&&l!=="",S=r!=null,z=(S||n)&&!h,{paddingText:f,paddingSquare:w,fontSize:E,gap:v}=jo[t],x={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:h&&(S||n)?v:void 0,padding:z?w:f,borderRadius:"8px",cursor:m?"not-allowed":"pointer",opacity:m?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E,lineHeight:"normal",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:m?"none":void 0},C=(()=>{switch(e){case "primary":return {backgroundColor:g?le.primaryHover:le.primary,color:le.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:"1px solid transparent"};case "outline":return {backgroundColor:g?s?le.secondaryHoverDark:le.secondaryHoverLight:"transparent",color:s?le.white:le.black,border:`1px solid ${g?s?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":s?le.borderDark:le.borderLight}`}}})(),T=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(Jo,{size:parseInt(E)-1}):r}),k=n||S,P=o==="right"?jsxs(Fragment,{children:[h&&jsx("span",{children:l}),k&&T]}):jsxs(Fragment,{children:[k&&T,h&&jsx("span",{children:l})]}),R={style:{...x,...C,...u},className:d,onMouseEnter:W=>{i(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{i(false),c.onMouseLeave?.(W);}};if(b){let{href:W,target:M,rel:Y,..._}=c;return jsx("a",{ref:p,href:W,target:M,rel:Y??(M==="_blank"?"noopener noreferrer":void 0),"aria-disabled":m||void 0,..._,...R,children:P})}let{disabled:I,type:B="button",...N}=c;return jsx("button",{ref:p,type:B,disabled:m,"aria-busy":n||void 0,...N,...R,children:P})});Qo.displayName="Button";var an=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},sn={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Sr=$t.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:l=false,passwordToggle:u,size:d="md",fullWidth:c=false,style:p,className:g,inputStyle:i,disabled:y,required:s,value:b,onChange:m,onFocus:h,onBlur:S,type:z,...f},w)=>{let E=F(),v=vr[E],x=useId(),C=f.id??x,[T,k]=useState(false),[P,R]=useState(false),I=z==="password",B=u??I,N=I&&P?"text":z,W=y||a,M=!!o,Y=typeof o=="string"?o:void 0,_=b!=null&&b!=="",X$1=l&&_&&!W&&!B,J=sn[d],te=()=>{if(!m)return;m({target:{value:""},currentTarget:{value:""}});},ie=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,oe=B&&!W?jsx("span",{role:"button",tabIndex:-1,"aria-label":P?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>R(O=>!O),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:P?jsx(EyeSlash,{color:v.placeholder,size:J.iconSize}):jsx(Eye,{color:v.placeholder,size:J.iconSize})}):null,U=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsx(an,{size:J.iconSize,color:v.placeholder})}):oe||(X$1?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:te,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsx(X,{size:J.iconSize-2,color:v.placeholder})}):r==="right"&&ie?ie:null),ce=r==="left"?ie:null,se={display:"flex",alignItems:"center",gap:J.gap,backgroundColor:W?v.backgroundDisabled:v.background,border:`1px solid ${M?v.borderError:T?v.borderFocus:v.border}`,borderRadius:"8px",padding:J.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},Se={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:J.fontSize,lineHeight:"normal",color:v.text,cursor:W?"not-allowed":"text",...i},ye={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},V={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...p},className:g,children:[e&&jsxs("label",{htmlFor:C,style:ye,children:[e,s&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{style:se,children:[ce,jsx("input",{ref:w,id:C,type:N,disabled:y,required:s,readOnly:a||f.readOnly,value:b,onChange:m,style:Se,onFocus:O=>{k(true),h?.(O);},onBlur:O=>{k(false),S?.(O);},...f}),U]}),Y&&jsx("span",{style:{...V,color:v.borderError},children:Y}),!Y&&n&&jsx("span",{style:{...V,color:v.helperText},children:n})]})});Sr.displayName="Input";var Rs=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l,d={display:"flex",flexDirection:"column",gap:"8px",...o},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:vr[a].label,userSelect:"none"};return jsxs("div",{style:d,className:n,children:[jsx("label",{htmlFor:u,style:c,children:e}),r??jsx(Sr,{id:u})]})};var pn=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Rr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Dt=180,wr=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:l=false,loading:u=false,error:d,placeholder:c="Vyberte\u2026",maxDropdownHeight:p=240,style:g,className:i})=>{let y=F(),s=Rr[y],b=useId(),m=useRef(null),h=useRef(null),S=useRef(null),z=useRef(null),[f,w]=useState(false),[E,v]=useState(false),[x,C]=useState("idle"),[T,k]=useState(""),[P,R]=useState(-1),[I,B]=useState({top:0,left:0,width:0,openAbove:false}),N=l||u,W=!!d,M=typeof d=="string"?d:void 0,Y=useCallback(()=>{w(true),v(true),C("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>C("open"));});},[]),_=useCallback(()=>{w(false),C("closing"),k("");let A=setTimeout(()=>{v(false),C("idle");},Dt);return ()=>clearTimeout(A)},[]),X$1=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],J=A=>X$1.includes(A),te=T?e.filter(A=>(A.label??A.value).toLowerCase().includes(T.toLowerCase())):e,ie=useCallback(()=>{if(!m.current)return;let A=m.current.getBoundingClientRect(),q=h.current?.offsetHeight??p+60,Q=window.innerHeight-A.bottom-6,de=A.top-6,pe=Q<q&&de>Q;B({top:pe?A.top-6:A.bottom+6,left:A.left,width:A.width,openAbove:pe});},[p]);useEffect(()=>{if(E)return ie(),window.addEventListener("scroll",ie,true),window.addEventListener("resize",ie),()=>{window.removeEventListener("scroll",ie,true),window.removeEventListener("resize",ie);}},[E,ie]);let oe=useCallback(A=>{if(r)if(o){let q=J(A)?X$1.filter(Q=>Q!==A):[...X$1,A];r(q);}else r(A),_();},[o,r,X$1,_]),U=useCallback(A=>{A.stopPropagation(),r&&(r(o?[]:null),k(""));},[o,r]),ce=()=>{N||(f?_():Y(),R(-1));},se=A=>{if(!N)switch(A.key){case "ArrowDown":A.preventDefault(),f?R(q=>Math.min(q+1,te.length-1)):(Y(),R(0));break;case "ArrowUp":A.preventDefault(),R(q=>Math.max(q-1,0));break;case "Enter":case " ":A.preventDefault(),f&&P>=0&&te[P]&&!te[P].disabled?oe(te[P].value):f||(Y(),R(0));break;case "Escape":_();break;case "Tab":_();break}};useEffect(()=>{P>=0&&z.current&&z.current.children[P]?.scrollIntoView({block:"nearest"});},[P]),useEffect(()=>{if(!f)return;let A=q=>{let Q=q.target,de=m.current?.contains(Q),pe=h.current?.contains(Q);!de&&!pe&&_();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[f,_]),useEffect(()=>{f&&n&&S.current&&S.current.focus();},[f,n]);let Se=A=>e.find(Q=>Q.value===A)?.label??A,ye=a&&X$1.length>0&&!N,V=()=>{let A=I.openAbove,q=A?"translateY(8px)":"translateY(-8px)",Q=A?"translateY(6px)":"translateY(-6px)",de={transition:`opacity ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Dt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...de,opacity:0,transform:`${q} scale(0.97)`}:x==="open"?{...de,opacity:1,transform:"translateY(0) scale(1)"}:{...de,opacity:0,transform:`${Q} scale(0.98)`,pointerEvents:"none"}},O={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?s.backgroundDisabled:s.background,border:`1px solid ${W?s.borderError:f?s.borderFocus:s.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",minHeight:"40px",userSelect:"none",outline:"none"},Ye=E?createPortal(jsxs("div",{ref:h,style:{position:"fixed",...I.openAbove?{bottom:window.innerHeight-I.top,left:I.left}:{top:I.top,left:I.left},width:I.width,backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:I.openAbove?"bottom center":"top center",...V()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${s.divider}`},children:jsx("input",{ref:S,type:"text",value:T,onChange:A=>{k(A.target.value),R(0);},onKeyDown:se,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:z,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${b}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
1
|
+
import zo,{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,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,CaretUpDownIcon,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,CaretLeftIcon,CaretRightIcon,XIcon,CheckIcon,MagnifyingGlassIcon,Warning,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var I=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let r=()=>{let i=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return i==="dark"||i==="light"?i:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(r());let o=window.matchMedia("(prefers-color-scheme: dark)"),n=i=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(i.matches?"dark":"light");};o.addEventListener("change",n);let a=new MutationObserver(i=>{i.forEach(l=>{l.attributeName==="data-theme"&&t(r());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{o.removeEventListener("change",n),a.disconnect();}},[]),e};var Se={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},fa={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px"}},ua=({size:e=14})=>{let[t,r]=useState(0),o=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=i=>{n.current===void 0&&(n.current=i),r((i-n.current)/800*360%360),o.current=requestAnimationFrame(a);};return o.current=requestAnimationFrame(a),()=>{o.current!==void 0&&cancelAnimationFrame(o.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"})]})},ga=zo.forwardRef(({variant:e="primary",size:t="md",icon:r,iconPosition:o="left",loading:n=false,fullWidth:a=false,children:i,style:l,className:p,...c},f)=>{let[u,s]=useState(false),d=I()==="dark",x=typeof c.href=="string",g=n||(x?false:!!c.disabled),S=i!=null&&i!=="",R=r!=null,y=(R||n)&&!S,{paddingText:b,paddingSquare:w,fontSize:D,gap:T}=fa[t],m={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:S&&(R||n)?T:void 0,padding:y?w:b,borderRadius:"8px",cursor:g?"not-allowed":"pointer",opacity:g?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D,lineHeight:"normal",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:g?"none":void 0},C=(()=>{switch(e){case "primary":return {backgroundColor:u?Se.primaryHover:Se.primary,color:Se.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:u?d?Se.secondaryHoverDark:Se.secondaryHoverLight:"transparent",color:d?Se.white:Se.black,border:"1px solid transparent"};case "outline":return {backgroundColor:u?d?Se.secondaryHoverDark:Se.secondaryHoverLight:"transparent",color:d?Se.white:Se.black,border:`1px solid ${u?d?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":d?Se.borderDark:Se.borderLight}`}}})(),v=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(ua,{size:parseInt(D)-1}):r}),k=n||R,E=o==="right"?jsxs(Fragment,{children:[S&&jsx("span",{children:i}),k&&v]}):jsxs(Fragment,{children:[k&&v,S&&jsx("span",{children:i})]}),z={style:{...m,...C,...l},className:p,onMouseEnter:H=>{s(true),c.onMouseEnter?.(H);},onMouseLeave:H=>{s(false),c.onMouseLeave?.(H);}};if(x){let{href:H,target:A,rel:$,...L}=c;return jsx("a",{ref:f,href:H,target:A,rel:$??(A==="_blank"?"noopener noreferrer":void 0),"aria-disabled":g||void 0,...L,...z,children:E})}let{disabled:F,type:B="button",...M}=c;return jsx("button",{ref:f,type:B,disabled:g,"aria-busy":n||void 0,...M,...z,children:E})});ga.displayName="Button";var va=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Sr={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"}},Sa={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"}},kr=zo.forwardRef(({label:e,icon:t,iconPosition:r="left",error:o,helperText:n,loading:a=false,clearable:i=false,passwordToggle:l,size:p="md",fullWidth:c=false,style:f,className:u,inputStyle:s,disabled:h,required:d,value:x,onChange:g,onFocus:S,onBlur:R,type:y,...b},w)=>{let D=I(),T=Sr[D],m=useId(),C=b.id??m,[v,k]=useState(false),[E,z]=useState(false),F=y==="password",B=l??F,M=F&&E?"text":y,H=h||a,A=!!o,$=typeof o=="string"?o:void 0,L=x!=null&&x!=="",Z=i&&L&&!H&&!B,Y=Sa[p],q=()=>{if(!g)return;g({target:{value:""},currentTarget:{value:""}});},re=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:T.placeholder},children:t}):null,j=B&&!H?jsx("span",{role:"button",tabIndex:-1,"aria-label":E?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>z(G=>!G),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:E?jsx(EyeSlash,{color:T.placeholder,size:Y.iconSize}):jsx(Eye,{color:T.placeholder,size:Y.iconSize})}):null,J=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:T.placeholder},children:jsx(va,{size:Y.iconSize,color:T.placeholder})}):j||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:q,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:T.placeholder,padding:"2px"},children:jsx(X,{size:Y.iconSize-2,color:T.placeholder})}):r==="right"&&re?re:null),Q=r==="left"?re:null,V={display:"flex",alignItems:"center",gap:Y.gap,backgroundColor:H?T.backgroundDisabled:T.background,border:`1px solid ${A?T.borderError:v?T.borderFocus:T.border}`,borderRadius:"8px",padding:Y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:H?.6:1,cursor:H?"not-allowed":"text"},me={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:T.text,cursor:H?"not-allowed":"text",...s},pe={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},K={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...f},className:u,children:[e&&jsxs("label",{htmlFor:C,style:pe,children:[e,d&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{style:V,children:[Q,jsx("input",{ref:w,id:C,type:M,disabled:h,required:d,readOnly:a||b.readOnly,value:x,onChange:g,style:me,onFocus:G=>{k(true),S?.(G);},onBlur:G=>{k(false),R?.(G);},...b}),J]}),$&&jsx("span",{style:{...K,color:T.borderError},children:$}),!$&&n&&jsx("span",{style:{...K,color:T.helperText},children:n})]})});kr.displayName="Input";var Ad=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i,p={display:"flex",flexDirection:"column",gap:"8px",...o},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Sr[a].label,userSelect:"none"};return jsxs("div",{style:p,className:n,children:[jsx("label",{htmlFor:l,style:c,children:e}),r??jsx(kr,{id:l})]})};var Da={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"}},za={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"32px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"40px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"48px",buttonPadding:"10px"}},Ia=zo.forwardRef(({value:e,onChange:t,min:r,max:o,step:n=1,label:a,error:i,disabled:l=false,size:p="md",variant:c="default",prefix:f,suffix:u,style:s,className:h},d)=>{let x=I(),g=Da[x],R=useId(),y=za[p],[b,w]=useState(false),[D,T]=useState(null),m=!!i,C=typeof i=="string"?i:void 0,v=useCallback(Q=>{let V=Q;return r!==void 0&&V<r&&(V=r),o!==void 0&&V>o&&(V=o),V},[r,o]),k=useCallback(()=>{t(v(e+n));},[e,n,t,v]),E=useCallback(()=>{t(v(e-n));},[e,n,t,v]),z=useRef(null),F=useRef(null),B=useCallback(Q=>{l||(Q(),F.current=setTimeout(()=>{z.current=setInterval(Q,80);},400));},[l]),M=useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),z.current&&(clearInterval(z.current),z.current=null);},[]);useEffect(()=>()=>M(),[M]);let H=Q=>{let V=Q.target.value;if(V===""||V==="-")return;let me=parseFloat(V);isNaN(me)||t(v(me));},A=()=>{w(false),t(v(e));},$=r===void 0||e>r,L=o===void 0||e<o,Z={display:"flex",alignItems:"center",backgroundColor:l?g.backgroundDisabled:g.background,border:`1px solid ${m?g.borderError:b?g.borderFocus:g.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:l?.6:1,overflow:"hidden",height:y.height},Y=(Q,V)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:D===Q&&V&&!l?g.buttonHoverBg:g.buttonBg,color:V&&!l?g.buttonText:g.placeholder,cursor:l||!V?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),q={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:g.text,textAlign:"center",cursor:l?"not-allowed":"text",MozAppearance:"textfield"},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:g.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},J=(Q,V)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:D===Q&&V&&!l?g.buttonHoverBg:"transparent",color:V&&!l?g.buttonText:g.placeholder,cursor:l||!V?"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",...s},className:h,children:[a&&jsx("label",{htmlFor:R,style:re,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[f&&jsx("span",{style:j,children:f}),jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>w(true),onBlur:A,disabled:l,style:{...q,textAlign:"left"}}),u&&jsx("span",{style:j,children:u})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${m?g.borderError:b?g.borderFocus:g.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:J("up",L),onMouseDown:()=>B(k),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!$,style:J("down",$),onMouseDown:()=>B(E),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:C})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:h,children:[a&&jsx("label",{htmlFor:R,style:re,children:a}),jsxs("div",{style:Z,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:l||!$,style:Y("minus",$),onMouseDown:()=>B(E),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("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:[f&&jsx("span",{style:j,children:f}),jsx("input",{ref:d,id:R,type:"text",inputMode:"numeric",value:e,onChange:H,onFocus:()=>w(true),onBlur:A,disabled:l,style:q}),u&&jsx("span",{style:j,children:u})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:l||!L,style:Y("plus",L),onMouseDown:()=>B(k),onMouseUp:M,onMouseLeave:()=>{M(),T(null);},onMouseEnter:()=>T("plus"),children:jsx(Plus,{size:y.iconSize})})]}),C&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.borderError,lineHeight:"normal"},children:C})]})});Ia.displayName="NumberInput";var Aa=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Fr={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)"}},uo=180,Er=({options:e,value:t,onChange:r,multiple:o=false,searchable:n=false,clearable:a=false,disabled:i=false,loading:l=false,error:p,placeholder:c="Vyberte\u2026",maxDropdownHeight:f=240,style:u,className:s})=>{let h=I(),d=Fr[h],x=useId(),g=useRef(null),S=useRef(null),R=useRef(null),y=useRef(null),[b,w]=useState(false),[D,T]=useState(false),[m,C]=useState("idle"),[v,k]=useState(""),[E,z]=useState(-1),[F,B]=useState({top:0,left:0,width:0,openAbove:false}),M=i||l,H=!!p,A=typeof p=="string"?p:void 0,$=useCallback(()=>{w(true),T(true),C("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>C("open"));});},[]),L=useCallback(()=>{w(false),C("closing"),k("");let N=setTimeout(()=>{T(false),C("idle");},uo);return ()=>clearTimeout(N)},[]),Z=o?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],Y=N=>Z.includes(N),q=v?e.filter(N=>(N.label??N.value).toLowerCase().includes(v.toLowerCase())):e,re=useCallback(()=>{if(!g.current)return;let N=g.current.getBoundingClientRect(),ee=S.current?.offsetHeight??f+60,oe=window.innerHeight-N.bottom-6,he=N.top-6,ye=oe<ee&&he>oe;B({top:ye?N.top-6:N.bottom+6,left:N.left,width:N.width,openAbove:ye});},[f]);useEffect(()=>{if(D)return re(),window.addEventListener("scroll",re,true),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re,true),window.removeEventListener("resize",re);}},[D,re]);let j=useCallback(N=>{if(r)if(o){let ee=Y(N)?Z.filter(oe=>oe!==N):[...Z,N];r(ee);}else r(N),L();},[o,r,Z,L]),J=useCallback(N=>{N.stopPropagation(),r&&(r(o?[]:null),k(""));},[o,r]),Q=()=>{M||(b?L():$(),z(-1));},V=N=>{if(!M)switch(N.key){case "ArrowDown":N.preventDefault(),b?z(ee=>Math.min(ee+1,q.length-1)):($(),z(0));break;case "ArrowUp":N.preventDefault(),z(ee=>Math.max(ee-1,0));break;case "Enter":case " ":N.preventDefault(),b&&E>=0&&q[E]&&!q[E].disabled?j(q[E].value):b||($(),z(0));break;case "Escape":L();break;case "Tab":L();break}};useEffect(()=>{E>=0&&y.current&&y.current.children[E]?.scrollIntoView({block:"nearest"});},[E]),useEffect(()=>{if(!b)return;let N=ee=>{let oe=ee.target,he=g.current?.contains(oe),ye=S.current?.contains(oe);!he&&!ye&&L();};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[b,L]),useEffect(()=>{b&&n&&R.current&&R.current.focus();},[b,n]);let me=N=>e.find(oe=>oe.value===N)?.label??N,pe=a&&Z.length>0&&!M,K=()=>{let N=F.openAbove,ee=N?"translateY(8px)":"translateY(-8px)",oe=N?"translateY(6px)":"translateY(-6px)",he={transition:`opacity ${uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...he,opacity:0,transform:`${ee} scale(0.97)`}:m==="open"?{...he,opacity:1,transform:"translateY(0) scale(1)"}:{...he,opacity:0,transform:`${oe} scale(0.98)`,pointerEvents:"none"}},G={display:"flex",alignItems:"center",gap:"10px",backgroundColor:M?d.backgroundDisabled:d.background,border:`1px solid ${H?d.borderError:b?d.borderFocus:d.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:M?.6:1,cursor:M?"not-allowed":"pointer",minHeight:"40px",userSelect:"none",outline:"none"},Pe=D?createPortal(jsxs("div",{ref:S,style:{position:"fixed",...F.openAbove?{bottom:window.innerHeight-F.top,left:F.left}:{top:F.top,left:F.left},width:F.width,backgroundColor:d.dropdownBg,border:`1px solid ${d.dropdownBorder}`,borderRadius:"12px",boxShadow:h==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:F.openAbove?"bottom center":"top center",...K()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${d.divider}`},children:jsx("input",{ref:R,type:"text",value:v,onChange:N=>{k(N.target.value),z(0);},onKeyDown:V,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:y,role:"listbox","aria-multiselectable":o,className:`sm-select-list-${x}`,style:{maxHeight:f,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
+
.sm-select-list-${x}::-webkit-scrollbar {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${x}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${x}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${d.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:s.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((A,q)=>{let Q=J(A.value),de=q===P;return jsxs("div",{role:"option","aria-selected":Q,"aria-disabled":A.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:Q?500:400,lineHeight:"normal",color:Q?s.optionSelectedText:A.disabled?s.placeholder:s.text,backgroundColor:de?s.optionHover:Q?s.optionSelected:"transparent",cursor:A.disabled?"not-allowed":"pointer",opacity:A.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:q<te.length-1?"2px":0},onClick:()=>{A.disabled||oe(A.value);},onMouseEnter:()=>R(q),onMouseLeave:()=>R(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:A.label??A.value}),Q&&jsx(Check,{size:16,color:s.optionSelectedText})]},A.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...g},className:i,children:[jsxs("div",{ref:m,role:"combobox","aria-expanded":f,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:O,onClick:ce,onKeyDown:se,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[X$1.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.placeholder,lineHeight:"normal"},children:c}),o?X$1.map(A=>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:Se(A)}),!N&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:q=>{q.stopPropagation(),oe(A);},children:jsx(X,{size:14,color:s.tagText})})]},A)):X$1.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:s.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Se(X$1[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[ye&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:U,children:jsx(X,{size:14,color:s.placeholder})}),u?jsx(pn,{size:16,color:s.placeholder}):jsx(CaretDown,{size:16,color:s.placeholder,style:{transition:"transform 0.2s ease",transform:f?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),M&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:M}),Ye]})};wr.displayName="Select";var fn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Rr[a].label,userSelect:"none"},children:e}),r??jsx(wr,{options:[]})]})};fn.displayName="SelectGroup";var mn=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=u=>{a.current===void 0&&(a.current=u),o((u-a.current)/800*360%360),n.current=requestAnimationFrame(l);};return n.current=requestAnimationFrame(l),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Ir={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},zt=180,xn={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},hn=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Dr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function yn(e,t,r){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-r,n<0&&(n+=7);let a=new Date(e,t,1-n),l=[];for(let u=0;u<42;u++){let d=new Date(a);d.setDate(a.getDate()+u),l.push(d);}return l}function Pt(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function zr(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${Pt(e)} ${t}:${r}`}function Re(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Fr(e,t,r){let o=e.getTime(),n=Math.min(t.getTime(),r.getTime()),a=Math.max(t.getTime(),r.getTime());return o>=n&&o<=a}function vn(e){return Re(e,new Date)}var Ar=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:l,helperText:u,disabled:d=false,loading:c=false,clearable:p=false,size:g="md",fullWidth:i=false,required:y,minDate:s,maxDate:b,firstDayOfWeek:m=1,style:h,className:S})=>{let z=F(),f=Ir[z],w=useId(),E=xn[g],v=useRef(null),x=useRef(null),[C,T]=useState(false),[k,P]=useState(false),[R,I]=useState("idle"),[B,N]=useState({top:0,left:0,width:0,openAbove:false}),[W,M]=useState(null),Y=new Date,[_,X$1]=useState(Y.getFullYear()),[J,te]=useState(Y.getMonth()),[ie,oe]=useState("days"),[U,ce]=useState(0),se=d||c,Se=!!l,ye=typeof l=="string"?l:void 0,V=e==="single"&&r instanceof Date?r:null,O=e==="range"&&Array.isArray(r)?r:[null,null],Ye=e==="single"?V!==null:O[0]!==null||O[1]!==null,A=p&&Ye&&!se,q=(()=>{if(e==="single")return V?t?zr(V):Pt(V):"";let[D,Z]=O;if(!D&&!Z)return "";let $=t?zr:Pt;return `${D?$(D):"\u2026"} \u2013 ${Z?$(Z):"\u2026"}`})(),Q=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),de=useCallback(()=>{let D=e==="single"?V:O[0];D&&(X$1(D.getFullYear()),te(D.getMonth())),oe("days"),T(true),P(true),I("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>I("open"));});},[e,V,O]),pe=useCallback(()=>{T(false),I("closing");let D=setTimeout(()=>{P(false),I("idle");},zt);return ()=>clearTimeout(D)},[]),Fe=useCallback(()=>{if(!v.current)return;let D=v.current.getBoundingClientRect(),Z=x.current?.offsetHeight??380,$=window.innerHeight-D.bottom-6,L=D.top-6,G=$<Z&&L>$;N({top:G?D.top-6:D.bottom+6,left:D.left,width:Math.max(D.width,300),openAbove:G});},[]);useEffect(()=>{if(k)return Fe(),window.addEventListener("scroll",Fe,true),window.addEventListener("resize",Fe),()=>{window.removeEventListener("scroll",Fe,true),window.removeEventListener("resize",Fe);}},[k,Fe]),useEffect(()=>{if(!C)return;let D=Z=>{let $=Z.target,L=v.current?.contains($),G=x.current?.contains($);!L&&!G&&pe();};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[C,pe]);let Mo=D=>{se||(D.key==="Escape"&&C&&(D.preventDefault(),pe()),(D.key==="Enter"||D.key===" ")&&!C&&(D.preventDefault(),de()));},kt=useCallback(D=>{if(s){let Z=new Date(s.getFullYear(),s.getMonth(),s.getDate());if(D<Z)return true}if(b){let Z=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(D>Z)return true}return false},[s,b]),Ho=useCallback(D=>{if(!kt(D)&&o)if(e==="single")t&&V&&D.setHours(V.getHours(),V.getMinutes()),o(new Date(D)),t||pe();else if(U===0)t&&O[0]&&D.setHours(O[0].getHours(),O[0].getMinutes()),o([new Date(D),null]),ce(1);else {let Z=O[0];t&&O[1]&&D.setHours(O[1].getHours(),O[1].getMinutes());let[$,L]=D>=Z?[Z,new Date(D)]:[new Date(D),Z];o([$,L]),ce(0),t||pe();}},[e,t,V,O,U,o,pe,kt]),ur=useCallback((D,Z,$)=>{if(!o)return;let L=parseInt(Z,10);if(isNaN(L)&&(L=0),D==="hour"&&(L=Math.max(0,Math.min(23,L))),D==="minute"&&(L=Math.max(0,Math.min(59,L))),e==="single"){let G=V?new Date(V):new Date;D==="hour"?G.setHours(L):G.setMinutes(L),o(G);}else {let G=$??0,ne=[O[0]?new Date(O[0]):null,O[1]?new Date(O[1]):null],Te=ne[G]??new Date;D==="hour"?Te.setHours(L):Te.setMinutes(L),ne[G]=Te,o(ne);}},[e,V,O,o]),Lo=()=>{J===0?(te(11),X$1(D=>D-1)):te(D=>D-1);},No=()=>{J===11?(te(0),X$1(D=>D+1)):te(D=>D+1);},Wo=D=>{D.stopPropagation(),o&&(o(e==="single"?null:[null,null]),ce(0));},$o=()=>{let D=B.openAbove,Z=D?"translateY(8px)":"translateY(-8px)",$=D?"translateY(6px)":"translateY(-6px)",L={transition:`opacity ${zt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${zt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...L,opacity:0,transform:`${Z} scale(0.97)`}:R==="open"?{...L,opacity:1,transform:"translateY(0) scale(1)"}:{...L,opacity:0,transform:`${$} scale(0.98)`,pointerEvents:"none"}},Oo=yn(_,J,m),Ct=(D,Z)=>{let $=D?D.getHours():0,L=D?D.getMinutes():0,G={width:"42px",background:"transparent",border:`1px solid ${f.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String($).padStart(2,"0"),onChange:ne=>ur("hour",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:f.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(L).padStart(2,"0"),onChange:ne=>ur("minute",ne.target.value,Z),style:G,maxLength:2,"aria-label":"Minuty"})]})},Zo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Dr.map((D,Z)=>{let $=Z===J;return jsx("button",{type:"button",onClick:()=>{te(Z),oe("days");},style:{background:$?f.daySelected:"transparent",color:$?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:L=>{$||(L.target.style.backgroundColor=f.dayHover);},onMouseLeave:L=>{$||(L.target.style.backgroundColor="transparent");},children:D},Z)})}),Yo=()=>{let D=Math.floor(_/12)*12,Z=Array.from({length:12},($,L)=>D+L);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>X$1($=>$-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:f.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.text},children:[D," \u2013 ",D+11]}),jsx("button",{type:"button",onClick:()=>X$1($=>$+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:f.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Z.map($=>{let L=$===_;return jsx("button",{type:"button",onClick:()=>{X$1($),oe("months");},style:{background:L?f.daySelected:"transparent",color:L?f.daySelectedText:f.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:G=>{L||(G.target.style.backgroundColor=f.dayHover);},onMouseLeave:G=>{L||(G.target.style.backgroundColor="transparent");},children:$},$)})})]})},Vo=k?createPortal(jsx("div",{ref:x,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:f.dropdownBg,border:`1px solid ${f.dropdownBorder}`,borderRadius:"12px",boxShadow:z==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:B.openAbove?"bottom center":"top center",...$o()},children:ie==="years"?Yo():ie==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})}),Zo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:Lo,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:f.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>oe("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:Dr[J]}),jsx("button",{type:"button",onClick:()=>oe("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:f.text,padding:"4px 8px",borderRadius:"4px"},children:_})]}),jsx("button",{type:"button",onClick:No,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:f.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:hn.map(D=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:f.placeholder,padding:"4px 0",userSelect:"none"},children:D},D))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Oo.map((D,Z)=>{let $=D.getMonth()!==J,L=kt(D),G=vn(D),ne=false,Te=false,Rt=false,nt=false;if(e==="single"&&V)ne=Re(D,V);else if(e==="range"){let[ke,it]=O;ke&&Re(D,ke)&&(Te=true,ne=true),it&&Re(D,it)&&(Rt=true,ne=true),ke&&it&&Fr(D,ke,it)&&!Te&&!Rt&&(nt=true),U===1&&ke&&W&&!L&&(Re(D,W)&&!Re(D,ke)&&(ne=true),Fr(D,ke,W)&&!Re(D,ke)&&!Re(D,W)&&(nt=true));}let wt="transparent",at=f.text;return ne?(wt=f.daySelected,at=f.daySelectedText):nt&&(wt=f.dayRangeMiddle),$&&(at=ne?f.daySelectedText:f.dayOutside),L&&(at=f.dayDisabled),jsx("button",{type:"button",disabled:L,onClick:()=>Ho(D),onMouseEnter:()=>{L||M(D);},onMouseLeave:()=>M(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:wt,color:at,border:"none",borderRadius:Te?"6px 0 0 6px":Rt?"0 6px 6px 0":nt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ne?600:400,cursor:L?"not-allowed":"pointer",opacity:L?.4:1,transition:"background-color 0.1s ease",outline:G&&!ne?`1.5px solid ${f.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:D.getDate()},Z)})}),t&&jsx("div",{style:{borderTop:`1px solid ${f.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"\u010Cas:"}),Ct(V)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"Od:"}),Ct(O[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.placeholder},children:"Do:"}),Ct(O[1],1)]})]})})]})}),document.body):null,Uo={display:"flex",alignItems:"center",gap:E.gap,backgroundColor:se?f.backgroundDisabled:f.background,border:`1px solid ${Se?f.borderError:C?f.borderFocus:f.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:se?.6:1,cursor:se?"not-allowed":"pointer",userSelect:"none",outline:"none"},qo={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},gr={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...h},className:S,children:[n&&jsxs("label",{htmlFor:w,style:qo,children:[n,y&&jsx("span",{style:{color:f.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:v,role:"button",tabIndex:se?-1:0,style:Uo,onClick:()=>{se||(C?pe():de());},onKeyDown:Mo,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.text,lineHeight:"normal"},children:q}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:E.fontSize,color:f.placeholder,lineHeight:"normal"},children:Q})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[A&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Wo,children:jsx(X,{size:E.iconSize-2,color:f.placeholder})}),c?jsx(mn,{size:E.iconSize,color:f.placeholder}):jsx(CalendarBlank,{size:E.iconSize,color:f.placeholder})]})]}),ye&&jsx("span",{style:{...gr,color:f.borderError},children:ye}),!ye&&u&&jsx("span",{style:{...gr,color:f.helperText},children:u}),Vo]})};Ar.displayName="DatePicker";var Sn=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=F(),l=useId(),u=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:u,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ir[a].label,userSelect:"none"},children:e}),r??jsx(Ar,{})]})};Sn.displayName="DatePickerGroup";var Br={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},wn={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Mr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:l=false,className:u,style:d})=>{let c=F(),p=Br[c],g=wn[a],i=useId(),y=useRef(null),s=!!n,b=typeof n=="string"?n:void 0;useEffect(()=>{y.current&&(y.current.indeterminate=l);},[l]);let m=()=>{o||t?.(!e);},h=s?p.borderError:e||l?p.checkBg:p.border,S=e||l?p.checkBg:o?p.backgroundDisabled:p.background,z={width:g.box,height:g.box,borderRadius:g.radius,border:`1.5px solid ${h}`,backgroundColor:S,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,color:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},w={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...d},className:u,children:[jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:g.gap,cursor:o?"not-allowed":"pointer"},onClick:E=>{E.preventDefault(),m();},children:[jsx("input",{ref:y,id:i,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":s||void 0}),jsxs("span",{style:z,children:[e&&!l&&jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsx("svg",{width:g.box-6,height:g.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:p.checkMark,strokeWidth:g.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:f,children:r})]}),b&&jsx("span",{style:{...w,color:p.borderError,marginLeft:`${g.box+parseInt(g.gap)}px`},children:b})]})};Mr.displayName="Checkbox";var Hr=({label:e,children:t,error:r,className:o,style:n})=>{let a=F(),l=Br[a],u=typeof r=="string"?r:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:o,children:[e&&jsx("span",{style:d,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),u&&jsx("span",{style:{...c,color:l.borderError},children:u})]})};Hr.displayName="CheckboxGroup";var Lr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},En={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},It=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=Lr[d],p=En[a],g=useId(),i=()=>{n||r?.(e);},y=t?c.dotRing:c.border,s=n?c.backgroundDisabled:c.background,b={width:p.box,height:p.box,borderRadius:"50%",border:`1.5px solid ${y}`,backgroundColor:s,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...u},className:l,children:jsxs("label",{htmlFor:g,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:n?"not-allowed":"pointer"},onClick:h=>{h.preventDefault(),i();},children:[jsx("input",{id:g,type:"radio",value:e,checked:t,disabled:n,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:b,children:t&&jsx("span",{style:{width:p.dot,height:p.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:m,children:o})]})})};It.displayName="Radio";var Nr=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:l,size:u="md",className:d,style:c})=>{let p=F(),g=Lr[p],i=!!a,y=typeof a=="string"?a:void 0,s={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:d,children:[r&&jsx("span",{style:s,children:r}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(m=>jsx(It,{value:m.value,label:m.label,checked:e===m.value,onChange:t,disabled:m.disabled,size:u},m.value))}),y&&jsx("span",{style:{...b,color:g.borderError},children:y}),!y&&l&&jsx("span",{style:{...b,color:g.helperText},children:l})]})};Nr.displayName="RadioGroup";var zn={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Fn={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},$r=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:l})=>{let u=F(),d=zn[u],c=Fn[n],p=useId(),g=()=>{o||t?.(!e);},i=1.5,y=2,b=c.trackW-i*2-c.thumb-y,m=e?b:0,h={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?d.trackOn:d.trackOff,border:`${i}px solid ${e?d.trackOnBorder:d.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},S={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:d.thumb,position:"absolute",top:"50%",left:y,transform:`translateY(-50%) translateX(${m}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},z={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:d.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:o?"not-allowed":"pointer"},onClick:f=>{f.preventDefault(),g();},children:[jsx("input",{id:p,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:h,children:jsx("span",{style:S})}),r&&jsx("span",{style:z,children:r})]})})};$r.displayName="Switch";var Ln={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},Nn={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Zr=$t.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:l=false,required:u,rows:d=4,maxLength:c,resize:p="vertical",autoHeight:g=false,minRows:i,maxRows:y,className:s,style:b,value:m,onChange:h,onFocus:S,onBlur:z,...f},w)=>{let E=F(),v=Ln[E],x=Nn[a],C=useId(),T=f.id??C,[k,P]=useState(false),R=useRef(null),I=useCallback(()=>{let U=R.current;if(!U||!g)return;U.style.height="auto";let ce=getComputedStyle(U),se=parseFloat(ce.lineHeight)||parseFloat(ce.fontSize)*1.5,Se=parseFloat(ce.paddingTop)||0,ye=parseFloat(ce.paddingBottom)||0,V=Se+ye,Ye=se*(i??1)+V,A=y?se*y+V:1/0,q=Math.min(Math.max(U.scrollHeight,Ye),A);U.style.height=`${q}px`,U.style.overflowY=U.scrollHeight>A?"auto":"hidden";},[g,i,y]);useEffect(()=>{I();},[m,I]);let B=useCallback(U=>{R.current=U,typeof w=="function"?w(U):w&&(w.current=U);},[w]),N=g?"none":p,W=g?i??1:d,M=o||n,Y=!!t,_=typeof t=="string"?t:void 0,X=typeof m=="string"?m.length:0,J={backgroundColor:M?v.backgroundDisabled:v.background,border:`1px solid ${Y?v.borderError:k?v.borderFocus:v.border}`,borderRadius:"8px",padding:x.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:M?.6:1,cursor:M?"not-allowed":"text"},te={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:x.fontSize,lineHeight:"1.5",color:v.text,cursor:M?"not-allowed":"text",resize:N,boxSizing:"border-box",overflow:g?"hidden":void 0},ie={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},oe={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...b},className:s,children:[e&&jsxs("label",{htmlFor:T,style:ie,children:[e,u&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:J,children:jsx("textarea",{ref:B,id:T,rows:W,maxLength:c,disabled:o,required:u,readOnly:n||f.readOnly,value:m,onChange:h,style:te,onFocus:U=>{P(true),S?.(U);},onBlur:U=>{P(false),z?.(U);},...f})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[_&&jsx("span",{style:{...oe,color:v.borderError},children:_}),!_&&r&&jsx("span",{style:{...oe,color:v.helperText},children:r})]}),c!==void 0&&jsxs("span",{style:{...oe,color:X>c?v.borderError:v.counter,flexShrink:0},children:[X,"/",c]})]})]})});Zr.displayName="Textarea";var $n={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},On={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function Ur(e,t,r){return Math.min(Math.max(e,t),r)}function Zn(e,t,r){return Math.round((e-t)/r)*r+t}var qr=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:l=false,showValue:u=false,range:d=false,size:c="md",className:p,style:g})=>{let i=F(),y=$n[i],s=On[c],b=useId(),m=useRef(null),h=useRef(null),S=d?e:[r,e],z=k=>(k-r)/(o-r)*100,f=z(S[0]),w=z(S[1]),E=useCallback(k=>{let P=m.current;if(!P)return r;let R=P.getBoundingClientRect(),I=Ur((k-R.left)/R.width,0,1),B=r+I*(o-r);return Ur(Zn(B,r,n),r,o)},[r,o,n]),v=useCallback(k=>{if(l)return;k.preventDefault();let P=E(k.clientX);if(d){let B=e,N=Math.abs(P-B[0]),W=Math.abs(P-B[1]),M=N<=W?"start":"end";h.current=M;let Y=M==="start"?[Math.min(P,B[1]),B[1]]:[B[0],Math.max(P,B[0])];t?.(Y);}else h.current="end",t?.(P);let R=B=>{let N=E(B.clientX);if(d){let W=e;h.current==="start"?t?.([Math.min(N,W[1]),W[1]]):t?.([W[0],Math.max(N,W[0])]);}else t?.(N);},I=()=>{h.current=null,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",I);};document.addEventListener("mousemove",R),document.addEventListener("mouseup",I);},[l,E,t,d,e]),x={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},C=d?`${S[0]} \u2013 ${S[1]}`:`${e}`,T={width:s.thumb,height:s.thumb,borderRadius:"50%",backgroundColor:y.thumb,border:`2px solid ${y.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...g},className:p,children:[(a||u)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:b,style:x,children:a}),u&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:s.fontSize,color:y.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:m,role:"slider",id:b,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":d?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:s.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${d?f:0}%`,width:`${w-(d?f:0)}%`,height:s.trackH,transform:"translateY(-50%)",borderRadius:s.trackH/2,backgroundColor:y.trackFill}}),d&&jsx("span",{style:{...T,left:`${f}%`}}),jsx("span",{style:{...T,left:`${w}%`}})]})]})};qr.displayName="Slider";var _n={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Ht(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Xn=0,Gr=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:l,helperText:u,error:d,className:c,style:p})=>{let g=F(),i=_n[g],y=useId(),s=useRef(null),[b,m]=useState(false),[h,S]=useState([]),[z,f]=useState(null),w=!!d||!!z,E=typeof d=="string"?d:z??void 0,v=useCallback(R=>{let I=Array.from(R);if(f(null),n){let W=I.find(M=>M.size>n);if(W){f(`Soubor \u201E${W.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Ht(n)}.`);return}}let B=I.map(W=>({file:W,id:`file-${++Xn}`})),N=o?[...h,...B]:B;S(N),t?.(N.map(W=>W.file));},[h,n,o,t]),x=useCallback(R=>{R.preventDefault(),m(false),!a&&R.dataTransfer.files.length>0&&v(R.dataTransfer.files);},[a,v]),C=useCallback(R=>{let I=h.filter(B=>B.id!==R);S(I),t?.(I.map(B=>B.file));},[h,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},k={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${w?i.borderError:b?i.borderDrag:i.border}`,borderRadius:"8px",backgroundColor:b?i.backgroundDrag:a?i.backgroundDisabled:i.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},P={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...p},className:c,children:[l&&jsx("span",{style:T,children:l}),jsx("input",{ref:s,id:y,type:"file",accept:r,multiple:o,disabled:a,onChange:R=>{R.target.files&&R.target.files.length>0&&v(R.target.files),R.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:k,onClick:()=>!a&&s.current?.click(),onDragOver:R=>{R.preventDefault(),a||m(true);},onDragLeave:()=>m(false),onDrop:x,children:[jsx(UploadSimple,{size:32,color:i.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):jsxs("div",{onClick:()=>!a&&s.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${w?i.borderError:i.border}`,backgroundColor:a?i.backgroundDisabled:i.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:R=>{a||(R.currentTarget.style.borderColor=w?i.borderError:g==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:R=>{R.currentTarget.style.borderColor=w?i.borderError:i.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:h.length>0?jsx(FileText,{size:18,color:i.textSecondary}):jsx(UploadSimple,{size:18,color:i.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h.length>0?i.text:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.length===0?"Vyberte soubor...":h.length===1?h[0].file.name:`${h.length} soubor\u016F`}),h.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(h[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:i.textSecondary},children:jsx(Folder,{size:16,color:i.textSecondary})})]}),h.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:h.map(R=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i.fileBg},children:[jsx(FileText,{size:24,color:i.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:i.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:R.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.textSecondary,flexShrink:0},children:Ht(R.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${R.file.name}`,onClick:I=>{I.stopPropagation(),C(R.id);},onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&C(R.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:i.removeColor})})]},R.id))}),E&&jsx("span",{style:{...P,color:i.borderError},children:E}),!E&&u&&jsx("span",{style:{...P,color:i.helperText},children:u})]})};Gr.displayName="FileUpload";var Gn={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},jr="smSkeletonShimmer",Kn=`@keyframes ${jr}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,Nt=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:l})=>{let u=F(),d=Gn[u],c=t??(e==="circle"?40:"100%"),p=r??(e==="circle"?40:e==="text"?"1em":100),g={backgroundColor:d.base,backgroundImage:n?`linear-gradient(90deg, ${d.base} 25%, ${d.shimmer} 50%, ${d.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jr} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof p=="number"?`${p}px`:p},i=n?jsx("style",{dangerouslySetInnerHTML:{__html:Kn}}):null;return e==="text"&&o>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:o}).map((y,s)=>jsx("div",{style:{...g,width:s===o-1?"75%":g.width}},s))]}):jsxs(Fragment,{children:[i,jsx("div",{className:a,style:{...g,...l}})]})};Nt.displayName="Skeleton";var Qn={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ea=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:l,striped:u=false,hoverable:d=true,className:c,style:p})=>{let g=F(),i=Qn[g],y=S=>{if(!S.sortable||!n)return;let z=a===S.key&&l==="asc"?"desc":"asc";n(S.key,z);},s={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",overflow:"hidden",...p},b=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),m={padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:s,children:[jsx("thead",{children:jsx("tr",{children:e.map(S=>jsx("th",{style:b(S),onClick:()=>y(S),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===S.key?i.sortActive:i.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((S,z)=>jsx("tr",{children:e.map(f=>jsx("td",{style:m,children:jsx(Nt,{variant:"text",width:"80%"})},f.key))},`skel-${z}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...m,textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:o})}):t.map((S,z)=>jsx("tr",{style:{backgroundColor:u&&z%2===1?i.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:f=>{d&&(f.currentTarget.style.backgroundColor=i.rowHover);},onMouseLeave:f=>{d&&(f.currentTarget.style.backgroundColor=u&&z%2===1?i.stripedBg:"transparent");},children:e.map(f=>jsx("td",{style:{...m,borderBottom:z===t.length-1?"none":m.borderBottom},children:f.render?f.render(S[f.key],S,z):S[f.key]},f.key))},z))})]})};ea.displayName="Table";var ta={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},ra={none:"0",sm:"12px",md:"20px",lg:"28px"},oa=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:l=true,padding:u="md",className:d,style:c})=>{let p=F(),g=ta[p],i=ra[u],y={backgroundColor:g.background,border:l?`1px solid ${g.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},s=r??(e||t?jsxs("div",{style:{padding:i,paddingBottom:n||o?"0":i},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:g.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:g.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:d,style:y,onMouseEnter:b=>{a&&(b.currentTarget.style.borderColor=g.borderHover,b.currentTarget.style.transform="translateY(-2px)",b.currentTarget.style.boxShadow=p==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:b=>{a&&(b.currentTarget.style.borderColor=l?g.border:"transparent",b.currentTarget.style.transform="translateY(0)",b.currentTarget.style.boxShadow="none");},children:[s,n&&jsx("div",{style:{padding:i},children:n}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${g.divider}`}}),jsx("div",{style:{padding:i},children:o})]})]})};oa.displayName="Card";var to={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},la=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:l})=>{let u=F(),d=to[u],[c,p]=useState(r),g=n?!!a:c,i=useRef(null),[y,s]=useState(0);useEffect(()=>{i.current&&s(i.current.scrollHeight);},[t,g]);let b=useCallback(()=>{o||(n&&l?l():p(m=>!m));},[o,n,l]);return jsxs("div",{style:{borderBottom:`1px solid ${d.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:b,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?d.textDisabled:d.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:m=>{o||(m.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?d.chevronDisabled:d.chevron,style:{transition:"transform 0.25s ease",transform:g?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:g?`${y}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:d.textSecondary},children:t})})]})};la.displayName="AccordionItem";var ca=({children:e,multiple:t=false,className:r,style:o})=>{let n=F(),a=to[n],l=$t.Children.toArray(e).filter(p=>$t.isValidElement(p)),[u,d]=useState(()=>{let p=new Set;return l.forEach((g,i)=>{g.props.defaultOpen&&p.add(i);}),p}),c=useCallback(p=>{d(g=>{let i=new Set(g);return i.has(p)?i.delete(p):(t||i.clear(),i.add(p)),i});},[t]);return jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:l.map((p,g)=>$t.cloneElement(p,{key:g,_controlled:true,_open:u.has(g),_onToggle:()=>c(g)}))})};ca.displayName="Accordion";var da={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},pa={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},fa=()=>null;fa.displayName="Tab";var ua=()=>null;ua.displayName="TabPanel";var ga=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:l,style:u})=>{let d=F(),c=da[d],p=pa[a],g=$t.Children.toArray(r),i=g.filter(b=>$t.isValidElement(b)&&b.type?.displayName==="Tab"),s=g.filter(b=>$t.isValidElement(b)&&b.type?.displayName==="TabPanel").find(b=>b.props.value===e);return jsxs("div",{className:l,style:u,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${c.border}`:"none"},children:i.map(b=>{let m=b.props.value===e,h=b.props.disabled,S=o==="underline"?{padding:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${m?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:h?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:p.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:m?500:400,color:h?c.textDisabled:m?c.pillText:c.textInactive,backgroundColor:m?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:h?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:h,style:S,onClick:()=>{h||t(b.props.value);},onMouseEnter:z=>{!h&&!m&&(z.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:z=>{h||(z.currentTarget.style.backgroundColor=o==="pills"&&m?c.pillBg:"transparent");},children:[b.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:b.props.icon}),b.props.label]},b.props.value)})}),s&&jsx("div",{style:{paddingTop:"16px"},children:s.props.children})]})};ga.displayName="Tabs";var xa={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ha=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let l=F(),u=xa[l],[d,c]=useState(false),[p,g]=useState({top:0,left:0}),i=useRef(null),y=useRef(null),s=useRef(void 0),b=6,m=8,h=useCallback(()=>{let E=i.current,v=y.current;if(!E||!v)return;let x=E.getBoundingClientRect(),C=v.getBoundingClientRect(),T=0,k=0;switch(r){case "top":T=x.top-C.height-m,k=x.left+x.width/2-C.width/2;break;case "bottom":T=x.bottom+m,k=x.left+x.width/2-C.width/2;break;case "left":T=x.top+x.height/2-C.height/2,k=x.left-C.width-m;break;case "right":T=x.top+x.height/2-C.height/2,k=x.right+m;break}g({top:T,left:k});},[r]);useEffect(()=>{d&&requestAnimationFrame(h);},[d,h]);let S=useCallback(()=>{s.current=setTimeout(()=>c(true),o);},[o]),z=useCallback(()=>{s.current&&clearTimeout(s.current),c(false);},[]);useEffect(()=>()=>{s.current&&clearTimeout(s.current);},[]);let f=(()=>{let E={position:"absolute",width:0,height:0,border:`${b}px solid transparent`};switch(r){case "top":return {...E,bottom:-b,left:"50%",transform:"translateX(-50%)",borderTopColor:u.background,borderBottomWidth:0};case "bottom":return {...E,top:-b,left:"50%",transform:"translateX(-50%)",borderBottomColor:u.background,borderTopWidth:0};case "left":return {...E,right:-b,top:"50%",transform:"translateY(-50%)",borderLeftColor:u.background,borderRightWidth:0};case "right":return {...E,left:-b,top:"50%",transform:"translateY(-50%)",borderRightColor:u.background,borderLeftWidth:0}}})(),w=d?createPortal(jsxs("div",{ref:y,className:n,style:{position:"fixed",top:p.top,left:p.left,zIndex:99999,padding:"6px 12px",backgroundColor:u.background,color:u.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsx("div",{style:f})]}),document.body):null;return jsxs(Fragment,{children:[$t.cloneElement(t,{ref:i,onMouseEnter:E=>{S(),t.props.onMouseEnter?.(E);},onMouseLeave:E=>{z(),t.props.onMouseLeave?.(E);}}),w]})};ha.displayName="Tooltip";var Ca={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},_t=180,ut=8,Ra=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let l=F(),u=Ca[l],[d,c]=useState(false),[p,g]=useState(false),[i,y]=useState("idle"),[s,b]=useState({top:0,left:0}),m=useRef(null),h=useRef(null),S=useRef(void 0),z=useCallback(()=>{c(true),g(true),y("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});},[]),f=useCallback(()=>{c(false),y("closing");let k=setTimeout(()=>{g(false),y("idle");},_t);return ()=>clearTimeout(k)},[]),w=useCallback(()=>{let k=m.current,P=h.current;if(!k||!P)return;let R=k.getBoundingClientRect(),I=P.getBoundingClientRect(),B=0,N=0;switch(r){case "top":B=R.top-I.height-ut,N=R.left+R.width/2-I.width/2;break;case "bottom":B=R.bottom+ut,N=R.left+R.width/2-I.width/2;break;case "left":B=R.top+R.height/2-I.height/2,N=R.left-I.width-ut;break;case "right":B=R.top+R.height/2-I.height/2,N=R.right+ut;break}b({top:B,left:N});},[r]);useEffect(()=>{if(p)return requestAnimationFrame(w),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[p,w]),useEffect(()=>{if(!d)return;let k=P=>{let R=P.target;!m.current?.contains(R)&&!h.current?.contains(R)&&f();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[d,f]),useEffect(()=>{if(!d)return;let k=P=>{P.key==="Escape"&&f();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[d,f]);let E=()=>{let k={transition:`opacity ${_t}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${_t}ms cubic-bezier(0.16, 1, 0.3, 1)`},P={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},R=r==="top"||r==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.97)`}:i==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`translate${R}(${P[r]}) scale(0.98)`,pointerEvents:"none"}},v=useCallback(()=>{o==="click"&&(d?f():z());},[o,d,f,z]),x=useCallback(()=>{o==="hover"&&(S.current&&clearTimeout(S.current),d||z());},[o,d,z]),C=useCallback(()=>{o==="hover"&&(S.current=setTimeout(()=>{f();},150));},[o,f]);useEffect(()=>()=>{S.current&&clearTimeout(S.current);},[]);let T=p?createPortal(jsx("div",{ref:h,className:n,onMouseEnter:()=>{o==="hover"&&S.current&&clearTimeout(S.current);},onMouseLeave:C,style:{position:"fixed",top:s.top,left:s.left,zIndex:99999,padding:"16px",backgroundColor:u.background,border:`1px solid ${u.border}`,borderRadius:"12px",color:u.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...E(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[$t.cloneElement(t,{ref:m,onClick:k=>{v(),t.props.onClick?.(k);},onMouseEnter:k=>{x(),t.props.onMouseEnter?.(k);},onMouseLeave:k=>{C(),t.props.onMouseLeave?.(k);}}),T]})};Ra.displayName="Popover";var Da={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},za=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let l=F(),u=Da[l];return 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:u.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:u.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:u.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};za.displayName="EmptyState";var Aa={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},Ba=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:l,style:u})=>{let d=F(),c=Aa[d],p=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,g=i=>`${i>0?"+":""}${i.toFixed(1)} %`;return jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...u},children:[n&&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}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:p}),a==="down"&&jsx(TrendDownIcon,{size:14,color:p}),jsx("span",{children:g(r)}),o&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:o})]})]})]})};Ba.displayName="Stat";var Ma=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],fc=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let l=Ma(t),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:u,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:d,children:e.toUpperCase()})})};var so={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Gt=({onClick:e,title:t,color:r,children:o})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),xc=({label:e,onRemove:t,style:r,className:o})=>{let n=so[F()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...r},className:o,children:[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"})]})},hc=({label:e,style:t,className:r})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:r,children:e}),yc=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:l})=>{let u=so[F()],d=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:u.itemBg,border:`1px solid ${u.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:u.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&d&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Gt,{onClick:t,title:"Filtrovat",color:u.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx(Gt,{onClick:r,title:"Upravit",color:u.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx(Gt,{onClick:o,title:"Smazat",color:u.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var Oa={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},mt=180,Za={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Ya=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:l=true,closeOnEscape:u=true,showClose:d=true,className:c,style:p})=>{let g=F(),i=Oa[g],y=Za[a],[s,b]=useState(false),[m,h]=useState("idle"),S=useRef(null),z=useRef(null);useEffect(()=>{if(e)z.current=document.activeElement,b(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(s){h("closing");let v=setTimeout(()=>{b(false),h("idle"),document.body.style.overflow="",z.current instanceof HTMLElement&&z.current.focus();},mt);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!s||!u)return;let v=x=>{x.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[s,u,t]),useEffect(()=>{if(!s||!S.current)return;let v=S.current,x='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=T=>{if(T.key!=="Tab")return;let k=v.querySelectorAll(x);if(k.length===0){T.preventDefault();return}let P=k[0],R=k[k.length-1];T.shiftKey?document.activeElement===P&&(T.preventDefault(),R.focus()):document.activeElement===R&&(T.preventDefault(),P.focus());};return document.addEventListener("keydown",C),v.focus(),()=>document.removeEventListener("keydown",C)},[s]);let f=()=>{let v={transition:`opacity ${mt}ms ease`};return m==="opening"||m==="idle"?{...v,opacity:0}:m==="open"?{...v,opacity:1}:{...v,opacity:0,pointerEvents:"none"}},w=()=>{let v={transition:`opacity ${mt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${mt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return m==="opening"||m==="idle"?{...v,opacity:0,transform:"scale(0.95)"}:m==="open"?{...v,opacity:1,transform:"scale(1)"}:{...v,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!s)return null;let E=a==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:E?"stretch":"center",justifyContent:"center",...f()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:l?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:y.width,maxWidth:E?void 0:"calc(100vw - 32px)",maxHeight:E?"100vh":y.maxHeight,backgroundColor:i.cardBg,border:E?"none":`1px solid ${i.cardBorder}`,borderRadius:E?0:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...w(),...p},children:[(r||d)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:r}),d&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:i.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.bodyText},children:o}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:n})]})]}),document.body)};Ya.displayName="Modal";var _a={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Qt=220,Xa=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:l=400,showClose:u=true,closeOnOverlay:d=true,className:c,style:p})=>{let g=F(),i=_a[g],[y,s]=useState(false),[b,m]=useState("idle"),h=useRef(null),S=typeof l=="number"?`${l}px`:l;useEffect(()=>{if(e)s(true),m("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));}),document.body.style.overflow="hidden";else if(y){m("closing");let w=setTimeout(()=>{s(false),m("idle"),document.body.style.overflow="";},Qt);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!y)return;let w=E=>{E.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[y,t]);let z=w=>{let E=r==="right"?"100%":"-100%";return w==="opening"||w==="idle"?E:w==="open"?"0%":E},f=()=>b==="open"?1:0;return y?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:f(),transition:`opacity ${Qt}ms ease`,...b==="closing"?{pointerEvents:"none"}:{}},onClick:d?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:h,role:"dialog","aria-modal":"true","aria-label":o,className:c,style:{position:"absolute",top:0,bottom:0,[r]:0,width:S,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:r==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${z(b)})`,transition:`transform ${Qt}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...p},children:[(o||u)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.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:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:w=>{w.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:i.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.bodyText},children:n}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${i.divider}`},children:a})]})]}),document.body):null};Xa.displayName="Drawer";var Ka={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},ja=({items:e,separator:t="/",className:r,style:o})=>{let n=F(),a=Ka[n];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((l,u)=>{let d=u===e.length-1;return jsxs($t.Fragment,{children:[u>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),d?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:c=>{c.currentTarget.style.color=a.linkHover;},onMouseLeave:c=>{c.currentTarget.style.color=a.text;},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},u)})})};ja.displayName="Breadcrumb";var ei={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},ti={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function ri(e,t,r,o,n){let a=[],l=Math.max(2,e-r),u=Math.min(t-1,e+r);(o||e-r<=1)&&a.push(1),l>2&&(o&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let d=l;d<=u;d++)a.includes(d)||a.push(d);return u<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var oi=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:l="md",className:u,style:d})=>{let c=F(),p=ei[c],g=ti[l];if(t<=0)return null;let i=ri(e,t,o,n,a),y={display:"inline-flex",alignItems:"center",justifyContent:"center",width:g.size,height:g.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:u,style:{display:"flex",alignItems:"center",gap:"4px",...d},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...y,color:e<=1?p.disabledText:p.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:s=>{e>1&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:g.iconSize,color:e<=1?p.disabledText:p.text})}),i.map((s,b)=>{if(s==="ellipsis-start"||s==="ellipsis-end")return jsx("span",{style:{...y,cursor:"default",color:p.text},"aria-hidden":"true",children:"..."},s);let m=s===e;return jsx("button",{type:"button","aria-current":m?"page":void 0,"aria-label":`Str\xE1nka ${s}`,onClick:()=>r(s),style:{...y,color:m?p.activeText:p.text,backgroundColor:m?p.activeBg:"transparent",fontWeight:m?600:500},onMouseEnter:h=>{m||(h.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:h=>{m||(h.currentTarget.style.backgroundColor="transparent");},children:s},s)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...y,color:e>=t?p.disabledText:p.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:s=>{e<t&&(s.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:g.iconSize,color:e>=t?p.disabledText:p.text})})]})};oi.displayName="Pagination";var si={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},li=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:l})=>{let u=F(),d=si[u],[c,p]=useState(null),g=r==="horizontal",i=32,y=s=>!o||!n?false:o==="completed"?s<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:g?"row":"column",alignItems:g?"flex-start":"stretch",gap:0,...l},children:e.map((s,b)=>{let m=b<t,h=b===t,S=b>t,z=b===e.length-1,f=y(b),w=c===b&&f,E=m?d.completedBg:w?d.hoverBg:d.activeBg,v=m?d.completedBg:h||w?d.activeBorder:d.futureBorder,x=m?d.completedText:h||w?d.activeText:d.futureText,C=w?d.activeText:S?d.labelFuture:d.labelText,T=S?d.descFuture:d.descText,k=m?d.lineCompleted:d.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:g?"column":"row",alignItems:g?"center":"flex-start",flex:z?"0 0 auto":"1 1 0",minWidth:0,cursor:f?"pointer":"default"},onClick:()=>f&&n?.(b),onMouseEnter:()=>p(b),onMouseLeave:()=>p(null),children:[jsxs("div",{style:{display:"flex",flexDirection:g?"row":"column",alignItems:"center",width:g?"100%":"auto"},children:[jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:E,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:m?jsx(CheckIcon,{size:14,color:d.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:x,lineHeight:1,transition:"color 0.2s ease"},children:b+1})}),!z&&jsx("div",{style:g?{flex:1,height:"2px",backgroundColor:k,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:k,margin:"6px 0",marginLeft:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:g?"10px":0,marginLeft:g?0:"14px",paddingTop:g?0:"4px",textAlign:g?"center":"left",minHeight:g||z?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:h||w?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:s.label}),s.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:T,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:s.description})]})]},b)})})};li.displayName="Stepper";var di={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},ar=180,pi=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=F(),l=di[a],u=useRef(null),d=useRef(null),[c,p]=useState(false),[g,i]=useState(false),[y,s]=useState("idle"),[b,m]=useState({top:0,left:0,openAbove:false}),[h,S]=useState(-1),z=useCallback(()=>{p(true),i(true),s("opening"),S(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>s("open"));});},[]),f=useCallback(()=>{p(false),s("closing");let x=setTimeout(()=>{i(false),s("idle");},ar);return ()=>clearTimeout(x)},[]),w=useCallback(()=>{if(!u.current)return;let x=u.current.getBoundingClientRect(),C=d.current?.offsetHeight??200,T=d.current?.offsetWidth??200,k=window.innerHeight-x.bottom-6,P=x.top-6,R=k<C&&P>k,I;r==="bottom-right"?(I=x.right-T,I<4&&(I=4)):(I=x.left,I+T>window.innerWidth-4&&(I=window.innerWidth-T-4)),m({top:R?x.top-6:x.bottom+6,left:I,openAbove:R});},[r]);useEffect(()=>{if(g)return w(),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[g,w]),useEffect(()=>{if(!c)return;let x=C=>{let T=C.target,k=u.current?.contains(T),P=d.current?.contains(T);!k&&!P&&f();};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[c,f]),useEffect(()=>{if(!c)return;let x=t.map((T,k)=>({item:T,idx:k})).filter(({item:T})=>!T.divider&&!T.disabled),C=T=>{switch(T.key){case "Escape":T.preventDefault(),f();break;case "ArrowDown":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k<x.length-1?k+1:0;S(x[P]?.idx??-1);break}case "ArrowUp":{T.preventDefault();let k=x.findIndex(({idx:R})=>R===h),P=k>0?k-1:x.length-1;S(x[P]?.idx??-1);break}case "Enter":case " ":if(T.preventDefault(),h>=0){let k=t[h];k&&!k.divider&&!k.disabled&&(k.onClick?.(),f());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[c,h,t,f]);let E=()=>{let x=b.openAbove,C=x?"translateY(8px)":"translateY(-8px)",T=x?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`};return y==="opening"||y==="idle"?{...k,opacity:0,transform:`${C} scale(0.97)`}:y==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${T} scale(0.98)`,pointerEvents:"none"}},v=g?createPortal(jsx("div",{ref:d,role:"menu",style:{position:"fixed",...b.openAbove?{bottom:window.innerHeight-b.top,left:b.left}:{top:b.top,left:b.left},minWidth:"180px",backgroundColor:l.dropdownBg,border:`1px solid ${l.dropdownBorder}`,borderRadius:"12px",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:b.openAbove?"bottom center":"top center",...E()},children:t.map((x,C)=>{if(x.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:l.divider,margin:"4px 6px"}},C);let T=x.danger,k=x.disabled,P=C===h,R=k?l.textDisabled:T?l.dangerText:l.text,I=T?l.dangerHover:l.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":k,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:R,backgroundColor:P?I:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{k||(x.onClick?.(),f());},onMouseEnter:()=>{k||S(C);},onMouseLeave:()=>S(-1),children:[x.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:x.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:u,onClick:()=>{c?f():z();},style:{display:"inline-flex",cursor:"pointer"},children:e}),v]})};pi.displayName="DropdownMenu";var ui={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},id=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:l,onMouseEnter:u,onMouseLeave:d,target:c,rel:p,...g})=>{let i=F(),y=ui[i],[s,b]=useState(false),m=e==="danger"?y.danger:y.default,h={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:s?y.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:m,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},S=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:h,className:l,target:c,rel:p??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:z=>{b(true),u?.(z);},onMouseLeave:z=>{b(false),d?.(z);},...g,children:r==="right"?jsxs(Fragment,{children:[n,S]}):jsxs(Fragment,{children:[S,n]})})};var xi={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},ht=180,hi=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:l,style:u})=>{let d=F(),c=xi[d],[p,g]=useState(false),[i,y]=useState("idle"),[s,b]=useState(-1),m=useRef(null),h=useRef(null);useEffect(()=>{let x="sm-spotlight-scrollbar-hide";if(document.getElementById(x))return;let C=document.createElement("style");C.id=x,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let S=n;useEffect(()=>{if(e)g(true),y("opening"),b(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>y("open"));});else if(p){y("closing");let x=setTimeout(()=>{g(false),y("idle");},ht);return ()=>clearTimeout(x)}},[e]),useEffect(()=>{p&&i==="open"&&m.current?.focus();},[p,i]),useEffect(()=>{b(-1);},[n]),useEffect(()=>{if(s<0||!h.current)return;let x=h.current.querySelector(`[data-spotlight-index="${s}"]`);x&&x.scrollIntoView({block:"nearest"});},[s]);let z=useCallback(x=>{switch(x.key){case "Escape":x.preventDefault(),t();break;case "ArrowDown":{x.preventDefault(),b(C=>{let T=C+1;return T>=S.length?0:T});break}case "ArrowUp":{x.preventDefault(),b(C=>{let T=C-1;return T<0?S.length-1:T});break}case "Enter":{x.preventDefault(),s>=0&&s<S.length&&(S[s].onSelect(),t());break}}},[S,s,t]),f=[],w=new Map;S.forEach((x,C)=>{let T=w.get(x.category);T||(T=[],w.set(x.category,T),f.push({category:x.category,items:T})),T.push({...x,flatIndex:C});});let E=()=>{let x={transition:`opacity ${ht}ms ease`};return i==="opening"||i==="idle"?{...x,opacity:0}:i==="open"?{...x,opacity:1}:{...x,opacity:0,pointerEvents:"none"}},v=()=>{let x={transition:`opacity ${ht}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ht}ms cubic-bezier(0.16, 1, 0.3, 1)`};return i==="opening"||i==="idle"?{...x,opacity:0,transform:"scale(0.95) translateY(-10px)"}:i==="open"?{...x,opacity:1,transform:"scale(1) translateY(0)"}:{...x,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...E()},onKeyDown:z,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:l,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...v(),...u},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:c.textSecondary}),jsx("input",{ref:m,type:"text",value:r,onChange:x=>o(x.target.value),placeholder:a,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),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:h,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:f.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"}):f.map(x=>jsxs("div",{role:"group","aria-label":x.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:x.category}),x.items.map(C=>{let T=C.flatIndex===s;return jsxs("div",{role:"option","aria-selected":T,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:T?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>b(C.flatIndex),onMouseLeave:()=>b(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:T?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:C.icon}),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:C.label}),C.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:C.description})]})]},C.id)})]},x.category))})]})]}),document.body):null};hi.displayName="Spotlight";var Si={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},ki={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ci=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:l=false,className:u,style:d})=>{let c=F(),p=Si[c],g=ki[o],i=a==="vertical",y=e.map(f=>typeof f=="string"?{value:f,label:f}:f),s=y.findIndex(f=>f.value===t),b=useRef(null),m=useRef([]),[h,S]=useState({offset:0,size:0}),z=useCallback(()=>{let f=b.current,w=m.current[s];if(!f||!w||s<0)return;let E=f.getBoundingClientRect(),v=w.getBoundingClientRect();S(i?{offset:v.top-E.top,size:v.height}:{offset:v.left-E.left,size:v.width});},[s,i]);return useEffect(()=>{z();},[z,t,e,o]),useEffect(()=>(window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)),[z]),jsxs("div",{ref:b,role:"radiogroup",className:u,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:p.bg,border:`1px solid ${p.border}`,borderRadius:g.borderRadius,padding:g.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...d},children:[s>=0&&h.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:g.itemRadius,backgroundColor:p.indicator,border:`1px solid ${p.indicatorBorder}`,boxShadow:p.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:g.padding,right:g.padding,top:h.offset,height:h.size}:{top:g.padding,bottom:g.padding,left:h.offset,width:h.size}}}),y.map((f,w)=>{let E=f.value===t,v=l||f.disabled;return jsx("button",{ref:x=>{m.current[w]=x;},type:"button",role:"radio","aria-checked":E,disabled:v,onClick:()=>{v||r(f.value);},style:{position:"relative",zIndex:1,flex:n?1:void 0,padding:g.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:g.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:g.fontSize,fontWeight:E?500:400,color:v?p.textDisabled:E?p.textActive:p.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:x=>{!v&&!E&&(x.currentTarget.style.color=p.textHover);},onMouseLeave:x=>{!v&&!E&&(x.currentTarget.style.color=p.text);},children:f.label??f.value},f.value)})]})};Ci.displayName="SegmentedControl";var zi={info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"}},Fi={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},So=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:l,className:u})=>{let{border:d,background:c}=zi[e],p=o??Fi[e];return jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:c,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...l},className:u,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:"#ffffff"},children:p}),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:"#ffffff",lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:"#ffffff",lineHeight:"normal"},children:r})]})]}),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:"#ffffff",opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var ko=3,Bi=.06,Co=12,vt=320,Ro=createContext(null),Mi=0,Hi=()=>`sm-toast-${++Mi}-${Date.now()}`,Ed=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:l=4e3})=>{let[u,d]=useState([]),c=useCallback(i=>{d(y=>y.map(s=>s.id===i?{...s,lifecycle:"leaving"}:s)),setTimeout(()=>{d(y=>y.filter(s=>s.id!==i));},vt+100);},[]),p=useCallback(i=>{let y=Hi(),s=i.duration??l,b={id:y,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:s,lifecycle:"entering",height:0};return d(m=>{let h=[...m,b];return h.length>a?h.slice(h.length-a):h}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{d(m=>m.map(h=>h.id===y?{...h,lifecycle:"visible"}:h));});}),s>0&&setTimeout(()=>c(y),s),y},[a,c,l]),g=useCallback((i,y)=>{d(s=>s.map(b=>b.id===i&&b.height!==y?{...b,height:y}:b));},[]);return jsxs(Ro.Provider,{value:{toast:p,dismiss:c},children:[e,u.length>0&&jsx(Ni,{toasts:u,position:t,toastWidth:r,gap:o,offset:n,onDismiss:c,onHeightMeasured:g})]})},Li=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:l,toastWidth:u,onDismiss:d,onHeightMeasured:c})=>{let p=t.lifecycle==="leaving",g=!l||p,i=n?1:Math.max(.7,1-r*Bi),y=n?0:r*Co,s=a?-y:y,m=g?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${s}px)`,h=g?0:n?1:Math.max(.4,1-r*.18),S=!n&&r>=ko,z=o-r,f=useCallback(w=>{w&&t.height===0&&c(t.id,w.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:f,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:m,opacity:S?0:h,zIndex:z,transition:[`transform ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${vt}ms ease`].join(", "),pointerEvents:r===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(So,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>d(t.id),style:{width:u,maxWidth:"100%",boxSizing:"border-box"}})})},Ni=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:l})=>{let[u,d]=useState(false),[c,p]=useState(new Set),g=t.startsWith("bottom"),i=t.endsWith("right"),y=t.endsWith("center");useEffect(()=>{p(f=>{let w=new Set(f);return e.forEach(E=>{E.lifecycle==="visible"&&w.add(E.id);}),[...w].forEach(E=>{e.find(v=>v.id===E)||w.delete(E);}),w});},[e]);let m=(e[e.length-1]?.height||80)+Math.min(e.length-1,ko-1)*Co,h=e.reduce((f,w)=>f+(w.height||80),0)+Math.max(0,e.length-1)*o,S=u?h:m,z=y?{left:"50%",transform:"translateX(-50%)"}:i?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:S,...g?{bottom:n}:{top:n},...z,transition:`height ${vt}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),"aria-live":"polite","aria-atomic":"false",children:e.map((f,w)=>{let E=e.length-1-w,v=c.has(f.id),x=f.lifecycle==="leaving",C=!v||x,T;if(u&&!C){let P=e.slice(w+1).reduce((I,B)=>I+(B.height||80)+o,0);T=`translateY(${g?-P:P}px)`;}return jsx(Li,{item:f,depthIndex:E,stackSize:e.length,expanded:u,isBottom:g,appeared:v,toastWidth:r,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:T},f.id)})})},Dd=()=>{let e=useContext(Ro);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var qi={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},_i={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},Md=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:l,style:u})=>{let d=F(),c=qi[d],p=_i[e],[g,i]=useState(true);if(!g)return null;let y=d==="light",s=y?p.borderLight:p.border,b=y?p.backgroundLight:p.background,m=y?p.iconColorLight:p.iconColor,S=o??{info:jsx(Info,{size:24,color:m}),success:jsx(CheckCircle,{size:24,color:m}),warning:jsx(Warning,{size:24,color:m}),error:jsx(XCircle,{size:24,color:m})}[e],z=()=>{i(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:b,borderLeft:`4px solid ${s}`,borderRadius:"4px",boxSizing:"border-box",...u},className:l,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},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:"14px",lineHeight:"normal",color:c.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:r})]}),n&&jsx("button",{type:"button",onClick:z,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var Eo={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},Xi={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},To="sm-ui-progress-stripes",Gi=()=>{if(typeof document>"u"||document.getElementById(To))return;let e=document.createElement("style");e.id=To,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Wd=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:l=false,className:u,style:d})=>{let c=F(),p=Eo[c],g=Xi[t],i=Math.max(0,Math.min(100,e));a&&l&&Gi();let y=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...l?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...d},className:u,children:[(n||o)&&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:p.label,userSelect:"none"},children:n}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:g.fontSize,color:p.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(i),"%"]})]}),jsx("div",{style:{width:"100%",height:g.height,backgroundColor:p.trackBg,borderRadius:g.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${i}%`,height:"100%",backgroundColor:r,borderRadius:g.height/2,transition:"width 0.3s ease",...y}})})]})},$d=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:l,style:u})=>{let d=F(),c=Eo[d],p=Math.max(0,Math.min(100,e)),g=(t-r)/2,i=2*Math.PI*g,y=i-p/100*i;return jsxs("div",{role:"progressbar","aria-valuenow":p,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...u},className:l,children:[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:g,fill:"none",stroke:c.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:g,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:i,strokeDashoffset:y,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),n&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:c.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(p),"%"]}),a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},children:a})]})};var Ji={sm:16,md:24,lg:40},Ud=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,l]=useState(0),u=useRef(void 0),d=useRef(void 0);useEffect(()=>{let g=i=>{d.current===void 0&&(d.current=i),l((i-d.current)/800*360%360),u.current=requestAnimationFrame(g);};return u.current=requestAnimationFrame(g),()=>{u.current!==void 0&&cancelAnimationFrame(u.current);}},[]);let c=typeof e=="number"?e:Ji[e]??24,p=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,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:p,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:p,strokeWidth:"2",strokeLinecap:"round"})]})})};var es={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Gd=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=F(),a=es[n];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...o}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},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:r,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...o}})};var rs={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},os={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Jd=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:l,className:u,style:d})=>jsx("div",{className:u,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:rs[r],justifyContent:os[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...d},children:l});var as={sm:640,md:768,lg:1024,xl:1280},tp=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let l=typeof e=="number"?e:as[e],u=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${l}px`,width:"100%",padding:u,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var ps={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},Fo="smDragListPulse",fs=`@keyframes ${Fo}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=fr(r.children,t);if(o)return o}}return null}function dr(e,t,r){let o=fr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||dr([n],n.id,r))return true;return false}function Po(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[l,u]=Po(a.children,t);u&&(r=u),n.push({...a,children:l.length>0?l:void 0});}else n.push(a);return n},[]),r]}function pr(e,t,r,o){if(r==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],o],expanded:true}:a.children?{...a,children:pr(a.children,t,r,o)}:a);let n=[];for(let a of e)a.id===t?r==="before"?(n.push(o),n.push(a)):(n.push(a),n.push(o)):a.children?n.push({...a,children:pr(a.children,t,r,o)}):n.push(a);return n}function Io(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Io(r.children,t)}:r)}function Ao(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Ao(o.children,t,r)}:o)}var zo=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${Fo} 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}})}),Bo=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s})=>{let[b,m]=useState(false),[h,S]=useState(false),[z,f]=useState(false),w=useRef(false),E=useRef(null),v=e.children&&e.children.length>0,x=e.expanded??false,C=n===e.id,T=n!==null,k=y==="handle",P=a?.targetId===e.id,R=P&&a?.position==="before",I=P&&a?.position==="after",B=P&&a?.position==="inside",N=C?"transparent":B?s.nestHighlight:h&&!T?s.itemHoverBg:s.itemBg,W=B?s.nestBorder:C?"transparent":s.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[R&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(zo,{color:s.dropIndicator})}),jsxs("div",{ref:E,draggable:true,onDragStart:M=>{if(k&&!w.current){M.preventDefault();return}if(w.current=false,M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",e.id),E.current){let Y=E.current.cloneNode(true);Y.style.width=`${E.current.offsetWidth}px`,Y.style.opacity="0.85",Y.style.transform="rotate(1.5deg) scale(1.02)",Y.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",Y.style.position="fixed",Y.style.top="-1000px",document.body.appendChild(Y),M.dataTransfer.setDragImage(Y,M.nativeEvent.offsetX,M.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(Y));}l(e.id);},onDragOver:M=>{M.preventDefault(),M.stopPropagation(),u(M,e.id,t);},onDragLeave:M=>{let Y=M.relatedTarget;E.current&&Y&&E.current.contains(Y)||(M.stopPropagation(),d(M,E.current),S(false));},onDrop:M=>{M.preventDefault(),M.stopPropagation(),c(M);},onDragEnd:p,onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":s.text,cursor:T?"grabbing":k?"default":"grab",opacity:C?.35:1,backgroundColor:N,borderWidth:"1px",borderColor:W,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:B?`inset 0 0 0 1px ${s.nestBorder}`:h&&!T?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!i&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:T?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),onMouseDown:()=>{w.current=true;},children:jsx(DotsSixVertical,{size:14,color:b?s.gripHover:s.gripColor})}),B&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:s.dropIndicator})}),v?jsx("button",{type:"button",onClick:M=>{M.stopPropagation(),g(e.id);},onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:z?s.chevronHover:s.chevron,style:{transition:"transform 0.2s ease",transform:x?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:i?i(e,{handleProps:{onMouseDown:()=>{w.current=true;},style:{cursor:T?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:x,toggleExpand:()=>g(e.id),hasChildren:!!v}):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})]})})]}),I&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(zo,{color:s.dropIndicator})}),v&&x&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${s.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(M=>jsx(Bo,{item:M,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:l,onDragOver:u,onDragLeave:d,onDrop:c,onDragEnd:p,onToggleExpand:g,renderItem:i,dragMode:y,tokens:s},M.id))})]})},us=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:l,style:u})=>{let d=F(),c=ps[d],[p,g]=useState(null),[i,y]=useState(null),s=useRef(null),b=useRef(void 0),m=useRef(void 0),h=useRef(null),S=useCallback(x=>{g(x);},[]),z=useCallback((x,C,T)=>{if(!p||p===C||dr(e,p,C))return;b.current&&(clearTimeout(b.current),b.current=void 0);let k=x.currentTarget.getBoundingClientRect(),P=x.clientY-k.top,R=k.height,I;o&&T<n?P<R*.25?I="before":P>R*.75?I="after":I="inside":P<R*.35?I="before":P>R*.65?I="after":h.current?.targetId===C?I=h.current.position:I=P<R/2?"before":"after";let B={targetId:C,position:I},N=fr(e,C);I==="inside"&&N?.children&&N.children.length>0&&!N.expanded?(h.current?.targetId!==C||h.current?.position!=="inside")&&(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{t(Ao(e,C,true));},600)):m.current&&(clearTimeout(m.current),m.current=void 0),h.current=B,y(B);},[p,e,o,n,t]),f=useCallback((x,C)=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{y(null),h.current=null;},60),m.current&&(clearTimeout(m.current),m.current=void 0);},[]),w=useCallback(()=>{if(b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),!p||!i)return;let{targetId:x,position:C}=i;if(p===x||dr(e,p,x))return;let[T,k]=Po(e,p);if(!k)return;let P=pr(T,x,C,k);t(P),g(null),y(null),h.current=null;},[p,i,e,t]),E=useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=void 0),m.current&&(clearTimeout(m.current),m.current=void 0),g(null),y(null),h.current=null;},[]),v=useCallback(x=>{t(Io(e,x));},[e,t]);return useEffect(()=>()=>{b.current&&clearTimeout(b.current),m.current&&clearTimeout(m.current);},[]),jsxs("div",{ref:s,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...u},children:[jsx("style",{dangerouslySetInnerHTML:{__html:fs}}),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(x=>jsx(Bo,{item:x,depth:0,allowNesting:o,maxDepth:n,draggedId:p,dropState:i,onDragStart:S,onDragOver:z,onDragLeave:f,onDrop:w,onDragEnd:E,onToggleExpand:v,renderItem:r,dragMode:a,tokens:c},x.id))]})};us.displayName="DragList";export{ca as Accordion,la as AccordionItem,Md as Alert,fc as Avatar,hc as Badge,ja as Breadcrumb,Qo as Button,oa as Card,Mr as Checkbox,Hr as CheckboxGroup,tp as Container,Ar as DatePicker,Sn as DatePickerGroup,Gd as Divider,us as DragList,Xa as Drawer,pi as DropdownMenu,za as EmptyState,Gr as FileUpload,Sr as Input,Rs as InputGroup,id as Link,Ya as Modal,oi as Pagination,Ra as Popover,Wd as ProgressBar,$d as ProgressCircle,It as Radio,Nr as RadioGroup,Ci as SegmentedControl,wr as Select,fn as SelectGroup,Nt as Skeleton,qr as Slider,Ud as Spinner,hi as Spotlight,Jd as Stack,Ba as Stat,li as Stepper,$r as Switch,fa as Tab,ua as TabPanel,ea as Table,ga as Tabs,xc as Tag,yc as TagItem,Zr as Textarea,So as Toast,Ed as ToasterProvider,ha as Tooltip,F as useTheme,Dd as useToast};//# sourceMappingURL=index.mjs.map
|
|
12
|
+
`}),q.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:d.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),q.map((N,ee)=>{let oe=Y(N.value),he=ee===E;return jsxs("div",{role:"option","aria-selected":oe,"aria-disabled":N.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:oe?500:400,lineHeight:"normal",color:oe?d.optionSelectedText:N.disabled?d.placeholder:d.text,backgroundColor:he?d.optionHover:oe?d.optionSelected:"transparent",cursor:N.disabled?"not-allowed":"pointer",opacity:N.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:ee<q.length-1?"2px":0},onClick:()=>{N.disabled||j(N.value);},onMouseEnter:()=>z(ee),onMouseLeave:()=>z(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:N.label??N.value}),oe&&jsx(Check,{size:16,color:d.optionSelectedText})]},N.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...u},className:s,children:[jsxs("div",{ref:g,role:"combobox","aria-expanded":b,"aria-haspopup":"listbox",tabIndex:M?-1:0,style:G,onClick:Q,onKeyDown:V,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[Z.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.placeholder,lineHeight:"normal"},children:c}),o?Z.map(N=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:d.tagBg,color:d.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:me(N)}),!M&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:ee=>{ee.stopPropagation(),j(N);},children:jsx(X,{size:14,color:d.tagText})})]},N)):Z.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:d.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:me(Z[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[pe&&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:d.placeholder})}),l?jsx(Aa,{size:16,color:d.placeholder}):jsx(CaretDown,{size:16,color:d.placeholder,style:{transition:"transform 0.2s ease",transform:b?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),A&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:d.borderError,lineHeight:"normal"},children:A}),Pe]})};Er.displayName="Select";var Ha=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Fr[a].label,userSelect:"none"},children:e}),r??jsx(Er,{options:[]})]})};Ha.displayName="SelectGroup";var Ya=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Va={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},go=180,Ua={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"}},qa=zo.forwardRef(({options:e,value:t,onChange:r,onInputChange:o,placeholder:n="Hledat\u2026",label:a,error:i,disabled:l=false,loading:p=false,allowCustom:c=false,onCreate:f,renderOption:u,notFoundContent:s,footer:h,size:d="md",style:x,className:g},S)=>{let R=I(),y=Va[R],w=useId(),D=Ua[d],T=useRef(null),m=useRef(null),C=useRef(null),v=useRef(null),[k,E]=useState(false),[z,F]=useState(false),[B,M]=useState("idle"),[H,A]=useState(""),[$,L]=useState(-1),[Z,Y]=useState(false),[q,re]=useState({top:0,left:0,width:0,openAbove:false}),j=l||p,J=!!i,Q=typeof i=="string"?i:void 0;useEffect(()=>{if(!Z){let W=e.find(te=>te.value===t);A(W?W.label??W.value:t||"");}},[t,e,Z]);let V=H?e.filter(W=>(W.label??W.value).toLowerCase().includes(H.toLowerCase())):e,me=useCallback(()=>{E(true),F(true),M("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>M("open"));});},[]),pe=useCallback(()=>{E(false),M("closing");let W=setTimeout(()=>{F(false),M("idle");},go);return ()=>clearTimeout(W)},[]),K=useCallback(()=>{if(!T.current)return;let W=T.current.getBoundingClientRect(),te=C.current?.offsetHeight??240,fe=window.innerHeight-W.bottom-6,ve=W.top-6,Xe=fe<te&&ve>fe;re({top:Xe?W.top-6:W.bottom+6,left:W.left,width:W.width,openAbove:Xe});},[]);useEffect(()=>{if(z)return K(),window.addEventListener("scroll",K,true),window.addEventListener("resize",K),()=>{window.removeEventListener("scroll",K,true),window.removeEventListener("resize",K);}},[z,K]),useEffect(()=>{if(!k)return;let W=te=>{let fe=te.target;if(!T.current?.contains(fe)&&!C.current?.contains(fe)){pe();let ve=e.find(Xe=>Xe.value===t);c||A(ve?ve.label??ve.value:"");}};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[k,pe,t,e,c]),useEffect(()=>{$>=0&&v.current&&v.current.children[$]?.scrollIntoView({block:"nearest"});},[$]);let G=W=>{let te=W.target.value;A(te),o?.(te),L(0),k||me();},Pe=useCallback(W=>{r(W);let te=e.find(fe=>fe.value===W);A(te?te.label??te.value:W),pe();},[r,e,pe]),N=W=>{if(!j)switch(W.key){case "ArrowDown":W.preventDefault(),k?L(te=>Math.min(te+1,V.length-1)):(me(),L(0));break;case "ArrowUp":W.preventDefault(),L(te=>Math.max(te-1,0));break;case "Enter":W.preventDefault(),k&&$>=0&&V[$]?Pe(V[$].value):c&&H&&(r(H),f?.(H),pe());break;case "Escape":pe();break;case "Tab":k&&pe();break}},ee=()=>{Y(true),!k&&!j&&me();},oe=()=>{Y(false),c&&H&&r(H);},he=()=>{let W=q.openAbove,te=W?"translateY(8px)":"translateY(-8px)",fe=W?"translateY(6px)":"translateY(-6px)",ve={transition:`opacity ${go}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${go}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...ve,opacity:0,transform:`${te} scale(0.97)`}:B==="open"?{...ve,opacity:1,transform:"translateY(0) scale(1)"}:{...ve,opacity:0,transform:`${fe} scale(0.98)`,pointerEvents:"none"}},ye={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:j?y.backgroundDisabled:y.background,border:`1px solid ${J?y.borderError:Z?y.borderFocus:y.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:j?.6:1,cursor:j?"not-allowed":"text"},Me={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:D.fontSize,lineHeight:"normal",color:y.text,cursor:j?"not-allowed":"text"},so={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:y.label,userSelect:"none"},gt=z?createPortal(jsxs("div",{ref:C,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:y.dropdownBg,border:`1px solid ${y.dropdownBorder}`,borderRadius:"12px",boxShadow:R==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...he()},children:[jsxs("div",{ref:v,role:"listbox",style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[V.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:y.placeholder,textAlign:"center"},children:c&&H?"Stiskn\u011Bte Enter pro potvrzen\xED":s??"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((W,te)=>{let fe=W.value===t,ve=te===$;return jsx("div",{role:"option","aria-selected":fe,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:fe?500:400,lineHeight:"normal",color:fe?y.optionSelectedText:y.text,backgroundColor:ve?y.optionHover:fe?y.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:te<V.length-1?"2px":0},onClick:()=>Pe(W.value),onMouseEnter:()=>L(te),onMouseLeave:()=>L(-1),children:u?u(W,ve):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:W.label??W.value}),fe&&jsx(Check,{size:16,color:y.optionSelectedText})]})},W.value)})]}),h&&jsx("div",{style:{borderTop:`1px solid ${y.divider}`,padding:"8px 6px"},children:h})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...x},className:g,children:[a&&jsx("label",{htmlFor:w,style:so,children:a}),jsxs("div",{ref:T,style:ye,onClick:()=>m.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:y.placeholder},children:p?jsx(Ya,{size:D.iconSize,color:y.placeholder}):jsx(MagnifyingGlass,{size:D.iconSize,color:y.placeholder})}),jsx("input",{ref:W=>{m.current=W,typeof S=="function"?S(W):S&&(S.current=W);},id:w,type:"text",value:H,onChange:G,onFocus:ee,onBlur:oe,onKeyDown:N,placeholder:n,disabled:l,readOnly:p,style:Me}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:jsx(CaretDown,{size:D.iconSize,color:y.placeholder,style:{transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)"}})})]}),Q&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:y.borderError,lineHeight:"normal"},children:Q}),gt]})});qa.displayName="Combobox";var ja=({size:e=16,color:t})=>{let[r,o]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let i=l=>{a.current===void 0&&(a.current=l),o((l-a.current)/800*360%360),n.current=requestAnimationFrame(i);};return n.current=requestAnimationFrame(i),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${r}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"})]})},Ar={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",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)"}},bo=180,Ja={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"}},Qa=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Ir=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function es(e,t,r){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-r,n<0&&(n+=7);let a=new Date(e,t,1-n),i=[];for(let l=0;l<42;l++){let p=new Date(a);p.setDate(a.getDate()+l),i.push(p);}return i}function xo(e){let t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0");return `${t}.${r}.${e.getFullYear()}`}function Br(e){let t=String(e.getHours()).padStart(2,"0"),r=String(e.getMinutes()).padStart(2,"0");return `${xo(e)} ${t}:${r}`}function Ne(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Pr(e,t,r){let o=e.getTime(),n=Math.min(t.getTime(),r.getTime()),a=Math.max(t.getTime(),r.getTime());return o>=n&&o<=a}function ts(e){return Ne(e,new Date)}var Hr=({mode:e="single",showTime:t=false,value:r,onChange:o,label:n,placeholder:a,error:i,helperText:l,disabled:p=false,loading:c=false,clearable:f=false,size:u="md",fullWidth:s=false,required:h,minDate:d,maxDate:x,firstDayOfWeek:g=1,style:S,className:R})=>{let y=I(),b=Ar[y],w=useId(),D=Ja[u],T=useRef(null),m=useRef(null),[C,v]=useState(false),[k,E]=useState(false),[z,F]=useState("idle"),[B,M]=useState({top:0,left:0,width:0,openAbove:false}),[H,A]=useState(null),$=new Date,[L,Z]=useState($.getFullYear()),[Y,q]=useState($.getMonth()),[re,j]=useState("days"),[J,Q]=useState(0),V=p||c,me=!!i,pe=typeof i=="string"?i:void 0,K=e==="single"&&r instanceof Date?r:null,G=e==="range"&&Array.isArray(r)?r:[null,null],Pe=e==="single"?K!==null:G[0]!==null||G[1]!==null,N=f&&Pe&&!V,ee=(()=>{if(e==="single")return K?t?Br(K):xo(K):"";let[P,X]=G;if(!P&&!X)return "";let _=t?Br:xo;return `${P?_(P):"\u2026"} \u2013 ${X?_(X):"\u2026"}`})(),oe=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"),he=useCallback(()=>{let P=e==="single"?K:G[0];P&&(Z(P.getFullYear()),q(P.getMonth())),j("days"),v(true),E(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[e,K,G]),ye=useCallback(()=>{v(false),F("closing");let P=setTimeout(()=>{E(false),F("idle");},bo);return ()=>clearTimeout(P)},[]),Me=useCallback(()=>{if(!T.current)return;let P=T.current.getBoundingClientRect(),X=m.current?.offsetHeight??380,_=window.innerHeight-P.bottom-6,U=P.top-6,ne=_<X&&U>_;M({top:ne?P.top-6:P.bottom+6,left:P.left,width:Math.max(P.width,300),openAbove:ne});},[]);useEffect(()=>{if(k)return Me(),window.addEventListener("scroll",Me,true),window.addEventListener("resize",Me),()=>{window.removeEventListener("scroll",Me,true),window.removeEventListener("resize",Me);}},[k,Me]),useEffect(()=>{if(!C)return;let P=X=>{let _=X.target,U=T.current?.contains(_),ne=m.current?.contains(_);!U&&!ne&&ye();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[C,ye]);let so=P=>{V||(P.key==="Escape"&&C&&(P.preventDefault(),ye()),(P.key==="Enter"||P.key===" ")&&!C&&(P.preventDefault(),he()));},gt=useCallback(P=>{if(d){let X=new Date(d.getFullYear(),d.getMonth(),d.getDate());if(P<X)return true}if(x){let X=new Date(x.getFullYear(),x.getMonth(),x.getDate());if(P>X)return true}return false},[d,x]),W=useCallback(P=>{if(!gt(P)&&o)if(e==="single")t&&K&&P.setHours(K.getHours(),K.getMinutes()),o(new Date(P)),t||ye();else if(J===0)t&&G[0]&&P.setHours(G[0].getHours(),G[0].getMinutes()),o([new Date(P),null]),Q(1);else {let X=G[0];t&&G[1]&&P.setHours(G[1].getHours(),G[1].getMinutes());let[_,U]=P>=X?[X,new Date(P)]:[new Date(P),X];o([_,U]),Q(0),t||ye();}},[e,t,K,G,J,o,ye,gt]),te=useCallback((P,X,_)=>{if(!o)return;let U=parseInt(X,10);if(isNaN(U)&&(U=0),P==="hour"&&(U=Math.max(0,Math.min(23,U))),P==="minute"&&(U=Math.max(0,Math.min(59,U))),e==="single"){let ne=K?new Date(K):new Date;P==="hour"?ne.setHours(U):ne.setMinutes(U),o(ne);}else {let ne=_??0,ge=[G[0]?new Date(G[0]):null,G[1]?new Date(G[1]):null],Ye=ge[ne]??new Date;P==="hour"?Ye.setHours(U):Ye.setMinutes(U),ge[ne]=Ye,o(ge);}},[e,K,G,o]),fe=()=>{Y===0?(q(11),Z(P=>P-1)):q(P=>P-1);},ve=()=>{Y===11?(q(0),Z(P=>P+1)):q(P=>P+1);},Xe=P=>{P.stopPropagation(),o&&(o(e==="single"?null:[null,null]),Q(0));},ta=()=>{let P=B.openAbove,X=P?"translateY(8px)":"translateY(-8px)",_=P?"translateY(6px)":"translateY(-6px)",U={transition:`opacity ${bo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${bo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return z==="opening"||z==="idle"?{...U,opacity:0,transform:`${X} scale(0.97)`}:z==="open"?{...U,opacity:1,transform:"translateY(0) scale(1)"}:{...U,opacity:0,transform:`${_} scale(0.98)`,pointerEvents:"none"}},oa=es(L,Y,g),io=(P,X)=>{let _=P?P.getHours():0,U=P?P.getMinutes():0,ne={width:"42px",background:"transparent",border:`1px solid ${b.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.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(_).padStart(2,"0"),onChange:ge=>te("hour",ge.target.value,X),style:ne,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:b.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(U).padStart(2,"0"),onChange:ge=>te("minute",ge.target.value,X),style:ne,maxLength:2,"aria-label":"Minuty"})]})},ra=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:Ir.map((P,X)=>{let _=X===Y;return jsx("button",{type:"button",onClick:()=>{q(X),j("days");},style:{background:_?b.daySelected:"transparent",color:_?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:U=>{_||(U.target.style.backgroundColor=b.dayHover);},onMouseLeave:U=>{_||(U.target.style.backgroundColor="transparent");},children:P},X)})}),na=()=>{let P=Math.floor(L/12)*12,X=Array.from({length:12},(_,U)=>P+U);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>Z(_=>_-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:b.text},children:[P," \u2013 ",P+11]}),jsx("button",{type:"button",onClick:()=>Z(_=>_+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:X.map(_=>{let U=_===L;return jsx("button",{type:"button",onClick:()=>{Z(_),j("months");},style:{background:U?b.daySelected:"transparent",color:U?b.daySelectedText:b.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:ne=>{U||(ne.target.style.backgroundColor=b.dayHover);},onMouseLeave:ne=>{U||(ne.target.style.backgroundColor="transparent");},children:_},_)})})]})},aa=k?createPortal(jsx("div",{ref:m,style:{position:"fixed",...B.openAbove?{bottom:window.innerHeight-B.top,left:B.left}:{top:B.top,left:B.left},width:B.width,backgroundColor:b.dropdownBg,border:`1px solid ${b.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:B.openAbove?"bottom center":"top center",...ta()},children:re==="years"?na():re==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>j("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})}),ra()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:fe,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:b.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>j("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:Ir[Y]}),jsx("button",{type:"button",onClick:()=>j("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:b.text,padding:"4px 8px",borderRadius:"4px"},children:L})]}),jsx("button",{type:"button",onClick:ve,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:b.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Qa.map(P=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:b.placeholder,padding:"4px 0",userSelect:"none"},children:P},P))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:oa.map((P,X)=>{let _=P.getMonth()!==Y,U=gt(P),ne=ts(P),ge=false,Ye=false,lo=false,Mt=false;if(e==="single"&&K)ge=Ne(P,K);else if(e==="range"){let[Ae,Ht]=G;Ae&&Ne(P,Ae)&&(Ye=true,ge=true),Ht&&Ne(P,Ht)&&(lo=true,ge=true),Ae&&Ht&&Pr(P,Ae,Ht)&&!Ye&&!lo&&(Mt=true),J===1&&Ae&&H&&!U&&(Ne(P,H)&&!Ne(P,Ae)&&(ge=true),Pr(P,Ae,H)&&!Ne(P,Ae)&&!Ne(P,H)&&(Mt=true));}let co="transparent",At=b.text;return ge?(co=b.daySelected,At=b.daySelectedText):Mt&&(co=b.dayRangeMiddle),_&&(At=ge?b.daySelectedText:b.dayOutside),U&&(At=b.dayDisabled),jsx("button",{type:"button",disabled:U,onClick:()=>W(P),onMouseEnter:()=>{U||A(P);},onMouseLeave:()=>A(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:co,color:At,border:"none",borderRadius:Ye?"6px 0 0 6px":lo?"0 6px 6px 0":Mt?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ge?600:400,cursor:U?"not-allowed":"pointer",opacity:U?.4:1,transition:"background-color 0.1s ease",outline:ne&&!ge?`1.5px solid ${b.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:P.getDate()},X)})}),t&&jsx("div",{style:{borderTop:`1px solid ${b.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:b.placeholder},children:"\u010Cas:"}),io(K)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Od:"}),io(G[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:b.placeholder},children:"Do:"}),io(G[1],1)]})]})})]})}),document.body):null,sa={display:"flex",alignItems:"center",gap:D.gap,backgroundColor:V?b.backgroundDisabled:b.background,border:`1px solid ${me?b.borderError:C?b.borderFocus:b.border}`,borderRadius:"8px",padding:D.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},ia={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},br={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,...S},className:R,children:[n&&jsxs("label",{htmlFor:w,style:ia,children:[n,h&&jsx("span",{style:{color:b.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:T,role:"button",tabIndex:V?-1:0,style:sa,onClick:()=>{V||(C?ye():he());},onKeyDown:so,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:ee?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.text,lineHeight:"normal"},children:ee}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.fontSize,color:b.placeholder,lineHeight:"normal"},children:oe})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[N&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Xe,children:jsx(X,{size:D.iconSize-2,color:b.placeholder})}),c?jsx(ja,{size:D.iconSize,color:b.placeholder}):jsx(CalendarBlank,{size:D.iconSize,color:b.placeholder})]})]}),pe&&jsx("span",{style:{...br,color:b.borderError},children:pe}),!pe&&l&&jsx("span",{style:{...br,color:b.helperText},children:l}),aa]})};Hr.displayName="DatePicker";var os=({label:e,htmlFor:t,children:r,style:o,className:n})=>{let a=I(),i=useId(),l=t??i;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...o},className:n,children:[jsx("label",{htmlFor:l,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ar[a].label,userSelect:"none"},children:e}),r??jsx(Hr,{})]})};os.displayName="DatePickerGroup";var Lr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},ss={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Nr=({checked:e=false,onChange:t,label:r,disabled:o=false,error:n,size:a="md",indeterminate:i=false,className:l,style:p})=>{let c=I(),f=Lr[c],u=ss[a],s=useId(),h=useRef(null),d=!!n,x=typeof n=="string"?n:void 0;useEffect(()=>{h.current&&(h.current.indeterminate=i);},[i]);let g=()=>{o||t?.(!e);},S=d?f.borderError:e||i?f.checkBg:f.border,R=e||i?f.checkBg:o?f.backgroundDisabled:f.background,y={width:u.box,height:u.box,borderRadius:u.radius,border:`1.5px solid ${S}`,backgroundColor:R,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:o?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:o?.5:1},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,color:f.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},w={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...p},className:l,children:[jsxs("label",{htmlFor:s,style:{display:"inline-flex",alignItems:"center",gap:u.gap,cursor:o?"not-allowed":"pointer"},onClick:D=>{D.preventDefault(),g();},children:[jsx("input",{ref:h,id:s,type:"checkbox",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":d||void 0}),jsxs("span",{style:y,children:[e&&!i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),i&&jsx("svg",{width:u.box-6,height:u.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:f.checkMark,strokeWidth:u.strokeWidth,strokeLinecap:"round"})})]}),r&&jsx("span",{style:b,children:r})]}),x&&jsx("span",{style:{...w,color:f.borderError,marginLeft:`${u.box+parseInt(u.gap)}px`},children:x})]})};Nr.displayName="Checkbox";var $r=({label:e,children:t,error:r,className:o,style:n})=>{let a=I(),i=Lr[a],l=typeof r=="string"?r:void 0,p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.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:o,children:[e&&jsx("span",{style:p,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),l&&jsx("span",{style:{...c,color:i.borderError},children:l})]})};$r.displayName="CheckboxGroup";var Wr={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"}},ls={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"}},ho=({value:e,checked:t=false,onChange:r,label:o,disabled:n=false,size:a="md",className:i,style:l})=>{let p=I(),c=Wr[p],f=ls[a],u=useId(),s=()=>{n||r?.(e);},h=t?c.dotRing:c.border,d=n?c.backgroundDisabled:c.background,x={width:f.box,height:f.box,borderRadius:"50%",border:`1.5px solid ${h}`,backgroundColor:d,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...l},className:i,children:jsxs("label",{htmlFor:u,style:{display:"inline-flex",alignItems:"center",gap:f.gap,cursor:n?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),s();},children:[jsx("input",{id:u,type:"radio",value:e,checked:t,disabled:n,onChange:()=>r?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:x,children:t&&jsx("span",{style:{width:f.dot,height:f.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),o&&jsx("span",{style:g,children:o})]})})};ho.displayName="Radio";var Zr=({value:e,onChange:t,label:r,options:o,direction:n="vertical",error:a,helperText:i,size:l="md",className:p,style:c})=>{let f=I(),u=Wr[f],s=!!a,h=typeof a=="string"?a:void 0,d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":r,"aria-invalid":s||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:p,children:[r&&jsx("span",{style:d,children:r}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:o.map(g=>jsx(ho,{value:g.value,label:g.label,checked:e===g.value,onChange:t,disabled:g.disabled,size:l},g.value))}),h&&jsx("span",{style:{...x,color:u.borderError},children:h}),!h&&i&&jsx("span",{style:{...x,color:u.helperText},children:i})]})};Zr.displayName="RadioGroup";var ds={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"}},ps={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"}},Yr=({checked:e=false,onChange:t,label:r,disabled:o=false,size:n="md",className:a,style:i})=>{let l=I(),p=ds[l],c=ps[n],f=useId(),u=()=>{o||t?.(!e);},s=1.5,h=2,x=c.trackW-s*2-c.thumb-h,g=e?x:0,S={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?p.trackOn:p.trackOff,border:`${s}px solid ${e?p.trackOnBorder:p.trackOffBorder}`,position:"relative",cursor:o?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:o?.5:1,boxSizing:"border-box"},R={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:p.thumb,position:"absolute",top:"50%",left:h,transform:`translateY(-50%) translateX(${g}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:p.text,cursor:o?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...i},className:a,children:jsxs("label",{htmlFor:f,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:o?"not-allowed":"pointer"},onClick:b=>{b.preventDefault(),u();},children:[jsx("input",{id:f,type:"checkbox",role:"switch",checked:e,disabled:o,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:S,children:jsx("span",{style:R})}),r&&jsx("span",{style:y,children:r})]})})};Yr.displayName="Switch";var 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",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"}},ys={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},Ur=zo.forwardRef(({label:e,error:t,helperText:r,disabled:o,loading:n=false,size:a="md",fullWidth:i=false,required:l,rows:p=4,maxLength:c,resize:f="vertical",autoHeight:u=false,minRows:s,maxRows:h,className:d,style:x,value:g,onChange:S,onFocus:R,onBlur:y,...b},w)=>{let D=I(),T=hs[D],m=ys[a],C=useId(),v=b.id??C,[k,E]=useState(false),z=useRef(null),F=useCallback(()=>{let J=z.current;if(!J||!u)return;J.style.height="auto";let Q=getComputedStyle(J),V=parseFloat(Q.lineHeight)||parseFloat(Q.fontSize)*1.5,me=parseFloat(Q.paddingTop)||0,pe=parseFloat(Q.paddingBottom)||0,K=me+pe,Pe=V*(s??1)+K,N=h?V*h+K:1/0,ee=Math.min(Math.max(J.scrollHeight,Pe),N);J.style.height=`${ee}px`,J.style.overflowY=J.scrollHeight>N?"auto":"hidden";},[u,s,h]);useEffect(()=>{F();},[g,F]);let B=useCallback(J=>{z.current=J,typeof w=="function"?w(J):w&&(w.current=J);},[w]),M=u?"none":f,H=u?s??1:p,A=o||n,$=!!t,L=typeof t=="string"?t:void 0,Z=typeof g=="string"?g.length:0,Y={backgroundColor:A?T.backgroundDisabled:T.background,border:`1px solid ${$?T.borderError:k?T.borderFocus:T.border}`,borderRadius:"8px",padding:m.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:A?.6:1,cursor:A?"not-allowed":"text"},q={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:m.fontSize,lineHeight:"1.5",color:T.text,cursor:A?"not-allowed":"text",resize:M,boxSizing:"border-box",overflow:u?"hidden":void 0},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:T.label,userSelect:"none"},j={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...x},className:d,children:[e&&jsxs("label",{htmlFor:v,style:re,children:[e,l&&jsx("span",{style:{color:T.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:Y,children:jsx("textarea",{ref:B,id:v,rows:H,maxLength:c,disabled:o,required:l,readOnly:n||b.readOnly,value:g,onChange:S,style:q,onFocus:J=>{E(true),R?.(J);},onBlur:J=>{E(false),y?.(J);},...b})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[L&&jsx("span",{style:{...j,color:T.borderError},children:L}),!L&&r&&jsx("span",{style:{...j,color:T.helperText},children:r})]}),c!==void 0&&jsxs("span",{style:{...j,color:Z>c?T.borderError:T.counter,flexShrink:0},children:[Z,"/",c]})]})]})});Ur.displayName="Textarea";var Ss={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)"}},ks={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function _r(e,t,r){return Math.min(Math.max(e,t),r)}function Cs(e,t,r){return Math.round((e-t)/r)*r+t}var Kr=({value:e,onChange:t,min:r=0,max:o=100,step:n=1,label:a,disabled:i=false,showValue:l=false,range:p=false,size:c="md",className:f,style:u})=>{let s=I(),h=Ss[s],d=ks[c],x=useId(),g=useRef(null),S=useRef(null),R=p?e:[r,e],y=k=>(k-r)/(o-r)*100,b=y(R[0]),w=y(R[1]),D=useCallback(k=>{let E=g.current;if(!E)return r;let z=E.getBoundingClientRect(),F=_r((k-z.left)/z.width,0,1),B=r+F*(o-r);return _r(Cs(B,r,n),r,o)},[r,o,n]),T=useCallback(k=>{if(i)return;k.preventDefault();let E=D(k.clientX);if(p){let B=e,M=Math.abs(E-B[0]),H=Math.abs(E-B[1]),A=M<=H?"start":"end";S.current=A;let $=A==="start"?[Math.min(E,B[1]),B[1]]:[B[0],Math.max(E,B[0])];t?.($);}else S.current="end",t?.(E);let z=B=>{let M=D(B.clientX);if(p){let H=e;S.current==="start"?t?.([Math.min(M,H[1]),H[1]]):t?.([H[0],Math.max(M,H[0])]);}else t?.(M);},F=()=>{S.current=null,document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",z),document.addEventListener("mouseup",F);},[i,D,t,p,e]),m={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:h.label,userSelect:"none"},C=p?`${R[0]} \u2013 ${R[1]}`:`${e}`,v={width:d.thumb,height:d.thumb,borderRadius:"50%",backgroundColor:h.thumb,border:`2px solid ${h.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:i?"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:i?.5:1,...u},className:f,children:[(a||l)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:x,style:m,children:a}),l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:h.text,userSelect:"none"},children:C})]}),jsxs("div",{ref:g,role:"slider",id:x,"aria-valuemin":r,"aria-valuemax":o,"aria-valuenow":p?void 0:e,"aria-disabled":i||void 0,onMouseDown:T,style:{position:"relative",width:"100%",height:d.thumb,cursor:i?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:h.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${p?b:0}%`,width:`${w-(p?b:0)}%`,height:d.trackH,transform:"translateY(-50%)",borderRadius:d.trackH/2,backgroundColor:h.trackFill}}),p&&jsx("span",{style:{...v,left:`${b}%`}}),jsx("span",{style:{...v,left:`${w}%`}})]})]})};Kr.displayName="Slider";var Es={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 ko(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Ds=0,Jr=({variant:e="dropzone",onFiles:t,accept:r,multiple:o=false,maxSize:n,disabled:a=false,label:i,helperText:l,error:p,className:c,style:f})=>{let u=I(),s=Es[u],h=useId(),d=useRef(null),[x,g]=useState(false),[S,R]=useState([]),[y,b]=useState(null),w=!!p||!!y,D=typeof p=="string"?p:y??void 0,T=useCallback(z=>{let F=Array.from(z);if(b(null),n){let H=F.find(A=>A.size>n);if(H){b(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${ko(n)}.`);return}}let B=F.map(H=>({file:H,id:`file-${++Ds}`})),M=o?[...S,...B]:B;R(M),t?.(M.map(H=>H.file));},[S,n,o,t]),m=useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&T(z.dataTransfer.files);},[a,T]),C=useCallback(z=>{let F=S.filter(B=>B.id!==z);R(F),t?.(F.map(B=>B.file));},[S,t]),v={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},k={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${w?s.borderError:x?s.borderDrag:s.border}`,borderRadius:"8px",backgroundColor:x?s.backgroundDrag:a?s.backgroundDisabled:s.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},E={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:c,children:[i&&jsx("span",{style:v,children:i}),jsx("input",{ref:d,id:h,type:"file",accept:r,multiple:o,disabled:a,onChange:z=>{z.target.files&&z.target.files.length>0&&T(z.target.files),z.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:k,onClick:()=>!a&&d.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:m,children:[jsx(UploadSimple,{size:32,color:s.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):jsxs("div",{onClick:()=>!a&&d.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${w?s.borderError:s.border}`,backgroundColor:a?s.backgroundDisabled:s.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=w?s.borderError:u==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:z=>{z.currentTarget.style.borderColor=w?s.borderError:s.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.textSecondary},children:S.length>0?jsx(FileText,{size:18,color:s.textSecondary}):jsx(UploadSimple,{size:18,color:s.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:S.length>0?s.text:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:S.length===0?"Vyberte soubor...":S.length===1?S[0].file.name:`${S.length} soubor\u016F`}),S.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.textSecondary,flexShrink:0},children:ko(S[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:s.textSecondary},children:jsx(Folder,{size:16,color:s.textSecondary})})]}),S.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:S.map(z=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:s.fileBg},children:[jsx(FileText,{size:24,color:s.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:s.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.textSecondary,flexShrink:0},children:ko(z.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${z.file.name}`,onClick:F=>{F.stopPropagation(),C(z.id);},onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&C(z.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:s.removeColor})})]},z.id))}),D&&jsx("span",{style:{...E,color:s.borderError},children:D}),!D&&l&&jsx("span",{style:{...E,color:s.helperText},children:l})]})};Jr.displayName="FileUpload";var Bs={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)"}},Ps={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"}},Ms=({data:e,value:t,onChange:r,size:o="md",fullWidth:n=false,orientation:a="horizontal",disabled:i=false,className:l,style:p})=>{let c=I(),f=Bs[c],u=Ps[o],s=a==="vertical",h=e.map(b=>typeof b=="string"?{value:b,label:b}:b),d=h.findIndex(b=>b.value===t),x=useRef(null),g=useRef([]),[S,R]=useState({offset:0,size:0}),y=useCallback(()=>{let b=x.current,w=g.current[d];if(!b||!w||d<0)return;let D=b.getBoundingClientRect(),T=w.getBoundingClientRect();R(s?{offset:T.top-D.top,size:T.height}:{offset:T.left-D.left,size:T.width});},[d,s]);return useEffect(()=>{y();},[y,t,e,o]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:x,role:"radiogroup",className:l,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:s?"column":"row",backgroundColor:f.bg,border:`1px solid ${f.border}`,borderRadius:u.borderRadius,padding:u.padding,boxSizing:"border-box",opacity:i?.5:1,cursor:i?"not-allowed":void 0,...p},children:[d>=0&&S.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:u.itemRadius,backgroundColor:f.indicator,border:`1px solid ${f.indicatorBorder}`,boxShadow:f.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...s?{left:u.padding,right:u.padding,top:S.offset,height:S.size}:{top:u.padding,bottom:u.padding,left:S.offset,width:S.size}}}),h.map((b,w)=>{let D=b.value===t,T=i||b.disabled;return jsx("button",{ref:m=>{g.current[w]=m;},type:"button",role:"radio","aria-checked":D,disabled:T,onClick:()=>{T||r(b.value);},style:{position:"relative",zIndex:1,flex:n?1:void 0,padding:u.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:u.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:D?500:400,color:T?f.textDisabled:D?f.textActive:f.text,cursor:T?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:m=>{!T&&!D&&(m.currentTarget.style.color=f.textHover);},onMouseLeave:m=>{!T&&!D&&(m.currentTarget.style.color=f.text);},children:b.label??b.value},b.value)})]})};Ms.displayName="SegmentedControl";var $s={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)"}},wo=180,Ws=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],To=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Zs=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},Os=e=>{let t=e.replace("#",""),r=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),o=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (r*299+o*587+n*114)/1e3>150},Ys=({value:e,onChange:t,presets:r=Ws,label:o,disabled:n=false,style:a,className:i})=>{let l=I(),p=$s[l],f=useId(),u=useRef(null),s=useRef(null),[h,d]=useState(false),[x,g]=useState(false),[S,R]=useState("idle"),[y,b]=useState(e),[w,D]=useState(false),[T,m]=useState({top:0,left:0,openAbove:false});useEffect(()=>{w||b(e);},[e,w]);let C=useCallback(()=>{n||(d(true),g(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));}));},[n]),v=useCallback(()=>{d(false),R("closing");let L=setTimeout(()=>{g(false),R("idle");},wo);return ()=>clearTimeout(L)},[]),k=useCallback(()=>{if(!u.current)return;let L=u.current.getBoundingClientRect(),Z=220,Y=window.innerHeight-L.bottom-8,q=Y<Z&&L.top>Y;m({top:q?L.top-8:L.bottom+8,left:L.left,openAbove:q});},[]);useEffect(()=>{if(x)return k(),window.addEventListener("scroll",k,true),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k,true),window.removeEventListener("resize",k);}},[x,k]),useEffect(()=>{if(!h)return;let L=Z=>{let Y=Z.target;!u.current?.contains(Y)&&!s.current?.contains(Y)&&v();};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[h,v]);let E=L=>{let Z=Zs(L.target.value);b(Z),To(Z)&&t(Z);},z=()=>{D(false),To(y)?t(y):b(e);},F=L=>{t(L),b(L),v();},B=()=>{let L=T.openAbove,Z=L?"translateY(8px)":"translateY(-8px)",Y=L?"translateY(6px)":"translateY(-6px)",q={transition:`opacity ${wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...q,opacity:0,transform:`${Z} scale(0.97)`}:S==="open"?{...q,opacity:1,transform:"translateY(0) scale(1)"}:{...q,opacity:0,transform:`${Y} scale(0.98)`,pointerEvents:"none"}},M={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?p.backgroundDisabled:p.background,border:`1px solid ${w?p.borderFocus:p.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},H={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:To(e)?e:"#cccccc",border:`1px solid ${p.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},A={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},$=x?createPortal(jsx("div",{ref:s,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},backgroundColor:p.popoverBg,border:`1px solid ${p.popoverBorder}`,borderRadius:"12px",boxShadow:l==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom left":"top left",...B()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:r.map((L,Z)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${L}`,onClick:()=>F(L),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:L,border:L===e?"2px solid #FC4F00":`1px solid ${p.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:Y=>{Y.currentTarget.style.transform="scale(1.1)";},onMouseLeave:Y=>{Y.currentTarget.style.transform="scale(1)";}},`${L}-${Z}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:i,children:[o&&jsx("label",{htmlFor:f,style:A,children:o}),jsxs("div",{ref:u,style:M,children:[jsx("div",{style:H,onClick:()=>{n||(h?v():C());}}),jsx("input",{id:f,type:"text",value:y,onChange:E,onFocus:()=>D(true),onBlur:z,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:p.text,cursor:n?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(h?v():C());},children:jsx(Eyedropper,{size:16,color:(Os(e)&&l==="light",p.placeholder)})})]}),$]})};Ys.displayName="ColorPicker";var Gs={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"}},_s={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Ks=({value:e,onChange:t,max:r=5,size:o="md",readOnly:n=false,label:a,style:i,className:l})=>{let p=I(),c=Gs[p],f=useId(),u=_s[o],[s,h]=useState(null),d=!n&&!!t,x=useCallback(b=>{d&&t(b+1);},[d,t]),g=useCallback(b=>{d&&h(b);},[d]),S=useCallback(()=>{h(null);},[]),R={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:r},(b,w)=>{let D=s!==null?s+1:e,T=w<D,m=s!==null&&w<=s;return jsx("span",{role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":d?`Hodnocen\xED ${w+1} z ${r}`:void 0,onClick:()=>x(w),onMouseEnter:()=>g(w),onMouseLeave:S,onKeyDown:C=>{d&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),x(w));},style:{display:"inline-flex",cursor:d?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:m?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:u.starSize,weight:T?"fill":"regular",color:T?m?c.starHover:c.starFilled:c.starEmpty})},w)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:l,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:f,style:R,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:u.gap},onMouseLeave:S,children:y})]})};Ks.displayName="Rating";var oi={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"}},ri=({length:e=6,value:t,onChange:r,error:o,disabled:n=false,autoFocus:a=false,label:i,separatorAfter:l,separator:p="-",style:c,className:f})=>{let u=I(),s=oi[u],h=useId(),d=useRef([]),[x,g]=useState(null),S=!!o,R=typeof o=="string"?o:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&d.current[0]&&d.current[0].focus();},[a]);let b=useCallback(F=>{F>=0&&F<e&&d.current[F]?.focus();},[e]),w=useCallback(F=>{let B=F.join("").replace(/[^0-9]/g,"");r(B);},[r]),D=useCallback((F,B)=>{if(!/^[0-9]$/.test(B))return;let M=[...y];M[F]=B,w(M),F<e-1&&b(F+1);},[y,e,w,b]),T=useCallback((F,B)=>{switch(B.key){case "Backspace":if(B.preventDefault(),y[F]){let M=[...y];M[F]="",w(M);}else if(F>0){let M=[...y];M[F-1]="",w(M),b(F-1);}break;case "Delete":B.preventDefault();{let M=[...y];M[F]="",w(M);}break;case "ArrowLeft":B.preventDefault(),F>0&&b(F-1);break;case "ArrowRight":B.preventDefault(),F<e-1&&b(F+1);break}},[y,e,w,b]),m=useCallback((F,B)=>{let H=B.target.value.slice(-1);H&&/^[0-9]$/.test(H)&&D(F,H);},[D]),C=useCallback(F=>{F.preventDefault();let B=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!B)return;let M=[...y];for(let A=0;A<B.length;A++)M[A]=B[A];w(M);let H=Math.min(B.length,e-1);b(H);},[y,e,w,b]),v=useCallback(F=>{g(F),d.current[F]?.select();},[]),k=useCallback(()=>{g(null);},[]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},z=F=>{let B=x===F,M=!!y[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:s.text,textAlign:"center",backgroundColor:n?s.backgroundDisabled:M?s.backgroundFilled:s.background,border:`1px solid ${S?s.borderError:B?s.borderFocus:M?s.borderFilled:s.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:s.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:f,children:[i&&jsx("label",{htmlFor:`${h}-0`,style:E,children:i}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:C,children:Array.from({length:e},(F,B)=>jsxs(zo.Fragment,{children:[l&&B>0&&B%l===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:s.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:p}),jsx("input",{ref:M=>{d.current[B]=M;},id:`${h}-${B}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[B]||"",onChange:M=>m(B,M),onKeyDown:M=>T(B,M),onFocus:()=>v(B),onBlur:k,disabled:n,"aria-label":`\u010C\xEDslice ${B+1} z ${e}`,style:z(B)})]},B))}),R&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:s.borderError,lineHeight:"normal"},children:R})]})};ri.displayName="OTPInput";var ni={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)"}},sn="smSkeletonShimmer",ai=`@keyframes ${sn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,rt=({variant:e="text",width:t,height:r,lines:o=1,animate:n=true,className:a,style:i})=>{let l=I(),p=ni[l],c=t??(e==="circle"?40:"100%"),f=r??(e==="circle"?40:e==="text"?"1em":100),u={backgroundColor:p.base,backgroundImage:n?`linear-gradient(90deg, ${p.base} 25%, ${p.shimmer} 50%, ${p.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${sn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof f=="number"?`${f}px`:f},s=n?jsx("style",{dangerouslySetInnerHTML:{__html:ai}}):null;return e==="text"&&o>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...i},children:[s,Array.from({length:o}).map((h,d)=>jsx("div",{style:{...u,width:d===o-1?"75%":u.width}},d))]}):jsxs(Fragment,{children:[s,jsx("div",{className:a,style:{...u,...i}})]})};rt.displayName="Skeleton";var li={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},ci=({columns:e,data:t,loading:r=false,emptyText:o="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:i,striped:l=false,hoverable:p=true,className:c,style:f})=>{let u=I(),s=li[u],h=R=>{if(!R.sortable||!n)return;let y=a===R.key&&i==="asc"?"desc":"asc";n(R.key,y);},d={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",overflow:"hidden",...f},x=R=>({padding:"12px 16px",textAlign:"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",cursor:R.sortable?"pointer":"default",userSelect:"none",width:R.width!=null?typeof R.width=="number"?`${R.width}px`:R.width:void 0}),g={padding:"10px 16px",borderBottom:`1px solid ${s.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:d,children:[jsx("thead",{children:jsx("tr",{children:e.map(R=>jsx("th",{style:x(R),onClick:()=>h(R),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[R.header,R.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===R.key?s.sortActive:s.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},R.key))})}),jsx("tbody",{children:r?Array.from({length:5}).map((R,y)=>jsx("tr",{children:e.map(b=>jsx("td",{style:g,children:jsx(rt,{variant:"text",width:"80%"})},b.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...g,textAlign:"center",padding:"32px 16px",color:s.textSecondary,borderBottom:"none"},children:o})}):t.map((R,y)=>jsx("tr",{style:{backgroundColor:l&&y%2===1?s.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:b=>{p&&(b.currentTarget.style.backgroundColor=s.rowHover);},onMouseLeave:b=>{p&&(b.currentTarget.style.backgroundColor=l&&y%2===1?s.stripedBg:"transparent");},children:e.map(b=>jsx("td",{style:{...g,borderBottom:y===t.length-1?"none":g.borderBottom},children:b.render?b.render(R[b.key],R,y):R[b.key]},b.key))},y))})]})};ci.displayName="Table";var pi={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"}},pn=({checked:e,indeterminate:t,onChange:r,t:o})=>{let n=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),r();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),r());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?o.checkboxCheckedBorder:o.checkboxBorder}`,backgroundColor:n?o.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:o.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:o.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},fi=({columns:e,data:t,selectable:r=false,onSelectionChange:o,loading:n=false,rowKey:a="id",onRowClick:i,stickyHeader:l=false,emptyText:p="\u017D\xE1dn\xE1 data",style:c,className:f})=>{let u=I(),s=pi[u],[h,d]=useState(new Set),[x,g]=useState(null),S=useMemo(()=>t.map(E=>String(E[a])),[t,a]),R=S.length>0&&S.every(E=>h.has(E)),y=S.some(E=>h.has(E))&&!R,b=useCallback(()=>{let E=R?new Set:new Set(S);d(E),o?.(Array.from(E));},[R,S,o]),w=useCallback(E=>{d(z=>{let F=new Set(z);return F.has(E)?F.delete(E):F.add(E),o?.(Array.from(F)),F});},[o]),D={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,backgroundColor:s.background},T=E=>({padding:"12px 16px",textAlign:E.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:E.width!=null?typeof E.width=="number"?`${E.width}px`:E.width:void 0,minWidth:E.minWidth!=null?`${E.minWidth}px`:void 0,...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),m=E=>({padding:"10px 16px",borderBottom:`1px solid ${s.border}`,lineHeight:"normal",textAlign:E.align||"left"}),C={padding:"12px 12px 12px 16px",backgroundColor:s.headerBg,borderBottom:`1px solid ${s.border}`,width:"40px",...l?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},v={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${s.border}`,width:"40px"};return jsx("div",{className:f,style:{overflow:l?"auto":"hidden",borderRadius:"12px",border:`1px solid ${s.border}`,...c},children:jsxs("table",{style:D,children:[jsx("thead",{children:jsxs("tr",{children:[r&&jsx("th",{style:C,children:jsx(pn,{checked:R,indeterminate:y,onChange:b,t:s})}),e.map(E=>jsx("th",{style:T(E),children:E.header},E.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((E,z)=>jsxs("tr",{children:[r&&jsx("td",{style:v,children:jsx(rt,{variant:"rect",width:16,height:16})}),e.map(F=>jsx("td",{style:m(F),children:jsx(rt,{variant:"text",width:"80%"})},F.key))]},`skel-${z}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(r?1:0),style:{textAlign:"center",padding:"32px 16px",color:s.textSecondary,borderBottom:"none"},children:p})}):t.map((E,z)=>{let F=String(E[a]),B=h.has(F),M=x===F,H=z===t.length-1,A="transparent";return B?A=s.selectedRowBg:M&&(A=s.rowHover),jsxs("tr",{style:{backgroundColor:A,cursor:i?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>g(F),onMouseLeave:()=>g(null),onClick:()=>i?.(E),children:[r&&jsx("td",{style:{...v,borderBottom:H?"none":v.borderBottom},children:jsx(pn,{checked:B,onChange:()=>w(F),t:s})}),e.map($=>jsx("td",{style:{...m($),borderBottom:H?"none":m($).borderBottom},children:$.render?$.render(E[$.key],E,z):E[$.key]},$.key))]},F)})})]})})};fi.displayName="DataGrid";var ui={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)"}},gi={none:"0",sm:"12px",md:"20px",lg:"28px"},bi=({title:e,subtitle:t,header:r,footer:o,children:n,hoverable:a=false,bordered:i=true,padding:l="md",className:p,style:c})=>{let f=I(),u=ui[f],s=gi[l],h={backgroundColor:u.background,border:i?`1px solid ${u.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},d=r??(e||t?jsxs("div",{style:{padding:s,paddingBottom:n||o?"0":s},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:u.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:u.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:p,style:h,onMouseEnter:x=>{a&&(x.currentTarget.style.borderColor=u.borderHover,x.currentTarget.style.transform="translateY(-2px)",x.currentTarget.style.boxShadow=f==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:x=>{a&&(x.currentTarget.style.borderColor=i?u.border:"transparent",x.currentTarget.style.transform="translateY(0)",x.currentTarget.style.boxShadow="none");},children:[d,n&&jsx("div",{style:{padding:s},children:n}),o&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${u.divider}`}}),jsx("div",{style:{padding:s},children:o})]})]})};bi.displayName="Card";var gn={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)"}},vi=({title:e,children:t,defaultOpen:r=false,disabled:o=false,_controlled:n,_open:a,_onToggle:i})=>{let l=I(),p=gn[l],[c,f]=useState(r),u=n?!!a:c,s=useRef(null),[h,d]=useState(0);useEffect(()=>{s.current&&d(s.current.scrollHeight);},[t,u]);let x=useCallback(()=>{o||(n&&i?i():f(g=>!g));},[o,n,i]);return jsxs("div",{style:{borderBottom:`1px solid ${p.border}`},children:[jsxs("button",{type:"button",disabled:o,onClick:x,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:o?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:o?p.textDisabled:p.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:g=>{o||(g.currentTarget.style.backgroundColor=p.hoverBg);},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:o?p.chevronDisabled:p.chevron,style:{transition:"transform 0.25s ease",transform:u?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:s,style:{overflow:"hidden",maxHeight:u?`${h}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:p.textSecondary},children:t})})]})};vi.displayName="AccordionItem";var Si=({children:e,multiple:t=false,className:r,style:o})=>{let n=I(),a=gn[n],i=zo.Children.toArray(e).filter(f=>zo.isValidElement(f)),[l,p]=useState(()=>{let f=new Set;return i.forEach((u,s)=>{u.props.defaultOpen&&f.add(s);}),f}),c=useCallback(f=>{p(u=>{let s=new Set(u);return s.has(f)?s.delete(f):(t||s.clear(),s.add(f)),s});},[t]);return jsx("div",{className:r,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...o},children:i.map((f,u)=>zo.cloneElement(f,{key:u,_controlled:true,_open:l.has(u),_onToggle:()=>c(u)}))})};Si.displayName="Accordion";var ki={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)"}},Ci={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Ri=()=>null;Ri.displayName="Tab";var wi=()=>null;wi.displayName="TabPanel";var Ti=({value:e,onChange:t,children:r,variant:o="underline",fullWidth:n=false,size:a="md",className:i,style:l})=>{let p=I(),c=ki[p],f=Ci[a],u=zo.Children.toArray(r),s=u.filter(x=>zo.isValidElement(x)&&x.type?.displayName==="Tab"),d=u.filter(x=>zo.isValidElement(x)&&x.type?.displayName==="TabPanel").find(x=>x.props.value===e);return jsxs("div",{className:i,style:l,children:[jsx("div",{style:{display:"flex",gap:o==="pills"?"4px":"0",borderBottom:o==="underline"?`1px solid ${c.border}`:"none"},children:s.map(x=>{let g=x.props.value===e,S=x.props.disabled,R=o==="underline"?{padding:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:S?c.textDisabled:g?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${g?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:S?"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:f.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,fontWeight:g?500:400,color:S?c.textDisabled:g?c.pillText:c.textInactive,backgroundColor:g?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:S?"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:S,style:R,onClick:()=>{S||t(x.props.value);},onMouseEnter:y=>{!S&&!g&&(y.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:y=>{S||(y.currentTarget.style.backgroundColor=o==="pills"&&g?c.pillBg:"transparent");},children:[x.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:x.props.icon}),x.props.label]},x.props.value)})}),d&&jsx("div",{style:{paddingTop:"16px"},children:d.props.children})]})};Ti.displayName="Tabs";var Di={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},zi=({content:e,children:t,position:r="top",delay:o=200,className:n,style:a})=>{let i=I(),l=Di[i],[p,c]=useState(false),[f,u]=useState({top:0,left:0}),s=useRef(null),h=useRef(null),d=useRef(void 0),x=6,g=8,S=useCallback(()=>{let D=s.current,T=h.current;if(!D||!T)return;let m=D.getBoundingClientRect(),C=T.getBoundingClientRect(),v=0,k=0;switch(r){case "top":v=m.top-C.height-g,k=m.left+m.width/2-C.width/2;break;case "bottom":v=m.bottom+g,k=m.left+m.width/2-C.width/2;break;case "left":v=m.top+m.height/2-C.height/2,k=m.left-C.width-g;break;case "right":v=m.top+m.height/2-C.height/2,k=m.right+g;break}u({top:v,left:k});},[r]);useEffect(()=>{p&&requestAnimationFrame(S);},[p,S]);let R=useCallback(()=>{d.current=setTimeout(()=>c(true),o);},[o]),y=useCallback(()=>{d.current&&clearTimeout(d.current),c(false);},[]);useEffect(()=>()=>{d.current&&clearTimeout(d.current);},[]);let b=(()=>{let D={position:"absolute",width:0,height:0,border:`${x}px solid transparent`};switch(r){case "top":return {...D,bottom:-x,left:"50%",transform:"translateX(-50%)",borderTopColor:l.background,borderBottomWidth:0};case "bottom":return {...D,top:-x,left:"50%",transform:"translateX(-50%)",borderBottomColor:l.background,borderTopWidth:0};case "left":return {...D,right:-x,top:"50%",transform:"translateY(-50%)",borderLeftColor:l.background,borderRightWidth:0};case "right":return {...D,left:-x,top:"50%",transform:"translateY(-50%)",borderRightColor:l.background,borderLeftWidth:0}}})(),w=p?createPortal(jsxs("div",{ref:h,className:n,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"6px 12px",backgroundColor:l.background,color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsx("div",{style:b})]}),document.body):null;return jsxs(Fragment,{children:[zo.cloneElement(t,{ref:s,onMouseEnter:D=>{R(),t.props.onMouseEnter?.(D);},onMouseLeave:D=>{y(),t.props.onMouseLeave?.(D);}}),w]})};zi.displayName="Tooltip";var Ai={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"}},Lo=180,Ut=8,Hi=({content:e,children:t,position:r="bottom",trigger:o="click",className:n,style:a})=>{let i=I(),l=Ai[i],[p,c]=useState(false),[f,u]=useState(false),[s,h]=useState("idle"),[d,x]=useState({top:0,left:0}),g=useRef(null),S=useRef(null),R=useRef(void 0),y=useCallback(()=>{c(true),u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});},[]),b=useCallback(()=>{c(false),h("closing");let k=setTimeout(()=>{u(false),h("idle");},Lo);return ()=>clearTimeout(k)},[]),w=useCallback(()=>{let k=g.current,E=S.current;if(!k||!E)return;let z=k.getBoundingClientRect(),F=E.getBoundingClientRect(),B=0,M=0;switch(r){case "top":B=z.top-F.height-Ut,M=z.left+z.width/2-F.width/2;break;case "bottom":B=z.bottom+Ut,M=z.left+z.width/2-F.width/2;break;case "left":B=z.top+z.height/2-F.height/2,M=z.left-F.width-Ut;break;case "right":B=z.top+z.height/2-F.height/2,M=z.right+Ut;break}x({top:B,left:M});},[r]);useEffect(()=>{if(f)return requestAnimationFrame(w),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[f,w]),useEffect(()=>{if(!p)return;let k=E=>{let z=E.target;!g.current?.contains(z)&&!S.current?.contains(z)&&b();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[p,b]),useEffect(()=>{if(!p)return;let k=E=>{E.key==="Escape"&&b();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[p,b]);let D=()=>{let k={transition:`opacity ${Lo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Lo}ms cubic-bezier(0.16, 1, 0.3, 1)`},E={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},z=r==="top"||r==="bottom"?"Y":"X";return s==="opening"||s==="idle"?{...k,opacity:0,transform:`translate${z}(${E[r]}) scale(0.97)`}:s==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`translate${z}(${E[r]}) scale(0.98)`,pointerEvents:"none"}},T=useCallback(()=>{o==="click"&&(p?b():y());},[o,p,b,y]),m=useCallback(()=>{o==="hover"&&(R.current&&clearTimeout(R.current),p||y());},[o,p,y]),C=useCallback(()=>{o==="hover"&&(R.current=setTimeout(()=>{b();},150));},[o,b]);useEffect(()=>()=>{R.current&&clearTimeout(R.current);},[]);let v=f?createPortal(jsx("div",{ref:S,className:n,onMouseEnter:()=>{o==="hover"&&R.current&&clearTimeout(R.current);},onMouseLeave:C,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"16px",backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",color:l.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:l.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...D(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[zo.cloneElement(t,{ref:g,onClick:k=>{T(),t.props.onClick?.(k);},onMouseEnter:k=>{m(),t.props.onMouseEnter?.(k);},onMouseLeave:k=>{C(),t.props.onMouseLeave?.(k);}}),v]})};Hi.displayName="Popover";var Wi={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Zi=({icon:e,title:t,description:r,action:o,className:n,style:a})=>{let i=I(),l=Wi[i];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:l.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:l.text},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:l.textSecondary,maxWidth:"360px"},children:r}),o&&jsx("div",{style:{marginTop:"8px"},children:o})]})};Zi.displayName="EmptyState";var Ui={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)"}},qi=({label:e,value:t,change:r,changeLabel:o,icon:n,trend:a="neutral",className:i,style:l})=>{let p=I(),c=Ui[p],f=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,u=s=>`${s>0?"+":""}${s.toFixed(1)} %`;return jsxs("div",{className:i,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...l},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}),r!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:f},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:f}),a==="down"&&jsx(TrendDownIcon,{size:14,color:f}),jsx("span",{children:u(r)}),o&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:o})]})]})]})};qi.displayName="Stat";var Gi=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],cu=({initials:e,size:t="md",borderRadius:r="8px",style:o,className:n,"aria-label":a})=>{let i=Gi(t),l={display:"inline-flex",alignItems:"center",justifyContent:"center",width:i,height:i,borderRadius:r,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...o},p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(i*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:l,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:p,children:e.toUpperCase()})})};var vn={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)"}},$o=({onClick:e,title:t,color:r,children:o})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:o}),gu=({label:e,onRemove:t,style:r,className:o})=>{let n=vn[I()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...r},className:o,children:[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"})]})},bu=({label:e,style:t,className:r})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:r,children:e}),mu=({label:e,onFilter:t,onEdit:r,onDelete:o,showActions:n=true,style:a,className:i})=>{let l=vn[I()],p=t||r||o;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:l.itemBg,border:`1px solid ${l.itemBorder}`,borderRadius:"8px",...a},className:i,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:l.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&p&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx($o,{onClick:t,title:"Filtrovat",color:l.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),r&&jsx($o,{onClick:r,title:"Upravit",color:l.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),o&&jsx($o,{onClick:o,title:"Smazat",color:l.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var Qi={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)"}},el=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],_t=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],Zo=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Yo=e=>{let t=new Date(e),r=t.getDay(),o=(r===0?-6:1)-r;return t.setDate(t.getDate()+o),t.setHours(0,0,0,0),t},tl=(e,t)=>{let r=new Date(e,t,1),o=Yo(r),n=[],a=new Date(o);for(let i=0;i<42;i++)n.push(new Date(a)),a.setDate(a.getDate()+1);return n},ol=e=>{let t=Yo(e),r=[];for(let o=0;o<7;o++){let n=new Date(t);n.setDate(t.getDate()+o),r.push(n);}return r},rl=(e,t,r)=>{if(t){let o=new Date(t);if(o.setHours(0,0,0,0),e<o)return true}if(r){let o=new Date(r);if(o.setHours(23,59,59,999),e>o)return true}return false},nl=({value:e,onChange:t,view:r="month",events:o=[],minDate:n,maxDate:a,style:i,className:l})=>{let p=I(),c=Qi[p],f=useMemo(()=>{let v=new Date;return v.setHours(0,0,0,0),v},[]),[u,s]=useState(()=>e?e.getMonth():f.getMonth()),[h,d]=useState(()=>e?e.getFullYear():f.getFullYear()),[x,g]=useState(()=>Yo(e||f)),[S,R]=useState(null),y=useMemo(()=>r==="week"?ol(x):tl(h,u),[r,h,u,x]),b=useCallback(()=>{r==="week"?g(v=>{let k=new Date(v);return k.setDate(k.getDate()-7),k}):s(v=>v===0?(d(k=>k-1),11):v-1);},[r]),w=useCallback(()=>{r==="week"?g(v=>{let k=new Date(v);return k.setDate(k.getDate()+7),k}):s(v=>v===11?(d(k=>k+1),0):v+1);},[r]),D=v=>o.filter(k=>Zo(k.date,v)),T=r==="week"?(()=>{let v=new Date(x);return v.setDate(v.getDate()+6),x.getMonth()===v.getMonth()?`${x.getDate()}. \u2013 ${v.getDate()}. ${_t[v.getMonth()]} ${v.getFullYear()}`:`${x.getDate()}. ${_t[x.getMonth()].slice(0,3)} \u2013 ${v.getDate()}. ${_t[v.getMonth()].slice(0,3)} ${v.getFullYear()}`})():`${_t[u]} ${h}`,m={backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.text,overflow:"hidden",userSelect:"none",...i},C={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:c.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:l,style:m,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:c.headerBg,borderBottom:`1px solid ${c.border}`},children:[jsx("button",{style:C,onClick:b,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeftIcon,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:T}),jsx("button",{style:C,onClick:w,onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.navHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRightIcon,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:el.map(v=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.textMuted,padding:"6px 0 8px"},children:v},v))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:y.map((v,k)=>{let E=Zo(v,f),z=e?Zo(v,e):false,F=r==="month"&&v.getMonth()!==u,B=rl(v,n,a),M=v.toISOString(),H=S===M,A=D(v),$="transparent",L=F?c.outsideText:c.text,Z="2px solid transparent";return z?($=c.selectedBg,L=c.selectedText):E?($=c.todayBg,Z=`2px solid ${c.todayBorder}`):H&&!B&&($=c.hover),B&&(L=c.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:$,color:L,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:B?"default":"pointer",opacity:B?.4:1,transition:"background-color 0.12s ease"},disabled:B,onClick:()=>{!B&&t&&t(v);},onMouseEnter:()=>!B&&R(M),onMouseLeave:()=>R(null),children:v.getDate()}),A.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:A.slice(0,3).map((Y,q)=>jsx("div",{title:Y.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:Y.color||c.eventDot}},q))})]},k)})})]})};nl.displayName="Calendar";var al={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)"}},sl=({items:e,orientation:t="vertical",style:r,className:o})=>{let n=I(),a=al[n];return t==="horizontal"?jsx("div",{className:o,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...r},children:e.map((i,l)=>{let p=l===e.length-1,c=i.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:p?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[l>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),l===0&&jsx("div",{style:{flex:1}}),i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!p&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),p&&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:i.title}),i.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:i.date}),i.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:i.description})]})]},l)})}):jsx("div",{className:o,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...r},children:e.map((i,l)=>{let p=l===e.length-1,c=i.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:p?0:"4px",minHeight:i.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[i.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:i.color?`${i.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:i.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!p&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:i.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:i.title}),i.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:i.date})]}),i.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:i.description})]})]},l)})})};sl.displayName="Timeline";var il={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)"}},ll=({items:e,columns:t=1,striped:r=false,style:o,className:n})=>{let a=I(),i=il[a],l=Math.max(1,Math.round(t)),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,display:l>1?"grid":"block",gridTemplateColumns:l>1?`repeat(${l}, 1fr)`:void 0,gap:l>1?"0 24px":void 0,...o},c=h=>l<=1?h:Math.floor(h/l),f=h=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${i.border}`,backgroundColor:r&&c(h)%2===1?i.stripedBg:i.background}),u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:i.textMuted,flexShrink:0,letterSpacing:"0.01em"},s={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:n,style:p,children:e.map((h,d)=>jsxs("div",{style:f(d),children:[jsx("span",{style:u,children:h.label}),jsx("span",{style:s,children:h.value})]},d))})};ll.displayName="DataList";var fl={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"}},Rn=({node:e,depth:t,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:i})=>{let l=e.children&&e.children.length>0,p=r.has(e.id),c=o===e.id,[f,u]=useState(false),s="transparent";return c?s=i.selectedBg:f&&(s=i.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:s,borderLeft:c?`2px solid ${i.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:h=>{h.stopPropagation(),l&&n(e.id);},children:l&&jsx(CaretRightIcon,{size:14,color:p?i.iconExpanded:i.iconColor,style:{transform:p?"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?i.selectedBorder:i.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:c?500:400,color:c?i.selectedText:i.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),l&&p&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:i.line}}),e.children.map(h=>jsx(Rn,{node:h,depth:t+1,expanded:r,selectedId:o,onToggle:n,onSelect:a,t:i},h.id))]})]})},ul=({data:e,onSelect:t,selectedId:r,defaultExpanded:o=[],style:n,className:a})=>{let i=I(),l=fl[i],[p,c]=useState(()=>new Set(o)),f=useCallback(s=>{c(h=>{let d=new Set(h);return d.has(s)?d.delete(s):d.add(s),d});},[]),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,...n};return jsx("div",{className:a,style:u,role:"tree",children:e.map(s=>jsx(Rn,{node:s,depth:0,expanded:p,selectedId:r,onToggle:f,onSelect:t,t:l},s.id))})};ul.displayName="Tree";var bl={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},ml={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},xl={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},qo=false,hl=()=>{if(qo||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){qo=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
13
|
+
@keyframes sm-statusbadge-pulse {
|
|
14
|
+
0% { transform: scale(1); opacity: 1; }
|
|
15
|
+
50% { transform: scale(1.8); opacity: 0; }
|
|
16
|
+
100% { transform: scale(1.8); opacity: 0; }
|
|
17
|
+
}
|
|
18
|
+
`,document.head.appendChild(t),qo=true;},yl=({status:e,label:t,size:r="md",pulse:o=false,color:n,style:a,className:i})=>{let l=I(),p=bl[l],c=xl[r],f=n||ml[e]||"#888888";return o&&hl(),jsxs("span",{className:i,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:[o&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:f,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:f}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:400,color:p.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};yl.displayName="StatusBadge";var kl={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"}},Xt=180,Cl={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Ko=({open:e,onClose:t,title:r,children:o,footer:n,size:a="md",closeOnOverlay:i=true,closeOnEscape:l=true,showClose:p=true,className:c,style:f})=>{let u=I(),s=kl[u],h=Cl[a],[d,x]=useState(false),[g,S]=useState("idle"),R=useRef(null),y=useRef(null);useEffect(()=>{if(e)y.current=document.activeElement,x(true),S("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>S("open"));}),document.body.style.overflow="hidden";else if(d){S("closing");let T=setTimeout(()=>{x(false),S("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},Xt);return ()=>clearTimeout(T)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!d||!l)return;let T=m=>{m.key==="Escape"&&t();};return document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)},[d,l,t]),useEffect(()=>{if(!d||!R.current)return;let T=R.current,m='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',C=v=>{if(v.key!=="Tab")return;let k=T.querySelectorAll(m);if(k.length===0){v.preventDefault();return}let E=k[0],z=k[k.length-1];v.shiftKey?document.activeElement===E&&(v.preventDefault(),z.focus()):document.activeElement===z&&(v.preventDefault(),E.focus());};return document.addEventListener("keydown",C),T.focus(),()=>document.removeEventListener("keydown",C)},[d]);let b=()=>{let T={transition:`opacity ${Xt}ms ease`};return g==="opening"||g==="idle"?{...T,opacity:0}:g==="open"?{...T,opacity:1}:{...T,opacity:0,pointerEvents:"none"}},w=()=>{let T={transition:`opacity ${Xt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Xt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return g==="opening"||g==="idle"?{...T,opacity:0,transform:"scale(0.95)"}:g==="open"?{...T,opacity:1,transform:"scale(1)"}:{...T,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!d)return null;let D=a==="fullscreen";return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...b()},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:i?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":r,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:h.width,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":h.maxHeight,backgroundColor:s.cardBg,border:D?"none":`1px solid ${s.cardBorder}`,borderRadius:D?0:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...w(),...f},children:[(r||p)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:r}),p&&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:T=>{T.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:T=>{T.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:o}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${s.divider}`},children:n})]})]}),document.body)};Ko.displayName="Modal";var Fl={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)"}},jo=220,El=({open:e,onClose:t,position:r="right",title:o,children:n,footer:a,width:i=400,showClose:l=true,closeOnOverlay:p=true,className:c,style:f})=>{let u=I(),s=Fl[u],[h,d]=useState(false),[x,g]=useState("idle"),S=useRef(null),R=typeof i=="number"?`${i}px`:i;useEffect(()=>{if(e)d(true),g("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>g("open"));}),document.body.style.overflow="hidden";else if(h){g("closing");let w=setTimeout(()=>{d(false),g("idle"),document.body.style.overflow="";},jo);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h)return;let w=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[h,t]);let y=w=>{let D=r==="right"?"100%":"-100%";return w==="opening"||w==="idle"?D:w==="open"?"0%":D},b=()=>x==="open"?1:0;return h?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:b(),transition:`opacity ${jo}ms ease`,...x==="closing"?{pointerEvents:"none"}:{}},onClick:p?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":o,className:c,style:{position:"absolute",top:0,bottom:0,[r]:0,width:R,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:s.panelBg,borderLeft:r==="right"?`1px solid ${s.panelBorder}`:"none",borderRight:r==="left"?`1px solid ${s.panelBorder}`:"none",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(x)})`,transition:`transform ${jo}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...f},children:[(o||l)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${s.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:s.titleText},children:o}),l&&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:w=>{w.currentTarget.style.backgroundColor=s.closeHover;},onMouseLeave:w=>{w.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:n}),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};El.displayName="Drawer";var Bl={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)"}},er=180,Pl=({open:e,onClose:t,children:r,side:o="bottom",title:n,showClose:a=true,style:i,className:l})=>{let p=I(),c=Bl[p],[f,u]=useState(false),[s,h]=useState("idle"),d=useRef(null);useEffect(()=>{if(e)u(true),h("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));}),document.body.style.overflow="hidden";else if(f){h("closing");let w=setTimeout(()=>{u(false),h("idle"),document.body.style.overflow="";},er);return ()=>clearTimeout(w)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!f)return;let w=D=>{D.key==="Escape"&&t();};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[f,t]);let S=w=>{let D={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return w==="opening"||w==="idle"?D[o]:w==="open"?"translate(0, 0)":D[o]},R=()=>s==="open"?1:0,y={};o==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):o==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):o==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):o==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let b={};return o==="bottom"?b.borderTop=`1px solid ${c.panelBorder}`:o==="top"?b.borderBottom=`1px solid ${c.panelBorder}`:o==="right"?b.borderLeft=`1px solid ${c.panelBorder}`:o==="left"&&(b.borderRight=`1px solid ${c.panelBorder}`),f?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:R(),transition:`opacity ${er}ms ease`,...s==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":n,className:l,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:S(s),transition:`transform ${er}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...b,...i},children:[o==="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:o==="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:w=>{w.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:w=>{w.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:r})]})]}),document.body):null};Pl.displayName="Sheet";var Al={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)"}},Hl=({items:e,separator:t="/",className:r,style:o})=>{let n=I(),a=Al[n];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:r,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...o},children:e.map((i,l)=>{let p=l===e.length-1;return jsxs(zo.Fragment,{children:[l>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),p?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]}):jsxs("a",{href:i.href??"#",onClick:i.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:[i.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:i.icon}),i.label]})]},l)})})};Hl.displayName="Breadcrumb";var $l={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)"}},Wl={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Zl(e,t,r,o,n){let a=[],i=Math.max(2,e-r),l=Math.min(t-1,e+r);(o||e-r<=1)&&a.push(1),i>2&&(o&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let p=i;p<=l;p++)a.includes(p)||a.push(p);return l<t-1&&a.push("ellipsis-end"),(n||e+r>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var Ol=({page:e,totalPages:t,onChange:r,siblings:o=1,showFirst:n=true,showLast:a=true,size:i="md",className:l,style:p})=>{let c=I(),f=$l[c],u=Wl[i];if(t<=0)return null;let s=Zl(e,t,o,n,a),h={display:"inline-flex",alignItems:"center",justifyContent:"center",width:u.size,height:u.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...p},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>r(e-1),style:{...h,color:e<=1?f.disabledText:f.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:d=>{e>1&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:u.iconSize,color:e<=1?f.disabledText:f.text})}),s.map((d,x)=>{if(d==="ellipsis-start"||d==="ellipsis-end")return jsx("span",{style:{...h,cursor:"default",color:f.text},"aria-hidden":"true",children:"..."},d);let g=d===e;return jsx("button",{type:"button","aria-current":g?"page":void 0,"aria-label":`Str\xE1nka ${d}`,onClick:()=>r(d),style:{...h,color:g?f.activeText:f.text,backgroundColor:g?f.activeBg:"transparent",fontWeight:g?600:500},onMouseEnter:S=>{g||(S.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:S=>{g||(S.currentTarget.style.backgroundColor="transparent");},children:d},d)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>r(e+1),style:{...h,color:e>=t?f.disabledText:f.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:d=>{e<t&&(d.currentTarget.style.backgroundColor=f.hoverBg);},onMouseLeave:d=>{d.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:u.iconSize,color:e>=t?f.disabledText:f.text})})]})};Ol.displayName="Pagination";var ql={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)"}},Gl=({steps:e,activeStep:t,orientation:r="horizontal",clickable:o=false,onStepClick:n,className:a,style:i})=>{let l=I(),p=ql[l],[c,f]=useState(null),u=r==="horizontal",s=32,h=d=>!o||!n?false:o==="completed"?d<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:u?"row":"column",alignItems:u?"flex-start":"stretch",gap:0,...i},children:e.map((d,x)=>{let g=x<t,S=x===t,R=x>t,y=x===e.length-1,b=h(x),w=c===x&&b,D=g?p.completedBg:w?p.hoverBg:p.activeBg,T=g?p.completedBg:S||w?p.activeBorder:p.futureBorder,m=g?p.completedText:S||w?p.activeText:p.futureText,C=w?p.activeText:R?p.labelFuture:p.labelText,v=R?p.descFuture:p.descText,k=g?p.lineCompleted:p.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",alignItems:u?"center":"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:b?"pointer":"default"},onClick:()=>b&&n?.(x),onMouseEnter:()=>f(x),onMouseLeave:()=>f(null),children:[jsxs("div",{style:{display:"flex",flexDirection:u?"row":"column",alignItems:"center",width:u?"100%":"auto"},children:[jsx("div",{style:{width:s,height:s,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:D,border:`2px solid ${T}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:g?jsx(CheckIcon,{size:14,color:p.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:m,lineHeight:1,transition:"color 0.2s ease"},children:x+1})}),!y&&jsx("div",{style:u?{flex:1,height:"2px",backgroundColor:k,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:k,margin:"6px 0",marginLeft:`${s/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:u?"10px":0,marginLeft:u?0:"14px",paddingTop:u?0:"4px",textAlign:u?"center":"left",minHeight:u||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:S||w?600:500,color:C,lineHeight:"normal",transition:"color 0.2s ease"},children:d.label}),d.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:v,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:d.description})]})]},x)})})};Gl.displayName="Stepper";var Kl={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"}},sr=180,Xl=({trigger:e,items:t,position:r="bottom-left",className:o,style:n})=>{let a=I(),i=Kl[a],l=useRef(null),p=useRef(null),[c,f]=useState(false),[u,s]=useState(false),[h,d]=useState("idle"),[x,g]=useState({top:0,left:0,openAbove:false}),[S,R]=useState(-1),y=useCallback(()=>{f(true),s(true),d("opening"),R(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>d("open"));});},[]),b=useCallback(()=>{f(false),d("closing");let m=setTimeout(()=>{s(false),d("idle");},sr);return ()=>clearTimeout(m)},[]),w=useCallback(()=>{if(!l.current)return;let m=l.current.getBoundingClientRect(),C=p.current?.offsetHeight??200,v=p.current?.offsetWidth??200,k=window.innerHeight-m.bottom-6,E=m.top-6,z=k<C&&E>k,F;r==="bottom-right"?(F=m.right-v,F<4&&(F=4)):(F=m.left,F+v>window.innerWidth-4&&(F=window.innerWidth-v-4)),g({top:z?m.top-6:m.bottom+6,left:F,openAbove:z});},[r]);useEffect(()=>{if(u)return w(),window.addEventListener("scroll",w,true),window.addEventListener("resize",w),()=>{window.removeEventListener("scroll",w,true),window.removeEventListener("resize",w);}},[u,w]),useEffect(()=>{if(!c)return;let m=C=>{let v=C.target,k=l.current?.contains(v),E=p.current?.contains(v);!k&&!E&&b();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[c,b]),useEffect(()=>{if(!c)return;let m=t.map((v,k)=>({item:v,idx:k})).filter(({item:v})=>!v.divider&&!v.disabled),C=v=>{switch(v.key){case "Escape":v.preventDefault(),b();break;case "ArrowDown":{v.preventDefault();let k=m.findIndex(({idx:z})=>z===S),E=k<m.length-1?k+1:0;R(m[E]?.idx??-1);break}case "ArrowUp":{v.preventDefault();let k=m.findIndex(({idx:z})=>z===S),E=k>0?k-1:m.length-1;R(m[E]?.idx??-1);break}case "Enter":case " ":if(v.preventDefault(),S>=0){let k=t[S];k&&!k.divider&&!k.disabled&&(k.onClick?.(),b());}break}};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[c,S,t,b]);let D=()=>{let m=x.openAbove,C=m?"translateY(8px)":"translateY(-8px)",v=m?"translateY(6px)":"translateY(-6px)",k={transition:`opacity ${sr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${sr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...k,opacity:0,transform:`${C} scale(0.97)`}:h==="open"?{...k,opacity:1,transform:"translateY(0) scale(1)"}:{...k,opacity:0,transform:`${v} scale(0.98)`,pointerEvents:"none"}},T=u?createPortal(jsx("div",{ref:p,role:"menu",style:{position:"fixed",...x.openAbove?{bottom:window.innerHeight-x.top,left:x.left}:{top:x.top,left:x.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:x.openAbove?"bottom center":"top center",...D()},children:t.map((m,C)=>{if(m.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:i.divider,margin:"4px 6px"}},C);let v=m.danger,k=m.disabled,E=C===S,z=k?i.textDisabled:v?i.dangerText:i.text,F=v?i.dangerHover:i.hoverBg;return jsxs("div",{role:"menuitem","aria-disabled":k,style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:z,backgroundColor:E?F:"transparent",cursor:k?"not-allowed":"pointer",opacity:k?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{k||(m.onClick?.(),b());},onMouseEnter:()=>{k||R(C);},onMouseLeave:()=>R(-1),children:[m.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:m.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label})]},C)})}),document.body):null;return jsxs("div",{className:o,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:l,onClick:()=>{c?b():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),T]})};Xl.displayName="DropdownMenu";var Jl={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Ig=({variant:e="default",icon:t,iconPosition:r="left",showIcon:o=true,children:n,style:a,className:i,onMouseEnter:l,onMouseLeave:p,target:c,rel:f,...u})=>{let s=I(),h=Jl[s],[d,x]=useState(false),g=e==="danger"?h.danger:h.default,S={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:d?h.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:g,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},R=o&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:S,className:i,target:c,rel:f??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{x(true),l?.(y);},onMouseLeave:y=>{x(false),p?.(y);},...u,children:r==="right"?jsxs(Fragment,{children:[n,R]}):jsxs(Fragment,{children:[R,n]})})};var oc={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"}},Jt=180,rc=({open:e,onClose:t,value:r,onChange:o,results:n,placeholder:a="Hledat...",className:i,style:l})=>{let p=I(),c=oc[p],[f,u]=useState(false),[s,h]=useState("idle"),[d,x]=useState(-1),g=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-spotlight-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let R=n;useEffect(()=>{if(e)u(true),h("opening"),x(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>h("open"));});else if(f){h("closing");let m=setTimeout(()=>{u(false),h("idle");},Jt);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{f&&s==="open"&&g.current?.focus();},[f,s]),useEffect(()=>{x(-1);},[n]),useEffect(()=>{if(d<0||!S.current)return;let m=S.current.querySelector(`[data-spotlight-index="${d}"]`);m&&m.scrollIntoView({block:"nearest"});},[d]);let y=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(C=>{let v=C+1;return v>=R.length?0:v});break}case "ArrowUp":{m.preventDefault(),x(C=>{let v=C-1;return v<0?R.length-1:v});break}case "Enter":{m.preventDefault(),d>=0&&d<R.length&&(R[d].onSelect(),t());break}}},[R,d,t]),b=[],w=new Map;R.forEach((m,C)=>{let v=w.get(m.category);v||(v=[],w.set(m.category,v),b.push({category:m.category,items:v})),v.push({...m,flatIndex:C});});let D=()=>{let m={transition:`opacity ${Jt}ms ease`};return s==="opening"||s==="idle"?{...m,opacity:0}:s==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},T=()=>{let m={transition:`opacity ${Jt}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Jt}ms cubic-bezier(0.16, 1, 0.3, 1)`};return s==="opening"||s==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:s==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return f?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:y,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",...T(),...l},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:c.textSecondary}),jsx("input",{ref:g,type:"text",value:r,onChange:m=>o(m.target.value),placeholder:a,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),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:S,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:b.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"}):b.map(m=>jsxs("div",{role:"group","aria-label":m.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:m.category}),m.items.map(C=>{let v=C.flatIndex===d;return jsxs("div",{role:"option","aria-selected":v,"data-spotlight-index":C.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:v?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>x(C.flatIndex),onMouseLeave:()=>x(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:v?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:C.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:C.label}),C.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:C.description})]})]},C.id)})]},m.category))})]})]}),document.body):null};rc.displayName="Spotlight";var ic={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"}},eo=180,lc=({open:e,onClose:t,groups:r,placeholder:o="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let i=I(),l=ic[i],[p,c]=useState(false),[f,u]=useState("idle"),[s,h]=useState(""),[d,x]=useState(-1),g=useRef(null),S=useRef(null);useEffect(()=>{let m="sm-commandmenu-scrollbar-hide";if(document.getElementById(m))return;let C=document.createElement("style");C.id=m,C.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(C);},[]);let R=r.map(m=>({...m,items:m.items.filter(C=>C.label.toLowerCase().includes(s.toLowerCase())||C.description?.toLowerCase().includes(s.toLowerCase()))})).filter(m=>m.items.length>0),y=R.flatMap(m=>m.items);useEffect(()=>{if(e)h(""),x(-1),c(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});else if(p){u("closing");let m=setTimeout(()=>{c(false),u("idle");},eo);return ()=>clearTimeout(m)}},[e]),useEffect(()=>{p&&f==="open"&&g.current?.focus();},[p,f]),useEffect(()=>{x(-1);},[s]),useEffect(()=>{if(d<0||!S.current)return;let m=S.current.querySelector(`[data-cmd-index="${d}"]`);m&&m.scrollIntoView({block:"nearest"});},[d]);let b=useCallback(m=>{switch(m.key){case "Escape":m.preventDefault(),t();break;case "ArrowDown":{m.preventDefault(),x(C=>{let v=C+1;return v>=y.length?0:v});break}case "ArrowUp":{m.preventDefault(),x(C=>{let v=C-1;return v<0?y.length-1:v});break}case "Enter":{m.preventDefault(),d>=0&&d<y.length&&(y[d].onSelect(),t());break}}},[y,d,t]),w=()=>{let m={transition:`opacity ${eo}ms ease`};return f==="opening"||f==="idle"?{...m,opacity:0}:f==="open"?{...m,opacity:1}:{...m,opacity:0,pointerEvents:"none"}},D=()=>{let m={transition:`opacity ${eo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${eo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...m,opacity:0,transform:"scale(0.95) translateY(-10px)"}:f==="open"?{...m,opacity:1,transform:"scale(1) translateY(0)"}:{...m,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},T=0;return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...w()},onKeyDown:b,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.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:l.cardBg,border:`1px solid ${l.cardBorder}`,borderRadius:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...D(),...n},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${l.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:l.textSecondary}),jsx("input",{ref:g,type:"text",value:s,onChange:m=>h(m.target.value),placeholder:o,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:l.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:S,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:R.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):R.map(m=>jsxs("div",{role:"group","aria-label":m.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:l.categoryText,userSelect:"none"},children:m.label}),m.items.map(C=>{let v=T++,k=v===d;return jsxs("div",{role:"option","aria-selected":k,"data-cmd-index":v,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:k?l.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{C.onSelect(),t();},onMouseEnter:()=>x(v),onMouseLeave:()=>x(-1),children:[C.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:k?l.activeBg:l.hoverBg,color:l.text,transition:"background-color 0.1s ease"},children:C.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.label}),C.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:l.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:C.description})]}),C.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:l.kbdBg,border:`1px solid ${l.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:l.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:C.shortcut})]},C.id)})]},m.label))})]})]}),document.body):null};lc.displayName="CommandMenu";var cc={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)"}},dc=({children:e,collapsed:t=false,onCollapse:r,width:o=260,collapsedWidth:n=64,style:a,className:i})=>{let l=I(),p=cc[l],c=t?n:o;return jsx("aside",{className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:`${c}px`,minWidth:`${c}px`,height:"100%",backgroundColor:p.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${p.border}`,boxSizing:"border-box",overflow:"hidden",transition:"width 180ms cubic-bezier(0.16, 1, 0.3, 1), min-width 180ms cubic-bezier(0.16, 1, 0.3, 1)",...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 180ms cubic-bezier(0.16, 1, 0.3, 1)"},children:e})})};dc.displayName="AppSidebar";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)"}},fc=({logo:e,children:t,actions:r,sticky:o=true,glass:n=true,style:a,className:i})=>{let l=I(),p=pc[l];return jsxs("header",{className:i,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?p.background:p.backgroundSolid,borderBottom:`1px solid ${p.border}`,boxShadow:p.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...o?{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}),r&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:r})]})};fc.displayName="Navbar";var hc={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)"}},yc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Nn=({variant:e="info",title:t,content:r,icon:o,onClose:n,role:a="alert",style:i,className:l})=>{let{border:p,background:c}=hc[e],f=o??yc[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:c,border:`2px solid ${p}`,borderRadius:"8px",boxSizing:"border-box",...i},className:l,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:"#ffffff"},children:f}),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:"#ffffff",lineHeight:"normal"},children:t}),r&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:"#ffffff",lineHeight:"normal"},children:r})]})]}),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:"#ffffff",opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var $n=3,Cc=.06,Wn=12,oo=320,Zn=createContext(null),Rc=0,wc=()=>`sm-toast-${++Rc}-${Date.now()}`,s0=({children:e,position:t="bottom-right",toastWidth:r=380,gap:o=8,offset:n=16,maxToasts:a=5,duration:i=4e3})=>{let[l,p]=useState([]),c=useCallback(s=>{p(h=>h.map(d=>d.id===s?{...d,lifecycle:"leaving"}:d)),setTimeout(()=>{p(h=>h.filter(d=>d.id!==s));},oo+100);},[]),f=useCallback(s=>{let h=wc(),d=s.duration??i,x={id:h,variant:s.variant??"info",title:s.title,content:s.content,icon:s.icon,duration:d,lifecycle:"entering",height:0};return p(g=>{let S=[...g,x];return S.length>a?S.slice(S.length-a):S}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(g=>g.map(S=>S.id===h?{...S,lifecycle:"visible"}:S));});}),d>0&&setTimeout(()=>c(h),d),h},[a,c,i]),u=useCallback((s,h)=>{p(d=>d.map(x=>x.id===s&&x.height!==h?{...x,height:h}:x));},[]);return jsxs(Zn.Provider,{value:{toast:f,dismiss:c},children:[e,l.length>0&&jsx(Fc,{toasts:l,position:t,toastWidth:r,gap:o,offset:n,onDismiss:c,onHeightMeasured:u})]})},Tc=({expandedTransformOverride:e,item:t,depthIndex:r,stackSize:o,expanded:n,isBottom:a,appeared:i,toastWidth:l,onDismiss:p,onHeightMeasured:c})=>{let f=t.lifecycle==="leaving",u=!i||f,s=n?1:Math.max(.7,1-r*Cc),h=n?0:r*Wn,d=a?-h:h,g=u?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${s}) translateY(${d}px)`,S=u?0:n?1:Math.max(.4,1-r*.18),R=!n&&r>=$n,y=o-r,b=useCallback(w=>{w&&t.height===0&&c(t.id,w.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:b,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:g,opacity:R?0:S,zIndex:y,transition:[`transform ${oo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${oo}ms ease`].join(", "),pointerEvents:r===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Nn,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>p(t.id),style:{width:l,maxWidth:"100%",boxSizing:"border-box"}})})},Fc=({toasts:e,position:t,toastWidth:r,gap:o,offset:n,onDismiss:a,onHeightMeasured:i})=>{let[l,p]=useState(false),[c,f]=useState(new Set),u=t.startsWith("bottom"),s=t.endsWith("right"),h=t.endsWith("center");useEffect(()=>{f(b=>{let w=new Set(b);return e.forEach(D=>{D.lifecycle==="visible"&&w.add(D.id);}),[...w].forEach(D=>{e.find(T=>T.id===D)||w.delete(D);}),w});},[e]);let g=(e[e.length-1]?.height||80)+Math.min(e.length-1,$n-1)*Wn,S=e.reduce((b,w)=>b+(w.height||80),0)+Math.max(0,e.length-1)*o,R=l?S:g,y=h?{left:"50%",transform:"translateX(-50%)"}:s?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:9999,width:r,maxWidth:`calc(100vw - ${n*2}px)`,height:R,...u?{bottom:n}:{top:n},...y,transition:`height ${oo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),"aria-live":"polite","aria-atomic":"false",children:e.map((b,w)=>{let D=e.length-1-w,T=c.has(b.id),m=b.lifecycle==="leaving",C=!T||m,v;if(l&&!C){let E=e.slice(w+1).reduce((F,B)=>F+(B.height||80)+o,0);v=`translateY(${u?-E:E}px)`;}return jsx(Tc,{item:b,depthIndex:D,stackSize:e.length,expanded:l,isBottom:u,appeared:T,toastWidth:r,onDismiss:a,onHeightMeasured:i,expandedTransformOverride:v},b.id)})})},i0=()=>{let e=useContext(Zn);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 Ac={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)"}},Hc={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"}},g0=({variant:e="info",title:t,children:r,icon:o,closable:n=false,onClose:a,className:i,style:l})=>{let p=I(),c=Ac[p],f=Hc[e],[u,s]=useState(true);if(!u)return null;let h=p==="light",d=h?f.borderLight:f.border,x=h?f.backgroundLight:f.background,g=h?f.iconColorLight:f.iconColor,R=o??{info:jsx(Info,{size:24,color:g}),success:jsx(CheckCircle,{size:24,color:g}),warning:jsx(Warning,{size:24,color:g}),error:jsx(XCircle,{size:24,color:g})}[e],y=()=>{s(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:x,borderLeft:`4px solid ${d}`,borderRadius:"4px",boxSizing:"border-box",...l},className:i,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),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}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:r})]}),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 Yc={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)"}},Vc={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"}},Uc=({variant:e="info",title:t,children:r,closable:o=false,onClose:n,icon:a,action:i,style:l,className:p})=>{let c=I(),f=Yc[c],u=Vc[e],[s,h]=useState(true);if(!s)return null;let d=c==="light",x=d?u.bgLight:u.bg,g=d?u.accentLight:u.accent,R=a??{info:jsx(Info,{size:20,color:g}),success:jsx(CheckCircle,{size:20,color:g}),warning:jsx(Warning,{size:20,color:g}),error:jsx(XCircle,{size:20,color:g})}[e],y=()=>{h(false),n?.();};return jsxs("div",{role:"status",className:p,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:x,border:`1px solid ${f.border}`,borderRadius:"12px",boxSizing:"border-box",...l},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:R}),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:f.titleText},children:t}),r&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:f.bodyText},children:r})]}),i&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:i}),o&&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:f.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};Uc.displayName="Notification";var Un={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},qc={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Vn="sm-ui-progress-stripes",Gc=()=>{if(typeof document>"u"||document.getElementById(Vn))return;let e=document.createElement("style");e.id=Vn,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},R0=({value:e,size:t="md",color:r="#E8612D",showValue:o=false,label:n,striped:a=false,animated:i=false,className:l,style:p})=>{let c=I(),f=Un[c],u=qc[t],s=Math.max(0,Math.min(100,e));a&&i&&Gc();let h=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",...i?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...p},className:l,children:[(n||o)&&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:f.label,userSelect:"none"},children:n}),o&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:f.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(s),"%"]})]}),jsx("div",{style:{width:"100%",height:u.height,backgroundColor:f.trackBg,borderRadius:u.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${s}%`,height:"100%",backgroundColor:r,borderRadius:u.height/2,transition:"width 0.3s ease",...h}})})]})},w0=({value:e,size:t=64,strokeWidth:r=4,color:o="#E8612D",showValue:n=false,label:a,className:i,style:l})=>{let p=I(),c=Un[p],f=Math.max(0,Math.min(100,e)),u=(t-r)/2,s=2*Math.PI*u,h=s-f/100*s;return jsxs("div",{role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...l},className:i,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:u,fill:"none",stroke:c.trackBg,strokeWidth:r}),jsx("circle",{cx:t/2,cy:t/2,r:u,fill:"none",stroke:o,strokeWidth:r,strokeLinecap:"round",strokeDasharray:s,strokeDashoffset:h,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(f),"%"]}),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 Xc={sm:16,md:24,lg:40},z0=({size:e="md",color:t,label:r="Na\u010D\xEDt\xE1n\xED",className:o,style:n})=>{let[a,i]=useState(0),l=useRef(void 0),p=useRef(void 0);useEffect(()=>{let u=s=>{p.current===void 0&&(p.current=s),i((s-p.current)/800*360%360),l.current=requestAnimationFrame(u);};return l.current=requestAnimationFrame(u),()=>{l.current!==void 0&&cancelAnimationFrame(l.current);}},[]);let c=typeof e=="number"?e:Xc[e]??24,f=t??"currentColor";return jsx("span",{role:"status","aria-label":r,className:o,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:f,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:f,strokeWidth:"2",strokeLinecap:"round"})]})})};var Jc={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"}},Qc=({open:e,onConfirm:t,onCancel:r,title:o,description:n,confirmLabel:a="Potvrdit",cancelLabel:i="Zru\u0161it",variant:l="default",loading:p=false,style:c,className:f})=>{let u=I(),s=Jc[u],[h,d]=useState(false),[x,g]=useState(false),S=l==="danger",R=S?x?s.dangerHover:s.dangerBg:x?s.confirmHover:s.confirmBg,y=S?s.dangerText:s.confirmText;return jsx(Ko,{open:e,onClose:r,title:o,size:"sm",className:f,style:c,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:r,onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:h?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:i}),jsx("button",{type:"button",onClick:t,disabled:p,onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:R,border:"none",borderRadius:"6px",cursor:p?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:p?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:p?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:s.descriptionText},children:n})})};Qc.displayName="ConfirmDialog";var sd={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"}},id={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"}},ld=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return false}},cd=({text:e,children:t,size:r="md",variant:o="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:i,style:l,className:p})=>{let c=I(),f=sd[c],u=id[r],[s,h]=useState(false),[d,x]=useState(false),g=useRef(null),S=useCallback(async()=>{await ld(e)&&(h(true),i?.(),g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{h(false),g.current=null;},2e3));},[e,i]),R=s?f.successColor:d?f.iconHover:f.iconColor,y=s?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:R,...l},children:t}):o==="icon"?jsx("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:u.iconPadding,background:d?f.buttonHover:f.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:R,...l},children:jsx(y,{size:u.iconSize,color:R})}):jsxs("button",{type:"button","aria-label":s?a:n,onClick:S,onMouseEnter:()=>x(true),onMouseLeave:()=>x(false),className:p,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:u.buttonPadding,background:d?f.buttonHover:f.buttonBg,border:`1px solid ${f.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:u.fontSize,fontWeight:500,color:s?f.successColor:f.buttonText,lineHeight:"normal",...l},children:[jsx(y,{size:u.iconSize,color:s?f.successColor:f.buttonText}),s?a:n]})};cd.displayName="CopyButton";var pd={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"}},K0=({orientation:e="horizontal",label:t,className:r,style:o})=>{let n=I(),a=pd[n];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:r,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...o}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:r,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...o},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:r,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...o}})};var ud={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},gd={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},J0=({direction:e="column",gap:t=8,align:r="stretch",justify:o="start",wrap:n=false,fullWidth:a=false,children:i,className:l,style:p})=>jsx("div",{className:l,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:ud[r],justifyContent:gd[o],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...p},children:i});var md={sm:640,md:768,lg:1024,xl:1280},tb=({maxWidth:e="lg",padding:t=16,centered:r=true,children:o,className:n,style:a})=>{let i=typeof e=="number"?e:md[e],l=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${i}px`,width:"100%",padding:l,boxSizing:"border-box",...r?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:o})};var kd={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)"}},Xn="smDragListPulse",Cd=`@keyframes ${Xn}{0%,100%{opacity:1}50%{opacity:0.5}}`;function gr(e,t){for(let r of e){if(r.id===t)return r;if(r.children){let o=gr(r.children,t);if(o)return o}}return null}function fr(e,t,r){let o=gr(e,t);if(!o||!o.children)return false;for(let n of o.children)if(n.id===r||fr([n],n.id,r))return true;return false}function jn(e,t){let r=null;return [e.reduce((n,a)=>{if(a.id===t)return r=a,n;if(a.children){let[i,l]=jn(a.children,t);l&&(r=l),n.push({...a,children:i.length>0?i:void 0});}else n.push(a);return n},[]),r]}function ur(e,t,r,o){if(r==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],o],expanded:true}:a.children?{...a,children:ur(a.children,t,r,o)}:a);let n=[];for(let a of e)a.id===t?r==="before"?(n.push(o),n.push(a)):(n.push(a),n.push(o)):a.children?n.push({...a,children:ur(a.children,t,r,o)}):n.push(a);return n}function Jn(e,t){return e.map(r=>r.id===t?{...r,expanded:!r.expanded}:r.children?{...r,children:Jn(r.children,t)}:r)}function Qn(e,t,r){return e.map(o=>o.id===t?{...o,expanded:r}:o.children?{...o,children:Qn(o.children,t,r)}:o)}var Kn=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${Xn} 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}})}),ea=({item:e,depth:t,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:c,onDragEnd:f,onToggleExpand:u,renderItem:s,dragMode:h,tokens:d})=>{let[x,g]=useState(false),[S,R]=useState(false),[y,b]=useState(false),w=useRef(false),D=useRef(null),T=e.children&&e.children.length>0,m=e.expanded??false,C=n===e.id,v=n!==null,k=h==="handle",E=a?.targetId===e.id,z=E&&a?.position==="before",F=E&&a?.position==="after",B=E&&a?.position==="inside",M=C?"transparent":B?d.nestHighlight:S&&!v?d.itemHoverBg:d.itemBg,H=B?d.nestBorder:C?"transparent":d.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[z&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Kn,{color:d.dropIndicator})}),jsxs("div",{ref:D,draggable:true,onDragStart:A=>{if(k&&!w.current){A.preventDefault();return}if(w.current=false,A.dataTransfer.effectAllowed="move",A.dataTransfer.setData("text/plain",e.id),D.current){let $=D.current.cloneNode(true);$.style.width=`${D.current.offsetWidth}px`,$.style.opacity="0.85",$.style.transform="rotate(1.5deg) scale(1.02)",$.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",$.style.position="fixed",$.style.top="-1000px",document.body.appendChild($),A.dataTransfer.setDragImage($,A.nativeEvent.offsetX,A.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild($));}i(e.id);},onDragOver:A=>{A.preventDefault(),A.stopPropagation(),l(A,e.id,t);},onDragLeave:A=>{let $=A.relatedTarget;D.current&&$&&D.current.contains($)||(A.stopPropagation(),p(A,D.current),R(false));},onDrop:A=>{A.preventDefault(),A.stopPropagation(),c(A);},onDragEnd:f,onMouseEnter:()=>R(true),onMouseLeave:()=>R(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:C?"transparent":d.text,cursor:v?"grabbing":k?"default":"grab",opacity:C?.35:1,backgroundColor:M,borderWidth:"1px",borderColor:H,borderStyle:C?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:B?`inset 0 0 0 1px ${d.nestBorder}`:S&&!v?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:B?"scale(1.01)":"scale(1)"},children:[!s&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:v?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:C?"hidden":"visible"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),onMouseDown:()=>{w.current=true;},children:jsx(DotsSixVertical,{size:14,color:x?d.gripHover:d.gripColor})}),B&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:d.dropIndicator})}),T?jsx("button",{type:"button",onClick:A=>{A.stopPropagation(),u(e.id);},onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:C?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?d.chevronHover:d.chevron,style:{transition:"transform 0.2s ease",transform:m?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:C?"hidden":"visible"},children:s?s(e,{handleProps:{onMouseDown:()=>{w.current=true;},style:{cursor:v?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:C,depth:t,isExpanded:m,toggleExpand:()=>u(e.id),hasChildren:!!T}):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})]})})]}),F&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Kn,{color:d.dropIndicator})}),T&&m&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${d.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(A=>jsx(ea,{item:A,depth:t+1,allowNesting:r,maxDepth:o,draggedId:n,dropState:a,onDragStart:i,onDragOver:l,onDragLeave:p,onDrop:c,onDragEnd:f,onToggleExpand:u,renderItem:s,dragMode:h,tokens:d},A.id))})]})},Rd=({items:e,onReorder:t,renderItem:r,allowNesting:o=false,maxDepth:n=3,dragMode:a="full",className:i,style:l})=>{let p=I(),c=kd[p],[f,u]=useState(null),[s,h]=useState(null),d=useRef(null),x=useRef(void 0),g=useRef(void 0),S=useRef(null),R=useCallback(m=>{u(m);},[]),y=useCallback((m,C,v)=>{if(!f||f===C||fr(e,f,C))return;x.current&&(clearTimeout(x.current),x.current=void 0);let k=m.currentTarget.getBoundingClientRect(),E=m.clientY-k.top,z=k.height,F;o&&v<n?E<z*.25?F="before":E>z*.75?F="after":F="inside":E<z*.35?F="before":E>z*.65?F="after":S.current?.targetId===C?F=S.current.position:F=E<z/2?"before":"after";let B={targetId:C,position:F},M=gr(e,C);F==="inside"&&M?.children&&M.children.length>0&&!M.expanded?(S.current?.targetId!==C||S.current?.position!=="inside")&&(g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{t(Qn(e,C,true));},600)):g.current&&(clearTimeout(g.current),g.current=void 0),S.current=B,h(B);},[f,e,o,n,t]),b=useCallback((m,C)=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{h(null),S.current=null;},60),g.current&&(clearTimeout(g.current),g.current=void 0);},[]),w=useCallback(()=>{if(x.current&&(clearTimeout(x.current),x.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),!f||!s)return;let{targetId:m,position:C}=s;if(f===m||fr(e,f,m))return;let[v,k]=jn(e,f);if(!k)return;let E=ur(v,m,C,k);t(E),u(null),h(null),S.current=null;},[f,s,e,t]),D=useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g.current&&(clearTimeout(g.current),g.current=void 0),u(null),h(null),S.current=null;},[]),T=useCallback(m=>{t(Jn(e,m));},[e,t]);return useEffect(()=>()=>{x.current&&clearTimeout(x.current),g.current&&clearTimeout(g.current);},[]),jsxs("div",{ref:d,className:i,style:{display:"flex",flexDirection:"column",gap:"6px",...l},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Cd}}),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(m=>jsx(ea,{item:m,depth:0,allowNesting:o,maxDepth:n,draggedId:f,dropState:s,onDragStart:R,onDragOver:y,onDragLeave:b,onDrop:w,onDragEnd:D,onToggleExpand:T,renderItem:r,dragMode:a,tokens:c},m.id))]})};Rd.displayName="DragList";export{Si as Accordion,vi as AccordionItem,g0 as Alert,dc as AppSidebar,cu as Avatar,bu as Badge,Hl as Breadcrumb,ga as Button,nl as Calendar,bi as Card,Nr as Checkbox,$r as CheckboxGroup,Ys as ColorPicker,qa as Combobox,lc as CommandMenu,Qc as ConfirmDialog,tb as Container,cd as CopyButton,fi as DataGrid,ll as DataList,Hr as DatePicker,os as DatePickerGroup,K0 as Divider,Rd as DragList,El as Drawer,Xl as DropdownMenu,Zi as EmptyState,Jr as FileUpload,kr as Input,Ad as InputGroup,Ig as Link,Ko as Modal,fc as Navbar,Uc as Notification,Ia as NumberInput,ri as OTPInput,Ol as Pagination,Hi as Popover,R0 as ProgressBar,w0 as ProgressCircle,ho as Radio,Zr as RadioGroup,Ks as Rating,Ms as SegmentedControl,Er as Select,Ha as SelectGroup,Pl as Sheet,rt as Skeleton,Kr as Slider,z0 as Spinner,rc as Spotlight,J0 as Stack,qi as Stat,yl as StatusBadge,Gl as Stepper,Yr as Switch,Ri as Tab,wi as TabPanel,ci as Table,Ti as Tabs,gu as Tag,mu as TagItem,Ur as Textarea,sl as Timeline,Nn as Toast,s0 as ToasterProvider,zi as Tooltip,ul as Tree,I as useTheme,i0 as useToast};//# sourceMappingURL=index.mjs.map
|
|
13
19
|
//# sourceMappingURL=index.mjs.map
|