@smworks-cz/ui-kit 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +385 -92
- package/dist/index.d.ts +385 -92
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import ur,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,XCircle,CheckCircle,Info,Warning,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,Crop,CaretUpDownIcon,CaretUpDown,CaretDownIcon,TrendUpIcon,TrendDownIcon,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';import {createPortal}from'react-dom';var P=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let o=()=>{let s=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return s==="dark"||s==="light"?s:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let r=window.matchMedia("(prefers-color-scheme: dark)"),n=s=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(s.matches?"dark":"light");};r.addEventListener("change",n);let a=new MutationObserver(s=>{s.forEach(i=>{i.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{r.removeEventListener("change",n),a.disconnect();}},[]),e};var ke={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},ns={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},as=({size:e=14})=>{let[t,o]=useState(0),r=useRef(void 0),n=useRef(void 0);return useEffect(()=>{let a=s=>{n.current===void 0&&(n.current=s),o((s-n.current)/800*360%360),r.current=requestAnimationFrame(a);};return r.current=requestAnimationFrame(a),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ss=ur.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:r="left",loading:n=false,fullWidth:a=false,children:s,style:i,className:u,...c},d)=>{let[p,l]=useState(false),b=P()==="dark",m=typeof c.href=="string",f=n||(m?false:!!c.disabled),C=s!=null&&s!=="",w=o!=null,y=(w||n)&&!C,{paddingText:g,paddingSquare:v,fontSize:M,gap:D,height:k}=ns[t],h={display:a?"flex":"inline-flex",width:a?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:C&&(w||n)?D:void 0,padding:y?v:g,height:k,borderRadius:"8px",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:M,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:f?"none":void 0},F=(()=>{switch(e){case "primary":return {backgroundColor:p?ke.primaryHover:ke.primary,color:ke.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:"1px solid transparent"};case "outline":return {backgroundColor:p?b?ke.secondaryHoverDark:ke.secondaryHoverLight:"transparent",color:b?ke.white:ke.black,border:`1px solid ${p?b?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":b?ke.borderDark:ke.borderLight}`};case "danger":return {backgroundColor:p?"#FF5252":"#EF3838",color:ke.white,border:"1px solid transparent"}}})(),S=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:n?jsx(as,{size:parseInt(M)-1}):o}),I=n||w,L=r==="right"?jsxs(Fragment,{children:[C&&jsx("span",{children:s}),I&&S]}):jsxs(Fragment,{children:[I&&S,C&&jsx("span",{children:s})]}),R={style:{...h,...F,...i},className:u,onMouseEnter:W=>{l(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{l(false),c.onMouseLeave?.(W);}};if(m){let{href:W,target:z,rel:A,...Z}=c;return jsx("a",{ref:d,href:W,target:z,rel:A??(z==="_blank"?"noopener noreferrer":void 0),"aria-disabled":f||void 0,...Z,...R,children:L})}let{disabled:T,type:E="button",...N}=c;return jsx("button",{ref:d,type:E,disabled:f,"aria-busy":n||void 0,...N,...R,children:L})});ss.displayName="Button";var fs=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},sn={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},us={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},ln=ur.forwardRef(({label:e,icon:t,iconPosition:o="left",error:r,helperText:n,loading:a=false,clearable:s=false,passwordToggle:i,size:u="md",fullWidth:c=false,style:d,className:p,inputStyle:l,disabled:x,required:b,value:m,onChange:f,onFocus:C,onBlur:w,type:y,...g},v)=>{let M=P(),D=sn[M],k=useId(),h=g.id??k,[F,S]=useState(false),[I,L]=useState(false),R=y==="password",T=i??R,E=R&&I?"text":y,N=x||a,W=!!r,z=typeof r=="string"?r:void 0,A=m!=null&&m!=="",Z=s&&A&&!N&&!T,O=us[u],X$1=()=>{if(!f)return;f({target:{value:""},currentTarget:{value:""}});},te=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:D.placeholder},children:t}):null,Y=T&&!N?jsx("span",{role:"button",tabIndex:-1,"aria-label":I?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>L(J=>!J),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:I?jsx(EyeSlash,{color:D.placeholder,size:O.iconSize}):jsx(Eye,{color:D.placeholder,size:O.iconSize})}):null,$=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:D.placeholder},children:jsx(fs,{size:O.iconSize,color:D.placeholder})}):Y||(Z?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:X$1,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:D.placeholder,padding:"2px"},children:jsx(X,{size:O.iconSize-2,color:D.placeholder})}):o==="right"&&te?te:null),j=o==="left"?te:null,U={display:"flex",alignItems:"center",gap:O.gap,backgroundColor:N?D.backgroundDisabled:D.background,border:`1px solid ${W?D.borderError:F?D.borderFocus:D.border}`,borderRadius:"8px",padding:O.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},re={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:O.fontSize,lineHeight:"normal",color:D.text,cursor:N?"not-allowed":"text",...l},K={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},q={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:c?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:c?"100%":void 0,...d},className:p,children:[e&&jsxs("label",{htmlFor:h,style:K,children:[e,b&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:h,style:U,children:[j,jsx("input",{ref:v,id:h,type:E,disabled:x,required:b,readOnly:a||g.readOnly,value:m,onChange:f,style:re,onFocus:J=>{S(true),C?.(J);},onBlur:J=>{S(false),w?.(J);},...g}),$]}),z&&jsx("span",{style:{...q,color:D.borderError},children:z}),!z&&n&&jsx("span",{style:{...q,color:D.helperText},children:n})]})});ln.displayName="Input";var gf=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s,u={display:"flex",flexDirection:"column",gap:"8px",...r},c={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:sn[a].label,userSelect:"none"};return jsxs("div",{style:u,className:n,children:[jsx("label",{htmlFor:i,style:c,children:e}),o??jsx(ln,{id:i})]})};var Ss={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},ks={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},Cs=ur.forwardRef(({value:e,onChange:t,min:o,max:r,step:n=1,label:a,error:s,disabled:i=false,size:u="md",variant:c="default",prefix:d,suffix:p,style:l,className:x},b)=>{let m=P(),f=Ss[m],w=useId(),y=ks[u],[g,v]=useState(false),[M,D]=useState(null),k=!!s,h=typeof s=="string"?s:void 0,F=useCallback(j=>{let U=j;return o!==void 0&&U<o&&(U=o),r!==void 0&&U>r&&(U=r),U},[o,r]),S=useCallback(()=>{t(F(e+n));},[e,n,t,F]),I=useCallback(()=>{t(F(e-n));},[e,n,t,F]),L=useRef(null),R=useRef(null),T=useCallback(j=>{i||(j(),R.current=setTimeout(()=>{L.current=setInterval(j,80);},400));},[i]),E=useCallback(()=>{R.current&&(clearTimeout(R.current),R.current=null),L.current&&(clearInterval(L.current),L.current=null);},[]);useEffect(()=>()=>E(),[E]);let N=j=>{let U=j.target.value;if(U===""||U==="-")return;let re=parseFloat(U);isNaN(re)||t(F(re));},W=()=>{v(false),t(F(e));},z=o===void 0||e>o,A=r===void 0||e<r,Z={display:"flex",alignItems:"center",backgroundColor:i?f.backgroundDisabled:f.background,border:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden",height:y.height},O=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:y.buttonPadding,border:"none",background:M===j&&U&&!i?f.buttonHoverBg:f.buttonBg,color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:y.height,userSelect:"none"}),X={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:y.fontSize,lineHeight:"normal",color:f.text,textAlign:"center",cursor:i?"not-allowed":"text",MozAppearance:"textfield"},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},Y={fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:f.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(j,U)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:M===j&&U&&!i?f.buttonHoverBg:"transparent",color:U&&!i?f.buttonText:f.placeholder,cursor:i||!U?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return c==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:y.padding,minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:{...X,textAlign:"left"}}),p&&jsx("span",{style:Y,children:p})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${k?f.borderError:g?f.borderFocus:f.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:$("up",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:$("down",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),h&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:x,children:[a&&jsx("label",{htmlFor:w,style:te,children:a}),jsxs("div",{style:Z,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:i||!z,style:O("minus",z),onMouseDown:()=>T(I),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("minus"),children:jsx(Minus,{size:y.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[d&&jsx("span",{style:Y,children:d}),jsx("input",{ref:b,id:w,type:"text",inputMode:"numeric",value:e,onChange:N,onFocus:()=>v(true),onBlur:W,disabled:i,style:X}),p&&jsx("span",{style:Y,children:p})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:i||!A,style:O("plus",A),onMouseDown:()=>T(S),onMouseUp:E,onMouseLeave:()=>{E(),D(null);},onMouseEnter:()=>D("plus"),children:jsx(Plus,{size:y.iconSize})})]}),h&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.borderError,lineHeight:"normal"},children:h})]})});Cs.displayName="NumberInput";var Fs=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},un={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Yo=180,gn=({options:e,value:t,onChange:o,multiple:r=false,searchable:n=false,clearable:a=false,disabled:s=false,loading:i=false,error:u,label:c,placeholder:d="Vyberte\u2026",maxDropdownHeight:p=240,style:l,className:x})=>{let b=P(),m=un[b],f=useId(),C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState("idle"),[S,I]=useState(""),[L,R]=useState(-1),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),N=s||i,W=!!u,z=typeof u=="string"?u:void 0,A=useCallback(()=>{M(true),k(true),F("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>F("open"));});},[]),Z=useCallback(()=>{M(false),F("closing"),I("");let H=setTimeout(()=>{k(false),F("idle");},Yo);return ()=>clearTimeout(H)},[]),O=r?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],X$1=H=>O.includes(H),te=S?e.filter(H=>(H.label??H.value).toLowerCase().includes(S.toLowerCase())):e,Y=useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??p+60,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;E({top:he?H.top-6:H.bottom+6,left:H.left,width:H.width,openAbove:he});},[p]);useEffect(()=>{if(D)return Y(),window.addEventListener("scroll",Y,true),window.addEventListener("resize",Y),()=>{window.removeEventListener("scroll",Y,true),window.removeEventListener("resize",Y);}},[D,Y]);let $=useCallback(H=>{if(o)if(r){let Q=X$1(H)?O.filter(ee=>ee!==H):[...O,H];o(Q);}else o(H),Z();},[r,o,O,Z]),j=useCallback(H=>{H.stopPropagation(),o&&(o(r?[]:null),I(""));},[r,o]),U=()=>{N||(v?Z():A(),R(-1));},re=H=>{if(!N)switch(H.key){case "ArrowDown":H.preventDefault(),v?R(Q=>Math.min(Q+1,te.length-1)):(A(),R(0));break;case "ArrowUp":H.preventDefault(),R(Q=>Math.max(Q-1,0));break;case "Enter":case " ":H.preventDefault(),v&&L>=0&&te[L]&&!te[L].disabled?$(te[L].value):v||(A(),R(0));break;case "Escape":Z();break;case "Tab":Z();break}};useEffect(()=>{L>=0&&g.current&&g.current.children[L]?.scrollIntoView({block:"nearest"});},[L]),useEffect(()=>{if(!v)return;let H=Q=>{let ee=Q.target,ne=C.current?.contains(ee),he=w.current?.contains(ee);!ne&&!he&&Z();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[v,Z]),useEffect(()=>{v&&n&&y.current&&y.current.focus();},[v,n]);let K=H=>e.find(ee=>ee.value===H)?.label??H,q=a&&O.length>0&&!N,J=()=>{let H=T.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Yo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return h==="opening"||h==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:h==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},pe={display:"flex",alignItems:"center",gap:"10px",backgroundColor:N?m.backgroundDisabled:m.background,border:`1px solid ${W?m.borderError:v?m.borderFocus:m.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"pointer",userSelect:"none",outline:"none"},we=D?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:m.dropdownBg,border:`1px solid ${m.dropdownBorder}`,borderRadius:"12px",boxShadow:b==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom center":"top center",...J()},children:[n&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${m.divider}`},children:jsx("input",{ref:y,type:"text",value:S,onChange:H=>{I(H.target.value),R(0);},onKeyDown:re,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:m.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:g,role:"listbox","aria-multiselectable":r,className:`sm-select-list-${f}`,style:{maxHeight:p,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
-
.sm-select-list-${
|
|
1
|
+
import zn,{useState,useId,useCallback,useRef,useEffect,createContext,useMemo,useContext}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {EyeSlash,Eye,X,CaretUp,CaretDown,Minus,Plus,Check,MagnifyingGlass,Rocket,WarningCircle,Lock,Tray,XCircle,CheckCircle,Info,Warning,CaretLeft,CaretRight,CalendarBlank,UploadSimple,FileText,Folder,Eyedropper,Star,Crop,CaretUpDownIcon,CaretUpDown,CaretDownIcon,TrendUp,TrendDown,Funnel,PencilSimple,Trash,XIcon,CaretLeftIcon,CaretRightIcon,CheckIcon,MagnifyingGlassIcon,CopySimpleIcon,DotsSixVertical,ArrowBendDownRight}from'@phosphor-icons/react';var A=()=>{let[e,t]=useState("light");return useEffect(()=>{if(typeof window>"u")return;let o=()=>{let l=document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme");return l==="dark"||l==="light"?l:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};t(o());let n=window.matchMedia("(prefers-color-scheme: dark)"),r=l=>{document.documentElement.getAttribute("data-theme")||document.body.getAttribute("data-theme")||t(l.matches?"dark":"light");};n.addEventListener("change",r);let a=new MutationObserver(l=>{l.forEach(s=>{s.attributeName==="data-theme"&&t(o());});});return a.observe(document.documentElement,{attributes:true}),a.observe(document.body,{attributes:true}),()=>{n.removeEventListener("change",r),a.disconnect();}},[]),e};var Ie={primary:"#FC4F00",primaryHover:"#FF6D2A",secondaryHoverDark:"rgba(0,0,0,0.7)",secondaryHoverLight:"rgba(0,0,0,0.05)",borderDark:"rgba(255,255,255,0.3)",borderLight:"rgba(0,0,0,0.2)",white:"#ffffff",black:"#1a1a1a"},Ii={sm:{paddingText:"6px 12px",paddingSquare:"6px",fontSize:"12px",gap:"6px",height:"30px"},md:{paddingText:"8px 16px",paddingSquare:"8px",fontSize:"14px",gap:"8px",height:"36px"},lg:{paddingText:"12px 20px",paddingSquare:"12px",fontSize:"16px",gap:"10px",height:"42px"}},Pi=({size:e=14})=>{let[t,o]=useState(0),n=useRef(void 0),r=useRef(void 0);return useEffect(()=>{let a=l=>{r.current===void 0&&(r.current=l),o((l-r.current)/800*360%360),n.current=requestAnimationFrame(a);};return n.current=requestAnimationFrame(a),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${t}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Mi=zn.forwardRef(({variant:e="primary",size:t="md",icon:o,iconPosition:n="left",loading:r=false,loadingPosition:a="replace",fullWidth:l=false,children:s,style:g,className:b,...c},d)=>{let[i,u]=useState(false),m=A()==="dark",p=typeof c.href=="string",R=r||(p?false:!!c.disabled),z=s!=null&&s!=="",h=o!=null,S=(h||r)&&!z,{paddingText:x,paddingSquare:I,fontSize:v,gap:E,height:y}=Ii[t],D={display:l?"flex":"inline-flex",width:l?"100%":void 0,alignItems:"center",justifyContent:"center",flexShrink:0,gap:z&&(h||r)?E:void 0,padding:S?I:x,height:y,borderRadius:"8px",cursor:R?"not-allowed":"pointer",opacity:R?.5:1,outline:"none",textDecoration:"none",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:v,lineHeight:"1",whiteSpace:"nowrap",transition:"background-color 0.15s ease, border-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",boxSizing:"border-box",pointerEvents:R?"none":void 0},B=(()=>{switch(e){case "primary":return {backgroundColor:i?Ie.primaryHover:Ie.primary,color:Ie.white,border:"1px solid transparent"};case "secondary":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:"1px solid transparent"};case "outline":return {backgroundColor:i?m?Ie.secondaryHoverDark:Ie.secondaryHoverLight:"transparent",color:m?Ie.white:Ie.black,border:`1px solid ${i?m?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.5)":m?Ie.borderDark:Ie.borderLight}`};case "danger":return {backgroundColor:i?"#FF5252":"#EF3838",color:Ie.white,border:"1px solid transparent"}}})(),k=a==="after-text",M=jsx(Pi,{size:parseInt(v)-1}),F=jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:r&&!k?M:o}),w=r&&k?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:M}):null,T=r&&!k||h,L=n==="right"?jsxs(Fragment,{children:[z&&jsx("span",{children:s}),w,T&&F]}):jsxs(Fragment,{children:[T&&F,z&&jsx("span",{children:s}),w]}),N={style:{...D,...B,...g},className:b,onMouseEnter:W=>{u(true),c.onMouseEnter?.(W);},onMouseLeave:W=>{u(false),c.onMouseLeave?.(W);}};if(p){let{href:W,target:V,rel:q,...Z}=c;return jsx("a",{ref:d,href:W,target:V,rel:q??(V==="_blank"?"noopener noreferrer":void 0),"aria-disabled":R||void 0,...Z,...N,children:L})}let{disabled:C,type:P="button",...H}=c;return jsx("button",{ref:d,type:P,disabled:R,"aria-busy":r||void 0,...H,...N,children:L})});Mi.displayName="Button";var Li={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},ht=({content:e,children:t,position:o="top",mode:n="anchor",autoFlip:r=true,offset:a=[0,0],delay:l=0,openDelay:s,closeDelay:g=0,className:b,style:c})=>{let d=A(),i=Li[d],[u,f]=useState(false),[m,p]=useState({top:0,left:0}),[R,z]=useState(o),h=useRef(null),S=useRef(null),x=useRef(void 0),I=useRef(void 0),v=useRef({x:0,y:0}),E=6,y=8,D=s??l,B=useCallback((C,P,H)=>{if(!r)return C;let W=window.innerWidth,V=window.innerHeight;switch(C){case "top":if(P.top-H.height-y<0)return "bottom";break;case "bottom":if(P.bottom+H.height+y>V)return "top";break;case "left":if(P.left-H.width-y<0)return "right";break;case "right":if(P.right+H.width+y>W)return "left";break}return C},[r]),k=useCallback(()=>{let C=h.current,P=S.current;if(!C||!P)return;let H=C.getBoundingClientRect(),W=P.getBoundingClientRect(),V=B(o,H,W);z(V);let q=0,Z=0,[$,G]=a;switch(V){case "top":q=H.top-W.height-y+G,Z=H.left+H.width/2-W.width/2+$;break;case "bottom":q=H.bottom+y+G,Z=H.left+H.width/2-W.width/2+$;break;case "left":q=H.top+H.height/2-W.height/2+G,Z=H.left-W.width-y+$;break;case "right":q=H.top+H.height/2-W.height/2+G,Z=H.right+y+$;break}let X=window.innerWidth,ee=window.innerHeight;Z=Math.max(4,Math.min(Z,X-W.width-4)),q=Math.max(4,Math.min(q,ee-W.height-4)),p({top:q,left:Z});},[o,a,B]),M=useCallback(()=>{let C=S.current;if(!C)return;let P=C.getBoundingClientRect(),[H,W]=a,V=v.current.x,q=v.current.y,Z=0,$=0;switch(o){case "top":Z=q-P.height-y+W,$=V-P.width/2+H;break;case "bottom":Z=q+y+16+W,$=V-P.width/2+H;break;case "left":Z=q-P.height/2+W,$=V-P.width-y+H;break;case "right":Z=q-P.height/2+W,$=V+y+H;break}let G=window.innerWidth,X=window.innerHeight;$=Math.max(4,Math.min($,G-P.width-4)),Z=Math.max(4,Math.min(Z,X-P.height-4)),p({top:Z,left:$}),z(o);},[o,a]);useEffect(()=>{u&&requestAnimationFrame(()=>{n==="cursor"?M():k();});},[u,n,k,M]);let F=useCallback(C=>{v.current={x:C.clientX,y:C.clientY},n==="cursor"&&u&&M();},[n,u,M]),w=useCallback(C=>{v.current={x:C.clientX,y:C.clientY},I.current&&(clearTimeout(I.current),I.current=void 0),x.current=setTimeout(()=>f(true),D);},[D]),T=useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=void 0),g>0?I.current=setTimeout(()=>f(false),g):f(false);},[g]);useEffect(()=>()=>{x.current&&clearTimeout(x.current),I.current&&clearTimeout(I.current);},[]);let L=(()=>{if(n==="cursor")return {display:"none"};let C={position:"absolute",width:0,height:0,border:`${E}px solid transparent`};switch(R){case "top":return {...C,bottom:-E,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...C,top:-E,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...C,right:-E,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...C,left:-E,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),N=u?createPortal(jsxs("div",{ref:S,className:b,style:{position:"fixed",top:m.top,left:m.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...c},children:[e,jsx("div",{style:L})]}),document.body):null;return jsxs(Fragment,{children:[zn.cloneElement(t,{ref:h,onMouseEnter:C=>{w(C),t.props.onMouseEnter?.(C);},onMouseLeave:C=>{T(),t.props.onMouseLeave?.(C);},onMouseMove:C=>{F(C),t.props.onMouseMove?.(C);}}),N]})};ht.displayName="Tooltip";var Oi=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Zi={dark:{defaultBg:"transparent",defaultHover:"rgba(255,255,255,0.08)",defaultColor:"#ffffff",ghostBg:"transparent",ghostHover:"rgba(255,255,255,0.06)",ghostColor:"#ACACAC",outlineBg:"transparent",outlineHover:"rgba(255,255,255,0.06)",outlineColor:"#ffffff",outlineBorder:"rgba(255,255,255,0.3)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.12)",dangerColor:"#EF3838"},light:{defaultBg:"transparent",defaultHover:"rgba(0,0,0,0.06)",defaultColor:"#1a1a1a",ghostBg:"transparent",ghostHover:"rgba(0,0,0,0.04)",ghostColor:"#888888",outlineBg:"transparent",outlineHover:"rgba(0,0,0,0.04)",outlineColor:"#1a1a1a",outlineBorder:"rgba(0,0,0,0.2)",dangerBg:"transparent",dangerHover:"rgba(239,56,56,0.08)",dangerColor:"#EF3838"}},Yi={xs:{size:24,iconSize:12,radius:"4px"},sm:{size:28,iconSize:14,radius:"6px"},md:{size:36,iconSize:16,radius:"8px"},lg:{size:44,iconSize:20,radius:"8px"}},Vi=({icon:e,onClick:t,label:o,variant:n="default",size:r="md",disabled:a=false,loading:l=false,tooltip:s,style:g,className:b})=>{let c=A(),d=Zi[c],i=Yi[r],[u,f]=useState(false),m={default:{bg:u?d.defaultHover:d.defaultBg,color:d.defaultColor,border:"none"},ghost:{bg:u?d.ghostHover:d.ghostBg,color:d.ghostColor,border:"none"},outline:{bg:u?d.outlineHover:d.outlineBg,color:d.outlineColor,border:`1px solid ${d.outlineBorder}`},danger:{bg:u?d.dangerHover:d.dangerBg,color:d.dangerColor,border:"none"}}[n],p=jsx("button",{type:"button","aria-label":o,disabled:a||l,onClick:t,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),className:b,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:i.size,height:i.size,borderRadius:i.radius,backgroundColor:m.bg,color:m.color,border:m.border,cursor:a||l?"not-allowed":"pointer",opacity:a?.4:1,transition:"background-color 0.12s ease",outline:"none",padding:0,flexShrink:0,boxSizing:"border-box",...g},children:l?jsx(Oi,{size:i.iconSize}):e});return s?jsx(ht,{content:s,children:p}):p};Vi.displayName="IconButton";var Gi={dark:{label:"#ffffff",helperText:"#ACACAC",errorText:"#EF3838",required:"#EF3838"},light:{label:"#1a1a1a",helperText:"#888888",errorText:"#EF3838",required:"#EF3838"}},_i=({label:e,required:t=false,helperText:o,error:n,children:r,inline:a=false,labelWidth:l="120px",style:s,className:g})=>{let b=A(),c=Gi[b],d=useId(),i=typeof l=="number"?`${l}px`:l,u=e?jsxs("label",{htmlFor:d,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none",display:"flex",alignItems:"center",gap:"2px",...a?{width:i,flexShrink:0,paddingTop:"10px"}:{}},children:[e,t&&jsx("span",{style:{color:c.required,marginLeft:"2px"},children:"*"})]}):null,f=n||o;return jsxs("div",{className:g,style:{display:"flex",flexDirection:a?"row":"column",gap:a?"12px":"6px",...s},children:[u,jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"6px",minWidth:0},children:[r,f&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:n?c.errorText:c.helperText},children:n||o})]})]})};_i.displayName="FormField";var es=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Er={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888"}},ts={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},zr=zn.forwardRef(({label:e,icon:t,iconPosition:o="left",error:n,helperText:r,loading:a=false,clearable:l=false,passwordToggle:s,size:g="md",fullWidth:b=false,style:c,className:d,inputStyle:i,disabled:u,required:f,value:m,onChange:p,onFocus:R,onBlur:z,type:h,...S},x)=>{let I=A(),v=Er[I],E=useId(),y=S.id??E,[D,B]=useState(false),[k,M]=useState(false),F=h==="password",w=s??F,T=F&&k?"text":h,L=u||a,N=!!n,C=typeof n=="string"?n:void 0,P=m!=null&&m!=="",H=l&&P&&!L&&!w,W=ts[g],V=()=>{if(!p)return;p({target:{value:""},currentTarget:{value:""}});},q=t?jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:v.placeholder},children:t}):null,Z=w&&!L?jsx("span",{role:"button",tabIndex:-1,"aria-label":k?"Skr\xFDt heslo":"Zobrazit heslo",onClick:()=>M(re=>!re),style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:k?jsx(EyeSlash,{color:v.placeholder,size:W.iconSize}):jsx(Eye,{color:v.placeholder,size:W.iconSize})}):null,$=a?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:v.placeholder},children:jsx(es,{size:W.iconSize,color:v.placeholder})}):Z||(H?jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat pole",onClick:V,style:{display:"flex",alignItems:"center",flexShrink:0,cursor:"pointer",color:v.placeholder,padding:"2px"},children:jsx(X,{size:W.iconSize-2,color:v.placeholder})}):o==="right"&&q?q:null),G=o==="left"?q:null,X$1={display:"flex",alignItems:"center",gap:W.gap,backgroundColor:L?v.backgroundDisabled:v.background,border:`1px solid ${N?v.borderError:D?v.borderFocus:v.border}`,borderRadius:"8px",padding:W.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:L?.6:1,cursor:L?"not-allowed":"text"},ee={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:W.fontSize,lineHeight:"normal",color:v.text,cursor:L?"not-allowed":"text",...i},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},te={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:b?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:b?"100%":void 0,...c},className:d,children:[e&&jsxs("label",{htmlFor:y,style:J,children:[e,f&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("label",{htmlFor:y,style:X$1,children:[G,jsx("input",{ref:x,id:y,type:T,disabled:u,required:f,readOnly:a||S.readOnly,value:m,onChange:p,style:ee,onFocus:re=>{B(true),R?.(re);},onBlur:re=>{B(false),z?.(re);},...S}),$]}),C&&jsx("span",{style:{...te,color:v.borderError},children:C}),!C&&r&&jsx("span",{style:{...te,color:v.helperText},children:r})]})});zr.displayName="Input";var Hf=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),s=t??l,g={display:"flex",flexDirection:"column",gap:"8px",...n},b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Er[a].label,userSelect:"none"};return jsxs("div",{style:g,className:r,children:[jsx("label",{htmlFor:s,style:b,children:e}),o??jsx(zr,{id:s})]})};var cs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",buttonBg:"rgba(255,255,255,0.06)",buttonHoverBg:"rgba(255,255,255,0.12)",buttonText:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",buttonBg:"rgba(0,0,0,0.04)",buttonHoverBg:"rgba(0,0,0,0.08)",buttonText:"#1a1a1a"}},ds={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,height:"30px",buttonPadding:"6px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,height:"36px",buttonPadding:"8px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,height:"42px",buttonPadding:"10px"}},ps=zn.forwardRef(({value:e,onChange:t,min:o,max:n,step:r=1,label:a,error:l,disabled:s=false,size:g="md",variant:b="default",prefix:c,suffix:d,style:i,className:u},f)=>{let m=A(),p=cs[m],z=useId(),h=ds[g],[S,x]=useState(false),[I,v]=useState(null),E=!!l,y=typeof l=="string"?l:void 0,D=useCallback(G=>{let X=G;return o!==void 0&&X<o&&(X=o),n!==void 0&&X>n&&(X=n),X},[o,n]),B=useCallback(()=>{t(D(e+r));},[e,r,t,D]),k=useCallback(()=>{t(D(e-r));},[e,r,t,D]),M=useRef(null),F=useRef(null),w=useCallback(G=>{s||(G(),F.current=setTimeout(()=>{M.current=setInterval(G,80);},400));},[s]),T=useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=null),M.current&&(clearInterval(M.current),M.current=null);},[]);useEffect(()=>()=>T(),[T]);let L=G=>{let X=G.target.value;if(X===""||X==="-")return;let ee=parseFloat(X);isNaN(ee)||t(D(ee));},N=()=>{x(false),t(D(e));},C=o===void 0||e>o,P=n===void 0||e<n,H={display:"flex",alignItems:"center",backgroundColor:s?p.backgroundDisabled:p.background,border:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden",height:h.height},W=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",padding:h.buttonPadding,border:"none",background:I===G&&X&&!s?p.buttonHoverBg:p.buttonBg,color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",flexShrink:0,transition:"background-color 0.12s ease",height:"100%",minWidth:h.height,userSelect:"none"}),V={flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:h.fontSize,lineHeight:"normal",color:p.text,textAlign:"center",cursor:s?"not-allowed":"text",MozAppearance:"textfield"},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:h.fontSize,color:p.placeholder,flexShrink:0,userSelect:"none",lineHeight:"normal"},$=(G,X)=>({display:"flex",alignItems:"center",justifyContent:"center",border:"none",background:I===G&&X&&!s?p.buttonHoverBg:"transparent",color:X&&!s?p.buttonText:p.placeholder,cursor:s||!X?"not-allowed":"pointer",padding:"0 6px",height:"14px",flexShrink:0,transition:"background-color 0.12s ease",userSelect:"none",borderRadius:"2px"});return b==="compact"?jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsx("label",{htmlFor:z,style:q,children:a}),jsxs("div",{style:H,children:[jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",gap:"4px",padding:h.padding,minWidth:0},children:[c&&jsx("span",{style:Z,children:c}),jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:{...V,textAlign:"left"}}),d&&jsx("span",{style:Z,children:d})]}),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",flexShrink:0,borderLeft:`1px solid ${E?p.borderError:S?p.borderFocus:p.border}`,transition:"border-color 0.15s ease"},children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:$("up",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("up"),children:jsx(CaretUp,{size:10,weight:"bold"})}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:$("down",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("down"),children:jsx(CaretDown,{size:10,weight:"bold"})})]})]}),y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]}):jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...i},className:u,children:[a&&jsx("label",{htmlFor:z,style:q,children:a}),jsxs("div",{style:H,children:[jsx("button",{type:"button",tabIndex:-1,"aria-label":"Sn\xED\u017Eit hodnotu",disabled:s||!C,style:W("minus",C),onMouseDown:()=>w(k),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("minus"),children:jsx(Minus,{size:h.iconSize})}),jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"0 4px",minWidth:0},children:[c&&jsx("span",{style:Z,children:c}),jsx("input",{ref:f,id:z,type:"text",inputMode:"numeric",value:e,onChange:L,onFocus:()=>x(true),onBlur:N,disabled:s,style:V}),d&&jsx("span",{style:Z,children:d})]}),jsx("button",{type:"button",tabIndex:-1,"aria-label":"Zv\xFD\u0161it hodnotu",disabled:s||!P,style:W("plus",P),onMouseDown:()=>w(B),onMouseUp:T,onMouseLeave:()=>{T(),v(null);},onMouseEnter:()=>v("plus"),children:jsx(Plus,{size:h.iconSize})})]}),y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.borderError,lineHeight:"normal"},children:y})]})});ps.displayName="NumberInput";var Pr=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Ar={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},rn=180,Hr=({options:e,value:t,onChange:o,multiple:n=false,searchable:r=false,clearable:a=false,disabled:l=false,loading:s=false,error:g,onSearch:b,creatable:c=false,onCreateOption:d,chipDisplay:i="inline",renderOption:u,renderValue:f,label:m,placeholder:p="Vyberte\u2026",maxDropdownHeight:R=240,style:z,className:h})=>{let S=A(),x=Ar[S],I=useId(),v=useRef(null),E=useRef(null),y=useRef(null),D=useRef(null),[B,k]=useState(false),[M,F]=useState(false),[w,T]=useState("idle"),[L,N]=useState(""),[C,P]=useState(-1),[H,W]=useState({top:0,left:0,width:0,openAbove:false}),V=l||s,q=!!g,Z=typeof g=="string"?g:void 0,$=useCallback(()=>{k(true),F(true),T("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>T("open"));});},[]),G=useCallback(()=>{k(false),T("closing"),N("");let _=setTimeout(()=>{F(false),T("idle");},rn);return ()=>clearTimeout(_)},[]),X$1=n?Array.isArray(t)?t:[]:t!=null&&t!==""?[t]:[],ee=_=>X$1.includes(_),[J,te]=useState(null),[re,be]=useState(false),we=useRef(void 0);useEffect(()=>{if(!b||!L){te(null);return}return be(true),we.current&&clearTimeout(we.current),we.current=setTimeout(()=>{b(L).then(_=>{te(_),be(false);}).catch(()=>{te([]),be(false);});},300),()=>{we.current&&clearTimeout(we.current);}},[L,b]);let Y=b?J??e:L?e.filter(_=>(_.label??_.value).toLowerCase().includes(L.toLowerCase())):e,j=useCallback(()=>{if(!v.current)return;let _=v.current.getBoundingClientRect(),se=E.current?.offsetHeight??R+60,le=window.innerHeight-_.bottom-6,Ae=_.top-6,st=le<se&&Ae>le;W({top:st?_.top-6:_.bottom+6,left:_.left,width:_.width,openAbove:st});},[R]);useEffect(()=>{if(M)return j(),window.addEventListener("scroll",j,true),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j,true),window.removeEventListener("resize",j);}},[M,j]);let ie=useCallback(_=>{if(o)if(n){let se=ee(_)?X$1.filter(le=>le!==_):[...X$1,_];o(se);}else o(_),G();},[n,o,X$1,G]),Me=useCallback(_=>{_.stopPropagation(),o&&(o(n?[]:null),N(""));},[n,o]),Je=()=>{V||(B?G():$(),P(-1));},We=_=>{if(!V)switch(_.key){case "ArrowDown":_.preventDefault(),B?P(se=>Math.min(se+1,Y.length-1)):($(),P(0));break;case "ArrowUp":_.preventDefault(),P(se=>Math.max(se-1,0));break;case "Enter":case " ":_.preventDefault(),B&&C>=0&&Y[C]&&!Y[C].disabled?ie(Y[C].value):B||($(),P(0));break;case "Escape":G();break;case "Tab":G();break}};useEffect(()=>{C>=0&&D.current&&D.current.children[C]?.scrollIntoView({block:"nearest"});},[C]),useEffect(()=>{if(!B)return;let _=se=>{let le=se.target,Ae=v.current?.contains(le),st=E.current?.contains(le);!Ae&&!st&&G();};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[B,G]),useEffect(()=>{B&&r&&y.current&&y.current.focus();},[B,r]);let Qe=_=>e.find(le=>le.value===_)?.label??_,he=a&&X$1.length>0&&!V,ze=()=>{let _=H.openAbove,se=_?"translateY(8px)":"translateY(-8px)",le=_?"translateY(6px)":"translateY(-6px)",Ae={transition:`opacity ${rn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return w==="opening"||w==="idle"?{...Ae,opacity:0,transform:`${se} scale(0.97)`}:w==="open"?{...Ae,opacity:1,transform:"translateY(0) scale(1)"}:{...Ae,opacity:0,transform:`${le} scale(0.98)`,pointerEvents:"none"}},Ut={display:"flex",alignItems:"center",gap:"10px",backgroundColor:V?x.backgroundDisabled:x.background,border:`1px solid ${q?x.borderError:B?x.borderFocus:x.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:V?.6:1,cursor:V?"not-allowed":"pointer",userSelect:"none",outline:"none"},it=M?createPortal(jsxs("div",{ref:E,style:{position:"fixed",...H.openAbove?{bottom:window.innerHeight-H.top,left:H.left}:{top:H.top,left:H.left},width:H.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:S==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:H.openAbove?"bottom center":"top center",...ze()},children:[r&&jsx("div",{style:{padding:"10px 12px",borderBottom:`1px solid ${x.divider}`},children:jsx("input",{ref:y,type:"text",value:L,onChange:_=>{N(_.target.value),P(0);},onKeyDown:We,placeholder:"Hledat\u2026",style:{width:"100%",background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,boxSizing:"border-box",padding:0}})}),jsxs("div",{ref:D,role:"listbox","aria-multiselectable":n,className:`sm-select-list-${I}`,style:{maxHeight:R,overflowY:"auto",padding:"6px"},children:[jsx("style",{children:`
|
|
2
|
+
.sm-select-list-${I}::-webkit-scrollbar {
|
|
3
3
|
width: 6px;
|
|
4
4
|
}
|
|
5
|
-
.sm-select-list-${
|
|
5
|
+
.sm-select-list-${I}::-webkit-scrollbar-track {
|
|
6
6
|
background: transparent;
|
|
7
7
|
}
|
|
8
|
-
.sm-select-list-${
|
|
9
|
-
background: ${
|
|
8
|
+
.sm-select-list-${I}::-webkit-scrollbar-thumb {
|
|
9
|
+
background: ${x.scrollbarThumb};
|
|
10
10
|
border-radius: 3px;
|
|
11
11
|
}
|
|
12
|
-
`}),te.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:m.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),te.map((H,Q)=>{let ee=X$1(H.value),ne=Q===L;return jsxs("div",{role:"option","aria-selected":ee,"aria-disabled":H.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:ee?500:400,lineHeight:"normal",color:ee?m.optionSelectedText:H.disabled?m.placeholder:m.text,backgroundColor:ne?m.optionHover:ee?m.optionSelected:"transparent",cursor:H.disabled?"not-allowed":"pointer",opacity:H.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:Q<te.length-1?"2px":0},onClick:()=>{H.disabled||$(H.value);},onMouseEnter:()=>R(Q),onMouseLeave:()=>R(-1),children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H.label??H.value}),ee&&jsx(Check,{size:16,color:m.optionSelectedText})]},H.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...l},className:x,children:[c&&jsx("label",{htmlFor:f,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:m.text,userSelect:"none"},children:c}),jsxs("div",{ref:C,role:"combobox","aria-expanded":v,"aria-haspopup":"listbox",tabIndex:N?-1:0,style:pe,onClick:U,onKeyDown:re,children:[jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[O.length===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.placeholder,lineHeight:"normal"},children:d}),r?O.map(H=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:m.tagBg,color:m.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(H)}),!N&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:Q=>{Q.stopPropagation(),$(H);},children:jsx(X,{size:14,color:m.tagText})})]},H)):O.length>0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:m.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:K(O[0])})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[q&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:j,children:jsx(X,{size:14,color:m.placeholder})}),i?jsx(Fs,{size:16,color:m.placeholder}):jsx(CaretDown,{size:16,color:m.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:m.borderError,lineHeight:"normal"},children:z}),we]})};gn.displayName="Select";var Es=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:un[a].label,userSelect:"none"},children:e}),o??jsx(gn,{options:[]})]})};Es.displayName="SelectGroup";var As=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Hs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},Vo=180,Ls={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ns=ur.forwardRef(({options:e,value:t,onChange:o,onInputChange:r,placeholder:n="Hledat\u2026",label:a,error:s,disabled:i=false,loading:u=false,multiple:c=false,clearable:d=false,onOpenChange:p,onSelect:l,onDeselect:x,onClear:b,onFocus:m,onBlur:f,allowCustom:C=false,onCreate:w,renderOption:y,notFoundContent:g,footer:v,size:M="md",style:D,className:k},h)=>{let F=P(),S=Hs[F],L=useId(),R=Ls[M],T=useRef(null),E=useRef(null),N=useRef(null),W=useRef(null),[z,A]=useState(false),[Z,O]=useState(false),[X$1,te]=useState("idle"),[Y,$]=useState(""),[j,U]=useState(-1),[re,K]=useState(false),[q,J]=useState({top:0,left:0,width:0,openAbove:false}),pe=i||u,we=!!s,H=typeof s=="string"?s:void 0,Q=d&&!pe,ee=c?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],ne=B=>ee.includes(B),he=B=>{let V=e.find(G=>G.value===B);return V?V.label??V.value:B};useEffect(()=>{if(!c&&!re){let B=e.find(V=>V.value===t);$(B?B.label??B.value:(typeof t=="string"?t:"")||"");}},[t,e,re,c]);let Ye=Y?e.filter(B=>(B.label??B.value).toLowerCase().includes(Y.toLowerCase())):e,Qe=useCallback(()=>{A(true),O(true),te("opening"),p?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>te("open"));});},[p]),Ee=useCallback(()=>{A(false),te("closing"),p?.(false);let B=setTimeout(()=>{O(false),te("idle");},Vo);return ()=>clearTimeout(B)},[p]),$e=useCallback(()=>{if(!T.current)return;let B=T.current.getBoundingClientRect(),V=N.current?.offsetHeight??240,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;J({top:se?B.top-6:B.bottom+6,left:B.left,width:B.width,openAbove:se});},[]);useEffect(()=>{if(Z)return $e(),window.addEventListener("scroll",$e,true),window.addEventListener("resize",$e),()=>{window.removeEventListener("scroll",$e,true),window.removeEventListener("resize",$e);}},[Z,$e]),useEffect(()=>{if(!z)return;let B=V=>{let G=V.target;if(!T.current?.contains(G)&&!N.current?.contains(G))if(Ee(),c)$("");else {let _=e.find(se=>se.value===t);C||$(_?_.label??_.value:"");}};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[z,Ee,t,e,C,c]),useEffect(()=>{j>=0&&W.current&&W.current.children[j]?.scrollIntoView({block:"nearest"});},[j]);let Do=B=>{let V=B.target.value;$(V),r?.(V),U(0),z||Qe();},Qt=useCallback(B=>{let V=e.find(G=>G.value===B)||{value:B};if(c){if(ne(B)){let G=ee.filter(_=>_!==B);o(G),x?.(B,V);}else {let G=[...ee,B];o(G),l?.(B,V);}$("");}else o(B),l?.(B,V),$(V.label??V.value),Ee();},[o,e,Ee,c,ee,l,x]),zo=useCallback(B=>{if(!c)return;let V=e.find(_=>_.value===B)||{value:B},G=ee.filter(_=>_!==B);o(G),x?.(B,V);},[c,ee,o,e,x]),Io=useCallback(B=>{B.stopPropagation(),o(c?[]:""),$(""),b?.();},[c,o,b]),Po=B=>{if(!pe)switch(B.key){case "ArrowDown":B.preventDefault(),z?U(V=>Math.min(V+1,Ye.length-1)):(Qe(),U(0));break;case "ArrowUp":B.preventDefault(),U(V=>Math.max(V-1,0));break;case "Enter":B.preventDefault(),z&&j>=0&&Ye[j]?Qt(Ye[j].value):C&&Y&&(c?(o([...ee,Y]),w?.(Y),$("")):(o(Y),w?.(Y),Ee()));break;case "Backspace":if(c&&Y===""&&ee.length>0){let V=ee.slice(0,-1);o(V);}break;case "Escape":Ee();break;case "Tab":z&&Ee();break}},zt=B=>{K(true),m?.(B),!z&&!pe&&Qe();},Mo=B=>{let V=B.relatedTarget;V&&(N.current?.contains(V)||T.current?.contains(V))||(K(false),f?.(B),!c&&C&&Y&&o(Y),c&&$(""));},Ao=()=>{let B=q.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return X$1==="opening"||X$1==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:X$1==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Ho={display:"flex",alignItems:"center",gap:R.gap,backgroundColor:pe?S.backgroundDisabled:S.background,border:`1px solid ${we?S.borderError:re?S.borderFocus:S.border}`,borderRadius:"8px",padding:R.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:pe?.6:1,cursor:pe?"not-allowed":"text",flexWrap:"nowrap"},Lo={flex:1,minWidth:c?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:R.fontSize,lineHeight:"normal",color:S.text,cursor:pe?"not-allowed":"text"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:S.label,userSelect:"none"},eo=Z?createPortal(jsxs("div",{ref:N,style:{position:"fixed",...q.openAbove?{bottom:window.innerHeight-q.top,left:q.left}:{top:q.top,left:q.left},width:q.width,backgroundColor:S.dropdownBg,border:`1px solid ${S.dropdownBorder}`,borderRadius:"12px",boxShadow:F==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:q.openAbove?"bottom center":"top center",...Ao()},onMouseDown:B=>{B.preventDefault();},children:[jsxs("div",{ref:W,role:"listbox","aria-multiselectable":c,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[Ye.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:S.placeholder,textAlign:"center"},children:C&&Y?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof g=="function"?g(Ee):g??"\u017D\xE1dn\xE9 v\xFDsledky"}),Ye.map((B,V)=>{let G=ne(B.value),_=V===j;return jsx("div",{role:"option","aria-selected":G,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:G?500:400,lineHeight:"normal",color:G?S.optionSelectedText:S.text,backgroundColor:_?S.optionHover:G?S.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:V<Ye.length-1?"2px":0},onClick:()=>Qt(B.value),onMouseEnter:()=>U(V),onMouseLeave:()=>U(-1),children:y?y(B,_):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B.label??B.value}),G&&jsx(Check,{size:16,color:S.optionSelectedText})]})},B.value)})]}),v&&jsx("div",{style:{borderTop:`1px solid ${S.divider}`,padding:"8px 6px"},children:typeof v=="function"?v(Ee):v})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...D},className:k,children:[a&&jsx("label",{htmlFor:L,style:No,children:a}),jsxs("div",{ref:T,style:Ho,onClick:()=>E.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S.placeholder},children:u?jsx(As,{size:R.iconSize,color:S.placeholder}):jsx(MagnifyingGlass,{size:R.iconSize,color:S.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[c&&ee.map(B=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:S.tagBg,color:S.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:he(B)}),!pe&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:V=>{V.stopPropagation(),zo(B);},children:jsx(X,{size:14,color:S.tagText})})]},B)),jsx("input",{ref:B=>{E.current=B,typeof h=="function"?h(B):h&&(h.current=B);},id:L,type:"text",value:Y,onChange:Do,onFocus:zt,onBlur:Mo,onKeyDown:Po,placeholder:c&&ee.length>0?"":n,disabled:i,readOnly:u,style:Lo})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Q&&ee.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Io,children:jsx(X,{size:14,color:S.placeholder})}),jsx(CaretDown,{size:R.iconSize,color:S.placeholder,style:{transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]})]}),H&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:S.borderError,lineHeight:"normal"},children:H}),eo]})});Ns.displayName="Combobox";var Ys=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},kn={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},Uo=180,Vs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Us=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],hn=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function _s(e,t,o){let n=new Date(e,t,1).getDay();n=(n===0?7:n)-o,n<0&&(n+=7);let a=new Date(e,t,1-n),s=[];for(let i=0;i<42;i++){let u=new Date(a);u.setDate(a.getDate()+i),s.push(u);}return s}function Xo(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function yn(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${Xo(e)} ${t}:${o}`}function Xe(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function vn(e,t,o){let r=e.getTime(),n=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return r>=n&&r<=a}function Xs(e){return Xe(e,new Date)}var Cn=({mode:e="single",showTime:t=false,value:o,onChange:r,label:n,placeholder:a,error:s,helperText:i,disabled:u=false,loading:c=false,clearable:d=false,size:p="md",fullWidth:l=false,required:x,minDate:b,maxDate:m,firstDayOfWeek:f=1,style:C,className:w})=>{let y=P(),g=kn[y],v=useId(),M=Vs[p],D=useRef(null),k=useRef(null),[h,F]=useState(false),[S,I]=useState(false),[L,R]=useState("idle"),[T,E]=useState({top:0,left:0,width:0,openAbove:false}),[N,W]=useState(null),z=new Date,[A,Z]=useState(z.getFullYear()),[O,X$1]=useState(z.getMonth()),[te,Y]=useState("days"),[$,j]=useState(0),U=u||c,re=!!s,K=typeof s=="string"?s:void 0,q=e==="single"&&o instanceof Date?o:null,J=e==="range"&&Array.isArray(o)?o:[null,null],pe=e==="single"?q!==null:J[0]!==null||J[1]!==null,we=d&&pe&&!U,H=(()=>{if(e==="single")return q?t?yn(q):Xo(q):"";let[B,V]=J;if(!B&&!V)return "";let G=t?yn:Xo;return `${B?G(B):"\u2026"} \u2013 ${V?G(V):"\u2026"}`})(),Q=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),ee=useCallback(()=>{let B=e==="single"?q:J[0];B&&(Z(B.getFullYear()),X$1(B.getMonth())),Y("days"),F(true),I(true),R("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>R("open"));});},[e,q,J]),ne=useCallback(()=>{F(false),R("closing");let B=setTimeout(()=>{I(false),R("idle");},Uo);return ()=>clearTimeout(B)},[]),he=useCallback(()=>{if(!D.current)return;let B=D.current.getBoundingClientRect(),V=k.current?.offsetHeight??380,G=window.innerHeight-B.bottom-6,_=B.top-6,se=G<V&&_>G;E({top:se?B.top-6:B.bottom+6,left:B.left,width:Math.max(B.width,300),openAbove:se});},[]);useEffect(()=>{if(S)return he(),window.addEventListener("scroll",he,true),window.addEventListener("resize",he),()=>{window.removeEventListener("scroll",he,true),window.removeEventListener("resize",he);}},[S,he]),useEffect(()=>{if(!h)return;let B=V=>{let G=V.target,_=D.current?.contains(G),se=k.current?.contains(G);!_&&!se&&ne();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[h,ne]);let Ye=B=>{U||(B.key==="Escape"&&h&&(B.preventDefault(),ne()),(B.key==="Enter"||B.key===" ")&&!h&&(B.preventDefault(),ee()));},Qe=useCallback(B=>{if(b){let V=new Date(b.getFullYear(),b.getMonth(),b.getDate());if(B<V)return true}if(m){let V=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(B>V)return true}return false},[b,m]),Ee=useCallback(B=>{if(!Qe(B)&&r)if(e==="single")t&&q&&B.setHours(q.getHours(),q.getMinutes()),r(new Date(B)),t||ne();else if($===0)t&&J[0]&&B.setHours(J[0].getHours(),J[0].getMinutes()),r([new Date(B),null]),j(1);else {let V=J[0];t&&J[1]&&B.setHours(J[1].getHours(),J[1].getMinutes());let[G,_]=B>=V?[V,new Date(B)]:[new Date(B),V];r([G,_]),j(0),t||ne();}},[e,t,q,J,$,r,ne,Qe]),$e=useCallback((B,V,G)=>{if(!r)return;let _=parseInt(V,10);if(isNaN(_)&&(_=0),B==="hour"&&(_=Math.max(0,Math.min(23,_))),B==="minute"&&(_=Math.max(0,Math.min(59,_))),e==="single"){let se=q?new Date(q):new Date;B==="hour"?se.setHours(_):se.setMinutes(_),r(se);}else {let se=G??0,ye=[J[0]?new Date(J[0]):null,J[1]?new Date(J[1]):null],et=ye[se]??new Date;B==="hour"?et.setHours(_):et.setMinutes(_),ye[se]=et,r(ye);}},[e,q,J,r]),Do=()=>{O===0?(X$1(11),Z(B=>B-1)):X$1(B=>B-1);},Qt=()=>{O===11?(X$1(0),Z(B=>B+1)):X$1(B=>B+1);},zo=B=>{B.stopPropagation(),r&&(r(e==="single"?null:[null,null]),j(0));},Io=()=>{let B=T.openAbove,V=B?"translateY(8px)":"translateY(-8px)",G=B?"translateY(6px)":"translateY(-6px)",_={transition:`opacity ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Uo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{..._,opacity:0,transform:`${V} scale(0.97)`}:L==="open"?{..._,opacity:1,transform:"translateY(0) scale(1)"}:{..._,opacity:0,transform:`${G} scale(0.98)`,pointerEvents:"none"}},Po=_s(A,O,f),zt=(B,V)=>{let G=B?B.getHours():0,_=B?B.getMinutes():0,se={width:"42px",background:"transparent",border:`1px solid ${g.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(G).padStart(2,"0"),onChange:ye=>$e("hour",ye.target.value,V),style:se,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:g.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(_).padStart(2,"0"),onChange:ye=>$e("minute",ye.target.value,V),style:se,maxLength:2,"aria-label":"Minuty"})]})},Mo=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:hn.map((B,V)=>{let G=V===O;return jsx("button",{type:"button",onClick:()=>{X$1(V),Y("days");},style:{background:G?g.daySelected:"transparent",color:G?g.daySelectedText:g.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:_=>{G||(_.target.style.backgroundColor=g.dayHover);},onMouseLeave:_=>{G||(_.target.style.backgroundColor="transparent");},children:B},V)})}),Ao=()=>{let B=Math.floor(A/12)*12,V=Array.from({length:12},(G,_)=>B+_);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px"},children:[jsx("button",{type:"button",onClick:()=>Z(G=>G-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:g.text},children:[B," \u2013 ",B+11]}),jsx("button",{type:"button",onClick:()=>Z(G=>G+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:"8px 12px"},children:V.map(G=>{let _=G===A;return jsx("button",{type:"button",onClick:()=>{Z(G),Y("months");},style:{background:_?g.daySelected:"transparent",color:_?g.daySelectedText:g.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:se=>{_||(se.target.style.backgroundColor=g.dayHover);},onMouseLeave:se=>{_||(se.target.style.backgroundColor="transparent");},children:G},G)})})]})},Ho=S?createPortal(jsx("div",{ref:k,style:{position:"fixed",...T.openAbove?{bottom:window.innerHeight-T.top,left:T.left}:{top:T.top,left:T.left},width:T.width,backgroundColor:g.dropdownBg,border:`1px solid ${g.dropdownBorder}`,borderRadius:"12px",boxShadow:y==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:T.openAbove?"bottom center":"top center",...Io()},children:te==="years"?Ao():te==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 12px"},children:jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})}),Mo()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px"},children:[jsx("button",{type:"button",onClick:Do,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:g.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>Y("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:hn[O]}),jsx("button",{type:"button",onClick:()=>Y("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:500,color:g.text,padding:"4px 8px",borderRadius:"4px"},children:A})]}),jsx("button",{type:"button",onClick:Qt,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:g.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 4px",gap:"0"},children:Us.map(B=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:400,color:g.placeholder,padding:"4px 0",userSelect:"none"},children:B},B))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:"0 12px 8px",gap:"2px"},children:Po.map((B,V)=>{let G=B.getMonth()!==O,_=Qe(B),se=Xs(B),ye=false,et=false,$o=false,to=false;if(e==="single"&&q)ye=Xe(B,q);else if(e==="range"){let[Ve,ro]=J;Ve&&Xe(B,Ve)&&(et=true,ye=true),ro&&Xe(B,ro)&&($o=true,ye=true),Ve&&ro&&vn(B,Ve,ro)&&!et&&!$o&&(to=true),$===1&&Ve&&N&&!_&&(Xe(B,N)&&!Xe(B,Ve)&&(ye=true),vn(B,Ve,N)&&!Xe(B,Ve)&&!Xe(B,N)&&(to=true));}let Wo="transparent",oo=g.text;return ye?(Wo=g.daySelected,oo=g.daySelectedText):to&&(Wo=g.dayRangeMiddle),G&&(oo=ye?g.daySelectedText:g.dayOutside),_&&(oo=g.dayDisabled),jsx("button",{type:"button",disabled:_,onClick:()=>Ee(B),onMouseEnter:()=>{_||W(B);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Wo,color:oo,border:"none",borderRadius:et?"6px 0 0 6px":$o?"0 6px 6px 0":to?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:ye?600:400,cursor:_?"not-allowed":"pointer",opacity:_?.4:1,transition:"background-color 0.1s ease",outline:se&&!ye?`1.5px solid ${g.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:B.getDate()},V)})}),t&&jsx("div",{style:{borderTop:`1px solid ${g.divider}`,padding:"10px 12px",display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"\u010Cas:"}),zt(q)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Od:"}),zt(J[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:g.placeholder},children:"Do:"}),zt(J[1],1)]})]})})]})}),document.body):null,Lo={display:"flex",alignItems:"center",gap:M.gap,backgroundColor:U?g.backgroundDisabled:g.background,border:`1px solid ${re?g.borderError:h?g.borderFocus:g.border}`,borderRadius:"8px",padding:M.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:U?.6:1,cursor:U?"not-allowed":"pointer",userSelect:"none",outline:"none"},No={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},eo={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...C},className:w,children:[n&&jsxs("label",{htmlFor:v,style:No,children:[n,x&&jsx("span",{style:{color:g.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:D,role:"button",tabIndex:U?-1:0,style:Lo,onClick:()=>{U||(h?ne():ee());},onKeyDown:Ye,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:H?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.text,lineHeight:"normal"},children:H}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:M.fontSize,color:g.placeholder,lineHeight:"normal"},children:Q})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[we&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:zo,children:jsx(X,{size:M.iconSize-2,color:g.placeholder})}),c?jsx(Ys,{size:M.iconSize,color:g.placeholder}):jsx(CalendarBlank,{size:M.iconSize,color:g.placeholder})]})]}),K&&jsx("span",{style:{...eo,color:g.borderError},children:K}),!K&&i&&jsx("span",{style:{...eo,color:g.helperText},children:i}),Ho]})};Cn.displayName="DatePicker";var Gs=({label:e,htmlFor:t,children:o,style:r,className:n})=>{let a=P(),s=useId(),i=t??s;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[jsx("label",{htmlFor:i,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:kn[a].label,userSelect:"none"},children:e}),o??jsx(Cn,{})]})};Gs.displayName="DatePickerGroup";var wn={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Js={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Rn=({checked:e=false,onChange:t,label:o,disabled:r=false,error:n,size:a="md",indeterminate:s=false,className:i,style:u})=>{let c=P(),d=wn[c],p=Js[a],l=useId(),x=useRef(null),b=!!n,m=typeof n=="string"?n:void 0;useEffect(()=>{x.current&&(x.current.indeterminate=s);},[s]);let f=()=>{r||t?.(!e);},C=b?d.borderError:e||s?d.checkBg:d.border,w=e||s?d.checkBg:r?d.backgroundDisabled:d.background,y={width:p.box,height:p.box,borderRadius:p.radius,border:`1.5px solid ${C}`,backgroundColor:w,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:r?.5:1},g={fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,color:d.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},v={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...u},className:i,children:[jsxs("label",{htmlFor:l,style:{display:"inline-flex",alignItems:"center",gap:p.gap,cursor:r?"not-allowed":"pointer"},onClick:M=>{M.preventDefault(),f();},children:[jsx("input",{ref:x,id:l,type:"checkbox",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":b||void 0}),jsxs("span",{style:y,children:[e&&!s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),s&&jsx("svg",{width:p.box-6,height:p.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:d.checkMark,strokeWidth:p.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:g,children:o})]}),m&&jsx("span",{style:{...v,color:d.borderError,marginLeft:`${p.box+parseInt(p.gap)}px`},children:m})]})};Rn.displayName="Checkbox";var Tn=({label:e,children:t,error:o,className:r,style:n})=>{let a=P(),s=wn[a],i=typeof o=="string"?o:void 0,u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:s.label,userSelect:"none"},c={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[e&&jsx("span",{style:u,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),i&&jsx("span",{style:{...c,color:s.borderError},children:i})]})};Tn.displayName="CheckboxGroup";var Fn={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},ei={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},Go=({value:e,checked:t=false,onChange:o,label:r,disabled:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Fn[u],d=ei[a],p=useId(),l=()=>{n||o?.(e);},x=t?c.dotRing:c.border,b=n?c.backgroundDisabled:c.background,m={width:d.box,height:d.box,borderRadius:"50%",border:`1.5px solid ${x}`,backgroundColor:b,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:n?.5:1},f={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...i},className:s,children:jsxs("label",{htmlFor:p,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:C=>{C.preventDefault(),l();},children:[jsx("input",{id:p,type:"radio",value:e,checked:t,disabled:n,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:m,children:t&&jsx("span",{style:{width:d.dot,height:d.dot,borderRadius:"50%",backgroundColor:c.dot,transition:"transform 0.15s ease"}})}),r&&jsx("span",{style:f,children:r})]})})};Go.displayName="Radio";var En=({value:e,onChange:t,label:o,options:r,direction:n="vertical",error:a,helperText:s,size:i="md",className:u,style:c})=>{let d=P(),p=Fn[d],l=!!a,x=typeof a=="string"?a:void 0,b={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":l||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...c},className:u,children:[o&&jsx("span",{style:b,children:o}),jsx("div",{style:{display:"flex",flexDirection:n==="horizontal"?"row":"column",gap:n==="horizontal"?"16px":"6px"},children:r.map(f=>jsx(Go,{value:f.value,label:f.label,checked:e===f.value,onChange:t,disabled:f.disabled,size:i},f.value))}),x&&jsx("span",{style:{...m,color:p.borderError},children:x}),!x&&s&&jsx("span",{style:{...m,color:p.helperText},children:s})]})};En.displayName="RadioGroup";var oi={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},ri={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Dn=({checked:e=false,onChange:t,label:o,disabled:r=false,size:n="md",className:a,style:s})=>{let i=P(),u=oi[i],c=ri[n],d=useId(),p=()=>{r||t?.(!e);},l=1.5,x=2,m=c.trackW-l*2-c.thumb-x,f=e?m:0,C={width:c.trackW,height:c.trackH,borderRadius:c.trackH/2,backgroundColor:e?u.trackOn:u.trackOff,border:`${l}px solid ${e?u.trackOnBorder:u.trackOffBorder}`,position:"relative",cursor:r?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:r?.5:1,boxSizing:"border-box"},w={width:c.thumb,height:c.thumb,borderRadius:"50%",backgroundColor:u.thumb,position:"absolute",top:"50%",left:x,transform:`translateY(-50%) translateX(${f}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},y={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:u.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:`${c.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...s},className:a,children:jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:g=>{g.preventDefault(),p();},children:[jsx("input",{id:d,type:"checkbox",role:"switch",checked:e,disabled:r,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:C,children:jsx("span",{style:w})}),o&&jsx("span",{style:y,children:o})]})})};Dn.displayName="Switch";var ci={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},pi={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},In=ur.forwardRef(({label:e,error:t,helperText:o,disabled:r,loading:n=false,size:a="md",fullWidth:s=false,required:i,rows:u=4,maxLength:c,resize:d="vertical",autoHeight:p=false,minRows:l,maxRows:x,className:b,style:m,value:f,onChange:C,onFocus:w,onBlur:y,...g},v)=>{let M=P(),D=ci[M],k=pi[a],h=useId(),F=g.id??h,[S,I]=useState(false),L=useRef(null),R=useCallback(()=>{let $=L.current;if(!$||!p)return;$.style.height="auto";let j=getComputedStyle($),U=parseFloat(j.lineHeight)||parseFloat(j.fontSize)*1.5,re=parseFloat(j.paddingTop)||0,K=parseFloat(j.paddingBottom)||0,q=re+K,pe=U*(l??1)+q,we=x?U*x+q:1/0,H=Math.min(Math.max($.scrollHeight,pe),we);$.style.height=`${H}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[p,l,x]);useEffect(()=>{R();},[f,R]);let T=useCallback($=>{L.current=$,typeof v=="function"?v($):v&&(v.current=$);},[v]),E=p?"none":d,N=p?l??1:u,W=r||n,z=!!t,A=typeof t=="string"?t:void 0,Z=typeof f=="string"?f.length:0,O={backgroundColor:W?D.backgroundDisabled:D.background,border:`1px solid ${z?D.borderError:S?D.borderFocus:D.border}`,borderRadius:"8px",padding:k.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:W?.6:1,cursor:W?"not-allowed":"text"},X={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:k.fontSize,lineHeight:"1.5",color:D.text,cursor:W?"not-allowed":"text",resize:E,boxSizing:"border-box",overflow:p?"hidden":void 0},te={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:D.label,userSelect:"none"},Y={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:s?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:s?"100%":void 0,...m},className:b,children:[e&&jsxs("label",{htmlFor:F,style:te,children:[e,i&&jsx("span",{style:{color:D.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:O,children:jsx("textarea",{ref:T,id:F,rows:N,maxLength:c,disabled:r,required:i,readOnly:n||g.readOnly,value:f,onChange:C,style:X,onFocus:$=>{I(true),w?.($);},onBlur:$=>{I(false),y?.($);},...g})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[A&&jsx("span",{style:{...Y,color:D.borderError},children:A}),!A&&o&&jsx("span",{style:{...Y,color:D.helperText},children:o})]}),c!==void 0&&jsxs("span",{style:{...Y,color:Z>c?D.borderError:D.counter,flexShrink:0},children:[Z,"/",c]})]})]})});In.displayName="Textarea";var ui={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},gi={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function An(e,t,o){return Math.min(Math.max(e,t),o)}function bi(e,t,o){return Math.round((e-t)/o)*o+t}var Hn=({value:e,onChange:t,min:o=0,max:r=100,step:n=1,label:a,disabled:s=false,showValue:i=false,range:u=false,size:c="md",className:d,style:p})=>{let l=P(),x=ui[l],b=gi[c],m=useId(),f=useRef(null),C=useRef(null),w=u?e:[o,e],y=S=>(S-o)/(r-o)*100,g=y(w[0]),v=y(w[1]),M=useCallback(S=>{let I=f.current;if(!I)return o;let L=I.getBoundingClientRect(),R=An((S-L.left)/L.width,0,1),T=o+R*(r-o);return An(bi(T,o,n),o,r)},[o,r,n]),D=useCallback(S=>{if(s)return;S.preventDefault();let I=M(S.clientX);if(u){let T=e,E=Math.abs(I-T[0]),N=Math.abs(I-T[1]),W=E<=N?"start":"end";C.current=W;let z=W==="start"?[Math.min(I,T[1]),T[1]]:[T[0],Math.max(I,T[0])];t?.(z);}else C.current="end",t?.(I);let L=T=>{let E=M(T.clientX);if(u){let N=e;C.current==="start"?t?.([Math.min(E,N[1]),N[1]]):t?.([N[0],Math.max(E,N[0])]);}else t?.(E);},R=()=>{C.current=null,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",R);};document.addEventListener("mousemove",L),document.addEventListener("mouseup",R);},[s,M,t,u,e]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},h=u?`${w[0]} \u2013 ${w[1]}`:`${e}`,F={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:x.thumb,border:`2px solid ${x.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:s?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:s?.5:1,...p},className:d,children:[(a||i)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:m,style:k,children:a}),i&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,userSelect:"none"},children:h})]}),jsxs("div",{ref:f,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":r,"aria-valuenow":u?void 0:e,"aria-disabled":s||void 0,onMouseDown:D,style:{position:"relative",width:"100%",height:b.thumb,cursor:s?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${u?g:0}%`,width:`${v-(u?g:0)}%`,height:b.trackH,transform:"translateY(-50%)",borderRadius:b.trackH/2,backgroundColor:x.trackFill}}),u&&jsx("span",{style:{...F,left:`${g}%`}}),jsx("span",{style:{...F,left:`${v}%`}})]})]})};Hn.displayName="Slider";var vi={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function Qo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var Si=0,Nn=({variant:e="dropzone",onFiles:t,accept:o,multiple:r=false,maxSize:n,disabled:a=false,label:s,helperText:i,error:u,value:c,buttonStyle:d="default",showFileList:p=true,buttonLabel:l,className:x,style:b})=>{let m=P(),f=vi[m],C=useId(),w=useRef(null),[y,g]=useState(false),[v,M]=useState([]),[D,k]=useState(null),h=c!==void 0,F=h?c.map((z,A)=>({file:z,id:`controlled-${A}`})):v,S=!!u||!!D,I=typeof u=="string"?u:D??void 0,L=useCallback(z=>{let A=Array.from(z);if(k(null),n){let Z=A.find(O=>O.size>n);if(Z){k(`Soubor \u201E${Z.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${Qo(n)}.`);return}}if(h){let O=r?[...c||[],...A]:A;t?.(O);}else {let Z=A.map(X=>({file:X,id:`file-${++Si}`})),O=r?[...v,...Z]:Z;M(O),t?.(O.map(X=>X.file));}},[h,c,v,n,r,t]),R=useCallback(z=>{z.preventDefault(),g(false),!a&&z.dataTransfer.files.length>0&&L(z.dataTransfer.files);},[a,L]),T=useCallback(z=>{if(h){let A=(c||[]).filter((Z,O)=>`controlled-${O}`!==z);t?.(A);}else {let A=v.filter(Z=>Z.id!==z);M(A),t?.(A.map(Z=>Z.file));}},[h,c,v,t]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:f.label,userSelect:"none"},N={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${S?f.borderError:y?f.borderDrag:f.border}`,borderRadius:"8px",backgroundColor:y?f.backgroundDrag:a?f.backgroundDisabled:f.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},W={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...b},className:x,children:[s&&jsx("span",{style:E,children:s}),jsx("input",{ref:w,id:C,type:"file",accept:o,multiple:r,disabled:a,onChange:z=>{z.target.files&&z.target.files.length>0&&L(z.target.files),z.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:N,onClick:()=>!a&&w.current?.click(),onDragOver:z=>{z.preventDefault(),a||g(true);},onDragLeave:()=>g(false),onDrop:R,children:[jsx(UploadSimple,{size:32,color:f.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):d==="primary"?jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&w.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:z=>{a||(z.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:z=>{z.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Nahr\xE1t soubor":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!a&&w.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${S?f.borderError:f.border}`,backgroundColor:a?f.backgroundDisabled:f.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:z=>{a||(z.currentTarget.style.borderColor=S?f.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:z=>{z.currentTarget.style.borderColor=S?f.borderError:f.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:F.length>0?jsx(FileText,{size:18,color:f.textSecondary}):jsx(UploadSimple,{size:18,color:f.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:F.length>0?f.text:f.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l||(F.length===0?"Vyberte soubor...":F.length===1?F[0].file.name:`${F.length} soubor\u016F`)}),F.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(F[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:f.textSecondary},children:jsx(Folder,{size:16,color:f.textSecondary})})]}),p&&F.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:F.map(z=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:f.fileBg},children:[jsx(FileText,{size:24,color:f.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:f.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:z.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:f.textSecondary,flexShrink:0},children:Qo(z.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${z.file.name}`,onClick:A=>{A.stopPropagation(),T(z.id);},onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&T(z.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:f.removeColor})})]},z.id))}),I&&jsx("span",{style:{...W,color:f.borderError},children:I}),!I&&i&&jsx("span",{style:{...W,color:f.helperText},children:i})]})};Nn.displayName="FileUpload";var wi={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},Ri={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},Ti=({data:e,value:t,onChange:o,size:r="md",fullWidth:n=false,orientation:a="horizontal",disabled:s=false,className:i,style:u})=>{let c=P(),d=wi[c],p=Ri[r],l=a==="vertical",x=e.map(g=>typeof g=="string"?{value:g,label:g}:g),b=x.findIndex(g=>g.value===t),m=useRef(null),f=useRef([]),[C,w]=useState({offset:0,size:0}),y=useCallback(()=>{let g=m.current,v=f.current[b];if(!g||!v||b<0)return;let M=g.getBoundingClientRect(),D=v.getBoundingClientRect();w(l?{offset:D.top-M.top,size:D.height}:{offset:D.left-M.left,size:D.width});},[b,l]);return useEffect(()=>{y();},[y,t,e,r]),useEffect(()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y]),jsxs("div",{ref:m,role:"radiogroup",className:i,style:{position:"relative",display:"inline-flex",width:n?"100%":void 0,flexDirection:l?"column":"row",backgroundColor:d.bg,border:`1px solid ${d.border}`,borderRadius:p.borderRadius,padding:p.padding,boxSizing:"border-box",opacity:s?.5:1,cursor:s?"not-allowed":void 0,...u},children:[b>=0&&C.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:p.itemRadius,backgroundColor:d.indicator,border:`1px solid ${d.indicatorBorder}`,boxShadow:d.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...l?{left:p.padding,right:p.padding,top:C.offset,height:C.size}:{top:p.padding,bottom:p.padding,left:C.offset,width:C.size}}}),x.map((g,v)=>{let M=g.value===t,D=s||g.disabled;return jsxs("button",{ref:k=>{f.current[v]=k;},type:"button",role:"radio","aria-checked":M,disabled:D,onClick:()=>{D||o(g.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:n?1:void 0,padding:p.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:p.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:M?500:400,color:D?d.textDisabled:M?d.textActive:d.text,cursor:D?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:k=>{!D&&!M&&(k.currentTarget.style.color=d.textHover);},onMouseLeave:k=>{!D&&!M&&(k.currentTarget.style.color=d.text);},children:[g.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:g.icon}),(g.label||!g.icon&&g.value)&&jsx("span",{children:g.label??g.value})]},g.value)})]})};Ti.displayName="SegmentedControl";var Di={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},rr=180,zi=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],nr=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Ii=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},Pi=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),r=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),n=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+r*587+n*114)/1e3>150},Mi=({value:e,onChange:t,presets:o=zi,label:r,disabled:n=false,style:a,className:s})=>{let i=P(),u=Di[i],d=useId(),p=useRef(null),l=useRef(null),[x,b]=useState(false),[m,f]=useState(false),[C,w]=useState("idle"),[y,g]=useState(e),[v,M]=useState(false),[D,k]=useState({top:0,left:0,openAbove:false});useEffect(()=>{v||g(e);},[e,v]);let h=useCallback(()=>{n||(b(true),f(true),w("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>w("open"));}));},[n]),F=useCallback(()=>{b(false),w("closing");let A=setTimeout(()=>{f(false),w("idle");},rr);return ()=>clearTimeout(A)},[]),S=useCallback(()=>{if(!p.current)return;let A=p.current.getBoundingClientRect(),Z=220,O=window.innerHeight-A.bottom-8,X=O<Z&&A.top>O;k({top:X?A.top-8:A.bottom+8,left:A.left,openAbove:X});},[]);useEffect(()=>{if(m)return S(),window.addEventListener("scroll",S,true),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,true),window.removeEventListener("resize",S);}},[m,S]),useEffect(()=>{if(!x)return;let A=Z=>{let O=Z.target;!p.current?.contains(O)&&!l.current?.contains(O)&&F();};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[x,F]);let I=A=>{let Z=Ii(A.target.value);g(Z),nr(Z)&&t(Z);},L=()=>{M(false),nr(y)?t(y):g(e);},R=A=>{t(A),g(A),F();},T=()=>{let A=D.openAbove,Z=A?"translateY(8px)":"translateY(-8px)",O=A?"translateY(6px)":"translateY(-6px)",X={transition:`opacity ${rr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${rr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return C==="opening"||C==="idle"?{...X,opacity:0,transform:`${Z} scale(0.97)`}:C==="open"?{...X,opacity:1,transform:"translateY(0) scale(1)"}:{...X,opacity:0,transform:`${O} scale(0.98)`,pointerEvents:"none"}},E={display:"flex",alignItems:"center",gap:"10px",backgroundColor:n?u.backgroundDisabled:u.background,border:`1px solid ${v?u.borderFocus:u.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"pointer"},N={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:nr(e)?e:"#cccccc",border:`1px solid ${u.swatchBorder}`,flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"transform 0.12s ease"},W={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},z=m?createPortal(jsx("div",{ref:l,style:{position:"fixed",...D.openAbove?{bottom:window.innerHeight-D.top,left:D.left}:{top:D.top,left:D.left},backgroundColor:u.popoverBg,border:`1px solid ${u.popoverBorder}`,borderRadius:"12px",boxShadow:i==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:D.openAbove?"bottom left":"top left",...T()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((A,Z)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${A}`,onClick:()=>R(A),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:A,border:A===e?"2px solid #FC4F00":`1px solid ${u.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:O=>{O.currentTarget.style.transform="scale(1.1)";},onMouseLeave:O=>{O.currentTarget.style.transform="scale(1)";}},`${A}-${Z}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:s,children:[r&&jsx("label",{htmlFor:d,style:W,children:r}),jsxs("div",{ref:p,style:E,children:[jsx("div",{style:N,onClick:()=>{n||(x?F():h());}}),jsx("input",{id:d,type:"text",value:y,onChange:I,onFocus:()=>M(true),onBlur:L,disabled:n,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:u.text,cursor:n?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:u.placeholder,cursor:n?"not-allowed":"pointer"},onClick:()=>{n||(x?F():h());},children:jsx(Eyedropper,{size:16,color:(Pi(e)&&i==="light",u.placeholder)})})]}),z]})};Mi.displayName="ColorPicker";var Ni={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},$i={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},Wi=({value:e,onChange:t,max:o=5,size:r="md",readOnly:n=false,label:a,style:s,className:i})=>{let u=P(),c=Ni[u],d=useId(),p=$i[r],[l,x]=useState(null),b=!n&&!!t,m=useCallback(g=>{b&&t(g+1);},[b,t]),f=useCallback(g=>{b&&x(g);},[b]),C=useCallback(()=>{x(null);},[]),w={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},y=Array.from({length:o},(g,v)=>{let M=l!==null?l+1:e,D=v<M,k=l!==null&&v<=l;return jsx("span",{role:b?"button":void 0,tabIndex:b?0:void 0,"aria-label":b?`Hodnocen\xED ${v+1} z ${o}`:void 0,onClick:()=>m(v),onMouseEnter:()=>f(v),onMouseLeave:C,onKeyDown:h=>{b&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),m(v));},style:{display:"inline-flex",cursor:b?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:k?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:p.starSize,weight:D?"fill":"regular",color:D?k?c.starHover:c.starFilled:c.starEmpty})},v)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...s},className:i,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:d,style:w,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:p.gap},onMouseLeave:C,children:y})]})};Wi.displayName="Rating";var Xi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},Gi=({length:e=6,value:t,onChange:o,error:r,disabled:n=false,autoFocus:a=false,label:s,separatorAfter:i,separator:u="-",style:c,className:d})=>{let p=P(),l=Xi[p],x=useId(),b=useRef([]),[m,f]=useState(null),C=!!r,w=typeof r=="string"?r:void 0,y=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&b.current[0]&&b.current[0].focus();},[a]);let g=useCallback(R=>{R>=0&&R<e&&b.current[R]?.focus();},[e]),v=useCallback(R=>{let T=R.join("").replace(/[^0-9]/g,"");o(T);},[o]),M=useCallback((R,T)=>{if(!/^[0-9]$/.test(T))return;let E=[...y];E[R]=T,v(E),R<e-1&&g(R+1);},[y,e,v,g]),D=useCallback((R,T)=>{switch(T.key){case "Backspace":if(T.preventDefault(),y[R]){let E=[...y];E[R]="",v(E);}else if(R>0){let E=[...y];E[R-1]="",v(E),g(R-1);}break;case "Delete":T.preventDefault();{let E=[...y];E[R]="",v(E);}break;case "ArrowLeft":T.preventDefault(),R>0&&g(R-1);break;case "ArrowRight":T.preventDefault(),R<e-1&&g(R+1);break}},[y,e,v,g]),k=useCallback((R,T)=>{let N=T.target.value.slice(-1);N&&/^[0-9]$/.test(N)&&M(R,N);},[M]),h=useCallback(R=>{R.preventDefault();let T=R.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!T)return;let E=[...y];for(let W=0;W<T.length;W++)E[W]=T[W];v(E);let N=Math.min(T.length,e-1);g(N);},[y,e,v,g]),F=useCallback(R=>{f(R),b.current[R]?.select();},[]),S=useCallback(()=>{f(null);},[]),I={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},L=R=>{let T=m===R,E=!!y[R];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:l.text,textAlign:"center",backgroundColor:n?l.backgroundDisabled:E?l.backgroundFilled:l.background,border:`1px solid ${C?l.borderError:T?l.borderFocus:E?l.borderFilled:l.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:n?.6:1,cursor:n?"not-allowed":"text",caretColor:l.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},className:d,children:[s&&jsx("label",{htmlFor:`${x}-0`,style:I,children:s}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:h,children:Array.from({length:e},(R,T)=>jsxs(ur.Fragment,{children:[i&&T>0&&T%i===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:l.text,userSelect:"none",lineHeight:"normal",opacity:n?.6:.5,padding:"0 2px"},children:u}),jsx("input",{ref:E=>{b.current[T]=E;},id:`${x}-${T}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:y[T]||"",onChange:E=>k(T,E),onKeyDown:E=>D(T,E),onFocus:()=>F(T),onBlur:S,disabled:n,"aria-label":`\u010C\xEDslice ${T+1} z ${e}`,style:L(T)})]},T))}),w&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:l.borderError,lineHeight:"normal"},children:w})]})};Gi.displayName="OTPInput";var Qi={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},ir=180,el={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},tl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function ol(e,t){return [...t].sort((r,n)=>n.dialCode.length-r.dialCode.length).find(r=>e.startsWith(r.dialCode))}var rl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:r,label:n,error:a,helperText:s,disabled:i=false,size:u="md",placeholder:c="123 456 789",style:d,className:p})=>{let l=P(),x=Qi[l],b=el[u],m=useId(),f=r||tl,C=useRef(null),w=useRef(null),y=useRef(null),g=useRef(null),[v,M]=useState(false),[D,k]=useState(false),[h,F]=useState(false),[S,I]=useState("idle"),[L,R]=useState(""),[T,E]=useState(-1),[N,W]=useState({top:0,left:0,width:0,openAbove:false}),z=!!a,A=typeof a=="string"?a:void 0,Z=useMemo(()=>{if(e){let H=ol(e,f);if(H)return H}return f.find(H=>H.code===o)||f[0]},[e,f,o]),O=useMemo(()=>!e||!Z?"":e.startsWith(Z.dialCode)?e.slice(Z.dialCode.length):e.replace(/^\+\d+/,""),[e,Z]),X=useMemo(()=>{if(!L)return f;let H=L.toLowerCase();return f.filter(Q=>Q.name.toLowerCase().includes(H)||Q.dialCode.includes(H)||Q.code.toLowerCase().includes(H))},[f,L]),te=useCallback(()=>{k(true),F(true),I("opening"),R(""),E(-1);let H=setTimeout(()=>{I("open"),g.current?.focus();},10);return ()=>clearTimeout(H)},[]),Y=useCallback(()=>{k(false),I("closing");let H=setTimeout(()=>{F(false),I("idle");},ir);return ()=>clearTimeout(H)},[]),$=useCallback(()=>{if(!C.current)return;let H=C.current.getBoundingClientRect(),Q=w.current?.offsetHeight??300,ee=window.innerHeight-H.bottom-6,ne=H.top-6,he=ee<Q&&ne>ee;W({top:he?H.top-6:H.bottom+6,left:H.left,width:Math.max(H.width,280),openAbove:he});},[]);useEffect(()=>{if(h)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[h,$]),useEffect(()=>{if(!D)return;let H=Q=>{let ee=Q.target;!C.current?.contains(ee)&&!w.current?.contains(ee)&&Y();};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[D,Y]);let j=useCallback(H=>{let Q=H.dialCode+O;t?.(Q),Y(),y.current?.focus();},[O,t,Y]),U=H=>{let Q=H.target.value.replace(/[^0-9\s]/g,"");t?.(Z.dialCode+Q);},re=H=>{let Q=H.clipboardData.getData("text").trim();Q.startsWith("+")&&(H.preventDefault(),t?.(Q.replace(/[^0-9+]/g,"")));},K=H=>{switch(H.key){case "ArrowDown":H.preventDefault(),E(Q=>Math.min(Q+1,X.length-1));break;case "ArrowUp":H.preventDefault(),E(Q=>Math.max(Q-1,0));break;case "Enter":H.preventDefault(),T>=0&&X[T]&&j(X[T]);break;case "Escape":H.preventDefault(),Y(),y.current?.focus();break}},q=()=>{let H=N.openAbove,Q=H?"translateY(8px)":"translateY(-8px)",ee=H?"translateY(6px)":"translateY(-6px)",ne={transition:`opacity ${ir}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ir}ms cubic-bezier(0.16, 1, 0.3, 1)`};return S==="opening"||S==="idle"?{...ne,opacity:0,transform:`${Q} scale(0.97)`}:S==="open"?{...ne,opacity:1,transform:"translateY(0) scale(1)"}:{...ne,opacity:0,transform:`${ee} scale(0.98)`,pointerEvents:"none"}},J={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.label,userSelect:"none"},pe={display:"flex",alignItems:"center",backgroundColor:i?x.backgroundDisabled:x.background,border:`1px solid ${z?x.borderError:v?x.borderFocus:x.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:i?.6:1,overflow:"hidden"},we=h?createPortal(jsxs("div",{ref:w,style:{position:"fixed",...N.openAbove?{bottom:window.innerHeight-N.top,left:N.left}:{top:N.top,left:N.left},width:N.width,backgroundColor:x.dropdownBg,border:`1px solid ${x.dropdownBorder}`,borderRadius:"12px",boxShadow:x.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:N.openAbove?"bottom center":"top center",...q()},onKeyDown:K,children:[jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${x.divider}`},children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:l==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsx(MagnifyingGlass,{size:14,color:x.placeholder}),jsx("input",{ref:g,type:"text",value:L,onChange:H=>{R(H.target.value),E(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.text}})]})}),jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[X.length===0&&jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:x.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),X.map((H,Q)=>{let ee=H.code===Z.code;return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:Q===T?x.optionHover:ee?x.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>j(H),onMouseEnter:()=>E(Q),onMouseLeave:()=>E(-1),children:[jsx("span",{style:{fontSize:"18px",flexShrink:0},children:H.flag}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ee?x.optionSelectedText:x.text,fontWeight:ee?500:400},children:H.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,flexShrink:0},children:H.dialCode})]},H.code)})]})]}),document.body):null;return jsxs("div",{className:p,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...d},children:[n&&jsx("label",{htmlFor:m,style:J,children:n}),jsxs("div",{ref:C,style:pe,children:[jsxs("button",{type:"button",disabled:i,onClick:()=>{i||(D?Y():te());},style:{display:"flex",alignItems:"center",gap:"4px",padding:b.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:i?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,flexShrink:0,outline:"none"},children:[jsx("span",{style:{fontSize:u==="sm"?"14px":"18px"},children:Z.flag}),jsx("span",{style:{fontSize:"13px",color:x.placeholder},children:Z.dialCode}),jsx(CaretDown,{size:12,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:D?"rotate(180deg)":"rotate(0deg)"}})]}),jsx("div",{style:{width:"1px",height:"60%",backgroundColor:x.divider,flexShrink:0}}),jsx("input",{ref:y,id:m,type:"tel",value:O,onChange:U,onPaste:re,onFocus:()=>M(true),onBlur:()=>M(false),placeholder:c,disabled:i,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:x.text,padding:b.padding,paddingLeft:"8px"}})]}),A&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:A}),!A&&s&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.helperText,lineHeight:"normal"},children:s}),we]})};rl.displayName="PhoneInput";var il={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},dr=10;function po(e,t,o){return Math.max(t,Math.min(o,e))}var ll=({src:e,onCrop:t,onCancel:o,aspectRatio:r,minWidth:n=50,minHeight:a=50,shape:s="rect",style:i,className:u})=>{let c=P(),d=il[c],p=useRef(null),l=useRef(null),[x,b]=useState(""),[m,f]=useState(false),[C,w]=useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[y,g]=useState({x:0,y:0,width:0,height:0}),[v,M]=useState(null),D=s==="circle"?1:r;useEffect(()=>{if(e instanceof File){let T=URL.createObjectURL(e);return b(T),()=>URL.revokeObjectURL(T)}else b(e);},[e]);let k=useCallback(()=>{let T=p.current,E=l.current;if(!T||!E||!E.naturalWidth)return;let N=T.clientWidth,W=T.clientHeight,z=E.naturalWidth,A=E.naturalHeight,Z=Math.min(N/z,W/A),O=z*Z,X=A*Z,te=(N-O)/2,Y=(W-X)/2;w({natural:{w:z,h:A},display:{w:O,h:X},offset:{x:te,y:Y}});let $=O*.8,j=X*.8,U,re;D?$/D<=j?(U=$,re=$/D):(re=j,U=j*D):(U=$,re=j),U=Math.max(U,n),re=Math.max(re,a),g({x:te+(O-U)/2,y:Y+(X-re)/2,width:U,height:re});},[D,n,a]),h=()=>{f(true),k();};useEffect(()=>(window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)),[k]);let F=T=>"touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};useEffect(()=>{if(!v)return;let{display:{w:T,h:E},offset:{x:N,y:W}}=C,z=Z=>{Z.preventDefault();let O=F(Z);if(!p.current?.getBoundingClientRect())return;let te=O.x-v.startX,Y=O.y-v.startY,$=v.startCrop,j={...$};if(v.type==="move")j.x=po($.x+te,N,N+T-$.width),j.y=po($.y+Y,W,W+E-$.height);else {let U=$.x,re=$.y,K=$.width,q=$.height,J=v.type;J.includes("e")&&(K=Math.max(n,$.width+te)),J.includes("w")&&(K=Math.max(n,$.width-te),U=$.x+$.width-K),J.includes("s")&&(q=Math.max(a,$.height+Y)),J.includes("n")&&(q=Math.max(a,$.height-Y),re=$.y+$.height-q),D&&(J==="n"||J==="s"?(K=q*D,U=$.x+($.width-K)/2):J==="e"||J==="w"?(q=K/D,re=$.y+($.height-q)/2):(q=K/D,J.includes("n")&&(re=$.y+$.height-q))),U=po(U,N,N+T-K),re=po(re,W,W+E-q),K=Math.min(K,N+T-U),q=Math.min(q,W+E-re),j={x:U,y:re,width:K,height:q};}g(j);},A=()=>M(null);return document.addEventListener("mousemove",z),document.addEventListener("mouseup",A),document.addEventListener("touchmove",z,{passive:false}),document.addEventListener("touchend",A),()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",A),document.removeEventListener("touchmove",z),document.removeEventListener("touchend",A);}},[v,C,D,n,a]);let S=(T,E)=>{E.preventDefault(),E.stopPropagation();let N="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};M({type:T,startX:N.x,startY:N.y,startCrop:{...y}});},I=useCallback(()=>{let T=l.current;if(!T||!C.display.w)return;let E=C.natural.w/C.display.w,N=(y.x-C.offset.x)*E,W=(y.y-C.offset.y)*E,z=y.width*E,A=y.height*E,Z=document.createElement("canvas");Z.width=z,Z.height=A;let O=Z.getContext("2d");O&&(s==="circle"&&(O.beginPath(),O.arc(z/2,A/2,z/2,0,Math.PI*2),O.clip()),O.drawImage(T,N,W,z,A,0,0,z,A),Z.toBlob(X=>{X&&t(X);},"image/png"));},[y,C,s,t]),L=useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),R={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxs("div",{className:u,style:{display:"flex",flexDirection:"column",backgroundColor:d.containerBg,border:`1px solid ${d.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...i},children:[jsxs("div",{ref:p,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:v?v.type==="move"?"grabbing":`${v.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[x&&jsx("img",{ref:l,src:x,crossOrigin:"anonymous",onLoad:h,style:{position:"absolute",top:C.offset.y,left:C.offset.x,width:C.display.w||"100%",height:C.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxs(Fragment,{children:[jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:y.y,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y+y.height,left:0,right:0,bottom:0,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:0,width:y.x,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:y.y,left:y.x+y.width,right:0,height:y.height,backgroundColor:d.overlayBg,pointerEvents:"none"}}),jsxs("div",{style:{position:"absolute",left:y.x,top:y.y,width:y.width,height:y.height,border:`2px dashed ${d.cropBorder}`,borderRadius:s==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:T=>S("move",T),onTouchStart:T=>S("move",T),children:[jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),L.map(T=>jsx("div",{style:{position:"absolute",width:dr,height:dr,backgroundColor:d.handleBg,border:`1px solid ${d.handleBorder}`,borderRadius:"2px",cursor:T.cursor,zIndex:2,...T.style},onMouseDown:E=>S(T.type,E),onTouchStart:E=>S(T.type,E)},T.type))]})]})]}),jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:d.actionBarBg,borderTop:`1px solid ${d.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`},onClick:o,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsx(X,{size:14}),"Zru\u0161it"]}),jsxs("button",{type:"button",style:{...R,backgroundColor:d.buttonPrimary,color:d.buttonPrimaryText,border:"1px solid transparent"},onClick:I,onMouseEnter:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimaryHover;},onMouseLeave:T=>{T.currentTarget.style.backgroundColor=d.buttonPrimary;},children:[jsx(Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};ll.displayName="ImageCropper";var cl={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},jn="smSkeletonShimmer",pl=`@keyframes ${jn}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,xe=({variant:e="text",width:t,height:o,lines:r=1,animate:n=true,className:a,style:s})=>{let i=P(),u=cl[i],c=t??(e==="circle"?40:"100%"),d=o??(e==="circle"?40:e==="text"?"1em":100),p={backgroundColor:u.base,backgroundImage:n?`linear-gradient(90deg, ${u.base} 25%, ${u.shimmer} 50%, ${u.base} 75%)`:void 0,backgroundSize:n?"200% 100%":void 0,animation:n?`${jn} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof c=="number"?`${c}px`:c,height:typeof d=="number"?`${d}px`:d},l=n?jsx("style",{dangerouslySetInnerHTML:{__html:pl}}):null;return e==="text"&&r>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...s},children:[l,Array.from({length:r}).map((x,b)=>jsx("div",{style:{...p,width:b===r-1?"75%":p.width}},b))]}):jsxs(Fragment,{children:[l,jsx("div",{className:a,style:{...p,...s}})]})};xe.displayName="Skeleton";var gl={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},bl=({columns:e,data:t,loading:o=false,emptyText:r="\u017D\xE1dn\xE1 data",onSort:n,sortKey:a,sortDirection:s,striped:i=false,hoverable:u=true,className:c,style:d})=>{let p=P(),l=gl[p],x=w=>{if(!w.sortable||!n)return;let y=a===w.key&&s==="asc"?"desc":"asc";n(w.key,y);},b={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background,border:`1px solid ${l.border}`,borderRadius:"12px",overflow:"hidden",...d},m=w=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",cursor:w.sortable?"pointer":"default",userSelect:"none",width:w.width!=null?typeof w.width=="number"?`${w.width}px`:w.width:void 0}),f={padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal"};return jsxs("table",{className:c,style:b,children:[jsx("thead",{children:jsx("tr",{children:e.map(w=>jsx("th",{style:m(w),onClick:()=>x(w),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[w.header,w.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===w.key?l.sortActive:l.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},w.key))})}),jsx("tbody",{children:o?Array.from({length:5}).map((w,y)=>jsx("tr",{children:e.map(g=>jsx("td",{style:f,children:jsx(xe,{variant:"text",width:"80%"})},g.key))},`skel-${y}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...f,textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:r})}):t.map((w,y)=>jsx("tr",{style:{backgroundColor:i&&y%2===1?l.stripedBg:"transparent",transition:"background-color 0.12s ease"},onMouseEnter:g=>{u&&(g.currentTarget.style.backgroundColor=l.rowHover);},onMouseLeave:g=>{u&&(g.currentTarget.style.backgroundColor=i&&y%2===1?l.stripedBg:"transparent");},children:e.map(g=>jsx("td",{style:{...f,borderBottom:y===t.length-1?"none":f.borderBottom},children:g.render?g.render(w[g.key],w,y):w[g.key]},g.key))},y))})]})};bl.displayName="Table";var ml={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},Qn=({checked:e,indeterminate:t,onChange:o,t:r})=>{let n=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${n?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:n?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},hl=({columns:e,data:t,selectable:o=false,onSelectionChange:r,loading:n=false,rowKey:a="id",onRowClick:s,stickyHeader:i=false,emptyText:u="\u017D\xE1dn\xE1 data",style:c,className:d})=>{let p=P(),l=ml[p],[x,b]=useState(new Set),[m,f]=useState(null),C=useMemo(()=>t.map(I=>String(I[a])),[t,a]),w=C.length>0&&C.every(I=>x.has(I)),y=C.some(I=>x.has(I))&&!w,g=useCallback(()=>{let I=w?new Set:new Set(C);b(I),r?.(Array.from(I));},[w,C,r]),v=useCallback(I=>{b(L=>{let R=new Set(L);return R.has(I)?R.delete(I):R.add(I),r?.(Array.from(R)),R});},[r]),M={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,backgroundColor:l.background},D=I=>({padding:"12px 16px",textAlign:I.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:l.textSecondary,backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,whiteSpace:"nowrap",userSelect:"none",width:I.width!=null?typeof I.width=="number"?`${I.width}px`:I.width:void 0,minWidth:I.minWidth!=null?`${I.minWidth}px`:void 0,...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),k=I=>({padding:"10px 16px",borderBottom:`1px solid ${l.border}`,lineHeight:"normal",textAlign:I.align||"left"}),h={padding:"12px 12px 12px 16px",backgroundColor:l.headerBg,borderBottom:`1px solid ${l.border}`,width:"40px",...i?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},F={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${l.border}`,width:"40px"};return jsx("div",{className:d,style:{overflow:i?"auto":"hidden",borderRadius:"12px",border:`1px solid ${l.border}`,...c},children:jsxs("table",{style:M,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:h,children:jsx(Qn,{checked:w,indeterminate:y,onChange:g,t:l})}),e.map(I=>jsx("th",{style:D(I),children:I.header},I.key))]})}),jsx("tbody",{children:n?Array.from({length:5}).map((I,L)=>jsxs("tr",{children:[o&&jsx("td",{style:F,children:jsx(xe,{variant:"rect",width:16,height:16})}),e.map(R=>jsx("td",{style:k(R),children:jsx(xe,{variant:"text",width:"80%"})},R.key))]},`skel-${L}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:l.textSecondary,borderBottom:"none"},children:u})}):t.map((I,L)=>{let R=String(I[a]),T=x.has(R),E=m===R,N=L===t.length-1,W="transparent";return T?W=l.selectedRowBg:E&&(W=l.rowHover),jsxs("tr",{style:{backgroundColor:W,cursor:s?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>f(R),onMouseLeave:()=>f(null),onClick:()=>s?.(I),children:[o&&jsx("td",{style:{...F,borderBottom:N?"none":F.borderBottom},children:jsx(Qn,{checked:T,onChange:()=>v(R),t:l})}),e.map(z=>jsx("td",{style:{...k(z),borderBottom:N?"none":k(z).borderBottom},children:z.render?z.render(I[z.key],I,L):I[z.key]},z.key))]},R)})})]})})};hl.displayName="DataGrid";var kl={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ta=({checked:e,indeterminate:t,onChange:o,t:r})=>jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:n=>{n.stopPropagation(),o();},onKeyDown:n=>{(n.key===" "||n.key==="Enter")&&(n.preventDefault(),n.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?r.checkboxCheckedBorder:r.checkboxBorder}`,backgroundColor:e||t?r.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M3 6H9",stroke:r.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),Cl=({columns:e,data:t,primaryKey:o,rowKey:r="id",selectable:n=false,selectedIds:a,onSelectionChange:s,onCardClick:i,onSort:u,sortKey:c,sortDirection:d,loading:p=false,skeletonCount:l=3,emptyText:x="\u017D\xE1dn\xE1 data",emptyContent:b,gap:m=12,cardActions:f,style:C,className:w})=>{let y=P(),g=kl[y],[v,M]=useState(new Set),[D,k]=useState(null),h=a!==void 0,F=useMemo(()=>h?new Set(a):v,[h,a,v]),S=useMemo(()=>e.find(z=>z.primary)||(o?e.find(z=>z.key===o):void 0),[e,o]),I=useMemo(()=>e.filter(z=>!z.hidden&&z!==S),[e,S]),L=useMemo(()=>e.filter(z=>z.sortable),[e]),R=useCallback(z=>{let A=new Set(F);A.has(z)?A.delete(z):A.add(z),h||M(A),s?.(Array.from(A));},[F,h,s]),T=useCallback(()=>{let z=t.map(O=>String(O[r])),Z=z.every(O=>F.has(O))?new Set:new Set(z);h||M(Z),s?.(Array.from(Z));},[t,r,F,h,s]),E=t.length>0&&t.every(z=>F.has(String(z[r]))),N=t.some(z=>F.has(String(z[r])))&&!E,W=useCallback(z=>{if(!u)return;u(z,c===z&&d==="asc"?"desc":"asc");},[u,c,d]);if(p){let z=I.length>0?I.length:3;return jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:Array.from({length:l}).map((A,Z)=>jsxs("div",{style:{backgroundColor:g.cardBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(S||n)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${g.divider}`,backgroundColor:g.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[n&&jsx(xe,{variant:"rect",width:18,height:18}),jsx(xe,{variant:"text",width:"45%",height:18})]}),Array.from({length:z}).map((O,X)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:X<z-1?`1px solid ${g.divider}`:"none"},children:[jsx(xe,{variant:"text",width:70,height:12}),jsx(xe,{variant:"text",width:100,height:14})]},X)),f&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},children:[jsx(xe,{variant:"rect",width:64,height:30}),jsx(xe,{variant:"rect",width:64,height:30})]})]},Z))})}return t.length===0?jsx("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...C},children:jsx("div",{style:{backgroundColor:g.emptyBg,border:`1px solid ${g.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:g.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:b??x})}):jsxs("div",{className:w,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...C},children:[(n||L.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(ta,{checked:E,indeterminate:N,onChange:T,t:g}),jsx("span",{style:{fontSize:"12px",color:g.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:F.size>0?`${F.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),L.length>0&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:n?"auto":0},children:L.map(z=>{let A=c===z.key;return jsxs("button",{onClick:()=>W(z.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:A?g.sortChipActiveBg:g.sortChipBg,color:A?g.sortActive:g.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:A?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[z.header,A?d==="asc"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(CaretUpDown,{size:12})]},z.key)})})]}),t.map((z,A)=>{let Z=String(z[r]),O=F.has(Z),X=D===Z,te=S?S.render?S.render(z[S.key],z,A):z[S.key]:null;return jsxs("div",{style:{backgroundColor:O?g.selectedBg:X?g.hover:g.cardBg,border:`1px solid ${O?g.selectedBorder:g.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:i?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>i?.(z),onMouseEnter:()=>k(Z),onMouseLeave:()=>k(null),children:[(te!==null||n)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:g.headerBg,borderBottom:`1px solid ${g.divider}`},children:[n&&jsx(ta,{checked:O,onChange:()=>R(Z),t:g}),te!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:g.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:te})]}),jsx("div",{children:I.map((Y,$)=>{let j=Y.render?Y.render(z[Y.key],z,A):z[Y.key];return jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<I.length-1?`1px solid ${g.divider}`:"none"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:g.textSecondary,flexShrink:0,paddingTop:"2px"},children:Y.header}),jsx("span",{style:{fontSize:"14px",color:g.text,textAlign:"right",wordBreak:"break-word"},children:j??"\u2014"})]},Y.key)})}),f&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${g.divider}`},onClick:Y=>Y.stopPropagation(),children:f(z,A)})]},Z??A)})]})};Cl.displayName="MobileDataCard";var wl={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},Rl={none:"0",sm:"12px",md:"20px",lg:"28px"},Tl=({title:e,subtitle:t,header:o,footer:r,children:n,hoverable:a=false,bordered:s=true,padding:i="md",className:u,style:c})=>{let d=P(),p=wl[d],l=Rl[i],x={backgroundColor:p.background,border:s?`1px solid ${p.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...c},b=o??(e||t?jsxs("div",{style:{padding:l,paddingBottom:n||r?"0":l},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:p.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:u,style:x,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=p.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=d==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=s?p.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[b,n&&jsx("div",{style:{padding:l},children:n}),r&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${p.divider}`}}),jsx("div",{style:{padding:l},children:r})]})]})};Tl.displayName="Card";var na={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},zl=({title:e,children:t,defaultOpen:o=false,disabled:r=false,_controlled:n,_open:a,_onToggle:s})=>{let i=P(),u=na[i],[c,d]=useState(o),p=n?!!a:c,l=useRef(null),[x,b]=useState(0);useEffect(()=>{l.current&&b(l.current.scrollHeight);},[t,p]);let m=useCallback(()=>{r||(n&&s?s():d(f=>!f));},[r,n,s]);return jsxs("div",{style:{borderBottom:`1px solid ${u.border}`},children:[jsxs("button",{type:"button",disabled:r,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:r?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:r?u.textDisabled:u.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:f=>{r||(f.currentTarget.style.backgroundColor=u.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:r?u.chevronDisabled:u.chevron,style:{transition:"transform 0.25s ease",transform:p?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:l,style:{overflow:"hidden",maxHeight:p?`${x}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:u.textSecondary},children:t})})]})};zl.displayName="AccordionItem";var Il=({children:e,multiple:t=false,className:o,style:r})=>{let n=P(),a=na[n],s=ur.Children.toArray(e).filter(d=>ur.isValidElement(d)),[i,u]=useState(()=>{let d=new Set;return s.forEach((p,l)=>{p.props.defaultOpen&&d.add(l);}),d}),c=useCallback(d=>{u(p=>{let l=new Set(p);return l.has(d)?l.delete(d):(t||l.clear(),l.add(d)),l});},[t]);return jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...r},children:s.map((d,p)=>ur.cloneElement(d,{key:p,_controlled:true,_open:i.has(p),_onToggle:()=>c(p)}))})};Il.displayName="Accordion";var Pl={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Ml={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},Al=()=>null;Al.displayName="Tab";var Hl=()=>null;Hl.displayName="TabPanel";var Ll=({value:e,onChange:t,children:o,variant:r="underline",fullWidth:n=false,size:a="md",className:s,style:i})=>{let u=P(),c=Pl[u],d=Ml[a],p=ur.Children.toArray(o),l=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="Tab"),b=p.filter(m=>ur.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxs("div",{className:s,style:i,children:[jsx("div",{style:{display:"flex",gap:r==="pills"?"4px":"0",borderBottom:r==="underline"?`1px solid ${c.border}`:"none"},children:l.map(m=>{let f=m.props.value===e,C=m.props.disabled,w=r==="underline"?{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.text:c.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${f?c.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:C?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:d.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:f?500:400,color:C?c.textDisabled:f?c.pillText:c.textInactive,backgroundColor:f?c.pillBg:c.pillInactiveBg,border:"none",borderRadius:"8px",cursor:C?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:n?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:C,style:w,onClick:()=>{C||t(m.props.value);},onMouseEnter:y=>{!C&&!f&&(y.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:y=>{C||(y.currentTarget.style.backgroundColor=r==="pills"&&f?c.pillBg:"transparent");},children:[m.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),b&&jsx("div",{style:{paddingTop:"16px"},children:b.props.children})]})};Ll.displayName="Tabs";var Wl={dark:{background:"rgba(255,255,255,0.92)",text:"#1a1a1a"},light:{background:"rgba(30,30,30,0.92)",text:"#ffffff"}},yr=({content:e,children:t,position:o="top",delay:r=200,className:n,style:a})=>{let s=P(),i=Wl[s],[u,c]=useState(false),[d,p]=useState({top:0,left:0}),l=useRef(null),x=useRef(null),b=useRef(void 0),m=6,f=8,C=useCallback(()=>{let M=l.current,D=x.current;if(!M||!D)return;let k=M.getBoundingClientRect(),h=D.getBoundingClientRect(),F=0,S=0;switch(o){case "top":F=k.top-h.height-f,S=k.left+k.width/2-h.width/2;break;case "bottom":F=k.bottom+f,S=k.left+k.width/2-h.width/2;break;case "left":F=k.top+k.height/2-h.height/2,S=k.left-h.width-f;break;case "right":F=k.top+k.height/2-h.height/2,S=k.right+f;break}p({top:F,left:S});},[o]);useEffect(()=>{u&&requestAnimationFrame(C);},[u,C]);let w=useCallback(()=>{b.current=setTimeout(()=>c(true),r);},[r]),y=useCallback(()=>{b.current&&clearTimeout(b.current),c(false);},[]);useEffect(()=>()=>{b.current&&clearTimeout(b.current);},[]);let g=(()=>{let M={position:"absolute",width:0,height:0,border:`${m}px solid transparent`};switch(o){case "top":return {...M,bottom:-m,left:"50%",transform:"translateX(-50%)",borderTopColor:i.background,borderBottomWidth:0};case "bottom":return {...M,top:-m,left:"50%",transform:"translateX(-50%)",borderBottomColor:i.background,borderTopWidth:0};case "left":return {...M,right:-m,top:"50%",transform:"translateY(-50%)",borderLeftColor:i.background,borderRightWidth:0};case "right":return {...M,left:-m,top:"50%",transform:"translateY(-50%)",borderRightColor:i.background,borderLeftWidth:0}}})(),v=u?createPortal(jsxs("div",{ref:x,className:n,style:{position:"fixed",top:d.top,left:d.left,zIndex:99999,padding:"6px 12px",backgroundColor:i.background,color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",borderRadius:"8px",whiteSpace:"nowrap",pointerEvents:"none",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",opacity:1,transition:"opacity 0.12s ease",...a},children:[e,jsx("div",{style:g})]}),document.body):null;return jsxs(Fragment,{children:[ur.cloneElement(t,{ref:l,onMouseEnter:M=>{w(),t.props.onMouseEnter?.(M);},onMouseLeave:M=>{y(),t.props.onMouseLeave?.(M);}}),v]})};yr.displayName="Tooltip";var Ul={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Sr=180,bo=8,_l=({content:e,children:t,position:o="bottom",trigger:r="click",className:n,style:a})=>{let s=P(),i=Ul[s],[u,c]=useState(false),[d,p]=useState(false),[l,x]=useState("idle"),[b,m]=useState({top:0,left:0}),f=useRef(null),C=useRef(null),w=useRef(void 0),y=useCallback(()=>{c(true),p(true),x("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>x("open"));});},[]),g=useCallback(()=>{c(false),x("closing");let S=setTimeout(()=>{p(false),x("idle");},Sr);return ()=>clearTimeout(S)},[]),v=useCallback(()=>{let S=f.current,I=C.current;if(!S||!I)return;let L=S.getBoundingClientRect(),R=I.getBoundingClientRect(),T=0,E=0;switch(o){case "top":T=L.top-R.height-bo,E=L.left+L.width/2-R.width/2;break;case "bottom":T=L.bottom+bo,E=L.left+L.width/2-R.width/2;break;case "left":T=L.top+L.height/2-R.height/2,E=L.left-R.width-bo;break;case "right":T=L.top+L.height/2-R.height/2,E=L.right+bo;break}m({top:T,left:E});},[o]);useEffect(()=>{if(d)return requestAnimationFrame(v),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[d,v]),useEffect(()=>{if(!u)return;let S=I=>{let L=I.target;!f.current?.contains(L)&&!C.current?.contains(L)&&g();};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[u,g]),useEffect(()=>{if(!u)return;let S=I=>{I.key==="Escape"&&g();};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[u,g]);let M=()=>{let S={transition:`opacity ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Sr}ms cubic-bezier(0.16, 1, 0.3, 1)`},I={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},L=o==="top"||o==="bottom"?"Y":"X";return l==="opening"||l==="idle"?{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.97)`}:l==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`translate${L}(${I[o]}) scale(0.98)`,pointerEvents:"none"}},D=useCallback(()=>{r==="click"&&(u?g():y());},[r,u,g,y]),k=useCallback(()=>{r==="hover"&&(w.current&&clearTimeout(w.current),u||y());},[r,u,y]),h=useCallback(()=>{r==="hover"&&(w.current=setTimeout(()=>{g();},150));},[r,g]);useEffect(()=>()=>{w.current&&clearTimeout(w.current);},[]);let F=d?createPortal(jsx("div",{ref:C,className:n,onMouseEnter:()=>{r==="hover"&&w.current&&clearTimeout(w.current);},onMouseLeave:h,style:{position:"fixed",top:b.top,left:b.left,zIndex:99999,padding:"16px",backgroundColor:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",color:i.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:i.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...M(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[ur.cloneElement(t,{ref:f,onClick:S=>{D(),t.props.onClick?.(S);},onMouseEnter:S=>{k(),t.props.onMouseEnter?.(S);},onMouseLeave:S=>{h(),t.props.onMouseLeave?.(S);}}),F]})};_l.displayName="Popover";var ql={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Kl=({icon:e,title:t,description:o,action:r,className:n,style:a})=>{let s=P(),i=ql[s];return jsxs("div",{className:n,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"48px 24px",gap:"12px",...a},children:[e&&jsx("div",{style:{fontSize:"48px",lineHeight:1,color:i.iconColor,marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"18px",lineHeight:"normal",color:i.text},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:i.textSecondary,maxWidth:"360px"},children:o}),r&&jsx("div",{style:{marginTop:"8px"},children:r})]})};Kl.displayName="EmptyState";var td={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)"}},od=({label:e,value:t,change:o,changeLabel:r,icon:n,trend:a="neutral",className:s,style:i})=>{let u=P(),c=td[u],d=a==="up"?c.trendUp:a==="down"?c.trendDown:c.trendNeutral,p=l=>`${l>0?"+":""}${l.toFixed(1)} %`;return jsxs("div",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:c.background,border:`1px solid ${c.border}`,borderRadius:"12px",padding:"16px 20px",...i},children:[n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:c.iconColor,flexShrink:0,color:c.text},children:n}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:c.label,lineHeight:"normal",marginBottom:"4px"},children:e}),jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:c.text},children:t}),o!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d},children:[a==="up"&&jsx(TrendUpIcon,{size:14,color:d}),a==="down"&&jsx(TrendDownIcon,{size:14,color:d}),jsx("span",{children:p(o)}),r&&jsx("span",{style:{color:c.label,marginLeft:"2px"},children:r})]})]})]})};od.displayName="Stat";var rd=e=>typeof e=="number"?e:{sm:40,md:70,lg:96}[e],l0=({initials:e,size:t="md",borderRadius:o="8px",style:r,className:n,"aria-label":a})=>{let s=rd(t),i={display:"inline-flex",alignItems:"center",justifyContent:"center",width:s,height:s,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...r},u={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(s*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:i,className:n,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:u,children:e.toUpperCase()})})};var ca={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Cr=({onClick:e,title:t,color:o,children:r})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:r}),u0=({label:e,onRemove:t,style:o,className:r})=>{let n=ca[P()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:n.tagBg,border:`1px solid ${n.tagBorder}`,borderRadius:"4px",...o},className:r,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:n.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:n.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},g0=({label:e,style:t,className:o})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:o,children:e}),b0=({label:e,onFilter:t,onEdit:o,onDelete:r,showActions:n=true,style:a,className:s})=>{let i=ca[P()],u=t||o||r;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:i.itemBg,border:`1px solid ${i.itemBorder}`,borderRadius:"8px",...a},className:s,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:i.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),n&&u&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Cr,{onClick:t,title:"Filtrovat",color:i.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(Cr,{onClick:o,title:"Upravit",color:i.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),r&&jsx(Cr,{onClick:r,title:"Smazat",color:i.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var id={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},ua={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},lt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ld=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,Le=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Rr=(e,t=1)=>{let o=new Date(e),r=o.getDay(),n=t===1?(r===0?-6:1)-r:-r;return o.setDate(o.getDate()+n),o.setHours(0,0,0,0),o},ga=(e,t,o=1)=>{let r=new Date(e,t,1),n=Rr(r,o),a=[],s=new Date(n);for(let i=0;i<42;i++)a.push(new Date(s)),s.setDate(s.getDate()+1);return a},dd=(e,t=1)=>{let o=Rr(e,t),r=[];for(let n=0;n<7;n++){let a=new Date(o);a.setDate(o.getDate()+n),r.push(a);}return r},ba=(e,t,o)=>{if(t){let r=new Date(t);if(r.setHours(0,0,0,0),e<r)return true}if(o){let r=new Date(o);if(r.setHours(23,59,59,999),e>r)return true}return false};function cd(e,t){let o=[],r=new Map,n=Le(e[0]),a=Le(e[6]),s=t.filter(i=>{let u=Le(i.date);return (i.endDate?Le(i.endDate):u)>=n&&u<=a}).sort((i,u)=>{let c=Le(i.date).getTime(),d=Le(u.date).getTime();if(c!==d)return c-d;let p=i.endDate?Le(i.endDate).getTime():c;return (u.endDate?Le(u.endDate).getTime():d)-d-(p-c)});for(let i of s){let u=Le(i.date),c=i.endDate?Le(i.endDate):u,d=u<n?n:u,p=c>a?a:c,l=e.findIndex(w=>lt(w,d)),x=e.findIndex(w=>lt(w,p));if(l===-1||x===-1)continue;let b=x-l+1,m=u>=n,f=0;for(;;){r.has(f)||r.set(f,new Set);let w=r.get(f),y=true;for(let g=l;g<=x;g++)if(w.has(g)){y=false;break}if(y)break;f++;}let C=r.get(f);for(let w=l;w<=x;w++)C.add(w);o.push({event:i,row:f,startCol:l,span:b,isStart:m});}return o}var pd=({value:e,onChange:t,view:o="month",events:r=[],minDate:n,maxDate:a,style:s,className:i,firstDay:u=1,locale:c="cs",initialDate:d,t:p,today:l})=>{let x=ua[c],b=d||e||l,[m,f]=useState(()=>b.getMonth()),[C,w]=useState(()=>b.getFullYear()),[y,g]=useState(()=>Rr(b,u)),[v,M]=useState(null),D=useMemo(()=>o==="week"?dd(y,u):ga(C,m,u),[o,C,m,y,u]),k=useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()-7),T}):f(R=>R===0?(w(T=>T-1),11):R-1);},[o]),h=useCallback(()=>{o==="week"?g(R=>{let T=new Date(R);return T.setDate(T.getDate()+7),T}):f(R=>R===11?(w(T=>T+1),0):R+1);},[o]),F=R=>r.filter(T=>lt(T.date,R)),S=o==="week"?(()=>{let R=new Date(y);return R.setDate(R.getDate()+6),y.getMonth()===R.getMonth()?`${y.getDate()}. \u2013 ${R.getDate()}. ${x.months[R.getMonth()]} ${R.getFullYear()}`:`${y.getDate()}. ${x.months[y.getMonth()].slice(0,3)} \u2013 ${R.getDate()}. ${x.months[R.getMonth()].slice(0,3)} ${R.getFullYear()}`})():`${x.months[m]} ${C}`,I={backgroundColor:p.background,border:`1px solid ${p.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.text,overflow:"hidden",userSelect:"none",...s},L={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:p.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:i,style:I,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:p.headerBg,borderBottom:`1px solid ${p.border}`},children:[jsx("button",{style:L,onClick:k,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:S}),jsx("button",{style:L,onClick:h,onMouseEnter:R=>{R.currentTarget.style.backgroundColor=p.navHover;},onMouseLeave:R=>{R.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:x.daysFull.map(R=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:p.textMuted,padding:"6px 0 8px"},children:R},R))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:D.map((R,T)=>{let E=lt(R,l),N=e?lt(R,e):false,W=o==="month"&&R.getMonth()!==m,z=ba(R,n,a),A=R.toISOString(),Z=v===A,O=F(R),X="transparent",te=W?p.outsideText:p.text,Y="2px solid transparent";return N?(X=p.selectedBg,te=p.selectedText):E?(X=p.todayBg,Y=`2px solid ${p.todayBorder}`):Z&&!z&&(X=p.hover),z&&(te=p.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Y,background:X,color:te,fontSize:"13px",fontWeight:E?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:z?"default":"pointer",opacity:z?.4:1,transition:"background-color 0.12s ease"},disabled:z,onClick:()=>{!z&&t&&t(R);},onMouseEnter:()=>!z&&M(A),onMouseLeave:()=>M(null),children:R.getDate()}),O.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:O.slice(0,3).map(($,j)=>jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||p.eventDot}},j))})]},T)})})]})},mo=24,kt=2,fd=({value:e,onChange:t,events:o=[],onEventClick:r,showHeader:n=true,onNavigate:a,minDate:s,maxDate:i,style:u,className:c,firstDay:d=1,locale:p="cs",maxEventsPerDay:l=3,initialDate:x,t:b,today:m})=>{let f=ua[p],C=x||e||m,[w,y]=useState(()=>C.getMonth()),[g,v]=useState(()=>C.getFullYear()),[M,D]=useState(null),k=useMemo(()=>ga(g,w,d),[g,w,d]),h=useMemo(()=>{let E=[];for(let N=0;N<k.length;N+=7)E.push(k.slice(N,N+7));return E},[k]),F=useMemo(()=>{let E=h[h.length-1];return E&&E.every(N=>N.getMonth()!==w)?h.slice(0,-1):h},[h,w]),S=useCallback(()=>{let E=w-1,N=g;E<0&&(E=11,N--),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),I=useCallback(()=>{let E=w+1,N=g;E>11&&(E=0,N++),y(E),v(N),a&&a(new Date(N,E,1));},[w,g,a]),L=`${f.months[w]} ${g}`,T={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:c,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.text,userSelect:"none",...u},children:[n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:T,onClick:S,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:L}),jsx("button",{style:T,onClick:I,onMouseEnter:E=>{E.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${b.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:b.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${b.cellBorder}`},children:f.days.map((E,N)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:b.text,padding:"10px 0",borderRight:N<6?`1px solid ${b.cellBorder}`:"none"},children:E},E))}),F.map((E,N)=>{let W=cd(E,o),z=W.length>0?Math.max(...W.map(Y=>Y.row))+1:0,A=E.map((Y,$)=>{let j=W.filter(U=>$>=U.startCol&&$<U.startCol+U.span);return Math.max(0,j.filter(U=>U.row>=l).length)}),O=Math.min(z,l)*(mo+kt)+kt,te=A.some(Y=>Y>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:N<F.length-1?`1px solid ${b.cellBorder}`:"none"},children:E.map((Y,$)=>{let j=lt(Y,m),U=Y.getMonth()!==w,re=e?lt(Y,e):false;return jsxs("div",{style:{borderRight:$<6?`1px solid ${b.cellBorder}`:"none",backgroundColor:j?b.todayCellBg:"transparent",minHeight:`${30+O+te}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!ba(Y,s,i)&&t(Y);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:j?700:400,color:U?b.outsideText:j?"#FC4F00":b.text},children:re?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Y.getDate(),"."]}):jsxs(Fragment,{children:[Y.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${O}px`},children:W.filter(K=>K.startCol===$&&K.row<l).map((K,q)=>{let J=K.event.id||`${ld(K.event.date)}-${K.event.title}`,pe=M===J,we=K.event.color||b.eventBarDefault,H=jsxs("div",{style:{position:"absolute",top:`${kt+K.row*(mo+kt)}px`,left:"2px",width:K.span>1?`calc(${K.span*100}% - 4px)`:"calc(100% - 4px)",height:`${mo}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:r?"pointer":"default",zIndex:pe?2:1,opacity:pe?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:K.event.tooltip?void 0:K.event.title,onClick:Q=>{Q.stopPropagation(),r&&r(K.event);},onMouseEnter:()=>D(J),onMouseLeave:()=>D(null),children:[K.isStart&&K.event.emoji&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:K.event.emoji}),K.isStart&&jsx("span",{style:{fontSize:"11px",fontWeight:500,color:K.event.textColor||b.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K.event.title})]},q);return K.event.tooltip?jsx(yr,{content:K.event.tooltip,children:H},q):H})}),A[$]>0&&jsxs("div",{style:{fontSize:"10px",color:b.moreText,textAlign:"center",padding:"2px 0"},children:["+",A[$]]})]},$)})},N)})]})]})},ud=e=>{let t=P(),o=id[t],r=useMemo(()=>{let n=new Date;return n.setHours(0,0,0,0),n},[]);return e.fullSize?jsx(fd,{...e,t:o,today:r}):jsx(pd,{...e,t:o,today:r})};ud.displayName="Calendar";var bd={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},xd=({items:e,orientation:t="vertical",style:o,className:r})=>{let n=P(),a=bd[n];return t==="horizontal"?jsx("div",{className:r,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:u?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[i>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),i===0&&jsx("div",{style:{flex:1}}),s.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0}}),!u&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),u&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:s.title}),s.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:s.date}),s.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:s.description})]})]},i)})}):jsx("div",{className:r,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((s,i)=>{let u=i===e.length-1,c=s.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:u?0:"4px",minHeight:s.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[s.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:s.color?`${s.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:c,flexShrink:0},children:s.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${c}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!u&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:s.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:s.title}),s.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:s.date})]}),s.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:s.description})]})]},i)})})};xd.displayName="Timeline";var md={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},hd=({items:e,columns:t=1,striped:o=false,style:r,className:n})=>{let a=P(),s=md[a],i=Math.max(1,Math.round(t)),u={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,display:i>1?"grid":"block",gridTemplateColumns:i>1?`repeat(${i}, 1fr)`:void 0,gap:i>1?"0 24px":void 0,...r},c=x=>i<=1?x:Math.floor(x/i),d=x=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${s.border}`,backgroundColor:o&&c(x)%2===1?s.stripedBg:s.background}),p={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:s.textMuted,flexShrink:0,letterSpacing:"0.01em"},l={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:n,style:u,children:e.map((x,b)=>jsxs("div",{style:d(b),children:[jsx("span",{style:p,children:x.label}),jsx("span",{style:l,children:x.value})]},b))})};hd.displayName="DataList";var kd={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},ma=({node:e,depth:t,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s})=>{let i=e.children&&e.children.length>0,u=o.has(e.id),c=r===e.id,[d,p]=useState(false),l="transparent";return c?l=s.selectedBg:d&&(l=s.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:l,borderLeft:c?`2px solid ${s.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:x=>{x.stopPropagation(),i&&n(e.id);},children:i&&jsx(CaretRightIcon,{size:14,color:u?s.iconExpanded:s.iconColor,style:{transform:u?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:c?s.selectedBorder:s.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:c?500:400,color:c?s.selectedText:s.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),i&&u&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:s.line}}),e.children.map(x=>jsx(ma,{node:x,depth:t+1,expanded:o,selectedId:r,onToggle:n,onSelect:a,t:s},x.id))]})]})},Cd=({data:e,onSelect:t,selectedId:o,defaultExpanded:r=[],style:n,className:a})=>{let s=P(),i=kd[s],[u,c]=useState(()=>new Set(r)),d=useCallback(l=>{c(x=>{let b=new Set(x);return b.has(l)?b.delete(l):b.add(l),b});},[]),p={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,...n};return jsx("div",{className:a,style:p,role:"tree",children:e.map(l=>jsx(ma,{node:l,depth:0,expanded:u,selectedId:o,onToggle:d,onSelect:t,t:i},l.id))})};Cd.displayName="Tree";var Rd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Td={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},Fd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},Er=false,Ed=()=>{if(Er||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){Er=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
12
|
+
`}),re&&jsx("div",{style:{padding:"16px",textAlign:"center"},children:jsx(Pr,{size:16,color:x.placeholder})}),!re&&Y.length===0&&!c&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:x.placeholder,textAlign:"center"},children:"Nic nenalezeno"}),!re&&Y.length===0&&c&&L&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.optionSelectedText,cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{d?.(L),n||(o?.(L),G()),N("");},onMouseEnter:_=>{_.currentTarget.style.backgroundColor=x.optionHover;},onMouseLeave:_=>{_.currentTarget.style.backgroundColor="transparent";},children:['Vytvo\u0159it "',L,'"']}),!re&&Y.map((_,se)=>{let le=ee(_.value),Ae=se===C;return jsx("div",{role:"option","aria-selected":le,"aria-disabled":_.disabled,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:le?500:400,lineHeight:"normal",color:le?x.optionSelectedText:_.disabled?x.placeholder:x.text,backgroundColor:Ae?x.optionHover:le?x.optionSelected:"transparent",cursor:_.disabled?"not-allowed":"pointer",opacity:_.disabled?.45:1,transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:se<Y.length-1?"2px":0},onClick:()=>{_.disabled||ie(_.value);},onMouseEnter:()=>P(se),onMouseLeave:()=>P(-1),children:u?u(_,le):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:_.label??_.value}),le&&jsx(Check,{size:16,color:x.optionSelectedText})]})},_.value)})]})]}),document.body):null;return jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"4px",...z},className:h,children:[m&&jsx("label",{htmlFor:I,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:x.text,userSelect:"none"},children:m}),jsxs("div",{ref:v,role:"combobox","aria-expanded":B,"aria-haspopup":"listbox",tabIndex:V?-1:0,style:Ut,onClick:Je,onKeyDown:We,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:x.placeholder,lineHeight:"normal"},children:p}),n?i==="count"&&X$1.length>0?jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:x.text,lineHeight:"normal"},children:[X$1.length," vybr\xE1no"]}):X$1.map(_=>{let se=e.find(le=>le.value===_);return jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:x.tagBg,color:x.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&se?f(se):Qe(_)}),!V&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:le=>{le.stopPropagation(),ie(_);},children:jsx(X,{size:14,color:x.tagText})})]},_)}):X$1.length>0&&(()=>{let _=e.find(se=>se.value===X$1[0]);return jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",color:x.text,lineHeight:"normal",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:f&&_?f(_):Qe(X$1[0])})})()]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[he&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:Me,children:jsx(X,{size:14,color:x.placeholder})}),s?jsx(Pr,{size:16,color:x.placeholder}):jsx(CaretDown,{size:16,color:x.placeholder,style:{transition:"transform 0.2s ease",transform:B?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]})]}),Z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:x.borderError,lineHeight:"normal"},children:Z}),it]})};Hr.displayName="Select";var bs=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),s=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Ar[a].label,userSelect:"none"},children:e}),o??jsx(Hr,{options:[]})]})};bs.displayName="SelectGroup";var Cs=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ws={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)",tagBg:"rgba(255,255,255,0.12)",tagText:"#eaeaea"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)",tagBg:"rgba(0,0,0,0.08)",tagText:"#1a1a1a"}},an=180,Rs={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ts=zn.forwardRef(({options:e,value:t,onChange:o,onInputChange:n,placeholder:r="Hledat\u2026",label:a,error:l,disabled:s=false,loading:g=false,multiple:b=false,clearable:c=false,onOpenChange:d,onSelect:i,onDeselect:u,onClear:f,onFocus:m,onBlur:p,allowCustom:R=false,onCreate:z,renderOption:h,notFoundContent:S,footer:x,size:I="md",style:v,className:E},y)=>{let D=A(),B=ws[D],M=useId(),F=Rs[I],w=useRef(null),T=useRef(null),L=useRef(null),N=useRef(null),[C,P]=useState(false),[H,W]=useState(false),[V,q]=useState("idle"),[Z,$]=useState(""),[G,X$1]=useState(-1),[ee,J]=useState(false),[te,re]=useState({top:0,left:0,width:0,openAbove:false}),be=s||g,we=!!l,Y=typeof l=="string"?l:void 0,j=c&&!be,ie=b?Array.isArray(t)?t:t?[t]:[]:typeof t=="string"&&t?[t]:[],Me=U=>ie.includes(U),Je=U=>{let oe=e.find(de=>de.value===U);return oe?oe.label??oe.value:U};useEffect(()=>{if(!b&&!ee){let U=e.find(oe=>oe.value===t);$(U?U.label??U.value:(typeof t=="string"?t:"")||"");}},[t,e,ee,b]);let We=Z?e.filter(U=>(U.label??U.value).toLowerCase().includes(Z.toLowerCase())):e,Qe=useCallback(()=>{P(true),W(true),q("opening"),d?.(true),requestAnimationFrame(()=>{requestAnimationFrame(()=>q("open"));});},[d]),he=useCallback(()=>{P(false),q("closing"),d?.(false);let U=setTimeout(()=>{W(false),q("idle");},an);return ()=>clearTimeout(U)},[d]),ze=useCallback(()=>{if(!w.current)return;let U=w.current.getBoundingClientRect(),oe=L.current?.offsetHeight??240,de=window.innerHeight-U.bottom-6,me=U.top-6,O=de<oe&&me>de;re({top:O?U.top-6:U.bottom+6,left:U.left,width:U.width,openAbove:O});},[]);useEffect(()=>{if(H)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[H,ze]),useEffect(()=>{if(!C)return;let U=oe=>{let de=oe.target;if(!w.current?.contains(de)&&!L.current?.contains(de))if(he(),b)$("");else {let me=e.find(O=>O.value===t);R||$(me?me.label??me.value:"");}};return document.addEventListener("mousedown",U),()=>document.removeEventListener("mousedown",U)},[C,he,t,e,R,b]),useEffect(()=>{G>=0&&N.current&&N.current.children[G]?.scrollIntoView({block:"nearest"});},[G]);let Ut=U=>{let oe=U.target.value;$(oe),n?.(oe),X$1(0),C||Qe();},it=useCallback(U=>{let oe=e.find(de=>de.value===U)||{value:U};if(b){if(Me(U)){let de=ie.filter(me=>me!==U);o(de),u?.(U,oe);}else {let de=[...ie,U];o(de),i?.(U,oe);}$("");}else o(U),i?.(U,oe),$(oe.label??oe.value),he();},[o,e,he,b,ie,i,u]),_=useCallback(U=>{if(!b)return;let oe=e.find(me=>me.value===U)||{value:U},de=ie.filter(me=>me!==U);o(de),u?.(U,oe);},[b,ie,o,e,u]),se=useCallback(U=>{U.stopPropagation(),o(b?[]:""),$(""),f?.();},[b,o,f]),le=U=>{if(!be)switch(U.key){case "ArrowDown":U.preventDefault(),C?X$1(oe=>Math.min(oe+1,We.length-1)):(Qe(),X$1(0));break;case "ArrowUp":U.preventDefault(),X$1(oe=>Math.max(oe-1,0));break;case "Enter":U.preventDefault(),C&&G>=0&&We[G]?it(We[G].value):R&&Z&&(b?(o([...ie,Z]),z?.(Z),$("")):(o(Z),z?.(Z),he()));break;case "Backspace":if(b&&Z===""&&ie.length>0){let oe=ie.slice(0,-1);o(oe);}break;case "Escape":he();break;case "Tab":C&&he();break}},Ae=U=>{J(true),m?.(U),!C&&!be&&Qe();},st=U=>{let oe=U.relatedTarget;oe&&(L.current?.contains(oe)||w.current?.contains(oe))||(J(false),p?.(U),!b&&R&&Z&&o(Z),b&&$(""));},qo=()=>{let U=te.openAbove,oe=U?"translateY(8px)":"translateY(-8px)",de=U?"translateY(6px)":"translateY(-6px)",me={transition:`opacity ${an}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${an}ms cubic-bezier(0.16, 1, 0.3, 1)`};return V==="opening"||V==="idle"?{...me,opacity:0,transform:`${oe} scale(0.97)`}:V==="open"?{...me,opacity:1,transform:"translateY(0) scale(1)"}:{...me,opacity:0,transform:`${de} scale(0.98)`,pointerEvents:"none"}},jo={display:"flex",alignItems:"center",gap:F.gap,backgroundColor:be?B.backgroundDisabled:B.background,border:`1px solid ${we?B.borderError:ee?B.borderFocus:B.border}`,borderRadius:"8px",padding:F.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:be?.6:1,cursor:be?"not-allowed":"text",flexWrap:"nowrap"},Xt={flex:1,minWidth:b?"60px":0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:F.fontSize,lineHeight:"normal",color:B.text,cursor:be?"not-allowed":"text"},Ko={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:B.label,userSelect:"none"},Jo=H?createPortal(jsxs("div",{ref:L,style:{position:"fixed",...te.openAbove?{bottom:window.innerHeight-te.top,left:te.left}:{top:te.top,left:te.left},width:te.width,backgroundColor:B.dropdownBg,border:`1px solid ${B.dropdownBorder}`,borderRadius:"12px",boxShadow:D==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:te.openAbove?"bottom center":"top center",...qo()},onMouseDown:U=>{U.preventDefault();},children:[jsxs("div",{ref:N,role:"listbox","aria-multiselectable":b,style:{maxHeight:240,overflowY:"auto",padding:"6px"},children:[We.length===0&&jsx("div",{style:{padding:"16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:B.placeholder,textAlign:"center"},children:R&&Z?"Stiskn\u011Bte Enter pro potvrzen\xED":typeof S=="function"?S(he):S??"\u017D\xE1dn\xE9 v\xFDsledky"}),We.map((U,oe)=>{let de=Me(U.value),me=oe===G;return jsx("div",{role:"option","aria-selected":de,style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:de?500:400,lineHeight:"normal",color:de?B.optionSelectedText:B.text,backgroundColor:me?B.optionHover:de?B.optionSelected:"transparent",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",userSelect:"none",marginBottom:oe<We.length-1?"2px":0},onClick:()=>it(U.value),onMouseEnter:()=>X$1(oe),onMouseLeave:()=>X$1(-1),children:h?h(U,me):jsxs(Fragment,{children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:U.label??U.value}),de&&jsx(Check,{size:16,color:B.optionSelectedText})]})},U.value)})]}),x&&jsx("div",{style:{borderTop:`1px solid ${B.divider}`,padding:"8px 6px"},children:typeof x=="function"?x(he):x})]}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...v},className:E,children:[a&&jsx("label",{htmlFor:M,style:Ko,children:a}),jsxs("div",{ref:w,style:jo,onClick:()=>T.current?.focus(),children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B.placeholder},children:g?jsx(Cs,{size:F.iconSize,color:B.placeholder}):jsx(MagnifyingGlass,{size:F.iconSize,color:B.placeholder})}),jsxs("div",{style:{flex:1,minWidth:0,display:"flex",flexWrap:"nowrap",gap:"4px",alignItems:"center",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none"},children:[b&&ie.map(U=>jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",backgroundColor:B.tagBg,color:B.tagText,borderRadius:"4px",padding:"2px 8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:[jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je(U)}),!be&&jsx("span",{role:"button",tabIndex:-1,style:{cursor:"pointer",display:"flex",opacity:.7},onClick:oe=>{oe.stopPropagation(),_(U);},children:jsx(X,{size:14,color:B.tagText})})]},U)),jsx("input",{ref:U=>{T.current=U,typeof y=="function"?y(U):y&&(y.current=U);},id:M,type:"text",value:Z,onChange:Ut,onFocus:Ae,onBlur:st,onKeyDown:le,placeholder:b&&ie.length>0?"":r,disabled:s,readOnly:g,style:Xt})]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[j&&ie.length>0&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:se,children:jsx(X,{size:14,color:B.placeholder})}),jsx(CaretDown,{size:F.iconSize,color:B.placeholder,style:{transition:"transform 0.2s ease",transform:C?"rotate(180deg)":"rotate(0deg)"}})]})]}),Y&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:B.borderError,lineHeight:"normal"},children:Y}),Jo]})});Ts.displayName="Combobox";var Ds=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},Vr={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",dayHover:"rgba(255,255,255,0.06)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.15)",dayToday:"rgba(255,255,255,0.2)",dayOutside:"rgba(255,255,255,0.25)",dayDisabled:"rgba(255,255,255,0.12)",divider:"rgba(255,255,255,0.08)",scrollbarThumb:"rgba(255,255,255,0.15)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",dayHover:"rgba(0,0,0,0.04)",daySelected:"#E8612D",daySelectedText:"#ffffff",dayRangeMiddle:"rgba(232,97,45,0.10)",dayToday:"rgba(0,0,0,0.1)",dayOutside:"rgba(0,0,0,0.3)",dayDisabled:"rgba(0,0,0,0.15)",divider:"rgba(0,0,0,0.06)",scrollbarThumb:"rgba(0,0,0,0.15)"}},sn=180,Is={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px"}},Ps={sm:{width:280,headerPadding:"8px 10px",gridPadding:"0 10px 6px",monthYearGridPadding:"6px 10px",headerFontSize:"13px",weekdayFontSize:"10px",dayFontSize:"12px",timePadding:"8px 10px",timeLabelFontSize:"11px"},md:{width:320,headerPadding:"10px 12px",gridPadding:"0 12px 8px",monthYearGridPadding:"8px 12px",headerFontSize:"14px",weekdayFontSize:"11px",dayFontSize:"13px",timePadding:"10px 12px",timeLabelFontSize:"12px"},lg:{width:380,headerPadding:"12px 14px",gridPadding:"0 14px 10px",monthYearGridPadding:"10px 14px",headerFontSize:"16px",weekdayFontSize:"12px",dayFontSize:"14px",timePadding:"12px 14px",timeLabelFontSize:"13px"}},Ms=["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],Wr=["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"];function As(e,t,o){let r=new Date(e,t,1).getDay();r=(r===0?7:r)-o,r<0&&(r+=7);let a=new Date(e,t,1-r),l=[];for(let s=0;s<42;s++){let g=new Date(a);g.setDate(a.getDate()+s),l.push(g);}return l}function cn(e){let t=String(e.getDate()).padStart(2,"0"),o=String(e.getMonth()+1).padStart(2,"0");return `${t}.${o}.${e.getFullYear()}`}function Or(e){let t=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0");return `${cn(e)} ${t}:${o}`}function dt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Zr(e,t,o){let n=e.getTime(),r=Math.min(t.getTime(),o.getTime()),a=Math.max(t.getTime(),o.getTime());return n>=r&&n<=a}function Hs(e){return dt(e,new Date)}var Ur=({mode:e="single",showTime:t=false,value:o,onChange:n,label:r,placeholder:a,error:l,helperText:s,disabled:g=false,loading:b=false,clearable:c=false,size:d="md",fullWidth:i=false,required:u,minDate:f,maxDate:m,presets:p,presetsLabel:R="Rychl\xFD v\xFDb\u011Br",disabledDates:z,firstDayOfWeek:h=1,style:S,className:x})=>{let I=A(),v=Vr[I],E=useId(),y=Is[d],D=Ps[d],B=useRef(null),k=useRef(null),[M,F]=useState(false),[w,T]=useState(false),[L,N]=useState("idle"),[C,P]=useState({top:0,left:0,width:0,openAbove:false}),[H,W]=useState(null),V=new Date,[q,Z]=useState(V.getFullYear()),[$,G]=useState(V.getMonth()),[X$1,ee]=useState("days"),[J,te]=useState(0),re=g||b,be=!!l,we=typeof l=="string"?l:void 0,Y=e==="single"&&o instanceof Date?o:null,j=e==="range"&&Array.isArray(o)?o:[null,null],ie=e==="single"?Y!==null:j[0]!==null||j[1]!==null,Me=c&&ie&&!re,Je=(()=>{if(e==="single")return Y?t?Or(Y):cn(Y):"";let[O,ae]=j;if(!O&&!ae)return "";let ne=t?Or:cn;return `${O?ne(O):"\u2026"} \u2013 ${ae?ne(ae):"\u2026"}`})(),We=a??(e==="single"?t?"dd.mm.rrrr hh:mm":"dd.mm.rrrr":t?"dd.mm.rrrr hh:mm \u2013 dd.mm.rrrr hh:mm":"dd.mm.rrrr \u2013 dd.mm.rrrr"),Qe=useCallback(()=>{let O=e==="single"?Y:j[0];O&&(Z(O.getFullYear()),G(O.getMonth())),ee("days"),F(true),T(true),N("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>N("open"));});},[e,Y,j]),he=useCallback(()=>{F(false),N("closing");let O=setTimeout(()=>{T(false),N("idle");},sn);return ()=>clearTimeout(O)},[]),ze=useCallback(()=>{if(!B.current)return;let O=B.current.getBoundingClientRect(),ae=k.current?.offsetHeight??380,ne=window.innerHeight-O.bottom-6,K=O.top-6,pe=ne<ae&&K>ne,fe=D.width+(p&&p.length>0?140:0),De=Math.max(8,window.innerWidth-fe-8),Gt=Math.min(O.left,De);P({top:pe?O.top-6:O.bottom+6,left:Gt,width:fe,openAbove:pe});},[D.width,p]);useEffect(()=>{if(w)return ze(),window.addEventListener("scroll",ze,true),window.addEventListener("resize",ze),()=>{window.removeEventListener("scroll",ze,true),window.removeEventListener("resize",ze);}},[w,ze]),useEffect(()=>{if(!M)return;let O=ae=>{let ne=ae.target,K=B.current?.contains(ne),pe=k.current?.contains(ne);!K&&!pe&&he();};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[M,he]);let Ut=O=>{re||(O.key==="Escape"&&M&&(O.preventDefault(),he()),(O.key==="Enter"||O.key===" ")&&!M&&(O.preventDefault(),Qe()));},it=useCallback(O=>{if(f){let ae=new Date(f.getFullYear(),f.getMonth(),f.getDate());if(O<ae)return true}if(m){let ae=new Date(m.getFullYear(),m.getMonth(),m.getDate());if(O>ae)return true}return !!(z&&z(O))},[f,m,z]),_=useCallback(O=>{if(!it(O)&&n)if(e==="single")t&&Y&&O.setHours(Y.getHours(),Y.getMinutes()),n(new Date(O)),t||he();else if(J===0)t&&j[0]&&O.setHours(j[0].getHours(),j[0].getMinutes()),n([new Date(O),null]),te(1);else {let ae=j[0];t&&j[1]&&O.setHours(j[1].getHours(),j[1].getMinutes());let[ne,K]=O>=ae?[ae,new Date(O)]:[new Date(O),ae];n([ne,K]),te(0),t||he();}},[e,t,Y,j,J,n,he,it]),se=useCallback((O,ae,ne)=>{if(!n)return;let K=parseInt(ae,10);if(isNaN(K)&&(K=0),O==="hour"&&(K=Math.max(0,Math.min(23,K))),O==="minute"&&(K=Math.max(0,Math.min(59,K))),e==="single"){let pe=Y?new Date(Y):new Date;O==="hour"?pe.setHours(K):pe.setMinutes(K),n(pe);}else {let pe=ne??0,fe=[j[0]?new Date(j[0]):null,j[1]?new Date(j[1]):null],De=fe[pe]??new Date;O==="hour"?De.setHours(K):De.setMinutes(K),fe[pe]=De,n(fe);}},[e,Y,j,n]),le=()=>{$===0?(G(11),Z(O=>O-1)):G(O=>O-1);},Ae=()=>{$===11?(G(0),Z(O=>O+1)):G(O=>O+1);},st=O=>{O.stopPropagation(),n&&(n(e==="single"?null:[null,null]),te(0));},qo=()=>{let O=C.openAbove,ae=O?"translateY(8px)":"translateY(-8px)",ne=O?"translateY(6px)":"translateY(-6px)",K={transition:`opacity ${sn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${sn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return L==="opening"||L==="idle"?{...K,opacity:0,transform:`${ae} scale(0.97)`}:L==="open"?{...K,opacity:1,transform:"translateY(0) scale(1)"}:{...K,opacity:0,transform:`${ne} scale(0.98)`,pointerEvents:"none"}},jo=As(q,$,h),Xt=(O,ae)=>{let ne=O?O.getHours():0,K=O?O.getMinutes():0,pe={width:"42px",background:"transparent",border:`1px solid ${v.border}`,borderRadius:"4px",padding:"4px 6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:v.text,textAlign:"center",outline:"none",boxSizing:"border-box"};return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[jsx("input",{type:"text",value:String(ne).padStart(2,"0"),onChange:fe=>se("hour",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Hodiny"}),jsx("span",{style:{color:v.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px"},children:":"}),jsx("input",{type:"text",value:String(K).padStart(2,"0"),onChange:fe=>se("minute",fe.target.value,ae),style:pe,maxLength:2,"aria-label":"Minuty"})]})},Ko=()=>jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:Wr.map((O,ae)=>{let ne=ae===$;return jsx("button",{type:"button",onClick:()=>{G(ae),ee("days");},style:{background:ne?v.daySelected:"transparent",color:ne?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:K=>{ne||(K.target.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.target.style.backgroundColor="transparent");},children:O},ae)})}),Jo=()=>{let O=Math.floor(q/12)*12,ae=Array.from({length:12},(ne,K)=>O+K);return jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.monthYearGridPadding},children:[jsx("button",{type:"button",onClick:()=>Z(ne=>ne-12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:v.text})}),jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.headerFontSize,color:v.text},children:[O," \u2013 ",O+11]}),jsx("button",{type:"button",onClick:()=>Z(ne=>ne+12),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:v.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",padding:D.monthYearGridPadding},children:ae.map(ne=>{let K=ne===q;return jsx("button",{type:"button",onClick:()=>{Z(ne),ee("months");},style:{background:K?v.daySelected:"transparent",color:K?v.daySelectedText:v.text,border:"none",borderRadius:"6px",padding:"8px 4px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,cursor:"pointer",transition:"background-color 0.12s ease"},onMouseEnter:pe=>{K||(pe.target.style.backgroundColor=v.dayHover);},onMouseLeave:pe=>{K||(pe.target.style.backgroundColor="transparent");},children:ne},ne)})})]})},U=w?createPortal(jsx("div",{ref:k,style:{position:"fixed",...C.openAbove?{bottom:window.innerHeight-C.top,left:C.left}:{top:C.top,left:C.left},width:C.width,backgroundColor:v.dropdownBg,border:`1px solid ${v.dropdownBorder}`,borderRadius:"12px",boxShadow:I==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:C.openAbove?"bottom center":"top center",...qo()},children:jsxs("div",{style:{display:"flex"},children:[p&&p.length>0&&jsxs("div",{style:{width:"140px",flexShrink:0,borderRight:`1px solid ${v.dropdownBorder}`,padding:"8px",overflowY:"auto",maxHeight:"320px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"9px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.05em",color:v.dayOutside,padding:"4px 6px 8px",userSelect:"none"},children:R}),p.map((O,ae)=>{let ne=(()=>{if(e==="range"&&Array.isArray(O.value)){let[K,pe]=j,[fe,De]=O.value;return K&&pe&&fe&&De&&K.getFullYear()===fe.getFullYear()&&K.getMonth()===fe.getMonth()&&K.getDate()===fe.getDate()&&pe.getFullYear()===De.getFullYear()&&pe.getMonth()===De.getMonth()&&pe.getDate()===De.getDate()}return !Array.isArray(O.value)&&Y?Y.getFullYear()===O.value.getFullYear()&&Y.getMonth()===O.value.getMonth()&&Y.getDate()===O.value.getDate():false})();return jsx("div",{style:{padding:"7px 8px",borderRadius:"6px",fontSize:"13px",fontFamily:"'Zalando Sans', sans-serif",color:ne?v.daySelected:v.text,fontWeight:ne?600:400,backgroundColor:ne?`${v.daySelected}18`:"transparent",cursor:"pointer",userSelect:"none",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>{n?.(O.value),he();},onMouseEnter:K=>{ne||(K.currentTarget.style.backgroundColor=v.dayHover);},onMouseLeave:K=>{ne||(K.currentTarget.style.backgroundColor="transparent");},children:O.label},ae)})]}),jsx("div",{style:{flex:1,minWidth:0},children:X$1==="years"?Jo():X$1==="months"?jsxs(Fragment,{children:[jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:D.headerPadding},children:jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})}),Ko()]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:D.headerPadding},children:[jsx("button",{type:"button",onClick:le,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretLeft,{size:16,color:v.text})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("button",{type:"button",onClick:()=>ee("months"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:Wr[$]}),jsx("button",{type:"button",onClick:()=>ee("years"),style:{background:"none",border:"none",cursor:"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.headerFontSize,fontWeight:500,color:v.text,padding:"4px 8px",borderRadius:"4px"},children:q})]}),jsx("button",{type:"button",onClick:Ae,style:{background:"none",border:"none",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center"},children:jsx(CaretRight,{size:16,color:v.text})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding.replace(/(\d+px)$/,"4px"),gap:"0"},children:Ms.map(O=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:D.weekdayFontSize,fontWeight:400,color:v.placeholder,padding:"4px 0",userSelect:"none"},children:O},O))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",padding:D.gridPadding,gap:"2px"},children:jo.map((O,ae)=>{let ne=O.getMonth()!==$,K=it(O),pe=Hs(O),fe=false,De=false,Gt=false,ho=false;if(e==="single"&&Y)fe=dt(O,Y);else if(e==="range"){let[lt,vo]=j;lt&&dt(O,lt)&&(De=true,fe=true),vo&&dt(O,vo)&&(Gt=true,fe=true),lt&&vo&&Zr(O,lt,vo)&&!De&&!Gt&&(ho=true),J===1&<&&H&&!K&&(dt(O,H)&&!dt(O,lt)&&(fe=true),Zr(O,lt,H)&&!dt(O,lt)&&!dt(O,H)&&(ho=true));}let Qo="transparent",yo=v.text;return fe?(Qo=v.daySelected,yo=v.daySelectedText):ho&&(Qo=v.dayRangeMiddle),ne&&(yo=fe?v.daySelectedText:v.dayOutside),K&&(yo=v.dayDisabled),jsx("button",{type:"button",disabled:K,onClick:()=>_(O),onMouseEnter:()=>{K||W(O);},onMouseLeave:()=>W(null),style:{position:"relative",width:"100%",aspectRatio:"1",display:"flex",alignItems:"center",justifyContent:"center",background:Qo,color:yo,border:"none",borderRadius:De?"6px 0 0 6px":Gt?"0 6px 6px 0":ho?"0":"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:D.dayFontSize,fontWeight:fe?600:400,cursor:K?"not-allowed":"pointer",opacity:K?.4:1,transition:"background-color 0.1s ease",outline:pe&&!fe?`1.5px solid ${v.dayToday}`:"none",outlineOffset:"-1.5px",padding:0,boxSizing:"border-box"},children:O.getDate()},ae)})}),t&&jsx("div",{style:{borderTop:`1px solid ${v.divider}`,padding:D.timePadding,display:"flex",alignItems:"center",justifyContent:e==="range"?"space-between":"center",gap:"8px"},children:e==="single"?jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"\u010Cas:"}),Xt(Y)]}):jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Od:"}),Xt(j[0],0)]}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:D.timeLabelFontSize,color:v.placeholder},children:"Do:"}),Xt(j[1],1)]})]})})]})})]})}),document.body):null,oe={display:"flex",alignItems:"center",gap:y.gap,backgroundColor:re?v.backgroundDisabled:v.background,border:`1px solid ${be?v.borderError:M?v.borderFocus:v.border}`,borderRadius:"8px",padding:y.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:re?.6:1,cursor:re?"not-allowed":"pointer",userSelect:"none",outline:"none"},de={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},me={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:i?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:i?"100%":void 0,...S},className:x,children:[r&&jsxs("label",{htmlFor:E,style:de,children:[r,u&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsxs("div",{ref:B,role:"button",tabIndex:re?-1:0,style:oe,onClick:()=>{re||(M?he():Qe());},onKeyDown:Ut,children:[jsx("div",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Je?jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.text,lineHeight:"normal"},children:Je}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:y.fontSize,color:v.placeholder,lineHeight:"normal"},children:We})}),jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px",flexShrink:0},children:[Me&&jsx("span",{role:"button",tabIndex:-1,"aria-label":"Vymazat v\xFDb\u011Br",style:{cursor:"pointer",display:"flex",padding:"2px"},onClick:st,children:jsx(X,{size:y.iconSize-2,color:v.placeholder})}),b?jsx(Ds,{size:y.iconSize,color:v.placeholder}):jsx(CalendarBlank,{size:y.iconSize,color:v.placeholder})]})]}),we&&jsx("span",{style:{...me,color:v.borderError},children:we}),!we&&s&&jsx("span",{style:{...me,color:v.helperText},children:s}),U]})};Ur.displayName="DatePicker";var Ls=({label:e,htmlFor:t,children:o,style:n,className:r})=>{let a=A(),l=useId(),s=t??l;return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",...n},className:r,children:[jsx("label",{htmlFor:s,style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:Vr[a].label,userSelect:"none"},children:e}),o??jsx(Ur,{})]})};Ls.displayName="DatePickerGroup";var Xr={dark:{border:"rgba(255,255,255,0.3)",borderHover:"rgba(255,255,255,0.5)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",checkBg:"#FC4F00",checkMark:"#ffffff"},light:{border:"rgba(0,0,0,0.2)",borderHover:"rgba(0,0,0,0.5)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",checkBg:"#FC4F00",checkMark:"#ffffff"}},Os={sm:{box:16,fontSize:"14px",gap:"6px",radius:3,strokeWidth:2},md:{box:20,fontSize:"16px",gap:"8px",radius:4,strokeWidth:2},lg:{box:24,fontSize:"18px",gap:"10px",radius:5,strokeWidth:2.5}},Gr=({checked:e=false,onChange:t,label:o,disabled:n=false,error:r,size:a="md",indeterminate:l=false,className:s,style:g})=>{let b=A(),c=Xr[b],d=Os[a],i=useId(),u=useRef(null),f=!!r,m=typeof r=="string"?r:void 0;useEffect(()=>{u.current&&(u.current.indeterminate=l);},[l]);let p=()=>{n||t?.(!e);},R=f?c.borderError:e||l?c.checkBg:c.border,z=e||l?c.checkBg:n?c.backgroundDisabled:c.background,h={width:d.box,height:d.box,borderRadius:d.radius,border:`1.5px solid ${R}`,backgroundColor:z,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s ease, border-color 0.15s ease",opacity:n?.5:1},S={fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,color:c.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"},x={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",...g},className:s,children:[jsxs("label",{htmlFor:i,style:{display:"inline-flex",alignItems:"center",gap:d.gap,cursor:n?"not-allowed":"pointer"},onClick:I=>{I.preventDefault(),p();},children:[jsx("input",{ref:u,id:i,type:"checkbox",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-invalid":f||void 0}),jsxs("span",{style:h,children:[e&&!l&&jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2 6l3 3 5-5",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round"})}),l&&jsx("svg",{width:d.box-6,height:d.box-6,viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6h7",stroke:c.checkMark,strokeWidth:d.strokeWidth,strokeLinecap:"round"})})]}),o&&jsx("span",{style:S,children:o})]}),m&&jsx("span",{style:{...x,color:c.borderError,marginLeft:`${d.box+parseInt(d.gap)}px`},children:m})]})};Gr.displayName="Checkbox";var _r=({label:e,children:t,error:o,className:n,style:r})=>{let a=A(),l=Xr[a],s=typeof o=="string"?o:void 0,g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:l.label,userSelect:"none"},b={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"group","aria-label":e,style:{display:"flex",flexDirection:"column",gap:"8px",...r},className:n,children:[e&&jsx("span",{style:g,children:e}),jsx("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:t}),s&&jsx("span",{style:{...b,color:l.borderError},children:s})]})};_r.displayName="CheckboxGroup";var qr={dark:{border:"rgba(255,255,255,0.3)",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",label:"#ffffff",helperText:"#ACACAC",dot:"#FC4F00",dotRing:"#FC4F00"},light:{border:"rgba(0,0,0,0.2)",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",label:"#1a1a1a",helperText:"#888888",dot:"#FC4F00",dotRing:"#FC4F00"}},Ys={sm:{box:16,dot:6,fontSize:"14px",gap:"6px"},md:{box:20,dot:8,fontSize:"16px",gap:"8px"},lg:{box:24,dot:10,fontSize:"18px",gap:"10px"}},dn=({value:e,checked:t=false,onChange:o,label:n,disabled:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=qr[g],c=Ys[a],d=useId(),i=()=>{r||o?.(e);},u=t?b.dotRing:b.border,f=r?b.backgroundDisabled:b.background,m={width:c.box,height:c.box,borderRadius:"50%",border:`1.5px solid ${u}`,backgroundColor:f,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"border-color 0.15s ease",opacity:r?.5:1},p={fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,color:b.text,cursor:r?"not-allowed":"pointer",userSelect:"none",lineHeight:"normal"};return jsx("div",{style:{display:"inline-flex",...s},className:l,children:jsxs("label",{htmlFor:d,style:{display:"inline-flex",alignItems:"center",gap:c.gap,cursor:r?"not-allowed":"pointer"},onClick:R=>{R.preventDefault(),i();},children:[jsx("input",{id:d,type:"radio",value:e,checked:t,disabled:r,onChange:()=>o?.(e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),jsx("span",{style:m,children:t&&jsx("span",{style:{width:c.dot,height:c.dot,borderRadius:"50%",backgroundColor:b.dot,transition:"transform 0.15s ease"}})}),n&&jsx("span",{style:p,children:n})]})})};dn.displayName="Radio";var jr=({value:e,onChange:t,label:o,options:n,direction:r="vertical",error:a,helperText:l,size:s="md",className:g,style:b})=>{let c=A(),d=qr[c],i=!!a,u=typeof a=="string"?a:void 0,f={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},m={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{role:"radiogroup","aria-label":o,"aria-invalid":i||void 0,style:{display:"flex",flexDirection:"column",gap:"8px",...b},className:g,children:[o&&jsx("span",{style:f,children:o}),jsx("div",{style:{display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:r==="horizontal"?"16px":"6px"},children:n.map(p=>jsx(dn,{value:p.value,label:p.label,checked:e===p.value,onChange:t,disabled:p.disabled,size:s},p.value))}),u&&jsx("span",{style:{...m,color:d.borderError},children:u}),!u&&l&&jsx("span",{style:{...m,color:d.helperText},children:l})]})};jr.displayName="RadioGroup";var Us={dark:{trackOff:"rgba(255,255,255,0.2)",trackOffBorder:"rgba(255,255,255,0.35)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#ffffff"},light:{trackOff:"rgba(0,0,0,0.12)",trackOffBorder:"rgba(0,0,0,0.22)",trackOn:"#FC4F00",trackOnBorder:"#FC4F00",thumb:"#ffffff",text:"#1a1a1a"}},Xs={sm:{trackW:32,trackH:20,thumb:14,offset:2,fontSize:"14px",gap:"8px"},md:{trackW:40,trackH:24,thumb:18,offset:2,fontSize:"16px",gap:"10px"},lg:{trackW:48,trackH:28,thumb:22,offset:2,fontSize:"18px",gap:"12px"}},Jr=({checked:e=false,onChange:t,label:o,disabled:n=false,size:r="md",className:a,style:l})=>{let s=A(),g=Us[s],b=Xs[r],c=useId(),d=()=>{n||t?.(!e);},i=1.5,u=2,m=b.trackW-i*2-b.thumb-u,p=e?m:0,R={width:b.trackW,height:b.trackH,borderRadius:b.trackH/2,backgroundColor:e?g.trackOn:g.trackOff,border:`${i}px solid ${e?g.trackOnBorder:g.trackOffBorder}`,position:"relative",cursor:n?"not-allowed":"pointer",transition:"background-color 0.2s ease, border-color 0.2s ease",flexShrink:0,opacity:n?.5:1,boxSizing:"border-box"},z={width:b.thumb,height:b.thumb,borderRadius:"50%",backgroundColor:g.thumb,position:"absolute",top:"50%",left:u,transform:`translateY(-50%) translateX(${p}px)`,transition:"transform 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"},h={fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,color:g.text,cursor:n?"not-allowed":"pointer",userSelect:"none",lineHeight:`${b.trackH}px`};return jsx("div",{style:{display:"inline-flex",alignItems:"center",...l},className:a,children:jsxs("label",{htmlFor:c,style:{display:"inline-flex",alignItems:"center",gap:b.gap,cursor:n?"not-allowed":"pointer"},onClick:S=>{S.preventDefault(),d();},children:[jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:n,onChange:()=>t?.(!e),style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"},"aria-checked":e}),jsx("span",{style:R,children:jsx("span",{style:z})}),o&&jsx("span",{style:h,children:o})]})})};Jr.displayName="Switch";var Qs={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",counter:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",counter:"#888888"}},el={sm:{padding:"6px 10px",fontSize:"14px"},md:{padding:"8px 12px",fontSize:"16px"},lg:{padding:"10px 14px",fontSize:"18px"}},ea=zn.forwardRef(({label:e,error:t,helperText:o,disabled:n,loading:r=false,size:a="md",fullWidth:l=false,required:s,rows:g=4,maxLength:b,resize:c="vertical",autoHeight:d=false,minRows:i,maxRows:u,className:f,style:m,value:p,onChange:R,onFocus:z,onBlur:h,...S},x)=>{let I=A(),v=Qs[I],E=el[a],y=useId(),D=S.id??y,[B,k]=useState(false),M=useRef(null),F=useCallback(()=>{let $=M.current;if(!$||!d)return;$.style.height="auto";let G=getComputedStyle($),X=parseFloat(G.lineHeight)||parseFloat(G.fontSize)*1.5,ee=parseFloat(G.paddingTop)||0,J=parseFloat(G.paddingBottom)||0,te=ee+J,be=X*(i??1)+te,we=u?X*u+te:1/0,Y=Math.min(Math.max($.scrollHeight,be),we);$.style.height=`${Y}px`,$.style.overflowY=$.scrollHeight>we?"auto":"hidden";},[d,i,u]);useEffect(()=>{F();},[p,F]);let w=useCallback($=>{M.current=$,typeof x=="function"?x($):x&&(x.current=$);},[x]),T=d?"none":c,L=d?i??1:g,N=n||r,C=!!t,P=typeof t=="string"?t:void 0,H=typeof p=="string"?p.length:0,W={backgroundColor:N?v.backgroundDisabled:v.background,border:`1px solid ${C?v.borderError:B?v.borderFocus:v.border}`,borderRadius:"8px",padding:E.padding,boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:N?.6:1,cursor:N?"not-allowed":"text"},V={width:"100%",minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:E.fontSize,lineHeight:"1.5",color:v.text,cursor:N?"not-allowed":"text",resize:T,boxSizing:"border-box",overflow:d?"hidden":void 0},q={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:v.label,userSelect:"none"},Z={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:l?"flex":"inline-flex",flexDirection:"column",gap:"6px",width:l?"100%":void 0,...m},className:f,children:[e&&jsxs("label",{htmlFor:D,style:q,children:[e,s&&jsx("span",{style:{color:v.borderError,marginLeft:"3px"},children:"*"})]}),jsx("div",{style:W,children:jsx("textarea",{ref:w,id:D,rows:L,maxLength:b,disabled:n,required:s,readOnly:r||S.readOnly,value:p,onChange:R,style:V,onFocus:$=>{k(true),z?.($);},onBlur:$=>{k(false),h?.($);},...S})}),jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[jsxs("div",{style:{flex:1},children:[P&&jsx("span",{style:{...Z,color:v.borderError},children:P}),!P&&o&&jsx("span",{style:{...Z,color:v.helperText},children:o})]}),b!==void 0&&jsxs("span",{style:{...Z,color:H>b?v.borderError:v.counter,flexShrink:0},children:[H,"/",b]})]})]})});ea.displayName="Textarea";var ol={dark:{trackBg:"rgba(255,255,255,0.15)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#ffffff",label:"#ffffff",valueBg:"rgba(3,3,3,0.75)"},light:{trackBg:"rgba(0,0,0,0.1)",trackFill:"#FC4F00",thumb:"#ffffff",thumbBorder:"#FC4F00",text:"#1a1a1a",label:"#1a1a1a",valueBg:"rgba(255,255,255,0.85)"}},nl={sm:{trackH:4,thumb:14,fontSize:"12px"},md:{trackH:6,thumb:18,fontSize:"14px"},lg:{trackH:8,thumb:22,fontSize:"16px"}};function na(e,t,o){return Math.min(Math.max(e,t),o)}function rl(e,t,o){return Math.round((e-t)/o)*o+t}var ra=({value:e,onChange:t,min:o=0,max:n=100,step:r=1,label:a,disabled:l=false,showValue:s=false,range:g=false,size:b="md",className:c,style:d})=>{let i=A(),u=ol[i],f=nl[b],m=useId(),p=useRef(null),R=useRef(null),z=g?e:[o,e],h=B=>(B-o)/(n-o)*100,S=h(z[0]),x=h(z[1]),I=useCallback(B=>{let k=p.current;if(!k)return o;let M=k.getBoundingClientRect(),F=na((B-M.left)/M.width,0,1),w=o+F*(n-o);return na(rl(w,o,r),o,n)},[o,n,r]),v=useCallback(B=>{if(l)return;B.preventDefault();let k=I(B.clientX);if(g){let w=e,T=Math.abs(k-w[0]),L=Math.abs(k-w[1]),N=T<=L?"start":"end";R.current=N;let C=N==="start"?[Math.min(k,w[1]),w[1]]:[w[0],Math.max(k,w[0])];t?.(C);}else R.current="end",t?.(k);let M=w=>{let T=I(w.clientX);if(g){let L=e;R.current==="start"?t?.([Math.min(T,L[1]),L[1]]):t?.([L[0],Math.max(T,L[0])]);}else t?.(T);},F=()=>{R.current=null,document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",F);};document.addEventListener("mousemove",M),document.addEventListener("mouseup",F);},[l,I,t,g,e]),E={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},y=g?`${z[0]} \u2013 ${z[1]}`:`${e}`,D={width:f.thumb,height:f.thumb,borderRadius:"50%",backgroundColor:u.thumb,border:`2px solid ${u.thumbBorder}`,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",cursor:l?"not-allowed":"grab",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",boxSizing:"border-box",zIndex:2};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",opacity:l?.5:1,...d},className:c,children:[(a||s)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a&&jsx("label",{htmlFor:m,style:E,children:a}),s&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,userSelect:"none"},children:y})]}),jsxs("div",{ref:p,role:"slider",id:m,"aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":g?void 0:e,"aria-disabled":l||void 0,onMouseDown:v,style:{position:"relative",width:"100%",height:f.thumb,cursor:l?"not-allowed":"pointer",touchAction:"none",userSelect:"none"},children:[jsx("div",{style:{position:"absolute",top:"50%",left:0,right:0,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackBg}}),jsx("div",{style:{position:"absolute",top:"50%",left:`${g?S:0}%`,width:`${x-(g?S:0)}%`,height:f.trackH,transform:"translateY(-50%)",borderRadius:f.trackH/2,backgroundColor:u.trackFill}}),g&&jsx("span",{style:{...D,left:`${S}%`}}),jsx("span",{style:{...D,left:`${x}%`}})]})]})};ra.displayName="Slider";var cl={dark:{border:"rgba(255,255,255,0.3)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(3,3,3,0.75)",backgroundDrag:"rgba(252,79,0,0.08)",backgroundDisabled:"rgba(3,3,3,0.4)",text:"#ffffff",textSecondary:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",fileText:"#ffffff",fileBg:"rgba(255,255,255,0.05)",removeColor:"#ACACAC",removeHover:"#EF3838"},light:{border:"rgba(0,0,0,0.2)",borderDrag:"#FC4F00",borderError:"#EF3838",background:"rgba(255,255,255,0.85)",backgroundDrag:"rgba(252,79,0,0.05)",backgroundDisabled:"rgba(240,240,240,0.6)",text:"#1a1a1a",textSecondary:"#888888",label:"#1a1a1a",helperText:"#888888",fileText:"#1a1a1a",fileBg:"rgba(0,0,0,0.03)",removeColor:"#888888",removeHover:"#EF3838"}};function bn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}var dl=0,ia=({variant:e="dropzone",onFiles:t,accept:o,multiple:n=false,maxSize:r,disabled:a=false,label:l,helperText:s,error:g,value:b,buttonStyle:c="default",showFileList:d=true,buttonLabel:i,className:u,style:f})=>{let m=A(),p=cl[m],R=useId(),z=useRef(null),[h,S]=useState(false),[x,I]=useState([]),[v,E]=useState(null),y=b!==void 0,D=y?b.map((C,P)=>({file:C,id:`controlled-${P}`})):x,B=!!g||!!v,k=typeof g=="string"?g:v??void 0,M=useCallback(C=>{let P=Array.from(C);if(E(null),r){let H=P.find(W=>W.size>r);if(H){E(`Soubor \u201E${H.name}" p\u0159ekra\u010Duje maxim\xE1ln\xED velikost ${bn(r)}.`);return}}if(y){let W=n?[...b||[],...P]:P;t?.(W);}else {let H=P.map(V=>({file:V,id:`file-${++dl}`})),W=n?[...x,...H]:H;I(W),t?.(W.map(V=>V.file));}},[y,b,x,r,n,t]),F=useCallback(C=>{C.preventDefault(),S(false),!a&&C.dataTransfer.files.length>0&&M(C.dataTransfer.files);},[a,M]),w=useCallback(C=>{if(y){let P=(b||[]).filter((H,W)=>`controlled-${W}`!==C);t?.(P);}else {let P=x.filter(H=>H.id!==C);I(P),t?.(P.map(H=>H.file));}},[y,b,x,t]),T={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:p.label,userSelect:"none"},L={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",padding:"24px",border:`2px dashed ${B?p.borderError:h?p.borderDrag:p.border}`,borderRadius:"8px",backgroundColor:h?p.backgroundDrag:a?p.backgroundDisabled:p.background,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:a?.5:1},N={fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal"};return jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",...f},className:u,children:[l&&jsx("span",{style:T,children:l}),jsx("input",{ref:z,id:R,type:"file",accept:o,multiple:n,disabled:a,onChange:C=>{C.target.files&&C.target.files.length>0&&M(C.target.files),C.target.value="";},style:{display:"none"}}),e==="dropzone"?jsxs("div",{style:L,onClick:()=>!a&&z.current?.click(),onDragOver:C=>{C.preventDefault(),a||S(true);},onDragLeave:()=>S(false),onDrop:F,children:[jsx(UploadSimple,{size:32,color:p.textSecondary}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:p.textSecondary,textAlign:"center",userSelect:"none"},children:"P\u0159et\xE1hn\u011Bte soubory nebo klikn\u011Bte"})]}):c==="primary"?jsxs("button",{type:"button",disabled:a,onClick:()=>!a&&z.current?.click(),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"8px 16px",borderRadius:"8px",border:"1px solid transparent",backgroundColor:"#FC4F00",color:"#ffffff",opacity:a?.5:1,cursor:a?"not-allowed":"pointer",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",transition:"background-color 0.15s ease",boxSizing:"border-box",outline:"none",maxWidth:"100%"},onMouseEnter:C=>{a||(C.currentTarget.style.backgroundColor="#FF6D2A");},onMouseLeave:C=>{C.currentTarget.style.backgroundColor="#FC4F00";},children:[jsx(UploadSimple,{size:16,color:"#ffffff",style:{flexShrink:0}}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Nahr\xE1t soubor":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)})]}):jsxs("div",{onClick:()=>!a&&z.current?.click(),style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 12px",borderRadius:"8px",border:`1px solid ${B?p.borderError:p.border}`,backgroundColor:a?p.backgroundDisabled:p.background,opacity:a?.5:1,cursor:a?"not-allowed":"pointer",transition:"border-color 0.15s ease",boxSizing:"border-box"},onMouseEnter:C=>{a||(C.currentTarget.style.borderColor=B?p.borderError:m==="dark"?"rgba(255,255,255,0.5)":"rgba(0,0,0,0.4)");},onMouseLeave:C=>{C.currentTarget.style.borderColor=B?p.borderError:p.border;},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:D.length>0?jsx(FileText,{size:18,color:p.textSecondary}):jsx(UploadSimple,{size:18,color:p.textSecondary})}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:D.length>0?p.text:p.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i||(D.length===0?"Vyberte soubor...":D.length===1?D[0].file.name:`${D.length} soubor\u016F`)}),D.length===1&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(D[0].file.size)}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:p.textSecondary},children:jsx(Folder,{size:16,color:p.textSecondary})})]}),d&&D.length>0&&jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:D.map(C=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:p.fileBg},children:[jsx(FileText,{size:24,color:p.textSecondary}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:p.fileText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:C.file.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:p.textSecondary,flexShrink:0},children:bn(C.file.size)}),jsx("span",{role:"button",tabIndex:0,"aria-label":`Odebrat ${C.file.name}`,onClick:P=>{P.stopPropagation(),w(C.id);},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&w(C.id);},style:{display:"flex",alignItems:"center",cursor:"pointer",padding:"2px",flexShrink:0},children:jsx(X,{size:14,color:p.removeColor})})]},C.id))}),k&&jsx("span",{style:{...N,color:p.borderError},children:k}),!k&&s&&jsx("span",{style:{...N,color:p.helperText},children:s})]})};ia.displayName="FileUpload";var fl={dark:{bg:"rgba(255,255,255,0.06)",border:"rgba(255,255,255,0.08)",text:"rgba(255,255,255,0.55)",textHover:"rgba(255,255,255,0.8)",textActive:"#ffffff",textDisabled:"rgba(255,255,255,0.25)",indicator:"#FC4F00",indicatorBorder:"rgba(255,255,255,0.05)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.3)"},light:{bg:"rgba(0,0,0,0.04)",border:"rgba(0,0,0,0.06)",text:"rgba(0,0,0,0.45)",textHover:"rgba(0,0,0,0.7)",textActive:"#ffffff",textDisabled:"rgba(0,0,0,0.2)",indicator:"#FC4F00",indicatorBorder:"rgba(0,0,0,0.03)",indicatorShadow:"0 1px 6px rgba(252,79,0,0.2)"}},gl={sm:{padding:"4px",itemPadding:"4px 10px",fontSize:"12px",borderRadius:"6px",itemRadius:"4px"},md:{padding:"4px",itemPadding:"6px 14px",fontSize:"13px",borderRadius:"8px",itemRadius:"6px"},lg:{padding:"5px",itemPadding:"8px 18px",fontSize:"14px",borderRadius:"10px",itemRadius:"7px"}},bl=({data:e,value:t,onChange:o,size:n="md",fullWidth:r=false,orientation:a="horizontal",disabled:l=false,className:s,style:g})=>{let b=A(),c=fl[b],d=gl[n],i=a==="vertical",u=e.map(S=>typeof S=="string"?{value:S,label:S}:S),f=u.findIndex(S=>S.value===t),m=useRef(null),p=useRef([]),[R,z]=useState({offset:0,size:0}),h=useCallback(()=>{let S=m.current,x=p.current[f];if(!S||!x||f<0)return;let I=S.getBoundingClientRect(),v=x.getBoundingClientRect();z(i?{offset:v.top-I.top,size:v.height}:{offset:v.left-I.left,size:v.width});},[f,i]);return useEffect(()=>{h();},[h,t,e,n]),useEffect(()=>(window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h]),jsxs("div",{ref:m,role:"radiogroup",className:s,style:{position:"relative",display:"inline-flex",width:r?"100%":void 0,flexDirection:i?"column":"row",backgroundColor:c.bg,border:`1px solid ${c.border}`,borderRadius:d.borderRadius,padding:d.padding,boxSizing:"border-box",opacity:l?.5:1,cursor:l?"not-allowed":void 0,...g},children:[f>=0&&R.size>0&&jsx("div",{"aria-hidden":"true",style:{position:"absolute",borderRadius:d.itemRadius,backgroundColor:c.indicator,border:`1px solid ${c.indicatorBorder}`,boxShadow:c.indicatorShadow,transition:"all 180ms cubic-bezier(0.16, 1, 0.3, 1)",pointerEvents:"none",zIndex:0,...i?{left:d.padding,right:d.padding,top:R.offset,height:R.size}:{top:d.padding,bottom:d.padding,left:R.offset,width:R.size}}}),u.map((S,x)=>{let I=S.value===t,v=l||S.disabled;return jsxs("button",{ref:E=>{p.current[x]=E;},type:"button",role:"radio","aria-checked":I,disabled:v,onClick:()=>{v||o(S.value);},style:{position:"relative",zIndex:1,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",flex:r?1:void 0,padding:d.itemPadding,border:"0 none",borderStyle:"none",outline:"none",borderRadius:d.itemRadius,backgroundColor:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:I?500:400,color:v?c.textDisabled:I?c.textActive:c.text,cursor:v?"not-allowed":"pointer",transition:"color 180ms ease",textAlign:"center",whiteSpace:"nowrap",userSelect:"none",lineHeight:"normal"},onMouseEnter:E=>{!v&&!I&&(E.currentTarget.style.color=c.textHover);},onMouseLeave:E=>{!v&&!I&&(E.currentTarget.style.color=c.text);},children:[S.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0},children:S.icon}),(S.label||!S.icon&&S.value)&&jsx("span",{children:S.label??S.value})]},S.value)})]})};bl.displayName="SegmentedControl";var yl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",popoverBg:"rgba(24,24,24,0.95)",popoverBorder:"rgba(255,255,255,0.12)",swatchBorder:"rgba(255,255,255,0.2)",swatchHover:"rgba(255,255,255,0.12)"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",popoverBg:"rgba(255,255,255,0.95)",popoverBorder:"rgba(0,0,0,0.1)",swatchBorder:"rgba(0,0,0,0.15)",swatchHover:"rgba(0,0,0,0.06)"}},yn=180,vl=["#FC4F00","#FF6D2A","#EF3838","#E8612D","#00A205","#2196F3","#9C27B0","#FF9800","#F44336","#4CAF50","#03A9F4","#E91E63","#FFC107","#8BC34A","#00BCD4","#673AB7","#795548","#607D8B","#000000","#ffffff"],vn=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),Sl=e=>{let t=e.replace(/[^0-9A-Fa-f#]/g,"");return t.startsWith("#")?t.slice(0,7):`#${t.slice(0,6)}`},kl=e=>{let t=e.replace("#",""),o=parseInt(t.length===3?t[0]+t[0]:t.slice(0,2),16),n=parseInt(t.length===3?t[1]+t[1]:t.slice(2,4),16),r=parseInt(t.length===3?t[2]+t[2]:t.slice(4,6),16);return (o*299+n*587+r*114)/1e3>150},Cl=({value:e,onChange:t,presets:o=vl,label:n,disabled:r=false,style:a,className:l})=>{let s=A(),g=yl[s],c=useId(),d=useRef(null),i=useRef(null),[u,f]=useState(false),[m,p]=useState(false),[R,z]=useState("idle"),[h,S]=useState(e),[x,I]=useState(false),[v,E]=useState({top:0,left:0,openAbove:false});useEffect(()=>{x||S(e);},[e,x]);let y=useCallback(()=>{r||(f(true),p(true),z("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>z("open"));}));},[r]),D=useCallback(()=>{f(false),z("closing");let P=setTimeout(()=>{p(false),z("idle");},yn);return ()=>clearTimeout(P)},[]),B=useCallback(()=>{if(!d.current)return;let P=d.current.getBoundingClientRect(),H=220,W=window.innerHeight-P.bottom-8,V=W<H&&P.top>W;E({top:V?P.top-8:P.bottom+8,left:P.left,openAbove:V});},[]);useEffect(()=>{if(m)return B(),window.addEventListener("scroll",B,true),window.addEventListener("resize",B),()=>{window.removeEventListener("scroll",B,true),window.removeEventListener("resize",B);}},[m,B]),useEffect(()=>{if(!u)return;let P=H=>{let W=H.target;!d.current?.contains(W)&&!i.current?.contains(W)&&D();};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[u,D]);let k=P=>{let H=Sl(P.target.value);S(H),vn(H)&&t(H);},M=()=>{I(false),vn(h)?t(h):S(e);},F=P=>{t(P),S(P),D();},w=()=>{let P=v.openAbove,H=P?"translateY(8px)":"translateY(-8px)",W=P?"translateY(6px)":"translateY(-6px)",V={transition:`opacity ${yn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${yn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return R==="opening"||R==="idle"?{...V,opacity:0,transform:`${H} scale(0.97)`}:R==="open"?{...V,opacity:1,transform:"translateY(0) scale(1)"}:{...V,opacity:0,transform:`${W} scale(0.98)`,pointerEvents:"none"}},T={display:"flex",alignItems:"center",gap:"10px",backgroundColor:r?g.backgroundDisabled:g.background,border:`1px solid ${x?g.borderFocus:g.border}`,borderRadius:"8px",padding:"8px 12px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"pointer"},L={width:"24px",height:"24px",borderRadius:"6px",backgroundColor:vn(e)?e:"#cccccc",border:`1px solid ${g.swatchBorder}`,flexShrink:0,cursor:r?"not-allowed":"pointer",transition:"transform 0.12s ease"},N={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:g.label,userSelect:"none"},C=m?createPortal(jsx("div",{ref:i,style:{position:"fixed",...v.openAbove?{bottom:window.innerHeight-v.top,left:v.left}:{top:v.top,left:v.left},backgroundColor:g.popoverBg,border:`1px solid ${g.popoverBorder}`,borderRadius:"12px",boxShadow:s==="dark"?"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset":"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,padding:"12px",boxSizing:"border-box",transformOrigin:v.openAbove?"bottom left":"top left",...w()},children:jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gap:"6px"},children:o.map((P,H)=>jsx("button",{type:"button","aria-label":`Vybrat barvu ${P}`,onClick:()=>F(P),style:{width:"32px",height:"32px",borderRadius:"6px",backgroundColor:P,border:P===e?"2px solid #FC4F00":`1px solid ${g.swatchBorder}`,cursor:"pointer",padding:0,transition:"transform 0.12s ease, border-color 0.12s ease",outline:"none"},onMouseEnter:W=>{W.currentTarget.style.transform="scale(1.1)";},onMouseLeave:W=>{W.currentTarget.style.transform="scale(1)";}},`${P}-${H}`))})}),document.body):null;return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...a},className:l,children:[n&&jsx("label",{htmlFor:c,style:N,children:n}),jsxs("div",{ref:d,style:T,children:[jsx("div",{style:L,onClick:()=>{r||(u?D():y());}}),jsx("input",{id:c,type:"text",value:h,onChange:k,onFocus:()=>I(true),onBlur:M,disabled:r,maxLength:7,style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"normal",color:g.text,cursor:r?"not-allowed":"text"}}),jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:g.placeholder,cursor:r?"not-allowed":"pointer"},onClick:()=>{r||(u?D():y());},children:jsx(Eyedropper,{size:16,color:(kl(e)&&s==="light",g.placeholder)})})]}),C]})};Cl.displayName="ColorPicker";var Fl={dark:{text:"#ffffff",label:"#ffffff",starFilled:"#FC4F00",starEmpty:"rgba(255,255,255,0.2)",starHover:"#FF6D2A"},light:{text:"#1a1a1a",label:"#1a1a1a",starFilled:"#FC4F00",starEmpty:"rgba(0,0,0,0.15)",starHover:"#FF6D2A"}},El={sm:{starSize:18,gap:"2px"},md:{starSize:24,gap:"4px"},lg:{starSize:32,gap:"6px"}},zl=({value:e,onChange:t,max:o=5,size:n="md",readOnly:r=false,label:a,style:l,className:s})=>{let g=A(),b=Fl[g],c=useId(),d=El[n],[i,u]=useState(null),f=!r&&!!t,m=useCallback(S=>{f&&t(S+1);},[f,t]),p=useCallback(S=>{f&&u(S);},[f]),R=useCallback(()=>{u(null);},[]),z={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:b.label,userSelect:"none"},h=Array.from({length:o},(S,x)=>{let I=i!==null?i+1:e,v=x<I,E=i!==null&&x<=i;return jsx("span",{role:f?"button":void 0,tabIndex:f?0:void 0,"aria-label":f?`Hodnocen\xED ${x+1} z ${o}`:void 0,onClick:()=>m(x),onMouseEnter:()=>p(x),onMouseLeave:R,onKeyDown:y=>{f&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),m(x));},style:{display:"inline-flex",cursor:f?"pointer":"default",transition:"transform 0.12s ease, color 0.12s ease",transform:E?"scale(1.15)":"scale(1)",outline:"none"},children:jsx(Star,{size:d.starSize,weight:v?"fill":"regular",color:v?E?b.starHover:b.starFilled:b.starEmpty})},x)});return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...l},className:s,role:"group","aria-label":a??"Hodnocen\xED",children:[a&&jsx("label",{htmlFor:c,style:z,children:a}),jsx("div",{style:{display:"flex",alignItems:"center",gap:d.gap},onMouseLeave:R,children:h})]})};zl.displayName="Rating";var Hl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",backgroundFilled:"rgba(3,3,3,0.85)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",borderFilled:"rgba(255,255,255,0.5)",text:"#ffffff",label:"#ffffff",caret:"#FC4F00"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",backgroundFilled:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",borderFilled:"rgba(0,0,0,0.35)",text:"#1a1a1a",label:"#1a1a1a",caret:"#FC4F00"}},Ll=({length:e=6,value:t,onChange:o,error:n,disabled:r=false,autoFocus:a=false,label:l,separatorAfter:s,separator:g="-",style:b,className:c})=>{let d=A(),i=Hl[d],u=useId(),f=useRef([]),[m,p]=useState(null),R=!!n,z=typeof n=="string"?n:void 0,h=t.padEnd(e,"").slice(0,e).split("");useEffect(()=>{a&&f.current[0]&&f.current[0].focus();},[a]);let S=useCallback(F=>{F>=0&&F<e&&f.current[F]?.focus();},[e]),x=useCallback(F=>{let w=F.join("").replace(/[^0-9]/g,"");o(w);},[o]),I=useCallback((F,w)=>{if(!/^[0-9]$/.test(w))return;let T=[...h];T[F]=w,x(T),F<e-1&&S(F+1);},[h,e,x,S]),v=useCallback((F,w)=>{switch(w.key){case "Backspace":if(w.preventDefault(),h[F]){let T=[...h];T[F]="",x(T);}else if(F>0){let T=[...h];T[F-1]="",x(T),S(F-1);}break;case "Delete":w.preventDefault();{let T=[...h];T[F]="",x(T);}break;case "ArrowLeft":w.preventDefault(),F>0&&S(F-1);break;case "ArrowRight":w.preventDefault(),F<e-1&&S(F+1);break}},[h,e,x,S]),E=useCallback((F,w)=>{let L=w.target.value.slice(-1);L&&/^[0-9]$/.test(L)&&I(F,L);},[I]),y=useCallback(F=>{F.preventDefault();let w=F.clipboardData.getData("text").replace(/[^0-9]/g,"").slice(0,e);if(!w)return;let T=[...h];for(let N=0;N<w.length;N++)T[N]=w[N];x(T);let L=Math.min(w.length,e-1);S(L);},[h,e,x,S]),D=useCallback(F=>{p(F),f.current[F]?.select();},[]),B=useCallback(()=>{p(null);},[]),k={fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},M=F=>{let w=m===F,T=!!h[F];return {width:"44px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontStyle:"normal",fontWeight:500,fontSize:"20px",lineHeight:"normal",color:i.text,textAlign:"center",backgroundColor:r?i.backgroundDisabled:T?i.backgroundFilled:i.background,border:`1px solid ${R?i.borderError:w?i.borderFocus:T?i.borderFilled:i.border}`,borderRadius:"8px",outline:"none",boxSizing:"border-box",transition:"border-color 0.15s ease, background-color 0.15s ease",opacity:r?.6:1,cursor:r?"not-allowed":"text",caretColor:i.caret}};return jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"6px",...b},className:c,children:[l&&jsx("label",{htmlFor:`${u}-0`,style:k,children:l}),jsx("div",{style:{display:"flex",gap:"8px",alignItems:"center"},onPaste:y,children:Array.from({length:e},(F,w)=>jsxs(zn.Fragment,{children:[s&&w>0&&w%s===0&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"20px",fontWeight:500,color:i.text,userSelect:"none",lineHeight:"normal",opacity:r?.6:.5,padding:"0 2px"},children:g}),jsx("input",{ref:T=>{f.current[w]=T;},id:`${u}-${w}`,type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:2,value:h[w]||"",onChange:T=>E(w,T),onKeyDown:T=>v(w,T),onFocus:()=>D(w),onBlur:B,disabled:r,"aria-label":`\u010C\xEDslice ${w+1} z ${e}`,style:M(w)})]},w))}),z&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:i.borderError,lineHeight:"normal"},children:z})]})};Ll.displayName="OTPInput";var Zl={dark:{background:"rgba(3,3,3,0.75)",backgroundDisabled:"rgba(3,3,3,0.4)",border:"rgba(255,255,255,0.3)",borderFocus:"rgba(255,255,255,0.7)",borderError:"#EF3838",text:"#ffffff",placeholder:"#ACACAC",label:"#ffffff",helperText:"#ACACAC",divider:"rgba(255,255,255,0.15)",dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",optionHover:"rgba(255,255,255,0.06)",optionSelected:"rgba(232,97,45,0.12)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.85)",backgroundDisabled:"rgba(240,240,240,0.6)",border:"rgba(0,0,0,0.2)",borderFocus:"rgba(0,0,0,0.6)",borderError:"#EF3838",text:"#1a1a1a",placeholder:"#888888",label:"#1a1a1a",helperText:"#888888",divider:"rgba(0,0,0,0.1)",dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",optionHover:"rgba(0,0,0,0.04)",optionSelected:"rgba(232,97,45,0.08)",optionSelectedText:"#E8612D",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Cn=180,Yl={sm:{padding:"6px 10px",fontSize:"14px",iconSize:14,gap:"8px",height:"32px"},md:{padding:"8px 12px",fontSize:"16px",iconSize:16,gap:"10px",height:"38px"},lg:{padding:"10px 14px",fontSize:"18px",iconSize:18,gap:"12px",height:"44px"}},Vl=[{code:"CZ",name:"\u010Cesko",dialCode:"+420",flag:"\u{1F1E8}\u{1F1FF}"},{code:"SK",name:"Slovensko",dialCode:"+421",flag:"\u{1F1F8}\u{1F1F0}"},{code:"DE",name:"N\u011Bmecko",dialCode:"+49",flag:"\u{1F1E9}\u{1F1EA}"},{code:"AT",name:"Rakousko",dialCode:"+43",flag:"\u{1F1E6}\u{1F1F9}"},{code:"PL",name:"Polsko",dialCode:"+48",flag:"\u{1F1F5}\u{1F1F1}"},{code:"HU",name:"Ma\u010Farsko",dialCode:"+36",flag:"\u{1F1ED}\u{1F1FA}"},{code:"GB",name:"Velk\xE1 Brit\xE1nie",dialCode:"+44",flag:"\u{1F1EC}\u{1F1E7}"},{code:"US",name:"USA",dialCode:"+1",flag:"\u{1F1FA}\u{1F1F8}"},{code:"FR",name:"Francie",dialCode:"+33",flag:"\u{1F1EB}\u{1F1F7}"},{code:"IT",name:"It\xE1lie",dialCode:"+39",flag:"\u{1F1EE}\u{1F1F9}"},{code:"ES",name:"\u0160pan\u011Blsko",dialCode:"+34",flag:"\u{1F1EA}\u{1F1F8}"},{code:"NL",name:"Nizozemsko",dialCode:"+31",flag:"\u{1F1F3}\u{1F1F1}"},{code:"BE",name:"Belgie",dialCode:"+32",flag:"\u{1F1E7}\u{1F1EA}"},{code:"CH",name:"\u0160v\xFDcarsko",dialCode:"+41",flag:"\u{1F1E8}\u{1F1ED}"},{code:"SE",name:"\u0160v\xE9dsko",dialCode:"+46",flag:"\u{1F1F8}\u{1F1EA}"},{code:"NO",name:"Norsko",dialCode:"+47",flag:"\u{1F1F3}\u{1F1F4}"},{code:"DK",name:"D\xE1nsko",dialCode:"+45",flag:"\u{1F1E9}\u{1F1F0}"},{code:"FI",name:"Finsko",dialCode:"+358",flag:"\u{1F1EB}\u{1F1EE}"},{code:"PT",name:"Portugalsko",dialCode:"+351",flag:"\u{1F1F5}\u{1F1F9}"},{code:"IE",name:"Irsko",dialCode:"+353",flag:"\u{1F1EE}\u{1F1EA}"},{code:"RO",name:"Rumunsko",dialCode:"+40",flag:"\u{1F1F7}\u{1F1F4}"},{code:"BG",name:"Bulharsko",dialCode:"+359",flag:"\u{1F1E7}\u{1F1EC}"},{code:"HR",name:"Chorvatsko",dialCode:"+385",flag:"\u{1F1ED}\u{1F1F7}"},{code:"SI",name:"Slovinsko",dialCode:"+386",flag:"\u{1F1F8}\u{1F1EE}"},{code:"UA",name:"Ukrajina",dialCode:"+380",flag:"\u{1F1FA}\u{1F1E6}"},{code:"RU",name:"Rusko",dialCode:"+7",flag:"\u{1F1F7}\u{1F1FA}"},{code:"TR",name:"Turecko",dialCode:"+90",flag:"\u{1F1F9}\u{1F1F7}"},{code:"JP",name:"Japonsko",dialCode:"+81",flag:"\u{1F1EF}\u{1F1F5}"},{code:"CN",name:"\u010C\xEDna",dialCode:"+86",flag:"\u{1F1E8}\u{1F1F3}"},{code:"AU",name:"Austr\xE1lie",dialCode:"+61",flag:"\u{1F1E6}\u{1F1FA}"}];function Ul(e,t){return [...t].sort((n,r)=>r.dialCode.length-n.dialCode.length).find(n=>e.startsWith(n.dialCode))}var Xl=({value:e="",onChange:t,defaultCountry:o="CZ",countries:n,label:r,error:a,helperText:l,disabled:s=false,size:g="md",placeholder:b="123 456 789",style:c,className:d})=>{let i=A(),u=Zl[i],f=Yl[g],m=useId(),p=n||Vl,R=useRef(null),z=useRef(null),h=useRef(null),S=useRef(null),[x,I]=useState(false),[v,E]=useState(false),[y,D]=useState(false),[B,k]=useState("idle"),[M,F]=useState(""),[w,T]=useState(-1),[L,N]=useState({top:0,left:0,width:0,openAbove:false}),C=!!a,P=typeof a=="string"?a:void 0,H=useMemo(()=>{if(e){let Y=Ul(e,p);if(Y)return Y}return p.find(Y=>Y.code===o)||p[0]},[e,p,o]),W=useMemo(()=>!e||!H?"":e.startsWith(H.dialCode)?e.slice(H.dialCode.length):e.replace(/^\+\d+/,""),[e,H]),V=useMemo(()=>{if(!M)return p;let Y=M.toLowerCase();return p.filter(j=>j.name.toLowerCase().includes(Y)||j.dialCode.includes(Y)||j.code.toLowerCase().includes(Y))},[p,M]),q=useCallback(()=>{E(true),D(true),k("opening"),F(""),T(-1);let Y=setTimeout(()=>{k("open"),S.current?.focus();},10);return ()=>clearTimeout(Y)},[]),Z=useCallback(()=>{E(false),k("closing");let Y=setTimeout(()=>{D(false),k("idle");},Cn);return ()=>clearTimeout(Y)},[]),$=useCallback(()=>{if(!R.current)return;let Y=R.current.getBoundingClientRect(),j=z.current?.offsetHeight??300,ie=window.innerHeight-Y.bottom-6,Me=Y.top-6,Je=ie<j&&Me>ie;N({top:Je?Y.top-6:Y.bottom+6,left:Y.left,width:Math.max(Y.width,280),openAbove:Je});},[]);useEffect(()=>{if(y)return $(),window.addEventListener("scroll",$,true),window.addEventListener("resize",$),()=>{window.removeEventListener("scroll",$,true),window.removeEventListener("resize",$);}},[y,$]),useEffect(()=>{if(!v)return;let Y=j=>{let ie=j.target;!R.current?.contains(ie)&&!z.current?.contains(ie)&&Z();};return document.addEventListener("mousedown",Y),()=>document.removeEventListener("mousedown",Y)},[v,Z]);let G=useCallback(Y=>{let j=Y.dialCode+W;t?.(j),Z(),h.current?.focus();},[W,t,Z]),X=Y=>{let j=Y.target.value.replace(/[^0-9\s]/g,"");t?.(H.dialCode+j);},ee=Y=>{let j=Y.clipboardData.getData("text").trim();j.startsWith("+")&&(Y.preventDefault(),t?.(j.replace(/[^0-9+]/g,"")));},J=Y=>{switch(Y.key){case "ArrowDown":Y.preventDefault(),T(j=>Math.min(j+1,V.length-1));break;case "ArrowUp":Y.preventDefault(),T(j=>Math.max(j-1,0));break;case "Enter":Y.preventDefault(),w>=0&&V[w]&&G(V[w]);break;case "Escape":Y.preventDefault(),Z(),h.current?.focus();break}},te=()=>{let Y=L.openAbove,j=Y?"translateY(8px)":"translateY(-8px)",ie=Y?"translateY(6px)":"translateY(-6px)",Me={transition:`opacity ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Cn}ms cubic-bezier(0.16, 1, 0.3, 1)`};return B==="opening"||B==="idle"?{...Me,opacity:0,transform:`${j} scale(0.97)`}:B==="open"?{...Me,opacity:1,transform:"translateY(0) scale(1)"}:{...Me,opacity:0,transform:`${ie} scale(0.98)`,pointerEvents:"none"}},re={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:u.label,userSelect:"none"},be={display:"flex",alignItems:"center",backgroundColor:s?u.backgroundDisabled:u.background,border:`1px solid ${C?u.borderError:x?u.borderFocus:u.border}`,borderRadius:"8px",boxSizing:"border-box",transition:"border-color 0.15s ease",opacity:s?.6:1,overflow:"hidden"},we=y?createPortal(jsxs("div",{ref:z,style:{position:"fixed",...L.openAbove?{bottom:window.innerHeight-L.top,left:L.left}:{top:L.top,left:L.left},width:L.width,backgroundColor:u.dropdownBg,border:`1px solid ${u.dropdownBorder}`,borderRadius:"12px",boxShadow:u.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",transformOrigin:L.openAbove?"bottom center":"top center",...te()},onKeyDown:J,children:[jsx("div",{style:{padding:"8px",borderBottom:`1px solid ${u.divider}`},children:jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"6px",backgroundColor:i==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"},children:[jsx(MagnifyingGlass,{size:14,color:u.placeholder}),jsx("input",{ref:S,type:"text",value:M,onChange:Y=>{F(Y.target.value),T(0);},placeholder:"Hledat...",style:{flex:1,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.text}})]})}),jsxs("div",{style:{maxHeight:240,overflowY:"auto",padding:"4px"},children:[V.length===0&&jsx("div",{style:{padding:"16px",textAlign:"center",fontSize:"13px",color:u.placeholder,fontFamily:"'Zalando Sans', sans-serif"},children:"\u017D\xE1dn\xE9 v\xFDsledky"}),V.map((Y,j)=>{let ie=Y.code===H.code;return jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"8px 10px",borderRadius:"6px",cursor:"pointer",backgroundColor:j===w?u.optionHover:ie?u.optionSelected:"transparent",transition:"background-color 0.12s ease",marginBottom:"1px"},onClick:()=>G(Y),onMouseEnter:()=>T(j),onMouseLeave:()=>T(-1),children:[jsx("span",{style:{fontSize:"18px",flexShrink:0},children:Y.flag}),jsx("span",{style:{flex:1,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:ie?u.optionSelectedText:u.text,fontWeight:ie?500:400},children:Y.name}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",color:u.placeholder,flexShrink:0},children:Y.dialCode})]},Y.code)})]})]}),document.body):null;return jsxs("div",{className:d,style:{display:"inline-flex",flexDirection:"column",gap:"6px",...c},children:[r&&jsx("label",{htmlFor:m,style:re,children:r}),jsxs("div",{ref:R,style:be,children:[jsxs("button",{type:"button",disabled:s,onClick:()=>{s||(v?Z():q());},style:{display:"flex",alignItems:"center",gap:"4px",padding:f.padding,paddingRight:"8px",border:"none",background:"transparent",cursor:s?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,flexShrink:0,outline:"none"},children:[jsx("span",{style:{fontSize:g==="sm"?"14px":"18px"},children:H.flag}),jsx("span",{style:{fontSize:"13px",color:u.placeholder},children:H.dialCode}),jsx(CaretDown,{size:12,color:u.placeholder,style:{transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}),jsx("div",{style:{width:"1px",height:"60%",backgroundColor:u.divider,flexShrink:0}}),jsx("input",{ref:h,id:m,type:"tel",value:W,onChange:X,onPaste:ee,onFocus:()=>I(true),onBlur:()=>I(false),placeholder:b,disabled:s,style:{flex:1,minWidth:0,border:"none",outline:"none",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:f.fontSize,color:u.text,padding:f.padding,paddingLeft:"8px"}})]}),P&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.borderError,lineHeight:"normal"},children:P}),!P&&l&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",color:u.helperText,lineHeight:"normal"},children:l}),we]})};Xl.displayName="PhoneInput";var jl={dark:{overlayBg:"rgba(0,0,0,0.6)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.3)",actionBarBg:"rgba(24,24,24,0.95)",actionBarBorder:"rgba(255,255,255,0.1)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",text:"#ffffff",textSecondary:"#ACACAC",containerBg:"rgba(3,3,3,0.75)",containerBorder:"rgba(255,255,255,0.08)"},light:{overlayBg:"rgba(0,0,0,0.4)",cropBorder:"#ffffff",handleBg:"#ffffff",handleBorder:"rgba(0,0,0,0.2)",actionBarBg:"rgba(255,255,255,0.95)",actionBarBorder:"rgba(0,0,0,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",containerBg:"rgba(255,255,255,0.85)",containerBorder:"rgba(0,0,0,0.08)"}},Rn=10;function Fo(e,t,o){return Math.max(t,Math.min(o,e))}var Kl=({src:e,onCrop:t,onCancel:o,aspectRatio:n,minWidth:r=50,minHeight:a=50,shape:l="rect",style:s,className:g})=>{let b=A(),c=jl[b],d=useRef(null),i=useRef(null),[u,f]=useState(""),[m,p]=useState(false),[R,z]=useState({natural:{w:0,h:0},display:{w:0,h:0},offset:{x:0,y:0}}),[h,S]=useState({x:0,y:0,width:0,height:0}),[x,I]=useState(null),v=l==="circle"?1:n;useEffect(()=>{if(e instanceof File){let w=URL.createObjectURL(e);return f(w),()=>URL.revokeObjectURL(w)}else f(e);},[e]);let E=useCallback(()=>{let w=d.current,T=i.current;if(!w||!T||!T.naturalWidth)return;let L=w.clientWidth,N=w.clientHeight,C=T.naturalWidth,P=T.naturalHeight,H=Math.min(L/C,N/P),W=C*H,V=P*H,q=(L-W)/2,Z=(N-V)/2;z({natural:{w:C,h:P},display:{w:W,h:V},offset:{x:q,y:Z}});let $=W*.8,G=V*.8,X,ee;v?$/v<=G?(X=$,ee=$/v):(ee=G,X=G*v):(X=$,ee=G),X=Math.max(X,r),ee=Math.max(ee,a),S({x:q+(W-X)/2,y:Z+(V-ee)/2,width:X,height:ee});},[v,r,a]),y=()=>{p(true),E();};useEffect(()=>(window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)),[E]);let D=w=>"touches"in w?{x:w.touches[0].clientX,y:w.touches[0].clientY}:{x:w.clientX,y:w.clientY};useEffect(()=>{if(!x)return;let{display:{w,h:T},offset:{x:L,y:N}}=R,C=H=>{H.preventDefault();let W=D(H);if(!d.current?.getBoundingClientRect())return;let q=W.x-x.startX,Z=W.y-x.startY,$=x.startCrop,G={...$};if(x.type==="move")G.x=Fo($.x+q,L,L+w-$.width),G.y=Fo($.y+Z,N,N+T-$.height);else {let X=$.x,ee=$.y,J=$.width,te=$.height,re=x.type;re.includes("e")&&(J=Math.max(r,$.width+q)),re.includes("w")&&(J=Math.max(r,$.width-q),X=$.x+$.width-J),re.includes("s")&&(te=Math.max(a,$.height+Z)),re.includes("n")&&(te=Math.max(a,$.height-Z),ee=$.y+$.height-te),v&&(re==="n"||re==="s"?(J=te*v,X=$.x+($.width-J)/2):re==="e"||re==="w"?(te=J/v,ee=$.y+($.height-te)/2):(te=J/v,re.includes("n")&&(ee=$.y+$.height-te))),X=Fo(X,L,L+w-J),ee=Fo(ee,N,N+T-te),J=Math.min(J,L+w-X),te=Math.min(te,N+T-ee),G={x:X,y:ee,width:J,height:te};}S(G);},P=()=>I(null);return document.addEventListener("mousemove",C),document.addEventListener("mouseup",P),document.addEventListener("touchmove",C,{passive:false}),document.addEventListener("touchend",P),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",P);}},[x,R,v,r,a]);let B=(w,T)=>{T.preventDefault(),T.stopPropagation();let L="touches"in T?{x:T.touches[0].clientX,y:T.touches[0].clientY}:{x:T.clientX,y:T.clientY};I({type:w,startX:L.x,startY:L.y,startCrop:{...h}});},k=useCallback(()=>{let w=i.current;if(!w||!R.display.w)return;let T=R.natural.w/R.display.w,L=(h.x-R.offset.x)*T,N=(h.y-R.offset.y)*T,C=h.width*T,P=h.height*T,H=document.createElement("canvas");H.width=C,H.height=P;let W=H.getContext("2d");W&&(l==="circle"&&(W.beginPath(),W.arc(C/2,P/2,C/2,0,Math.PI*2),W.clip()),W.drawImage(w,L,N,C,P,0,0,C,P),H.toBlob(V=>{V&&t(V);},"image/png"));},[h,R,l,t]),M=useMemo(()=>{return [{type:"nw",cursor:"nwse-resize",style:{left:-5,top:-5}},{type:"ne",cursor:"nesw-resize",style:{right:-5,top:-5}},{type:"sw",cursor:"nesw-resize",style:{left:-5,bottom:-5}},{type:"se",cursor:"nwse-resize",style:{right:-5,bottom:-5}},{type:"n",cursor:"ns-resize",style:{left:"50%",top:-5,marginLeft:-5}},{type:"s",cursor:"ns-resize",style:{left:"50%",bottom:-5,marginLeft:-5}},{type:"w",cursor:"ew-resize",style:{left:-5,top:"50%",marginTop:-5}},{type:"e",cursor:"ew-resize",style:{right:-5,top:"50%",marginTop:-5}}]},[]),F={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease",boxSizing:"border-box",outline:"none"};return jsxs("div",{className:g,style:{display:"flex",flexDirection:"column",backgroundColor:c.containerBg,border:`1px solid ${c.containerBorder}`,borderRadius:"12px",overflow:"hidden",fontFamily:"'Zalando Sans', sans-serif",...s},children:[jsxs("div",{ref:d,style:{position:"relative",width:"100%",minHeight:"300px",maxHeight:"500px",overflow:"hidden",cursor:x?x.type==="move"?"grabbing":`${x.type}-resize`:"default",userSelect:"none",backgroundColor:"#000"},children:[u&&jsx("img",{ref:i,src:u,crossOrigin:"anonymous",onLoad:y,style:{position:"absolute",top:R.offset.y,left:R.offset.x,width:R.display.w||"100%",height:R.display.h||"100%",objectFit:"contain",pointerEvents:"none"},alt:""}),m&&jsxs(Fragment,{children:[jsx("div",{style:{position:"absolute",top:0,left:0,right:0,height:h.y,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y+h.height,left:0,right:0,bottom:0,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y,left:0,width:h.x,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:h.y,left:h.x+h.width,right:0,height:h.height,backgroundColor:c.overlayBg,pointerEvents:"none"}}),jsxs("div",{style:{position:"absolute",left:h.x,top:h.y,width:h.width,height:h.height,border:`2px dashed ${c.cropBorder}`,borderRadius:l==="circle"?"50%":"0",cursor:"grab",boxSizing:"border-box"},onMouseDown:w=>B("move",w),onTouchStart:w=>B("move",w),children:[jsx("div",{style:{position:"absolute",left:"33.33%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",left:"66.66%",top:0,bottom:0,width:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"33.33%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),jsx("div",{style:{position:"absolute",top:"66.66%",left:0,right:0,height:"1px",backgroundColor:"rgba(255,255,255,0.3)",pointerEvents:"none"}}),M.map(w=>jsx("div",{style:{position:"absolute",width:Rn,height:Rn,backgroundColor:c.handleBg,border:`1px solid ${c.handleBorder}`,borderRadius:"2px",cursor:w.cursor,zIndex:2,...w.style},onMouseDown:T=>B(w.type,T),onTouchStart:T=>B(w.type,T)},w.type))]})]})]}),jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"10px",padding:"12px 16px",backgroundColor:c.actionBarBg,borderTop:`1px solid ${c.actionBarBorder}`,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[o&&jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonSecondaryBg,color:c.buttonSecondaryText,border:`1px solid ${c.buttonSecondaryBorder}`},onClick:o,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonSecondaryBg;},children:[jsx(X,{size:14}),"Zru\u0161it"]}),jsxs("button",{type:"button",style:{...F,backgroundColor:c.buttonPrimary,color:c.buttonPrimaryText,border:"1px solid transparent"},onClick:k,onMouseEnter:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimaryHover;},onMouseLeave:w=>{w.currentTarget.style.backgroundColor=c.buttonPrimary;},children:[jsx(Crop,{size:14}),"O\u0159\xEDznout"]})]})]})};Kl.displayName="ImageCropper";var Ql={dark:{base:"rgba(255,255,255,0.06)",shimmer:"rgba(255,255,255,0.13)"},light:{base:"rgba(0,0,0,0.06)",shimmer:"rgba(0,0,0,0.11)"}},xa="smSkeletonShimmer",ec=`@keyframes ${xa}{0%{background-position:100% 0}100%{background-position:-100% 0}}`,ve=({variant:e="text",width:t,height:o,lines:n=1,animate:r=true,className:a,style:l})=>{let s=A(),g=Ql[s],b=t??(e==="circle"?40:"100%"),c=o??(e==="circle"?40:e==="text"?"1em":100),d={backgroundColor:g.base,backgroundImage:r?`linear-gradient(90deg, ${g.base} 25%, ${g.shimmer} 50%, ${g.base} 75%)`:void 0,backgroundSize:r?"200% 100%":void 0,animation:r?`${xa} 1.5s ease-in-out infinite`:void 0,borderRadius:e==="circle"?"50%":"6px",width:typeof b=="number"?`${b}px`:b,height:typeof c=="number"?`${c}px`:c},i=r?jsx("style",{dangerouslySetInnerHTML:{__html:ec}}):null;return e==="text"&&n>1?jsxs("div",{className:a,style:{display:"flex",flexDirection:"column",gap:"8px",...l},children:[i,Array.from({length:n}).map((u,f)=>jsx("div",{style:{...d,width:f===n-1?"75%":d.width}},f))]}):jsxs(Fragment,{children:[i,jsx("div",{className:a,style:{...d,...l}})]})};ve.displayName="Skeleton";var nc={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",rowHover:"rgba(255,255,255,0.04)",stripedBg:"rgba(255,255,255,0.06)",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",rowHover:"rgba(0,0,0,0.03)",stripedBg:"rgba(0,0,0,0.04)",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)"}},rc=({columns:e,data:t,loading:o=false,emptyText:n="\u017D\xE1dn\xE1 data",onSort:r,sortKey:a,sortDirection:l,striped:s=false,hoverable:g=true,onRowClick:b,rowActions:c,className:d,style:i})=>{let u=A(),f=nc[u],m=S=>{if(!S.sortable||!r)return;let x=a===S.key&&l==="asc"?"desc":"asc";r(S.key,x);},p={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,backgroundColor:f.background,border:`1px solid ${f.border}`,borderRadius:"12px",overflow:"hidden",...i},R=S=>({padding:"12px 16px",textAlign:"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:f.textSecondary,backgroundColor:f.headerBg,borderBottom:`1px solid ${f.border}`,whiteSpace:"nowrap",cursor:S.sortable?"pointer":"default",userSelect:"none",width:S.width!=null?typeof S.width=="number"?`${S.width}px`:S.width:void 0}),z={padding:"10px 16px",borderBottom:`1px solid ${f.border}`,lineHeight:"normal"};return jsxs("table",{className:d,style:p,children:[jsx("thead",{children:jsxs("tr",{children:[e.map(S=>jsx("th",{style:R(S),onClick:()=>m(S),children:jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[S.header,S.sortable&&jsx(CaretUpDownIcon,{size:14,color:a===S.key?f.sortActive:f.sortInactive,style:{flexShrink:0,marginLeft:"4px"}})]})},S.key)),c&&jsx("th",{style:{...R({sortable:false}),width:"auto"}})]})}),jsx("tbody",{children:o?Array.from({length:5}).map((S,x)=>jsx("tr",{children:e.map(I=>jsx("td",{style:z,children:jsx(ve,{variant:"text",width:"80%"})},I.key))},`skel-${x}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length,style:{...z,textAlign:"center",padding:"32px 16px",color:f.textSecondary,borderBottom:"none"},children:n})}):t.map((S,x)=>jsxs("tr",{style:{backgroundColor:s&&x%2===1?f.stripedBg:"transparent",transition:"background-color 0.12s ease",cursor:b?"pointer":"default"},onClick:I=>{b&&!I.target.closest("[data-no-row-click]")&&b(S,x);},onMouseEnter:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=f.rowHover);},onMouseLeave:I=>{(g||b)&&(I.currentTarget.style.backgroundColor=s&&x%2===1?f.stripedBg:"transparent");},children:[e.map(I=>jsx("td",{style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom},children:I.render?I.render(S[I.key],S,x):S[I.key]},I.key)),c&&jsx("td",{"data-no-row-click":true,style:{...z,borderBottom:x===t.length-1?"none":z.borderBottom,textAlign:"right",whiteSpace:"nowrap"},onClick:I=>I.stopPropagation(),children:c(S)})]},x))})]})};rc.displayName="Table";var ic={dark:{background:"rgba(3,3,3,0.75)",headerBg:"rgba(255,255,255,0.04)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",rowHover:"rgba(255,255,255,0.04)",selectedRowBg:"rgba(252,79,0,0.06)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"},light:{background:"rgba(255,255,255,0.85)",headerBg:"rgba(0,0,0,0.02)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",rowHover:"rgba(0,0,0,0.03)",selectedRowBg:"rgba(252,79,0,0.04)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff"}},va=({checked:e,indeterminate:t,onChange:o,t:n})=>{let r=e||t;return jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:a=>{a.stopPropagation(),o();},onKeyDown:a=>{(a.key===" "||a.key==="Enter")&&(a.preventDefault(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"16px",height:"16px",borderRadius:"4px",border:`1.5px solid ${r?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:r?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("path",{d:"M2 5L4.2 7.5L8 2.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:jsx("line",{x1:"2",y1:"5",x2:"8",y2:"5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]})},sc=({columns:e,data:t,selectable:o=false,onSelectionChange:n,loading:r=false,rowKey:a="id",onRowClick:l,stickyHeader:s=false,emptyText:g="\u017D\xE1dn\xE1 data",style:b,className:c})=>{let d=A(),i=ic[d],[u,f]=useState(new Set),[m,p]=useState(null),R=useMemo(()=>t.map(k=>String(k[a])),[t,a]),z=R.length>0&&R.every(k=>u.has(k)),h=R.some(k=>u.has(k))&&!z,S=useCallback(()=>{let k=z?new Set:new Set(R);f(k),n?.(Array.from(k));},[z,R,n]),x=useCallback(k=>{f(M=>{let F=new Set(M);return F.has(k)?F.delete(k):F.add(k),n?.(Array.from(F)),F});},[n]),I={width:"100%",borderCollapse:"separate",borderSpacing:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.text,backgroundColor:i.background},v=k=>({padding:"12px 16px",textAlign:k.align||"left",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.03em",color:i.textSecondary,backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,whiteSpace:"nowrap",userSelect:"none",width:k.width!=null?typeof k.width=="number"?`${k.width}px`:k.width:void 0,minWidth:k.minWidth!=null?`${k.minWidth}px`:void 0,...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}}),E=k=>({padding:"10px 16px",borderBottom:`1px solid ${i.border}`,lineHeight:"normal",textAlign:k.align||"left"}),y={padding:"12px 12px 12px 16px",backgroundColor:i.headerBg,borderBottom:`1px solid ${i.border}`,width:"40px",...s?{position:"sticky",top:0,zIndex:2,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{}},D={padding:"10px 12px 10px 16px",borderBottom:`1px solid ${i.border}`,width:"40px"};return jsx("div",{className:c,style:{overflow:s?"auto":"hidden",borderRadius:"12px",border:`1px solid ${i.border}`,...b},children:jsxs("table",{style:I,children:[jsx("thead",{children:jsxs("tr",{children:[o&&jsx("th",{style:y,children:jsx(va,{checked:z,indeterminate:h,onChange:S,t:i})}),e.map(k=>jsx("th",{style:v(k),children:k.header},k.key))]})}),jsx("tbody",{children:r?Array.from({length:5}).map((k,M)=>jsxs("tr",{children:[o&&jsx("td",{style:D,children:jsx(ve,{variant:"rect",width:16,height:16})}),e.map(F=>jsx("td",{style:E(F),children:jsx(ve,{variant:"text",width:"80%"})},F.key))]},`skel-${M}`)):t.length===0?jsx("tr",{children:jsx("td",{colSpan:e.length+(o?1:0),style:{textAlign:"center",padding:"32px 16px",color:i.textSecondary,borderBottom:"none"},children:g})}):t.map((k,M)=>{let F=String(k[a]),w=u.has(F),T=m===F,L=M===t.length-1,N="transparent";return w?N=i.selectedRowBg:T&&(N=i.rowHover),jsxs("tr",{style:{backgroundColor:N,cursor:l?"pointer":"default",transition:"background-color 0.12s ease"},onMouseEnter:()=>p(F),onMouseLeave:()=>p(null),onClick:()=>l?.(k),children:[o&&jsx("td",{style:{...D,borderBottom:L?"none":D.borderBottom},children:jsx(va,{checked:w,onChange:()=>x(F),t:i})}),e.map(C=>jsx("td",{style:{...E(C),borderBottom:L?"none":E(C).borderBottom},children:C.render?C.render(k[C.key],k,M):k[C.key]},C.key))]},F)})})]})})};sc.displayName="DataGrid";var pc={dark:{cardBg:"rgba(3,3,3,0.75)",cardBorder:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",headerBg:"rgba(255,255,255,0.04)",divider:"rgba(255,255,255,0.08)",hover:"rgba(255,255,255,0.04)",selectedBg:"rgba(252,79,0,0.06)",selectedBorder:"rgba(252,79,0,0.3)",checkboxBorder:"rgba(255,255,255,0.3)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(255,255,255,0.25)",sortChipBg:"rgba(255,255,255,0.06)",sortChipActiveBg:"rgba(232,97,45,0.12)",emptyBg:"rgba(3,3,3,0.75)"},light:{cardBg:"rgba(255,255,255,0.85)",cardBorder:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",headerBg:"rgba(0,0,0,0.02)",divider:"rgba(0,0,0,0.06)",hover:"rgba(0,0,0,0.03)",selectedBg:"rgba(252,79,0,0.04)",selectedBorder:"rgba(252,79,0,0.25)",checkboxBorder:"rgba(0,0,0,0.25)",checkboxCheckedBg:"#FC4F00",checkboxCheckedBorder:"#FC4F00",checkboxCheck:"#ffffff",sortActive:"#E8612D",sortInactive:"rgba(0,0,0,0.2)",sortChipBg:"rgba(0,0,0,0.04)",sortChipActiveBg:"rgba(232,97,45,0.08)",emptyBg:"rgba(255,255,255,0.85)"}},ka=({checked:e,indeterminate:t,onChange:o,t:n})=>jsxs("span",{role:"checkbox","aria-checked":t?"mixed":e,tabIndex:0,onClick:r=>{r.stopPropagation(),o();},onKeyDown:r=>{(r.key===" "||r.key==="Enter")&&(r.preventDefault(),r.stopPropagation(),o());},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",borderRadius:"4px",border:`1.5px solid ${e||t?n.checkboxCheckedBorder:n.checkboxBorder}`,backgroundColor:e||t?n.checkboxCheckedBg:"transparent",cursor:"pointer",flexShrink:0,transition:"all 0.12s ease"},children:[e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t&&!e&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:jsx("path",{d:"M3 6H9",stroke:n.checkboxCheck,strokeWidth:"1.5",strokeLinecap:"round"})})]}),uc=({columns:e,data:t,primaryKey:o,rowKey:n="id",selectable:r=false,selectedIds:a,onSelectionChange:l,onCardClick:s,onSort:g,sortKey:b,sortDirection:c,loading:d=false,skeletonCount:i=3,emptyText:u="\u017D\xE1dn\xE1 data",emptyContent:f,gap:m=12,cardActions:p,style:R,className:z})=>{let h=A(),S=pc[h],[x,I]=useState(new Set),[v,E]=useState(null),y=a!==void 0,D=useMemo(()=>y?new Set(a):x,[y,a,x]),B=useMemo(()=>e.find(C=>C.primary)||(o?e.find(C=>C.key===o):void 0),[e,o]),k=useMemo(()=>e.filter(C=>!C.hidden&&C!==B),[e,B]),M=useMemo(()=>e.filter(C=>C.sortable),[e]),F=useCallback(C=>{let P=new Set(D);P.has(C)?P.delete(C):P.add(C),y||I(P),l?.(Array.from(P));},[D,y,l]),w=useCallback(()=>{let C=t.map(W=>String(W[n])),H=C.every(W=>D.has(W))?new Set:new Set(C);y||I(H),l?.(Array.from(H));},[t,n,D,y,l]),T=t.length>0&&t.every(C=>D.has(String(C[n]))),L=t.some(C=>D.has(String(C[n])))&&!T,N=useCallback(C=>{if(!g)return;g(C,b===C&&c==="asc"?"desc":"asc");},[g,b,c]);if(d){let C=k.length>0?k.length:3;return jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:Array.from({length:i}).map((P,H)=>jsxs("div",{style:{backgroundColor:S.cardBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",overflow:"hidden",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:[(B||r)&&jsxs("div",{style:{padding:"14px 16px",borderBottom:`1px solid ${S.divider}`,backgroundColor:S.headerBg,display:"flex",alignItems:"center",gap:"10px"},children:[r&&jsx(ve,{variant:"rect",width:18,height:18}),jsx(ve,{variant:"text",width:"45%",height:18})]}),Array.from({length:C}).map((W,V)=>jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px 16px",borderBottom:V<C-1?`1px solid ${S.divider}`:"none"},children:[jsx(ve,{variant:"text",width:70,height:12}),jsx(ve,{variant:"text",width:100,height:14})]},V)),p&&jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},children:[jsx(ve,{variant:"rect",width:64,height:30}),jsx(ve,{variant:"rect",width:64,height:30})]})]},H))})}return t.length===0?jsx("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,...R},children:jsx("div",{style:{backgroundColor:S.emptyBg,border:`1px solid ${S.cardBorder}`,borderRadius:"12px",padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:S.textSecondary,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:f??u})}):jsxs("div",{className:z,style:{display:"flex",flexDirection:"column",gap:`${m}px`,fontFamily:"'Zalando Sans', sans-serif",...R},children:[(r||M.length>0)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap",padding:"4px 0"},children:[r&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginRight:"4px"},children:[jsx(ka,{checked:T,indeterminate:L,onChange:w,t:S}),jsx("span",{style:{fontSize:"12px",color:S.textSecondary,fontFamily:"'Zalando Sans Expanded', sans-serif",textTransform:"uppercase",letterSpacing:"0.03em"},children:D.size>0?`${D.size} vybr\xE1no`:"Vybrat v\u0161e"})]}),M.length>0&&jsx("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",marginLeft:r?"auto":0},children:M.map(C=>{let P=b===C.key;return jsxs("button",{onClick:()=>N(C.key),style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"4px 10px",borderRadius:"6px",border:"none",backgroundColor:P?S.sortChipActiveBg:S.sortChipBg,color:P?S.sortActive:S.textSecondary,fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:P?600:400,cursor:"pointer",transition:"all 0.12s ease"},children:[C.header,P?c==="asc"?jsx(CaretUp,{size:12,weight:"bold"}):jsx(CaretDown,{size:12,weight:"bold"}):jsx(CaretUpDown,{size:12})]},C.key)})})]}),t.map((C,P)=>{let H=String(C[n]),W=D.has(H),V=v===H,q=B?B.render?B.render(C[B.key],C,P):C[B.key]:null;return jsxs("div",{style:{backgroundColor:W?S.selectedBg:V?S.hover:S.cardBg,border:`1px solid ${W?S.selectedBorder:S.cardBorder}`,borderRadius:"12px",overflow:"hidden",cursor:s?"pointer":"default",transition:"background-color 0.12s ease, border-color 0.12s ease",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},onClick:()=>s?.(C),onMouseEnter:()=>E(H),onMouseLeave:()=>E(null),children:[(q!==null||r)&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"14px 16px",backgroundColor:S.headerBg,borderBottom:`1px solid ${S.divider}`},children:[r&&jsx(ka,{checked:W,onChange:()=>F(H),t:S}),q!==null&&jsx("span",{style:{flex:1,fontWeight:600,fontSize:"15px",color:S.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:q})]}),jsx("div",{children:k.map((Z,$)=>{let G=Z.render?Z.render(C[Z.key],C,P):C[Z.key];return jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"12px",padding:"10px 16px",borderBottom:$<k.length-1?`1px solid ${S.divider}`:"none"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"11px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:S.textSecondary,flexShrink:0,paddingTop:"2px"},children:Z.header}),jsx("span",{style:{fontSize:"14px",color:S.text,textAlign:"right",wordBreak:"break-word"},children:G??"\u2014"})]},Z.key)})}),p&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"12px 16px",borderTop:`1px solid ${S.divider}`},onClick:Z=>Z.stopPropagation(),children:p(C,P)})]},H??P)})]})};uc.displayName="MobileDataCard";var fc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.12)",borderHover:"rgba(255,255,255,0.25)",text:"#ffffff",textSecondary:"#ACACAC",divider:"rgba(255,255,255,0.08)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.1)",borderHover:"rgba(0,0,0,0.2)",text:"#1a1a1a",textSecondary:"#888888",divider:"rgba(0,0,0,0.06)"}},gc={none:"0",sm:"12px",md:"20px",lg:"28px"},bc=({title:e,subtitle:t,header:o,footer:n,children:r,hoverable:a=false,bordered:l=true,padding:s="md",className:g,style:b})=>{let c=A(),d=fc[c],i=gc[s],u={backgroundColor:d.background,border:l?`1px solid ${d.border}`:"none",borderRadius:"12px",overflow:"hidden",transition:"border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease",cursor:a?"pointer":void 0,...b},f=o??(e||t?jsxs("div",{style:{padding:i,paddingBottom:r||n?"0":i},children:[e&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:"16px",lineHeight:"normal",color:d.text},children:e}),t&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:d.textSecondary,marginTop:"4px"},children:t})]}):null);return jsxs("div",{className:g,style:u,onMouseEnter:m=>{a&&(m.currentTarget.style.borderColor=d.borderHover,m.currentTarget.style.transform="translateY(-2px)",m.currentTarget.style.boxShadow=c==="dark"?"0 8px 24px rgba(0,0,0,0.4)":"0 8px 24px rgba(0,0,0,0.08)");},onMouseLeave:m=>{a&&(m.currentTarget.style.borderColor=l?d.border:"transparent",m.currentTarget.style.transform="translateY(0)",m.currentTarget.style.boxShadow="none");},children:[f,r&&jsx("div",{style:{padding:i},children:r}),n&&jsxs(Fragment,{children:[jsx("div",{style:{borderTop:`1px solid ${d.divider}`}}),jsx("div",{style:{padding:i},children:n})]})]})};bc.displayName="Card";var Ra={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",chevron:"#ACACAC",chevronDisabled:"rgba(255,255,255,0.2)",hoverBg:"rgba(255,255,255,0.03)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.06)",text:"#1a1a1a",textSecondary:"#888888",textDisabled:"rgba(0,0,0,0.25)",chevron:"#888888",chevronDisabled:"rgba(0,0,0,0.15)",hoverBg:"rgba(0,0,0,0.02)"}},vc=({title:e,children:t,defaultOpen:o=false,disabled:n=false,_controlled:r,_open:a,_onToggle:l})=>{let s=A(),g=Ra[s],[b,c]=useState(o),d=r?!!a:b,i=useRef(null),[u,f]=useState(0);useEffect(()=>{i.current&&f(i.current.scrollHeight);},[t,d]);let m=useCallback(()=>{n||(r&&l?l():c(p=>!p));},[n,r,l]);return jsxs("div",{style:{borderBottom:`1px solid ${g.border}`},children:[jsxs("button",{type:"button",disabled:n,onClick:m,style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"14px 16px",border:"none",background:"transparent",cursor:n?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"15px",fontWeight:500,color:n?g.textDisabled:g.text,lineHeight:"normal",textAlign:"left",outline:"none",transition:"background-color 0.12s ease"},onMouseEnter:p=>{n||(p.currentTarget.style.backgroundColor=g.hoverBg);},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="transparent";},children:[jsx("span",{children:e}),jsx(CaretDownIcon,{size:16,color:n?g.chevronDisabled:g.chevron,style:{transition:"transform 0.25s ease",transform:d?"rotate(180deg)":"rotate(0deg)",flexShrink:0}})]}),jsx("div",{ref:i,style:{overflow:"hidden",maxHeight:d?`${u}px`:"0px",transition:"max-height 0.25s ease"},children:jsx("div",{style:{padding:"10px 16px 16px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.5",color:g.textSecondary},children:t})})]})};vc.displayName="AccordionItem";var Sc=({children:e,multiple:t=false,className:o,style:n})=>{let r=A(),a=Ra[r],l=zn.Children.toArray(e).filter(c=>zn.isValidElement(c)),[s,g]=useState(()=>{let c=new Set;return l.forEach((d,i)=>{d.props.defaultOpen&&c.add(i);}),c}),b=useCallback(c=>{g(d=>{let i=new Set(d);return i.has(c)?i.delete(c):(t||i.clear(),i.add(c)),i});},[t]);return jsx("div",{className:o,style:{backgroundColor:a.background,border:`1px solid ${a.border}`,borderRadius:"12px",overflow:"hidden",...n},children:l.map((c,d)=>zn.cloneElement(c,{key:d,_controlled:true,_open:s.has(d),_onToggle:()=>b(d)}))})};Sc.displayName="Accordion";var kc={dark:{text:"#ffffff",textInactive:"#ACACAC",textDisabled:"rgba(255,255,255,0.3)",border:"rgba(255,255,255,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",textInactive:"#888888",textDisabled:"rgba(0,0,0,0.25)",border:"rgba(0,0,0,0.08)",activeUnderline:"#E8612D",pillBg:"#E8612D",pillText:"#ffffff",pillInactiveBg:"transparent",hoverBg:"rgba(0,0,0,0.03)"}},Cc={sm:{padding:"6px 12px",fontSize:"13px"},md:{padding:"8px 16px",fontSize:"14px"},lg:{padding:"10px 20px",fontSize:"16px"}},wc=()=>null;wc.displayName="Tab";var Rc=()=>null;Rc.displayName="TabPanel";var Tc=({value:e,onChange:t,children:o,variant:n="underline",fullWidth:r=false,size:a="md",className:l,style:s})=>{let g=A(),b=kc[g],c=Cc[a],d=zn.Children.toArray(o),i=d.filter(m=>zn.isValidElement(m)&&m.type?.displayName==="Tab"),f=d.filter(m=>zn.isValidElement(m)&&m.type?.displayName==="TabPanel").find(m=>m.props.value===e);return jsxs("div",{className:l,style:s,children:[jsx("div",{style:{display:"flex",gap:n==="pills"?"4px":"0",borderBottom:n==="underline"?`1px solid ${b.border}`:"none"},children:i.map(m=>{let p=m.props.value===e,R=m.props.disabled,z=n==="underline"?{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.text:b.textInactive,background:"transparent",border:"none",borderBottom:`2px solid ${p?b.activeUnderline:"transparent"}`,marginBottom:"-1px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, border-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"}:{padding:c.padding,fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:p?500:400,color:R?b.textDisabled:p?b.pillText:b.textInactive,backgroundColor:p?b.pillBg:b.pillInactiveBg,border:"none",borderRadius:"8px",cursor:R?"not-allowed":"pointer",outline:"none",transition:"color 0.15s ease, background-color 0.15s ease",flex:r?1:void 0,textAlign:"center",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"};return jsxs("button",{type:"button",disabled:R,style:z,onClick:()=>{R||t(m.props.value);},onMouseEnter:h=>{!R&&!p&&(h.currentTarget.style.backgroundColor=b.hoverBg);},onMouseLeave:h=>{R||(h.currentTarget.style.backgroundColor=n==="pills"&&p?b.pillBg:"transparent");},children:[m.props.icon&&jsx("span",{style:{display:"flex",alignItems:"center"},children:m.props.icon}),m.props.label]},m.props.value)})}),f&&jsx("div",{style:{paddingTop:"16px"},children:f.props.children})]})};Tc.displayName="Tabs";var zc={dark:{background:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.12)",text:"#ffffff",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{background:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.1)",text:"#1a1a1a",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Mn=180,Io=8,Bc=({content:e,children:t,position:o="bottom",trigger:n="click",className:r,style:a})=>{let l=A(),s=zc[l],[g,b]=useState(false),[c,d]=useState(false),[i,u]=useState("idle"),[f,m]=useState({top:0,left:0}),p=useRef(null),R=useRef(null),z=useRef(void 0),h=useCallback(()=>{b(true),d(true),u("opening"),requestAnimationFrame(()=>{requestAnimationFrame(()=>u("open"));});},[]),S=useCallback(()=>{b(false),u("closing");let B=setTimeout(()=>{d(false),u("idle");},Mn);return ()=>clearTimeout(B)},[]),x=useCallback(()=>{let B=p.current,k=R.current;if(!B||!k)return;let M=B.getBoundingClientRect(),F=k.getBoundingClientRect(),w=0,T=0;switch(o){case "top":w=M.top-F.height-Io,T=M.left+M.width/2-F.width/2;break;case "bottom":w=M.bottom+Io,T=M.left+M.width/2-F.width/2;break;case "left":w=M.top+M.height/2-F.height/2,T=M.left-F.width-Io;break;case "right":w=M.top+M.height/2-F.height/2,T=M.right+Io;break}m({top:w,left:T});},[o]);useEffect(()=>{if(c)return requestAnimationFrame(x),window.addEventListener("scroll",x,true),window.addEventListener("resize",x),()=>{window.removeEventListener("scroll",x,true),window.removeEventListener("resize",x);}},[c,x]),useEffect(()=>{if(!g)return;let B=k=>{let M=k.target;!p.current?.contains(M)&&!R.current?.contains(M)&&S();};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[g,S]),useEffect(()=>{if(!g)return;let B=k=>{k.key==="Escape"&&S();};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[g,S]);let I=()=>{let B={transition:`opacity ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Mn}ms cubic-bezier(0.16, 1, 0.3, 1)`},k={top:"8px",bottom:"-8px",left:"8px",right:"-8px"},M=o==="top"||o==="bottom"?"Y":"X";return i==="opening"||i==="idle"?{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.97)`}:i==="open"?{...B,opacity:1,transform:"translateY(0) scale(1)"}:{...B,opacity:0,transform:`translate${M}(${k[o]}) scale(0.98)`,pointerEvents:"none"}},v=useCallback(()=>{n==="click"&&(g?S():h());},[n,g,S,h]),E=useCallback(()=>{n==="hover"&&(z.current&&clearTimeout(z.current),g||h());},[n,g,h]),y=useCallback(()=>{n==="hover"&&(z.current=setTimeout(()=>{S();},150));},[n,S]);useEffect(()=>()=>{z.current&&clearTimeout(z.current);},[]);let D=c?createPortal(jsx("div",{ref:R,className:r,onMouseEnter:()=>{n==="hover"&&z.current&&clearTimeout(z.current);},onMouseLeave:y,style:{position:"fixed",top:f.top,left:f.left,zIndex:99999,padding:"16px",backgroundColor:s.background,border:`1px solid ${s.border}`,borderRadius:"12px",color:s.text,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",minWidth:"120px",...I(),...a},children:e}),document.body):null;return jsxs(Fragment,{children:[zn.cloneElement(t,{ref:p,onClick:B=>{v(),t.props.onClick?.(B);},onMouseEnter:B=>{E(),t.props.onMouseEnter?.(B);},onMouseLeave:B=>{y(),t.props.onMouseLeave?.(B);}}),D]})};Bc.displayName="Popover";var $c={dark:{text:"#ffffff",textSecondary:"#ACACAC",iconColor:"rgba(255,255,255,0.2)"},light:{text:"#1a1a1a",textSecondary:"#888888",iconColor:"rgba(0,0,0,0.15)"}},Wc={"no-data":{icon:jsx(Tray,{size:48}),title:"\u017D\xE1dn\xE1 data",description:"Zat\xEDm zde nejsou \u017E\xE1dn\xE9 z\xE1znamy."},"no-results":{icon:jsx(MagnifyingGlass,{size:48}),title:"\u017D\xE1dn\xE9 v\xFDsledky",description:"Zkuste upravit filtr nebo hledan\xFD v\xFDraz."},"no-permission":{icon:jsx(Lock,{size:48}),title:"Nem\xE1te opr\xE1vn\u011Bn\xED",description:"Pro p\u0159\xEDstup kontaktujte administr\xE1tora."},error:{icon:jsx(WarningCircle,{size:48}),title:"N\u011Bco se pokazilo",description:"Nepoda\u0159ilo se na\u010D\xEDst data. Zkuste to znovu."},"coming-soon":{icon:jsx(Rocket,{size:48}),title:"Ji\u017E brzy",description:"Tato funkce je ve v\xFDvoji."}},Oc={sm:{padding:"24px 16px",iconSize:32,titleSize:"14px",descSize:"12px",maxWidth:"280px"},md:{padding:"48px 24px",iconSize:48,titleSize:"18px",descSize:"14px",maxWidth:"360px"},lg:{padding:"64px 32px",iconSize:64,titleSize:"22px",descSize:"15px",maxWidth:"440px"}},Zc=({icon:e,title:t,description:o,action:n,preset:r,size:a="md",className:l,style:s})=>{let g=A(),b=$c[g],c=Oc[a],d=r?Wc[r]:void 0,i=e??d?.icon,u=t??d?.title??"",f=o??d?.description;return jsxs("div",{className:l,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:c.padding,gap:"12px",...s},children:[i&&jsx("div",{style:{lineHeight:1,color:b.iconColor,marginBottom:"4px"},children:i}),u&&jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:500,fontSize:c.titleSize,lineHeight:"normal",color:b.text},children:u}),f&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.descSize,lineHeight:"1.5",color:b.textSecondary,maxWidth:c.maxWidth},children:f}),n&&jsx("div",{style:{marginTop:"8px",display:"flex",gap:"8px",alignItems:"center"},children:n})]})};Zc.displayName="EmptyState";var Gc={dark:{background:"rgba(3,3,3,0.75)",border:"rgba(255,255,255,0.08)",text:"#ffffff",label:"#ACACAC",helper:"#888888",trendUp:"#34C759",trendDown:"#EF3838",trendNeutral:"#ACACAC",iconColor:"rgba(255,255,255,0.15)",hoverBg:"rgba(255,255,255,0.04)",hoverShadow:"0 4px 16px rgba(0,0,0,0.3)"},light:{background:"rgba(255,255,255,0.85)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#888888",helper:"#999999",trendUp:"#28A745",trendDown:"#EF3838",trendNeutral:"#888888",iconColor:"rgba(0,0,0,0.08)",hoverBg:"rgba(0,0,0,0.02)",hoverShadow:"0 4px 16px rgba(0,0,0,0.08)"}},_c=({label:e,value:t,change:o,changeLabel:n,icon:r,trend:a="neutral",loading:l=false,onClick:s,helper:g,className:b,style:c})=>{let d=A(),i=Gc[d],[u,f]=useState(false),m=!!s,p=a==="up"?i.trendUp:a==="down"?i.trendDown:i.trendNeutral,R=h=>`${h>0?"+":""}${h.toFixed(1)} %`;return jsxs(m?"button":"div",{className:b,onClick:m?s:void 0,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),type:m?"button":void 0,style:{display:"flex",alignItems:"flex-start",gap:"12px",backgroundColor:u&&m?i.hoverBg:i.background,border:`1px solid ${i.border}`,borderRadius:"12px",padding:"16px 20px",cursor:m?"pointer":"default",transition:"transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease",transform:u&&m?"translateY(-2px)":"translateY(0)",boxShadow:u&&m?i.hoverShadow:"none",outline:"none",textAlign:"left",width:"100%",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...c},children:[r&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"10px",backgroundColor:i.iconColor,flexShrink:0,color:i.text},children:r}),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:i.label,lineHeight:"normal",marginBottom:"4px"},children:e}),l?jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginTop:"2px"},children:[jsx(ve,{variant:"text",width:"60%",height:24}),o!==void 0&&jsx(ve,{variant:"text",width:"40%",height:14})]}):jsxs(Fragment,{children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:"24px",lineHeight:"normal",color:i.text},children:t}),g&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",lineHeight:"normal",color:i.helper,marginTop:"2px"},children:g}),o!==void 0&&jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"4px",marginTop:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",lineHeight:"normal",color:p},children:[a==="up"&&jsx(TrendUp,{size:14,color:p}),a==="down"&&jsx(TrendDown,{size:14,color:p}),jsx("span",{children:R(o)}),n&&jsx("span",{style:{color:i.label,marginLeft:"2px"},children:n})]})]})]})]})};_c.displayName="Stat";var jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],zb=({initials:e,size:t="md",borderRadius:o="8px",style:n,className:r,"aria-label":a})=>{let l=jc(t),s={display:"inline-flex",alignItems:"center",justifyContent:"center",width:l,height:l,borderRadius:o,backgroundImage:"linear-gradient(128deg, #EC6608 0%, #F6540E 100%)",flexShrink:0,userSelect:"none",WebkitUserSelect:"none",...n},g={fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontStyle:"normal",fontSize:Math.round(l*.34),color:"#ffffff",textTransform:"uppercase",textAlign:"center",lineHeight:"normal",whiteSpace:"nowrap"};return jsx("div",{style:s,className:r,role:"img","aria-label":a??`Avatar ${e.toUpperCase()}`,children:jsx("span",{style:g,children:e.toUpperCase()})})};var Kc={dark:{overflowBg:"rgba(60,60,60,0.95)",overflowText:"#ffffff",overflowBorder:"rgba(3,3,3,1)",ringColor:"rgba(3,3,3,1)"},light:{overflowBg:"rgba(220,220,220,0.95)",overflowText:"#1a1a1a",overflowBorder:"rgba(255,255,255,1)",ringColor:"rgba(255,255,255,1)"}},Jc=e=>typeof e=="number"?e:{"2xs":16,xs:20,sm:32,md:40,lg:64,xl:96}[e],Qc={tight:-0.4,normal:-0.3,loose:-0.15},ed=({children:e,max:t=3,size:o="sm",spacing:n="normal",direction:r="ltr",overflowTooltip:a,style:l,className:s})=>{let g=A(),b=Kc[g],c=Jc(o),d=Math.round(c*Qc[n]),i=Math.max(2,Math.round(c*.06)),u=zn.Children.toArray(e),f=u.slice(0,t),m=Math.max(0,u.length-t),p=m>0?jsxs("div",{style:{width:c,height:c,borderRadius:"50%",backgroundColor:b.overflowBg,border:`${i}px solid ${b.overflowBorder}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:600,fontSize:Math.max(9,Math.round(c*.3)),color:b.overflowText,flexShrink:0,boxSizing:"border-box",marginLeft:f.length>0?d:0,zIndex:r==="ltr"?0:u.length+1,position:"relative",userSelect:"none"},children:["+",m]}):null,R=p&&a?jsx(ht,{content:typeof a=="function"?a(m):a,children:p}):p;return jsxs("div",{className:s,style:{display:"inline-flex",alignItems:"center",flexDirection:r==="rtl"?"row-reverse":"row",...l},children:[f.map((z,h)=>{let S=zn.isValidElement(z),x=r==="ltr"?f.length-h:h+1,I=S?zn.cloneElement(z,{size:o,borderRadius:"50%",style:{...z.props.style||{},border:`${i}px solid ${b.ringColor}`,boxSizing:"border-box"}}):z;return jsx("div",{style:{position:"relative",zIndex:x,marginLeft:h>0?d:0,flexShrink:0,lineHeight:0},children:I},h)}),R]})};ed.displayName="AvatarStack";var Ba={dark:{tagBg:"#1e1e1e",tagBorder:"rgba(255,255,255,0.3)",tagText:"#ffffff",itemBg:"rgba(3,3,3,0.6)",itemBorder:"rgba(255,255,255,0.3)",itemText:"#ffffff",actionColor:"rgba(255,255,255,0.5)"},light:{tagBg:"#f0f0f0",tagBorder:"rgba(0,0,0,0.15)",tagText:"#1a1a1a",itemBg:"rgba(255,255,255,0.85)",itemBorder:"rgba(0,0,0,0.15)",itemText:"#1a1a1a",actionColor:"rgba(0,0,0,0.4)"}},Hn=({onClick:e,title:t,color:o,children:n})=>jsx("button",{type:"button",onClick:e,title:t,"aria-label":t,style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:o,width:16,height:16,flexShrink:0,transition:"opacity 0.15s ease"},children:n}),$b=({label:e,onRemove:t,style:o,className:n})=>{let r=Ba[A()];return jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"8px",padding:"4px 8px",backgroundColor:r.tagBg,border:`1px solid ${r.tagBorder}`,borderRadius:"4px",...o},className:n,children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:r.tagText,whiteSpace:"nowrap",lineHeight:"normal"},children:e}),t&&jsx("button",{type:"button",onClick:t,"aria-label":`Odebrat ${e}`,style:{display:"flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:r.tagText,opacity:.6,fontSize:"8px",lineHeight:1},children:"\u2715"})]})},Wb=({label:e,style:t,className:o})=>jsx("div",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 16px",backgroundColor:"rgba(246,84,14,0.8)",borderRadius:"12px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",color:"#ffffff",textTransform:"uppercase",whiteSpace:"nowrap",lineHeight:"normal",...t},className:o,children:e}),Ob=({label:e,onFilter:t,onEdit:o,onDelete:n,showActions:r=true,style:a,className:l})=>{let s=Ba[A()],g=t||o||n;return jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px",backgroundColor:s.itemBg,border:`1px solid ${s.itemBorder}`,borderRadius:"8px",...a},className:l,children:[jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"16px",color:s.itemText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,minWidth:0,lineHeight:"normal"},children:e}),r&&g&&jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"12px",flexShrink:0},children:[t&&jsx(Hn,{onClick:t,title:"Filtrovat",color:s.actionColor,children:jsx(Funnel,{size:14,color:"currentColor"})}),o&&jsx(Hn,{onClick:o,title:"Upravit",color:s.actionColor,children:jsx(PencilSimple,{size:14,color:"currentColor"})}),n&&jsx(Hn,{onClick:n,title:"Smazat",color:s.actionColor,children:jsx(Trash,{size:14,color:"currentColor"})})]})]})};var rd={dark:{background:"rgba(3,3,3,0.75)",surface:"rgba(24,24,24,0.95)",border:"rgba(255,255,255,0.08)",text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",hover:"rgba(255,255,255,0.06)",todayBg:"rgba(252,79,0,0.12)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(255,255,255,0.04)",outsideText:"rgba(255,255,255,0.2)",eventDot:"#FC4F00",navHover:"rgba(255,255,255,0.08)",cellBorder:"rgba(255,255,255,0.06)",todayCellBg:"rgba(252,79,0,0.06)",eventBarDefault:"#1a3a5c",eventBarText:"#ffffff",moreText:"#ACACAC"},light:{background:"rgba(255,255,255,0.85)",surface:"rgba(255,255,255,0.95)",border:"rgba(0,0,0,0.08)",text:"#1a1a1a",textSecondary:"#888888",textMuted:"#999999",hover:"rgba(0,0,0,0.04)",todayBg:"rgba(252,79,0,0.08)",todayBorder:"#FC4F00",selectedBg:"#FC4F00",selectedText:"#ffffff",headerBg:"rgba(0,0,0,0.02)",outsideText:"rgba(0,0,0,0.2)",eventDot:"#FC4F00",navHover:"rgba(0,0,0,0.06)",cellBorder:"rgba(0,0,0,0.08)",todayCellBg:"rgba(252,79,0,0.04)",eventBarDefault:"#0a1e3d",eventBarText:"#ffffff",moreText:"#888888"}},Pa={cs:{days:["po","\xFAt","st","\u010Dt","p\xE1","so","ne"],daysFull:["Po","\xDAt","St","\u010Ct","P\xE1","So","Ne"],months:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},en:{days:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysFull:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}},Rt=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),ad=e=>`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`,qe=e=>{let t=new Date(e);return t.setHours(0,0,0,0),t},Nn=(e,t=1)=>{let o=new Date(e),n=o.getDay(),r=t===1?(n===0?-6:1)-n:-n;return o.setDate(o.getDate()+r),o.setHours(0,0,0,0),o},Ma=(e,t,o=1)=>{let n=new Date(e,t,1),r=Nn(n,o),a=[],l=new Date(r);for(let s=0;s<42;s++)a.push(new Date(l)),l.setDate(l.getDate()+1);return a},id=(e,t=1)=>{let o=Nn(e,t),n=[];for(let r=0;r<7;r++){let a=new Date(o);a.setDate(o.getDate()+r),n.push(a);}return n},Aa=(e,t,o)=>{if(t){let n=new Date(t);if(n.setHours(0,0,0,0),e<n)return true}if(o){let n=new Date(o);if(n.setHours(23,59,59,999),e>n)return true}return false};function sd(e,t){let o=[],n=new Map,r=qe(e[0]),a=qe(e[6]),l=t.filter(s=>{let g=qe(s.date);return (s.endDate?qe(s.endDate):g)>=r&&g<=a}).sort((s,g)=>{let b=qe(s.date).getTime(),c=qe(g.date).getTime();if(b!==c)return b-c;let d=s.endDate?qe(s.endDate).getTime():b;return (g.endDate?qe(g.endDate).getTime():c)-c-(d-b)});for(let s of l){let g=qe(s.date),b=s.endDate?qe(s.endDate):g,c=g<r?r:g,d=b>a?a:b,i=e.findIndex(z=>Rt(z,c)),u=e.findIndex(z=>Rt(z,d));if(i===-1||u===-1)continue;let f=u-i+1,m=g>=r,p=0;for(;;){n.has(p)||n.set(p,new Set);let z=n.get(p),h=true;for(let S=i;S<=u;S++)if(z.has(S)){h=false;break}if(h)break;p++;}let R=n.get(p);for(let z=i;z<=u;z++)R.add(z);o.push({event:s,row:p,startCol:i,span:f,isStart:m});}return o}var ld=({value:e,onChange:t,view:o="month",events:n=[],minDate:r,maxDate:a,style:l,className:s,firstDay:g=1,locale:b="cs",initialDate:c,t:d,today:i})=>{let u=Pa[b],f=c||e||i,[m,p]=useState(()=>f.getMonth()),[R,z]=useState(()=>f.getFullYear()),[h,S]=useState(()=>Nn(f,g)),[x,I]=useState(null),v=useMemo(()=>o==="week"?id(h,g):Ma(R,m,g),[o,R,m,h,g]),E=useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()-7),w}):p(F=>F===0?(z(w=>w-1),11):F-1);},[o]),y=useCallback(()=>{o==="week"?S(F=>{let w=new Date(F);return w.setDate(w.getDate()+7),w}):p(F=>F===11?(z(w=>w+1),0):F+1);},[o]),D=F=>n.filter(w=>Rt(w.date,F)),B=o==="week"?(()=>{let F=new Date(h);return F.setDate(F.getDate()+6),h.getMonth()===F.getMonth()?`${h.getDate()}. \u2013 ${F.getDate()}. ${u.months[F.getMonth()]} ${F.getFullYear()}`:`${h.getDate()}. ${u.months[h.getMonth()].slice(0,3)} \u2013 ${F.getDate()}. ${u.months[F.getMonth()].slice(0,3)} ${F.getFullYear()}`})():`${u.months[m]} ${R}`,k={backgroundColor:d.background,border:`1px solid ${d.border}`,borderRadius:"12px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.text,overflow:"hidden",userSelect:"none",...l},M={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"transparent",color:d.text,cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:s,style:k,children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",backgroundColor:d.headerBg,borderBottom:`1px solid ${d.border}`},children:[jsx("button",{style:M,onClick:E,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px"},children:B}),jsx("button",{style:M,onClick:y,onMouseEnter:F=>{F.currentTarget.style.backgroundColor=d.navHover;},onMouseLeave:F=>{F.currentTarget.style.backgroundColor="transparent";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16})})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"0",padding:"8px 12px 0"},children:u.daysFull.map(F=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.textMuted,padding:"6px 0 8px"},children:F},F))}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:"2px",padding:"0 12px 12px"},children:v.map((F,w)=>{let T=Rt(F,i),L=e?Rt(F,e):false,N=o==="month"&&F.getMonth()!==m,C=Aa(F,r,a),P=F.toISOString(),H=x===P,W=D(F),V="transparent",q=N?d.outsideText:d.text,Z="2px solid transparent";return L?(V=d.selectedBg,q=d.selectedText):T?(V=d.todayBg,Z=`2px solid ${d.todayBorder}`):H&&!C&&(V=d.hover),C&&(q=d.textMuted),jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"1px",minHeight:"44px"},children:[jsx("button",{style:{width:"36px",height:"36px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",border:Z,background:V,color:q,fontSize:"13px",fontWeight:T?600:400,fontFamily:"'Zalando Sans', sans-serif",cursor:C?"default":"pointer",opacity:C?.4:1,transition:"background-color 0.12s ease"},disabled:C,onClick:()=>{!C&&t&&t(F);},onMouseEnter:()=>!C&&I(P),onMouseLeave:()=>I(null),children:F.getDate()}),W.length>0&&jsx("div",{style:{display:"flex",gap:"3px",marginTop:"3px",height:"5px"},children:W.slice(0,3).map(($,G)=>jsx("div",{title:$.title,style:{width:"5px",height:"5px",borderRadius:"50%",backgroundColor:$.color||d.eventDot}},G))})]},w)})})]})},Po=24,$t=2,cd=({value:e,onChange:t,events:o=[],onEventClick:n,showHeader:r=true,onNavigate:a,minDate:l,maxDate:s,style:g,className:b,firstDay:c=1,locale:d="cs",maxEventsPerDay:i=3,initialDate:u,t:f,today:m})=>{let p=Pa[d],R=u||e||m,[z,h]=useState(()=>R.getMonth()),[S,x]=useState(()=>R.getFullYear()),[I,v]=useState(null),E=useMemo(()=>Ma(S,z,c),[S,z,c]),y=useMemo(()=>{let T=[];for(let L=0;L<E.length;L+=7)T.push(E.slice(L,L+7));return T},[E]),D=useMemo(()=>{let T=y[y.length-1];return T&&T.every(L=>L.getMonth()!==z)?y.slice(0,-1):y},[y,z]),B=useCallback(()=>{let T=z-1,L=S;T<0&&(T=11,L--),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),k=useCallback(()=>{let T=z+1,L=S;T>11&&(T=0,L++),h(T),x(L),a&&a(new Date(L,T,1));},[z,S,a]),M=`${p.months[z]} ${S}`,w={display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",borderRadius:"8px",background:"#FC4F00",color:"#ffffff",cursor:"pointer",transition:"background-color 0.12s ease"};return jsxs("div",{className:b,style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:f.text,userSelect:"none",...g},children:[r&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0 16px"},children:[jsx("button",{style:w,onClick:B,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"P\u0159edchoz\xED",children:jsx(CaretLeft,{size:16,weight:"bold"})}),jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"20px"},children:M}),jsx("button",{style:w,onClick:k,onMouseEnter:T=>{T.currentTarget.style.backgroundColor="#FF6D2A";},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="#FC4F00";},"aria-label":"Dal\u0161\xED",children:jsx(CaretRight,{size:16,weight:"bold"})})]}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",border:`1px solid ${f.cellBorder}`,borderRadius:"12px",overflow:"hidden",backgroundColor:f.background},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:`1px solid ${f.cellBorder}`},children:p.days.map((T,L)=>jsx("div",{style:{textAlign:"center",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:600,color:f.text,padding:"10px 0",borderRight:L<6?`1px solid ${f.cellBorder}`:"none"},children:T},T))}),D.map((T,L)=>{let N=sd(T,o),C=N.length>0?Math.max(...N.map(Z=>Z.row))+1:0,P=T.map((Z,$)=>{let G=N.filter(X=>$>=X.startCol&&$<X.startCol+X.span);return Math.max(0,G.filter(X=>X.row>=i).length)}),W=Math.min(C,i)*(Po+$t)+$t,q=P.some(Z=>Z>0)?20:0;return jsx("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(7, 1fr)",borderBottom:L<D.length-1?`1px solid ${f.cellBorder}`:"none"},children:T.map((Z,$)=>{let G=Rt(Z,m),X=Z.getMonth()!==z,ee=e?Rt(Z,e):false;return jsxs("div",{style:{borderRight:$<6?`1px solid ${f.cellBorder}`:"none",backgroundColor:G?f.todayCellBg:"transparent",minHeight:`${30+W+q}px`,position:"relative",cursor:t?"pointer":"default"},onClick:()=>{t&&!Aa(Z,l,s)&&t(Z);},children:[jsx("div",{style:{textAlign:"right",padding:"4px 8px 2px",fontSize:"13px",fontWeight:G?700:400,color:X?f.outsideText:G?"#FC4F00":f.text},children:ee?jsxs("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",borderRadius:"6px",backgroundColor:"#FC4F00",color:"#ffffff",fontWeight:600},children:[Z.getDate(),"."]}):jsxs(Fragment,{children:[Z.getDate(),"."]})}),jsx("div",{style:{position:"relative",height:`${W}px`},children:N.filter(J=>J.startCol===$&&J.row<i).map((J,te)=>{let re=J.event.id||`${ad(J.event.date)}-${J.event.title}`,be=I===re,we=J.event.color||f.eventBarDefault,Y=jsxs("div",{style:{position:"absolute",top:`${$t+J.row*(Po+$t)}px`,left:"2px",width:J.span>1?`calc(${J.span*100}% - 4px)`:"calc(100% - 4px)",height:`${Po}px`,backgroundColor:we,borderRadius:"6px",display:"flex",alignItems:"center",gap:"4px",padding:"0 8px",cursor:n?"pointer":"default",zIndex:be?2:1,opacity:be?.85:1,transition:"opacity 0.12s ease",overflow:"hidden"},title:J.event.tooltip?void 0:J.event.title,onClick:j=>{j.stopPropagation(),n&&n(J.event);},onMouseEnter:()=>v(re),onMouseLeave:()=>v(null),children:[J.isStart&&J.event.emoji&&jsx("span",{style:{fontSize:"12px",flexShrink:0},children:J.event.emoji}),J.isStart&&jsx("span",{style:{fontSize:"11px",fontWeight:500,color:J.event.textColor||f.eventBarText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:J.event.title})]},te);return J.event.tooltip?jsx(ht,{content:J.event.tooltip,children:Y},te):Y})}),P[$]>0&&jsxs("div",{style:{fontSize:"10px",color:f.moreText,textAlign:"center",padding:"2px 0"},children:["+",P[$]]})]},$)})},L)})]})]})},dd=e=>{let t=A(),o=rd[t],n=useMemo(()=>{let r=new Date;return r.setHours(0,0,0,0),r},[]);return e.fullSize?jsx(cd,{...e,t:o,today:n}):jsx(ld,{...e,t:o,today:n})};dd.displayName="Calendar";var ud={dark:{text:"#ffffff",textSecondary:"#ACACAC",textMuted:"#888888",line:"rgba(255,255,255,0.1)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.15)",iconBg:"rgba(252,79,0,0.12)",cardBg:"rgba(255,255,255,0.04)",cardBorder:"rgba(255,255,255,0.08)"},light:{text:"#1a1a1a",textSecondary:"#333333",textMuted:"#999999",line:"rgba(0,0,0,0.08)",dotBorder:"#FC4F00",dotBg:"rgba(252,79,0,0.08)",iconBg:"rgba(252,79,0,0.06)",cardBg:"rgba(0,0,0,0.02)",cardBorder:"rgba(0,0,0,0.06)"}},fd=({items:e,orientation:t="vertical",style:o,className:n})=>{let r=A(),a=ud[r];return t==="horizontal"?jsx("div",{className:n,style:{display:"flex",alignItems:"flex-start",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,overflow:"auto",...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flex:g?"0 0 auto":"1 1 0",minWidth:"120px",position:"relative"},children:[jsxs("div",{style:{display:"flex",alignItems:"center",width:"100%",position:"relative"},children:[s>0&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),s===0&&jsx("div",{style:{flex:1}}),l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0}}),!g&&jsx("div",{style:{flex:1,height:"2px",backgroundColor:a.line}}),g&&jsx("div",{style:{flex:1}})]}),jsxs("div",{style:{textAlign:"center",paddingTop:"10px",maxWidth:"140px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"13px",lineHeight:"18px",display:"block"},children:l.title}),l.date&&jsx("span",{style:{fontSize:"11px",color:a.textMuted,display:"block",marginTop:"2px"},children:l.date}),l.description&&jsx("p",{style:{margin:"4px 0 0",fontSize:"12px",color:a.textSecondary,lineHeight:"16px"},children:l.description})]})]},s)})}):jsx("div",{className:n,style:{position:"relative",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:a.text,...o},children:e.map((l,s)=>{let g=s===e.length-1,b=l.color||a.dotBorder;return jsxs("div",{style:{display:"flex",position:"relative",paddingBottom:g?0:"4px",minHeight:l.icon?"36px":"28px"},children:[jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",flexShrink:0,width:"32px",marginRight:"14px"},children:[l.icon?jsx("div",{style:{width:"32px",height:"32px",borderRadius:"50%",backgroundColor:l.color?`${l.color}18`:a.iconBg,display:"flex",alignItems:"center",justifyContent:"center",color:b,flexShrink:0},children:l.icon}):jsx("div",{style:{width:"12px",height:"12px",borderRadius:"50%",border:`2px solid ${b}`,backgroundColor:a.dotBg,flexShrink:0,marginTop:"4px"}}),!g&&jsx("div",{style:{width:"2px",flex:1,backgroundColor:a.line,marginTop:"4px",minHeight:"8px"}})]}),jsxs("div",{style:{flex:1,minWidth:0,paddingTop:l.icon?"5px":0},children:[jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px"},children:l.title}),l.date&&jsx("span",{style:{fontSize:"12px",color:a.textMuted,flexShrink:0},children:l.date})]}),l.description&&jsx("p",{style:{margin:"3px 0 0",fontSize:"13px",color:a.textSecondary,lineHeight:"18px"},children:l.description})]})]},s)})})};fd.displayName="Timeline";var gd={dark:{background:"transparent",text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",stripedBg:"rgba(255,255,255,0.04)"},light:{background:"transparent",text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",stripedBg:"rgba(0,0,0,0.02)"}},bd=({items:e,columns:t=1,striped:o=false,style:n,className:r})=>{let a=A(),l=gd[a],s=Math.max(1,Math.round(t)),g={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:l.text,display:s>1?"grid":"block",gridTemplateColumns:s>1?`repeat(${s}, 1fr)`:void 0,gap:s>1?"0 24px":void 0,...n},b=u=>s<=1?u:Math.floor(u/s),c=u=>({display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:"16px",padding:"10px 12px",borderBottom:`1px solid ${l.border}`,backgroundColor:o&&b(u)%2===1?l.stripedBg:l.background}),d={fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"12px",fontWeight:500,color:l.textMuted,flexShrink:0,letterSpacing:"0.01em"},i={textAlign:"right",lineHeight:"20px",wordBreak:"break-word"};return jsx("div",{className:r,style:g,children:e.map((u,f)=>jsxs("div",{style:c(f),children:[jsx("span",{style:d,children:u.label}),jsx("span",{style:i,children:u.value})]},f))})};bd.displayName="DataList";var yd={dark:{text:"#ffffff",textMuted:"#888888",border:"rgba(255,255,255,0.08)",line:"rgba(255,255,255,0.1)",hover:"rgba(255,255,255,0.06)",selectedBg:"rgba(252,79,0,0.12)",selectedBorder:"#FC4F00",selectedText:"#ffffff",iconColor:"rgba(255,255,255,0.4)",iconExpanded:"#FC4F00"},light:{text:"#1a1a1a",textMuted:"#999999",border:"rgba(0,0,0,0.06)",line:"rgba(0,0,0,0.08)",hover:"rgba(0,0,0,0.04)",selectedBg:"rgba(252,79,0,0.08)",selectedBorder:"#FC4F00",selectedText:"#1a1a1a",iconColor:"rgba(0,0,0,0.3)",iconExpanded:"#FC4F00"}},La=({node:e,depth:t,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l})=>{let s=e.children&&e.children.length>0,g=o.has(e.id),b=n===e.id,[c,d]=useState(false),i="transparent";return b?i=l.selectedBg:c&&(i=l.hover),jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",alignItems:"center",padding:"4px 8px",paddingLeft:`${t*20+8}px`,borderRadius:"6px",backgroundColor:i,borderLeft:b?`2px solid ${l.selectedBorder}`:"2px solid transparent",cursor:"pointer",transition:"background-color 0.12s ease",userSelect:"none",minHeight:"32px"},onMouseEnter:()=>d(true),onMouseLeave:()=>d(false),onClick:()=>a?.(e),children:[jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px",flexShrink:0,marginRight:"4px"},onClick:u=>{u.stopPropagation(),s&&r(e.id);},children:s&&jsx(CaretRightIcon,{size:14,color:g?l.iconExpanded:l.iconColor,style:{transform:g?"rotate(90deg)":"rotate(0deg)",transition:"transform 180ms cubic-bezier(0.16, 1, 0.3, 1)"}})}),e.icon&&jsx("span",{style:{display:"flex",alignItems:"center",marginRight:"6px",color:b?l.selectedBorder:l.textMuted,flexShrink:0},children:e.icon}),jsx("span",{style:{fontSize:"13px",fontWeight:b?500:400,color:b?l.selectedText:l.text,lineHeight:"20px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.label})]}),s&&g&&jsxs("div",{style:{position:"relative"},children:[jsx("div",{style:{position:"absolute",left:`${t*20+18}px`,top:0,bottom:"16px",width:"1px",backgroundColor:l.line}}),e.children.map(u=>jsx(La,{node:u,depth:t+1,expanded:o,selectedId:n,onToggle:r,onSelect:a,t:l},u.id))]})]})},vd=({data:e,onSelect:t,selectedId:o,defaultExpanded:n=[],style:r,className:a})=>{let l=A(),s=yd[l],[g,b]=useState(()=>new Set(n)),c=useCallback(i=>{b(u=>{let f=new Set(u);return f.has(i)?f.delete(i):f.add(i),f});},[]),d={fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.text,...r};return jsx("div",{className:a,style:d,role:"tree",children:e.map(i=>jsx(La,{node:i,depth:0,expanded:g,selectedId:o,onToggle:c,onSelect:t,t:s},i.id))})};vd.displayName="Tree";var kd={dark:{labelColor:"#eaeaea"},light:{labelColor:"#333333"}},Cd={online:"#00A205",offline:"#888888",away:"#F5A623",busy:"#EF3838"},wd={sm:{dot:8,fontSize:"12px",gap:"6px"},md:{dot:10,fontSize:"13px",gap:"8px"},lg:{dot:12,fontSize:"14px",gap:"8px"}},On=false,Rd=()=>{if(On||typeof document>"u")return;let e="sm-statusbadge-pulse";if(document.getElementById(e)){On=true;return}let t=document.createElement("style");t.id=e,t.textContent=`
|
|
13
13
|
@keyframes sm-statusbadge-pulse {
|
|
14
14
|
0% { transform: scale(1); opacity: 1; }
|
|
15
15
|
50% { transform: scale(1.8); opacity: 0; }
|
|
16
16
|
100% { transform: scale(1.8); opacity: 0; }
|
|
17
17
|
}
|
|
18
|
-
`,document.head.appendChild(t),Er=true;},Bd=({status:e,label:t,size:o="md",pulse:r=false,color:n,style:a,className:s})=>{let i=P(),u=Rd[i],c=Fd[o],d=n||Td[e]||"#888888";return r&&Ed(),jsxs("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:c.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${c.dot}px`,height:`${c.dot}px`,flexShrink:0},children:[r&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:d,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:d}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:c.fontSize,fontWeight:400,color:u.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Bd.displayName="StatusBadge";var Id={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},vo=180,Pd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},zr=({open:e,onClose:t,title:o,children:r,footer:n,size:a="md",closeOnOverlay:s=true,closeOnEscape:i=true,showClose:u=true,className:c,style:d})=>{let p=P(),l=Id[p],x=Pd[a],[b,m]=useState(false),[f,C]=useState("idle"),w=useRef(null),y=useRef(null);useEffect(()=>{if(e){y.current=document.activeElement,m(true),C("opening");let D=setTimeout(()=>{C("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(D)}else if(b){C("closing");let D=setTimeout(()=>{m(false),C("idle"),document.body.style.overflow="",y.current instanceof HTMLElement&&y.current.focus();},vo);return ()=>clearTimeout(D)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!b||!i)return;let D=k=>{k.key==="Escape"&&t();};return document.addEventListener("keydown",D),()=>document.removeEventListener("keydown",D)},[b,i,t]),useEffect(()=>{if(!b||!w.current)return;let D=w.current,k='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',h=F=>{if(F.key!=="Tab")return;let S=D.querySelectorAll(k);if(S.length===0){F.preventDefault();return}let I=S[0],L=S[S.length-1];F.shiftKey?document.activeElement===I&&(F.preventDefault(),L.focus()):document.activeElement===L&&(F.preventDefault(),I.focus());};return document.addEventListener("keydown",h),D.focus(),()=>document.removeEventListener("keydown",h)},[b]);let g=()=>{let D={transition:`opacity ${vo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${vo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...D,opacity:0,transform:"scale(0.95)"}:f==="open"?{...D,opacity:1,transform:"scale(1)"}:{...D,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!b)return null;let v=a==="fullscreen",M=()=>{let D={transition:`opacity ${vo}ms ease`};return f==="opening"||f==="idle"?{...D,opacity:0}:f==="open"?{...D,opacity:1}:{...D,opacity:0}};return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:v?"stretch":"center",justifyContent:"center",...f==="closing"?{pointerEvents:"none"}:{}},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...M()},onClick:s?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:w,role:"dialog","aria-modal":"true","aria-label":o,tabIndex:-1,className:c,style:{position:"relative",display:"flex",flexDirection:"column",width:x.width,maxWidth:v?void 0:"calc(100vw - 32px)",maxHeight:v?"100vh":x.maxHeight,backgroundColor:l.cardBg,border:v?"none":`1px solid ${l.cardBorder}`,borderRadius:v?0:"16px",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...g(),...d},children:[(o||u)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[o&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:o}),u&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:D=>{D.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:D=>{D.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:l.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:r}),n&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:n})]})]}),document.body)};zr.displayName="Modal";var Ld={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Pr=220,Nd=({open:e,onClose:t,position:o="right",title:r,children:n,footer:a,width:s=400,showClose:i=true,closeOnOverlay:u=true,className:c,style:d})=>{let p=P(),l=Ld[p],[x,b]=useState(false),[m,f]=useState("idle"),C=useRef(null),w=typeof s=="number"?`${s}px`:s;useEffect(()=>{if(e){b(true),f("opening");let v=setTimeout(()=>{f("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(x){f("closing");let v=setTimeout(()=>{b(false),f("idle"),document.body.style.overflow="";},Pr);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!x)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[x,t]);let y=v=>{let M=o==="right"?"100%":"-100%";return v==="opening"||v==="idle"?M:v==="open"?"0%":M},g=()=>m==="open"?1:0;return x?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex"},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:l.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:g(),transition:`opacity ${Pr}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:u?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:C,role:"dialog","aria-modal":"true","aria-label":r,className:c,style:{position:"absolute",top:0,bottom:0,[o]:0,width:w,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:l.panelBg,borderLeft:o==="right"?`1px solid ${l.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${l.panelBorder}`:"none",boxShadow:l.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${y(m)})`,transition:`transform ${Pr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...d},children:[(r||i)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${l.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:l.titleText},children:r}),i&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:l.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=l.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:l.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.bodyText},children:n}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${l.divider}`},children:a})]})]}),document.body):null};Nd.displayName="Drawer";var Od={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},Hr=180,Yd=({open:e,onClose:t,children:o,side:r="bottom",title:n,showClose:a=true,style:s,className:i})=>{let u=P(),c=Od[u],[d,p]=useState(false),[l,x]=useState("idle"),b=useRef(null);useEffect(()=>{if(e){p(true),x("opening");let v=setTimeout(()=>{x("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(v)}else if(d){x("closing");let v=setTimeout(()=>{p(false),x("idle"),document.body.style.overflow="";},Hr);return ()=>clearTimeout(v)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!d)return;let v=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[d,t]);let C=v=>{let M={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return v==="opening"||v==="idle"?M[r]:v==="open"?"translate(0, 0)":M[r]},w=()=>l==="open"?1:0,y={};r==="bottom"?(y.bottom=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderTopLeftRadius="16px",y.borderTopRightRadius="16px"):r==="top"?(y.top=0,y.left=0,y.right=0,y.maxHeight="85vh",y.borderBottomLeftRadius="16px",y.borderBottomRightRadius="16px"):r==="right"?(y.top=0,y.bottom=0,y.right=0,y.width="400px",y.maxWidth="100vw"):r==="left"&&(y.top=0,y.bottom=0,y.left=0,y.width="400px",y.maxWidth="100vw");let g={};return r==="bottom"?g.borderTop=`1px solid ${c.panelBorder}`:r==="top"?g.borderBottom=`1px solid ${c.panelBorder}`:r==="right"?g.borderLeft=`1px solid ${c.panelBorder}`:r==="left"&&(g.borderRight=`1px solid ${c.panelBorder}`),d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:c.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:w(),transition:`opacity ${Hr}ms ease`,...l==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":n,className:i,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:c.panelBg,boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:C(l),transition:`transform ${Hr}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...y,...g,...s},children:[r==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:c.handleBg}})}),(n||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:r==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${c.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:c.titleText},children:n}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:c.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor=c.closeHover;},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:c.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:c.bodyText},children:o})]})]}),document.body):null};Yd.displayName="Sheet";var Ud={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},_d=({items:e,separator:t="/",className:o,style:r})=>{let n=P(),a=Ud[n];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...r},children:e.map((s,i)=>{let u=i===e.length-1;return jsxs(ur.Fragment,{children:[i>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),u?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]}):jsxs("a",{href:s.href??"#",onClick:s.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:c=>{c.currentTarget.style.color=a.linkHover;},onMouseLeave:c=>{c.currentTarget.style.color=a.text;},children:[s.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:s.icon}),s.label]})]},i)})})};_d.displayName="Breadcrumb";var jd={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},qd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function Kd(e,t,o,r,n){let a=[],s=Math.max(2,e-o),i=Math.min(t-1,e+o);(r||e-o<=1)&&a.push(1),s>2&&(r&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let u=s;u<=i;u++)a.includes(u)||a.push(u);return i<t-1&&a.push("ellipsis-end"),(n||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var Jd=({page:e,totalPages:t,onChange:o,siblings:r=1,showFirst:n=true,showLast:a=true,size:s="md",className:i,style:u})=>{let c=P(),d=jd[c],p=qd[s];if(t<=0)return null;let l=Kd(e,t,r,n,a),x={display:"inline-flex",alignItems:"center",justifyContent:"center",width:p.size,height:p.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:i,style:{display:"flex",alignItems:"center",gap:"4px",...u},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...x,color:e<=1?d.disabledText:d.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:b=>{e>1&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:p.iconSize,color:e<=1?d.disabledText:d.text})}),l.map((b,m)=>{if(b==="ellipsis-start"||b==="ellipsis-end")return jsx("span",{style:{...x,cursor:"default",color:d.text},"aria-hidden":"true",children:"..."},b);let f=b===e;return jsx("button",{type:"button","aria-current":f?"page":void 0,"aria-label":`Str\xE1nka ${b}`,onClick:()=>o(b),style:{...x,color:f?d.activeText:d.text,backgroundColor:f?d.activeBg:"transparent",fontWeight:f?600:500},onMouseEnter:C=>{f||(C.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:C=>{f||(C.currentTarget.style.backgroundColor="transparent");},children:b},b)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...x,color:e>=t?d.disabledText:d.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:b=>{e<t&&(b.currentTarget.style.backgroundColor=d.hoverBg);},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:p.iconSize,color:e>=t?d.disabledText:d.text})})]})};Jd.displayName="Pagination";var oc={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},Wr=({steps:e,activeStep:t,orientation:o="horizontal",clickable:r=false,onStepClick:n,className:a,style:s})=>{let i=P(),u=oc[i],[c,d]=useState(null),p=o==="horizontal",l=32,x=b=>!r||!n?false:r==="completed"?b<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:p?"row":"column",alignItems:p?"flex-start":"stretch",gap:0,...s},children:e.map((b,m)=>{let f=m<t,C=m===t,w=m>t,y=m===e.length-1,g=x(m),v=c===m&&g,M=f?u.completedBg:v?u.hoverBg:u.activeBg,D=f?u.completedBg:C||v?u.activeBorder:u.futureBorder,k=f?u.completedText:C||v?u.activeText:u.futureText,h=v?u.activeText:w?u.labelFuture:u.labelText,F=w?u.descFuture:u.descText,S=f?u.lineCompleted:u.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",alignItems:"flex-start",flex:y?"0 0 auto":"1 1 0",minWidth:0,cursor:g?"pointer":"default"},onClick:()=>g&&n?.(m),onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),children:[jsxs("div",{style:{display:"flex",flexDirection:p?"row":"column",alignItems:"center",width:p?"100%":"auto"},children:[jsx("div",{style:{width:l,height:l,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:M,border:`2px solid ${D}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:f?jsx(CheckIcon,{size:14,color:u.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:k,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!y&&jsx("div",{style:p?{flex:1,height:"2px",backgroundColor:S,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:S,margin:"6px 0",marginLeft:`${l/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:p?"10px":0,marginLeft:p?0:"14px",paddingTop:p?0:"4px",textAlign:"left",minHeight:p||y?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:C||v?600:500,color:h,lineHeight:"normal",transition:"color 0.2s ease"},children:b.label}),b.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:F,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:b.description})]})]},m)})})};Wr.displayName="Stepper";var ic=({size:e=16,color:t})=>{let[o,r]=useState(0),n=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let s=i=>{a.current===void 0&&(a.current=i),r((i-a.current)/800*360%360),n.current=requestAnimationFrame(s);};return n.current=requestAnimationFrame(s),()=>{n.current!==void 0&&cancelAnimationFrame(n.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},lc={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},dc=({steps:e,activeStep:t,onStepChange:o,orientation:r="horizontal",showNavigation:n=true,finishLabel:a="Dokon\u010Dit",nextLabel:s="Dal\u0161\xED",prevLabel:i="P\u0159edchoz\xED",style:u,className:c})=>{let d=P(),p=lc[d],[l,x]=useState(false),b=t<=0,m=t>=e.length-1,f=Math.max(0,Math.min(t,e.length-1)),C=r==="horizontal",w=e.map(h=>({label:h.label,description:h.description})),y=useCallback(async()=>{if(l)return;let h=e[f];if(h.validate){x(true);try{if(!await h.validate()){x(!1);return}}catch{x(false);return}x(false);}o(f+1);},[l,e,f,o]),g=useCallback(()=>{f>0&&o(f-1);},[f,o]),v=useCallback(h=>{h<f&&o(h);},[f,o]);if(e.length===0)return null;let M={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},D={...M,backgroundColor:l?p.buttonDisabledBg:p.buttonPrimary,color:l?p.buttonDisabledText:p.buttonPrimaryText,border:"1px solid transparent",cursor:l?"not-allowed":"pointer"},k={...M,backgroundColor:p.buttonSecondaryBg,color:p.buttonSecondaryText,border:`1px solid ${p.buttonSecondaryBorder}`};return jsxs("div",{className:c,style:{display:"flex",flexDirection:C?"column":"row",gap:C?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...u},children:[jsx("div",{style:{flexShrink:0,...C?{}:{width:"240px"}},children:jsx(Wr,{steps:w,activeStep:f,orientation:r,clickable:"completed",onStepClick:v})}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsx("div",{style:{flex:1,padding:C?"24px 0":"0"},children:e[f]?.content}),n&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${p.navBorder}`,marginTop:"8px"},children:[jsx("div",{children:!b&&jsxs("button",{type:"button",style:k,onClick:g,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonSecondaryHover);},onMouseLeave:h=>{h.currentTarget.style.backgroundColor=p.buttonSecondaryBg;},children:[jsx(CaretLeft,{size:14}),i]})}),jsx("button",{type:"button",style:D,onClick:y,disabled:l,onMouseEnter:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimaryHover);},onMouseLeave:h=>{l||(h.currentTarget.style.backgroundColor=p.buttonPrimary);},children:l?jsx(ic,{size:14,color:p.buttonDisabledText}):m?jsxs(Fragment,{children:[jsx(Check,{size:14}),a]}):jsxs(Fragment,{children:[s,jsx(CaretRight,{size:14})]})})]})]})]})};dc.displayName="FormWizard";var pc={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Vr=180,fc=({trigger:e,items:t,position:o="bottom-left",className:r,style:n})=>{let a=P(),s=pc[a],i=useRef(null),u=useRef(null),[c,d]=useState(false),[p,l]=useState(false),[x,b]=useState("idle"),[m,f]=useState({top:0,left:0,openAbove:false}),[C,w]=useState(-1),y=useCallback(()=>{d(true),l(true),b("opening"),w(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>b("open"));});},[]),g=useCallback(()=>{d(false),b("closing");let k=setTimeout(()=>{l(false),b("idle");},Vr);return ()=>clearTimeout(k)},[]),v=useCallback(()=>{if(!i.current)return;let k=i.current.getBoundingClientRect(),h=u.current?.offsetHeight??200,F=u.current?.offsetWidth??200,S=window.innerHeight-k.bottom-6,I=k.top-6,L=S<h&&I>S,R;o==="bottom-right"?(R=k.right-F,R<4&&(R=4)):(R=k.left,R+F>window.innerWidth-4&&(R=window.innerWidth-F-4)),f({top:L?k.top-6:k.bottom+6,left:R,openAbove:L});},[o]);useEffect(()=>{if(p)return v(),window.addEventListener("scroll",v,true),window.addEventListener("resize",v),()=>{window.removeEventListener("scroll",v,true),window.removeEventListener("resize",v);}},[p,v]),useEffect(()=>{if(!c)return;let k=h=>{let F=h.target,S=i.current?.contains(F),I=u.current?.contains(F);!S&&!I&&g();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,g]),useEffect(()=>{if(!c)return;let k=t.map((F,S)=>({item:F,idx:S})).filter(({item:F})=>!F.divider&&!F.disabled),h=F=>{switch(F.key){case "Escape":F.preventDefault(),g();break;case "ArrowDown":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S<k.length-1?S+1:0;w(k[I]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let S=k.findIndex(({idx:L})=>L===C),I=S>0?S-1:k.length-1;w(k[I]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),C>=0){let S=t[C];S&&!S.divider&&!S.disabled&&(S.onClick?.(),g());}break}};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[c,C,t,g]);let M=()=>{let k=m.openAbove,h=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",S={transition:`opacity ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Vr}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...S,opacity:0,transform:`${h} scale(0.97)`}:x==="open"?{...S,opacity:1,transform:"translateY(0) scale(1)"}:{...S,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},D=p?createPortal(jsx("div",{ref:u,role:"menu",style:{position:"fixed",...m.openAbove?{bottom:window.innerHeight-m.top,left:m.left}:{top:m.top,left:m.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:m.openAbove?"bottom center":"top center",...M()},children:t.map((k,h)=>{if(k.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${h>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},h);if(k.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},h);let F=k.danger,S=k.disabled,I=h===C,L=typeof k.label!="string",R=L&&!k.onClick,T=S?s.textDisabled:F?s.dangerText:s.text,E=F?s.dangerHover:s.hoverBg;return R?jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},h):jsxs("div",{role:"menuitem","aria-disabled":S,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:T,backgroundColor:I?E:"transparent",cursor:S?"not-allowed":"pointer",opacity:S?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{S||(k.onClick?.(),g());},onMouseEnter:()=>{S||w(h);},onMouseLeave:()=>w(-1),children:[k.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:k.label}):k.label]},h)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...n},children:[jsx("div",{ref:i,onClick:()=>{c?g():y();},style:{display:"inline-flex",cursor:"pointer"},children:e}),D]})};fc.displayName="DropdownMenu";var gc={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},Nb=({variant:e="default",icon:t,iconPosition:o="left",showIcon:r=true,children:n,style:a,className:s,onMouseEnter:i,onMouseLeave:u,target:c,rel:d,...p})=>{let l=P(),x=gc[l],[b,m]=useState(false),f=e==="danger"?x.danger:x.default,C={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:b?x.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:f,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},w=r&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:C,className:s,target:c,rel:d??(c==="_blank"?"noopener noreferrer":void 0),onMouseEnter:y=>{m(true),i?.(y);},onMouseLeave:y=>{m(false),u?.(y);},...p,children:o==="right"?jsxs(Fragment,{children:[n,w]}):jsxs(Fragment,{children:[w,n]})})};var hc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},ko=180,yc=({open:e,onClose:t,value:o,onChange:r,results:n,loading:a=false,placeholder:s="Hledat...",className:i,style:u})=>{let c=P(),d=hc[c],[p,l]=useState(false),[x,b]=useState("idle"),[m,f]=useState(-1),C=useRef(null),w=useRef(null);useEffect(()=>{let h="sm-spotlight-scrollbar-hide";if(document.getElementById(h))return;let F=document.createElement("style");F.id=h,F.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(F);},[]);let y=n;useEffect(()=>{if(e){l(true),b("opening"),f(-1);let h=setTimeout(()=>{b("open");},10);return ()=>clearTimeout(h)}else if(p){b("closing");let h=setTimeout(()=>{l(false),b("idle");},ko);return ()=>clearTimeout(h)}},[e]),useEffect(()=>{p&&x==="open"&&C.current?.focus();},[p,x]),useEffect(()=>{f(-1);},[n]),useEffect(()=>{if(m<0||!w.current)return;let h=w.current.querySelector(`[data-spotlight-index="${m}"]`);h&&h.scrollIntoView({block:"nearest"});},[m]);let g=useCallback(h=>{switch(h.key){case "Escape":h.preventDefault(),t();break;case "ArrowDown":{h.preventDefault(),f(F=>{let S=F+1;return S>=y.length?0:S});break}case "ArrowUp":{h.preventDefault(),f(F=>{let S=F-1;return S<0?y.length-1:S});break}case "Enter":{h.preventDefault(),m>=0&&m<y.length&&(y[m].onSelect(),t());break}}},[y,m,t]),v=[],M=new Map;y.forEach((h,F)=>{let S=M.get(h.category);S||(S=[],M.set(h.category,S),v.push({category:h.category,items:S})),S.push({...h,flatIndex:F});});let D=()=>{let h={transition:`opacity ${ko}ms ease`};return x==="opening"||x==="idle"?{...h,opacity:0}:x==="open"?{...h,opacity:1}:{...h,opacity:0,pointerEvents:"none"}},k=()=>{let h={transition:`opacity ${ko}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${ko}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...h,opacity:0,transform:"scale(0.95) translateY(-10px)"}:x==="open"?{...h,opacity:1,transform:"scale(1) translateY(0)"}:{...h,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return p?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...D()},onKeyDown:g,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:d.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:i,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:d.cardBg,border:`1px solid ${d.cardBorder}`,borderRadius:"16px",boxShadow:d.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...k(),...u},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${d.divider}`},children:[jsx(MagnifyingGlass,{size:18,color:d.textSecondary}),jsx("input",{ref:C,type:"text",value:o,onChange:h=>r(h.target.value),placeholder:s,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:d.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:d.kbdBg,border:`1px solid ${d.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:d.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:w,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(h=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsx(xe,{variant:"rect",width:28,height:28}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(xe,{variant:"text",width:`${50+h%3*15}%`,height:14}),jsx(xe,{variant:"text",width:`${30+h%2*20}%`,height:11})]})]},h))}):v.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:d.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):v.map(h=>jsxs("div",{role:"group","aria-label":h.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:d.categoryText,userSelect:"none"},children:h.category}),h.items.map(F=>{let S=F.flatIndex===m;return jsxs("div",{role:"option","aria-selected":S,"data-spotlight-index":F.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?d.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{F.onSelect(),t();},onMouseEnter:()=>f(F.flatIndex),onMouseLeave:()=>f(-1),children:[F.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?d.activeBg:d.hoverBg,color:d.text,transition:"background-color 0.1s ease"},children:F.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:d.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:F.label}),F.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:d.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:F.description})]})]},F.id)})]},h.category))})]})]}),document.body):null};yc.displayName="Spotlight";var Cc={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},wo=180,wc=({open:e,onClose:t,groups:o,placeholder:r="Zadejte p\u0159\xEDkaz...",style:n,className:a})=>{let s=P(),i=Cc[s],[u,c]=useState(false),[d,p]=useState("idle"),[l,x]=useState(""),[b,m]=useState(-1),f=useRef(null),C=useRef(null);useEffect(()=>{let k="sm-commandmenu-scrollbar-hide";if(document.getElementById(k))return;let h=document.createElement("style");h.id=k,h.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(h);},[]);let w=o.map(k=>({...k,items:k.items.filter(h=>h.label.toLowerCase().includes(l.toLowerCase())||h.description?.toLowerCase().includes(l.toLowerCase()))})).filter(k=>k.items.length>0),y=w.flatMap(k=>k.items);useEffect(()=>{if(e){x(""),m(-1),c(true),p("opening");let k=setTimeout(()=>{p("open");},10);return ()=>clearTimeout(k)}else if(u){p("closing");let k=setTimeout(()=>{c(false),p("idle");},wo);return ()=>clearTimeout(k)}},[e]),useEffect(()=>{u&&d==="open"&&f.current?.focus();},[u,d]),useEffect(()=>{m(-1);},[l]),useEffect(()=>{if(b<0||!C.current)return;let k=C.current.querySelector(`[data-cmd-index="${b}"]`);k&&k.scrollIntoView({block:"nearest"});},[b]);let g=useCallback(k=>{switch(k.key){case "Escape":k.preventDefault(),t();break;case "ArrowDown":{k.preventDefault(),m(h=>{let F=h+1;return F>=y.length?0:F});break}case "ArrowUp":{k.preventDefault(),m(h=>{let F=h-1;return F<0?y.length-1:F});break}case "Enter":{k.preventDefault(),b>=0&&b<y.length&&(y[b].onSelect(),t());break}}},[y,b,t]),v=()=>{let k={transition:`opacity ${wo}ms ease`};return d==="opening"||d==="idle"?{...k,opacity:0}:d==="open"?{...k,opacity:1}:{...k,opacity:0,pointerEvents:"none"}},M=()=>{let k={transition:`opacity ${wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return d==="opening"||d==="idle"?{...k,opacity:0,transform:"scale(0.95) translateY(-10px)"}:d==="open"?{...k,opacity:1,transform:"scale(1) translateY(0)"}:{...k,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},D=0;return u?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:g,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:i.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,"aria-hidden":"true"}),jsxs("div",{role:"combobox","aria-expanded":e,"aria-haspopup":"listbox",className:a,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:i.cardBg,border:`1px solid ${i.cardBorder}`,borderRadius:"16px",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...M(),...n},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${i.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:i.textSecondary}),jsx("input",{ref:f,type:"text",value:l,onChange:k=>x(k.target.value),placeholder:r,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:i.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:C,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:w.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:i.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):w.map(k=>jsxs("div",{role:"group","aria-label":k.label,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:i.categoryText,userSelect:"none"},children:k.label}),k.items.map(h=>{let F=D++,S=F===b;return jsxs("div",{role:"option","aria-selected":S,"data-cmd-index":F,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:S?i.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{h.onSelect(),t();},onMouseEnter:()=>m(F),onMouseLeave:()=>m(-1),children:[h.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:S?i.activeBg:i.hoverBg,color:i.text,transition:"background-color 0.1s ease"},children:h.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h.label}),h.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:i.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:h.description})]}),h.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:i.kbdBg,border:`1px solid ${i.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:i.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:h.shortcut})]},h.id)})]},k.label))})]})]}),document.body):null};wc.displayName="CommandMenu";var Rc={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},_r=250,Tc=({children:e,collapsed:t=false,onCollapse:o,width:r=260,collapsedWidth:n=64,style:a,className:s})=>{let i=P(),u=Rc[i],c=t?n:r;return jsx("aside",{className:s,style:{position:"relative",display:"flex",flexDirection:"column",width:`${c}px`,minWidth:`${c}px`,height:"100%",backgroundColor:u.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${u.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${_r}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Tc.displayName="AppSidebar";var zc={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},Ic=({label:e,icon:t,active:o=false,defaultExpanded:r=false,expanded:n,onExpandedChange:a,onClick:s,children:i,collapsed:u=false,disabled:c=false,style:d,className:p})=>{let l=P(),x=zc[l],b=ur.Children.count(i)>0,m=n!==void 0,[f,C]=useState(r),w=m?n:f,[y,g]=useState(false),v=useRef(null),[M,D]=useState(0);useEffect(()=>{v.current&&D(v.current.scrollHeight);},[i,w]);let k=useCallback(()=>{m?a?.(!n):C(L=>{let R=!L;return a?.(R),R});},[m,n,a]),h=useCallback(()=>{c||(b&&k(),s?.());},[c,b,k,s]),F=c?`${x.text}66`:o?x.textActive:y?x.textHover:x.text,S=c?`${x.icon}66`:o?x.iconActive:y?x.iconHover:x.icon,I=o?x.activeBg:y&&!c?x.hoverBg:"transparent";return u?jsx("button",{type:"button",onClick:h,disabled:c,title:e,className:p,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:S,cursor:c?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...d},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:F},children:e[0]})}):jsxs("div",{className:p,style:d,children:[jsxs("button",{type:"button",onClick:h,disabled:c,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:I,color:F,cursor:c?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),b&&jsx(CaretDownIcon,{size:14,color:y?x.chevronHover:x.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:w?"rotate(0deg)":"rotate(-90deg)"}})]}),b&&jsx("div",{ref:v,style:{overflow:"hidden",maxHeight:w?`${M}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:i})})]})};Ic.displayName="SidebarItem";var Pc={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Mc=({logo:e,children:t,actions:o,sticky:r=true,glass:n=true,style:a,className:s})=>{let i=P(),u=Pc[i];return jsxs("header",{className:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:n?u.background:u.backgroundSolid,borderBottom:`1px solid ${u.border}`,boxShadow:u.shadow,boxSizing:"border-box",...n?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...r?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Mc.displayName="Navbar";var Wc={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Zc={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},Ha=({variant:e="info",title:t,content:o,icon:r,onClose:n,role:a="alert",style:s,className:i})=>{let u=P(),c=Wc[u],{border:d,background:p}=c[e],l=r??Zc[e];return jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:p,border:`2px solid ${d}`,borderRadius:"8px",boxSizing:"border-box",...s},className:i,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:c.iconColor},children:l}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:c.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:c.textSecondary,lineHeight:"normal"},children:o})]})]}),n&&jsx("button",{type:"button",onClick:n,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:c.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var La=3,Uc=.06,Na=12,To=320,$a=createContext(null),_c=0,Xc=()=>`sm-toast-${++_c}-${Date.now()}`,vx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:r=8,offset:n=16,maxToasts:a=5,duration:s=4e3})=>{let[i,u]=useState([]),c=useCallback(l=>{u(x=>x.map(b=>b.id===l?{...b,lifecycle:"leaving"}:b)),setTimeout(()=>{u(x=>x.filter(b=>b.id!==l));},To+100);},[]),d=useCallback(l=>{let x=Xc(),b=l.duration??s,m={id:x,variant:l.variant??"info",title:l.title,content:l.content,icon:l.icon,duration:b,lifecycle:"entering",height:0};return u(f=>{let C=[...f,m];return C.length>a?C.slice(C.length-a):C}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u(f=>f.map(C=>C.id===x?{...C,lifecycle:"visible"}:C));});}),b>0&&setTimeout(()=>c(x),b),x},[a,c,s]),p=useCallback((l,x)=>{u(b=>b.map(m=>m.id===l&&m.height!==x?{...m,height:x}:m));},[]);return jsxs($a.Provider,{value:{toast:d,dismiss:c},children:[e,i.length>0&&jsx(jc,{toasts:i,position:t,toastWidth:o,gap:r,offset:n,onDismiss:c,onHeightMeasured:p})]})},Gc=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:r,expanded:n,isBottom:a,appeared:s,toastWidth:i,onDismiss:u,onHeightMeasured:c})=>{let d=t.lifecycle==="leaving",p=!s||d,l=n?1:Math.max(.7,1-o*Uc),x=n?0:o*Na,b=a?-x:x,f=p?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${l}) translateY(${b}px)`,C=p?0:n?1:Math.max(.4,1-o*.18),w=!n&&o>=La,y=r-o,g=useCallback(v=>{v&&t.height===0&&c(t.id,v.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:g,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:f,opacity:w?0:C,zIndex:y,transition:[`transform ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${To}ms ease`].join(", "),pointerEvents:o===0||n?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(Ha,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>u(t.id),style:{width:i,maxWidth:"100%",boxSizing:"border-box"}})})},jc=({toasts:e,position:t,toastWidth:o,gap:r,offset:n,onDismiss:a,onHeightMeasured:s})=>{let[i,u]=useState(false),[c,d]=useState(new Set),p=t.startsWith("bottom"),l=t.endsWith("right"),x=t.endsWith("center");useEffect(()=>{d(g=>{let v=new Set(g);return e.forEach(M=>{M.lifecycle==="visible"&&v.add(M.id);}),[...v].forEach(M=>{e.find(D=>D.id===M)||v.delete(M);}),v});},[e]);let f=(e[e.length-1]?.height||80)+Math.min(e.length-1,La-1)*Na,C=e.reduce((g,v)=>g+(v.height||80),0)+Math.max(0,e.length-1)*r,w=i?C:f,y=x?{left:"50%",transform:"translateX(-50%)"}:l?{right:n}:{left:n};return jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${n*2}px)`,height:w,...p?{bottom:n}:{top:n},...y,transition:`height ${To}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>u(true),onMouseLeave:()=>u(false),"aria-live":"polite","aria-atomic":"false",children:e.map((g,v)=>{let M=e.length-1-v,D=c.has(g.id),k=g.lifecycle==="leaving",h=!D||k,F;if(i&&!h){let I=e.slice(v+1).reduce((R,T)=>R+(T.height||80)+r,0);F=`translateY(${p?-I:I}px)`;}return jsx(Gc,{item:g,depthIndex:M,stackSize:e.length,expanded:i,isBottom:p,appeared:D,toastWidth:o,onDismiss:a,onHeightMeasured:s,expandedTransformOverride:F},g.id)})})},Sx=()=>{let e=useContext($a);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var rp={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},np={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},Ex=({variant:e="info",title:t,children:o,icon:r,closable:n=false,onClose:a,className:s,style:i})=>{let u=P(),c=rp[u],d=np[e],[p,l]=useState(true);if(!p)return null;let x=u==="light",b=x?d.borderLight:d.border,m=x?d.backgroundLight:d.background,f=x?d.iconColorLight:d.iconColor,w=r??{info:jsx(Info,{size:24,color:f}),success:jsx(CheckCircle,{size:24,color:f}),warning:jsx(Warning,{size:24,color:f}),error:jsx(XCircle,{size:24,color:f})}[e],y=()=>{l(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${b}`,borderRadius:"4px",boxSizing:"border-box",...i},className:s,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.descriptionText},children:o})]}),n&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var pp={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},fp={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},up={info:jsx(Info,{size:20}),success:jsx(CheckCircle,{size:20}),warning:jsx(Warning,{size:20}),error:jsx(XCircle,{size:20})},gp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,position:s="top",sticky:i=false,style:u,className:c})=>{let d=P(),p=pp[d],l=fp[e],[x,b]=useState(true);if(!x||!t&&!o)return null;let m=d==="light",f=m?l.accentLight:l.accent,C=i?p.glassBg:m?l.bgLight:l.bg,w=m?l.iconLight:l.icon,y=a??up[e],g=()=>{b(false),n?.();};return jsxs("div",{role:"alert",className:c,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:C,borderTop:s==="bottom"?`3px solid ${f}`:"none",borderBottom:s==="top"?`3px solid ${f}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...i?{position:"sticky",[s]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${p.glassBorder}`,borderRight:`1px solid ${p.glassBorder}`}:{},...u},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:w,marginTop:"1px"},children:y}),jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsx("div",{style:{fontWeight:600,fontSize:"14px",color:p.titleText,lineHeight:"normal"},children:t}),o&&jsx("div",{style:{fontSize:"13px",color:p.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),r&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:g,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:p.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=p.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=p.closeColor;},children:jsx(X,{size:16})})]})};gp.displayName="Banner";var Sp={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},kp={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},Cp=({variant:e="info",title:t,children:o,closable:r=false,onClose:n,icon:a,action:s,style:i,className:u})=>{let c=P(),d=Sp[c],p=kp[e],[l,x]=useState(true);if(!l)return null;let b=c==="light",m=b?p.bgLight:p.bg,f=b?p.accentLight:p.accent,w=a??{info:jsx(Info,{size:20,color:f}),success:jsx(CheckCircle,{size:20,color:f}),warning:jsx(Warning,{size:20,color:f}),error:jsx(XCircle,{size:20,color:f})}[e],y=()=>{x(false),n?.();};return jsxs("div",{role:"status",className:u,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${d.border}`,borderRadius:"12px",boxSizing:"border-box",...i},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:w}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:d.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:d.bodyText},children:o})]}),s&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:s}),r&&jsx("button",{type:"button",onClick:y,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:d.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};Cp.displayName="Notification";var Va={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},wp={sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"},lg:{height:16,fontSize:"14px"}},Ya="sm-ui-progress-stripes",Rp=()=>{if(typeof document>"u"||document.getElementById(Ya))return;let e=document.createElement("style");e.id=Ya,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Vx=({value:e,size:t="md",color:o="#E8612D",showValue:r=false,label:n,striped:a=false,animated:s=false,className:i,style:u})=>{let c=P(),d=Va[c],p=wp[t],l=Math.max(0,Math.min(100,e));a&&s&&Rp();let x=a?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{};return jsxs("div",{role:"progressbar","aria-valuenow":l,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n,style:{display:"flex",flexDirection:"column",gap:"6px",width:"100%",...u},className:i,children:[(n||r)&&jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[n&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:d.label,userSelect:"none"},children:n}),r&&jsxs("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:p.fontSize,color:d.text,userSelect:"none",marginLeft:"auto"},children:[Math.round(l),"%"]})]}),jsx("div",{style:{width:"100%",height:p.height,backgroundColor:d.trackBg,borderRadius:p.height/2,overflow:"hidden"},children:jsx("div",{style:{width:`${l}%`,height:"100%",backgroundColor:o,borderRadius:p.height/2,transition:"width 0.3s ease",...x}})})]})},Ux=({value:e,size:t=64,strokeWidth:o=4,color:r="#E8612D",showValue:n=false,label:a,className:s,style:i})=>{let u=P(),c=Va[u],d=Math.max(0,Math.min(100,e)),p=(t-o)/2,l=2*Math.PI*p,x=l-d/100*l;return jsxs("div",{role:"progressbar","aria-valuenow":d,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...i},className:s,children:[jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:c.trackBg,strokeWidth:o}),jsx("circle",{cx:t/2,cy:t/2,r:p,fill:"none",stroke:r,strokeWidth:o,strokeLinecap:"round",strokeDasharray:l,strokeDashoffset:x,style:{transition:"stroke-dashoffset 0.3s ease"}})]}),n&&jsxs("span",{style:{position:"relative",marginTop:-t/2-6,marginBottom:t/2-6,fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(11,t*.22)}px`,color:c.text,userSelect:"none",transform:"translateY(-50%)",top:"50%",display:"block",textAlign:"center"},children:[Math.round(d),"%"]}),a&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:c.label,userSelect:"none"},children:a})]})};var Ep={sm:16,md:24,lg:40},qx=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:r,style:n})=>{let[a,s]=useState(0),i=useRef(void 0),u=useRef(void 0);useEffect(()=>{let p=l=>{u.current===void 0&&(u.current=l),s((l-u.current)/800*360%360),i.current=requestAnimationFrame(p);};return i.current=requestAnimationFrame(p),()=>{i.current!==void 0&&cancelAnimationFrame(i.current);}},[]);let c=typeof e=="number"?e:Ep[e]??24,d=t??"currentColor";return jsx("span",{role:"status","aria-label":o,className:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...n},children:jsxs("svg",{width:c,height:c,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:d,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:d,strokeWidth:"2",strokeLinecap:"round"})]})})};var Dp={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},zp=({open:e,onConfirm:t,onCancel:o,title:r,description:n,confirmLabel:a="Potvrdit",cancelLabel:s="Zru\u0161it",variant:i="default",loading:u=false,style:c,className:d})=>{let p=P(),l=Dp[p],[x,b]=useState(false),[m,f]=useState(false),C=i==="danger",w=C?m?l.dangerHover:l.dangerBg:m?l.confirmHover:l.confirmBg,y=C?l.dangerText:l.confirmText;return jsx(zr,{open:e,onClose:o,title:r,size:"sm",className:d,style:c,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,onMouseEnter:()=>b(true),onMouseLeave:()=>b(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:x?l.cancelHover:l.cancelBg,border:`1px solid ${l.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:l.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:s}),jsx("button",{type:"button",onClick:t,disabled:u,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:w,border:"none",borderRadius:"6px",cursor:u?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:y,lineHeight:"normal",opacity:u?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:u?"Zpracov\xE1v\xE1m...":a})]}),children:n&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:l.descriptionText},children:n})})};zp.displayName="ConfirmDialog";var Np={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},$p={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Wp=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},Zp=({text:e,children:t,size:o="md",variant:r="icon",label:n="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:s,style:i,className:u})=>{let c=P(),d=Np[c],p=$p[o],[l,x]=useState(false),[b,m]=useState(false),f=useRef(null),C=useCallback(async()=>{await Wp(e)&&(x(true),s?.(),f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{x(false),f.current=null;},2e3));},[e,s]),w=l?d.successColor:b?d.iconHover:d.iconColor,y=l?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:w,...i},children:t}):r==="icon"?jsx("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:p.iconPadding,background:b?d.buttonHover:d.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:w,...i},children:jsx(y,{size:p.iconSize,color:w})}):jsxs("button",{type:"button","aria-label":l?a:n,onClick:C,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:u,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:p.buttonPadding,background:b?d.buttonHover:d.buttonBg,border:`1px solid ${d.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:p.fontSize,fontWeight:500,color:l?d.successColor:d.buttonText,lineHeight:"normal",...i},children:[jsx(y,{size:p.iconSize,color:l?d.successColor:d.buttonText}),l?a:n]})};Zp.displayName="CopyButton";var Yp={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},bm=({orientation:e="horizontal",label:t,className:o,style:r})=>{let n=P(),a=Yp[n];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...r}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...r},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...r}})};var Up={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},_p={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},hm=({direction:e="column",gap:t=8,align:o="stretch",justify:r="start",wrap:n=false,fullWidth:a=false,children:s,className:i,style:u})=>jsx("div",{className:i,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Up[o],justifyContent:_p[r],flexWrap:n?"wrap":"nowrap",width:a?"100%":void 0,...u},children:s});var Gp={sm:640,md:768,lg:1024,xl:1280},Sm=({maxWidth:e="lg",padding:t=16,centered:o=true,children:r,className:n,style:a})=>{let s=typeof e=="number"?e:Gp[e],i=typeof t=="number"?`${t}px`:t;return jsx("div",{className:n,style:{maxWidth:`${s}px`,width:"100%",padding:i,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:r})};var ef={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},ja="smDragListPulse",tf=`@keyframes ${ja}{0%,100%{opacity:1}50%{opacity:0.5}}`;function en(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let r=en(o.children,t);if(r)return r}}return null}function Jr(e,t,o){let r=en(e,t);if(!r||!r.children)return false;for(let n of r.children)if(n.id===o||Jr([n],n.id,o))return true;return false}function qa(e,t){let o=null;return [e.reduce((n,a)=>{if(a.id===t)return o=a,n;if(a.children){let[s,i]=qa(a.children,t);i&&(o=i),n.push({...a,children:s.length>0?s:void 0});}else n.push(a);return n},[]),o]}function Qr(e,t,o,r){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],r],expanded:true}:a.children?{...a,children:Qr(a.children,t,o,r)}:a);let n=[];for(let a of e)a.id===t?o==="before"?(n.push(r),n.push(a)):(n.push(a),n.push(r)):a.children?n.push({...a,children:Qr(a.children,t,o,r)}):n.push(a);return n}function Ka(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:Ka(o.children,t)}:o)}function Ja(e,t,o){return e.map(r=>r.id===t?{...r,expanded:o}:r.children?{...r,children:Ja(r.children,t,o)}:r)}var Ga=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${ja} 1.2s ease-in-out infinite`,width:"100%"},children:jsx("div",{style:{position:"absolute",left:"-3px",top:"-3px",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e}})}),Qa=({item:e,depth:t,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b})=>{let[m,f]=useState(false),[C,w]=useState(false),[y,g]=useState(false),v=useRef(false),M=useRef(null),D=e.children&&e.children.length>0,k=e.expanded??false,h=n===e.id,F=n!==null,S=x==="handle",I=a?.targetId===e.id,L=I&&a?.position==="before",R=I&&a?.position==="after",T=I&&a?.position==="inside",E=h?"transparent":T?b.nestHighlight:C&&!F?b.itemHoverBg:b.itemBg,N=T?b.nestBorder:h?"transparent":b.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[L&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),jsxs("div",{ref:M,draggable:true,onDragStart:W=>{if(S&&!v.current){W.preventDefault();return}if(v.current=false,W.dataTransfer.effectAllowed="move",W.dataTransfer.setData("text/plain",e.id),M.current){let z=M.current.cloneNode(true);z.style.width=`${M.current.offsetWidth}px`,z.style.opacity="0.85",z.style.transform="rotate(1.5deg) scale(1.02)",z.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",z.style.position="fixed",z.style.top="-1000px",document.body.appendChild(z),W.dataTransfer.setDragImage(z,W.nativeEvent.offsetX,W.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(z));}s(e.id);},onDragOver:W=>{W.preventDefault(),W.stopPropagation(),i(W,e.id,t);},onDragLeave:W=>{let z=W.relatedTarget;M.current&&z&&M.current.contains(z)||(W.stopPropagation(),u(W,M.current),w(false));},onDrop:W=>{W.preventDefault(),W.stopPropagation(),c(W);},onDragEnd:d,onMouseEnter:()=>w(true),onMouseLeave:()=>w(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:h?"transparent":b.text,cursor:F?"grabbing":S?"default":"grab",opacity:h?.35:1,backgroundColor:E,borderWidth:"1px",borderColor:N,borderStyle:h?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:T?`inset 0 0 0 1px ${b.nestBorder}`:C&&!F?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:T?"scale(1.01)":"scale(1)"},children:[!l&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:F?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:h?"hidden":"visible"},onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),onMouseDown:()=>{v.current=true;},children:jsx(DotsSixVertical,{size:14,color:m?b.gripHover:b.gripColor})}),T&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:b.dropIndicator})}),D?jsx("button",{type:"button",onClick:W=>{W.stopPropagation(),p(e.id);},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:h?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:y?b.chevronHover:b.chevron,style:{transition:"transform 0.2s ease",transform:k?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:h?"hidden":"visible"},children:l?l(e,{handleProps:{onMouseDown:()=>{v.current=true;},style:{cursor:F?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:h,depth:t,isExpanded:k,toggleExpand:()=>p(e.id),hasChildren:!!D}):jsxs(Fragment,{children:[e.icon&&jsx("span",{style:{display:"inline-flex",alignItems:"center",flexShrink:0,opacity:.7},children:e.icon}),jsx("span",{style:{flex:1,lineHeight:"normal",fontWeight:t===0?500:400,fontSize:t===0?"14px":"13px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.label})]})})]}),R&&jsx("div",{style:{position:"absolute",bottom:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(Ga,{color:b.dropIndicator})}),D&&k&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${b.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(W=>jsx(Qa,{item:W,depth:t+1,allowNesting:o,maxDepth:r,draggedId:n,dropState:a,onDragStart:s,onDragOver:i,onDragLeave:u,onDrop:c,onDragEnd:d,onToggleExpand:p,renderItem:l,dragMode:x,tokens:b},W.id))})]})},of=({items:e,onReorder:t,renderItem:o,allowNesting:r=false,maxDepth:n=3,dragMode:a="full",className:s,style:i})=>{let u=P(),c=ef[u],[d,p]=useState(null),[l,x]=useState(null),b=useRef(null),m=useRef(void 0),f=useRef(void 0),C=useRef(null),w=useCallback(k=>{p(k);},[]),y=useCallback((k,h,F)=>{if(!d||d===h||Jr(e,d,h))return;m.current&&(clearTimeout(m.current),m.current=void 0);let S=k.currentTarget.getBoundingClientRect(),I=k.clientY-S.top,L=S.height,R;r&&F<n?I<L*.25?R="before":I>L*.75?R="after":R="inside":I<L*.35?R="before":I>L*.65?R="after":C.current?.targetId===h?R=C.current.position:R=I<L/2?"before":"after";let T={targetId:h,position:R},E=en(e,h);R==="inside"&&E?.children&&E.children.length>0&&!E.expanded?(C.current?.targetId!==h||C.current?.position!=="inside")&&(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{t(Ja(e,h,true));},600)):f.current&&(clearTimeout(f.current),f.current=void 0),C.current=T,x(T);},[d,e,r,n,t]),g=useCallback((k,h)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{x(null),C.current=null;},60),f.current&&(clearTimeout(f.current),f.current=void 0);},[]),v=useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),!d||!l)return;let{targetId:k,position:h}=l;if(d===k||Jr(e,d,k))return;let[F,S]=qa(e,d);if(!S)return;let I=Qr(F,k,h,S);t(I),p(null),x(null),C.current=null;},[d,l,e,t]),M=useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),f.current&&(clearTimeout(f.current),f.current=void 0),p(null),x(null),C.current=null;},[]),D=useCallback(k=>{t(Ka(e,k));},[e,t]);return useEffect(()=>()=>{m.current&&clearTimeout(m.current),f.current&&clearTimeout(f.current);},[]),jsxs("div",{ref:b,className:s,style:{display:"flex",flexDirection:"column",gap:"6px",...i},children:[jsx("style",{dangerouslySetInnerHTML:{__html:tf}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.textSecondary,backgroundColor:c.itemBg,borderRadius:"10px",border:`1px solid ${c.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(k=>jsx(Qa,{item:k,depth:0,allowNesting:r,maxDepth:n,draggedId:d,dropState:l,onDragStart:w,onDragOver:y,onDragLeave:g,onDrop:v,onDragEnd:M,onToggleExpand:D,renderItem:o,dragMode:a,tokens:c},k.id))]})};of.displayName="DragList";export{Il as Accordion,zl as AccordionItem,Ex as Alert,Tc as AppSidebar,l0 as Avatar,g0 as Badge,gp as Banner,_d as Breadcrumb,ss as Button,ud as Calendar,Tl as Card,Rn as Checkbox,Tn as CheckboxGroup,Mi as ColorPicker,Ns as Combobox,wc as CommandMenu,zp as ConfirmDialog,Sm as Container,Zp as CopyButton,hl as DataGrid,hd as DataList,Cn as DatePicker,Gs as DatePickerGroup,bm as Divider,of as DragList,Nd as Drawer,fc as DropdownMenu,Kl as EmptyState,Nn as FileUpload,dc as FormWizard,ll as ImageCropper,ln as Input,gf as InputGroup,Nb as Link,Cl as MobileDataCard,zr as Modal,Mc as Navbar,Cp as Notification,Cs as NumberInput,Gi as OTPInput,Jd as Pagination,rl as PhoneInput,_l as Popover,Vx as ProgressBar,Ux as ProgressCircle,Go as Radio,En as RadioGroup,Wi as Rating,Ti as SegmentedControl,gn as Select,Es as SelectGroup,Yd as Sheet,Ic as SidebarItem,xe as Skeleton,Hn as Slider,qx as Spinner,yc as Spotlight,hm as Stack,od as Stat,Bd as StatusBadge,Wr as Stepper,Dn as Switch,Al as Tab,Hl as TabPanel,bl as Table,Ll as Tabs,u0 as Tag,b0 as TagItem,In as Textarea,xd as Timeline,Ha as Toast,vx as ToasterProvider,yr as Tooltip,Cd as Tree,P as useTheme,Sx as useToast};//# sourceMappingURL=index.mjs.map
|
|
18
|
+
`,document.head.appendChild(t),On=true;},Td=({status:e,label:t,size:o="md",pulse:n=false,color:r,style:a,className:l})=>{let s=A(),g=kd[s],b=wd[o],c=r||Cd[e]||"#888888";return n&&Rd(),jsxs("span",{className:l,style:{display:"inline-flex",alignItems:"center",gap:b.gap,...a},children:[jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:`${b.dot}px`,height:`${b.dot}px`,flexShrink:0},children:[n&&jsx("span",{style:{position:"absolute",inset:0,borderRadius:"50%",backgroundColor:c,animation:"sm-statusbadge-pulse 2s ease-in-out infinite"}}),jsx("span",{style:{position:"relative",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:c}})]}),t&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:b.fontSize,fontWeight:400,color:g.labelColor,lineHeight:"normal",whiteSpace:"nowrap"},children:t})]})};Td.displayName="StatusBadge";var zd={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset"}},Ho=180,Bd={sm:{width:"400px",maxHeight:"70vh"},md:{width:"560px",maxHeight:"80vh"},lg:{width:"720px",maxHeight:"85vh"},fullscreen:{width:"100vw",maxHeight:"100vh"}},Vn=({open:e,onClose:t,title:o,titleSlot:n,children:r,footer:a,size:l="md",width:s,closeOnOverlay:g=true,closeOnEscape:b=true,dismissable:c=true,showClose:d=true,showHeaderDivider:i=true,className:u,style:f})=>{let m=A(),p=zd[m],R=Bd[l],z=s?typeof s=="number"?`${s}px`:s:R.width,[h,S]=useState(false),[x,I]=useState("idle"),v=useRef(null),E=useRef(null);useEffect(()=>{if(e){E.current=document.activeElement,S(true),I("opening");let k=setTimeout(()=>{I("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(k)}else if(h){I("closing");let k=setTimeout(()=>{S(false),I("idle"),document.body.style.overflow="",E.current instanceof HTMLElement&&E.current.focus();},Ho);return ()=>clearTimeout(k)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!h||!b||!c)return;let k=M=>{M.key==="Escape"&&t();};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[h,b,t]),useEffect(()=>{if(!h||!v.current)return;let k=v.current,M='a[href], button:not([disabled]), textarea, input, select, [tabindex]:not([tabindex="-1"])',F=w=>{if(w.key!=="Tab")return;let T=k.querySelectorAll(M);if(T.length===0){w.preventDefault();return}let L=T[0],N=T[T.length-1];w.shiftKey?document.activeElement===L&&(w.preventDefault(),N.focus()):document.activeElement===N&&(w.preventDefault(),L.focus());};return document.addEventListener("keydown",F),k.focus(),()=>document.removeEventListener("keydown",F)},[h]);let y=()=>{let k={transition:`opacity ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Ho}ms cubic-bezier(0.16, 1, 0.3, 1)`};return x==="opening"||x==="idle"?{...k,opacity:0,transform:"scale(0.95)"}:x==="open"?{...k,opacity:1,transform:"scale(1)"}:{...k,opacity:0,transform:"scale(0.97)",pointerEvents:"none"}};if(!h)return null;let D=l==="fullscreen",B=()=>{let k={transition:`opacity ${Ho}ms ease`};return x==="opening"||x==="idle"?{...k,opacity:0}:x==="open"?{...k,opacity:1}:{...k,opacity:0}};return createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:D?"stretch":"center",justifyContent:"center",...x==="closing"?{pointerEvents:"none"}:{}},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:p.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",...B()},onClick:g&&c?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:v,role:"dialog","aria-modal":"true","aria-label":typeof o=="string"?o:void 0,tabIndex:-1,className:u,style:{position:"relative",display:"flex",flexDirection:"column",width:z,maxWidth:D?void 0:"calc(100vw - 32px)",maxHeight:D?"100vh":R.maxHeight,backgroundColor:p.cardBg,border:D?"none":`1px solid ${p.cardBorder}`,borderRadius:D?0:"16px",boxShadow:p.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",outline:"none",overflow:"hidden",boxSizing:"border-box",...y(),...f},children:[n?jsx("div",{style:{flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:n}):o||d&&c?jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:i?`1px solid ${p.divider}`:"none"},children:[o&&(typeof o=="string"?jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:p.titleText},children:o}):jsx("div",{style:{flex:1,minWidth:0},children:o})),d&&c&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:p.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:k=>{k.currentTarget.style.backgroundColor=p.closeHover;},onMouseLeave:k=>{k.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:p.closeColor})})]}):null,jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:p.bodyText},children:r}),a&&jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"12px",padding:"16px 24px 20px",flexShrink:0,borderTop:`1px solid ${p.divider}`},children:a})]})]}),document.body)};Vn.displayName="Modal";var Md={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)"}},Xn=220,Ad=({open:e,onClose:t,position:o="right",title:n,children:r,footer:a,width:l=400,showClose:s=true,closeOnOverlay:g=true,className:b,style:c})=>{let d=A(),i=Md[d],[u,f]=useState(false),[m,p]=useState("idle"),R=useRef(null),z=typeof l=="number"?`${l}px`:l;useEffect(()=>{if(e){f(true),p("opening");let x=setTimeout(()=>{p("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(u){p("closing");let x=setTimeout(()=>{f(false),p("idle"),document.body.style.overflow="";},Xn);return ()=>clearTimeout(x)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!u)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[u,t]);let h=x=>{let I=o==="right"?"100%":"-100%";return x==="opening"||x==="idle"?I:x==="open"?"0%":I},S=()=>m==="open"?1:0;return u?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:S(),transition:`opacity ${Xn}ms ease`,...m==="closing"?{pointerEvents:"none"}:{}},onClick:g?t:void 0,"aria-hidden":"true"}),jsxs("div",{ref:R,role:"dialog","aria-modal":"true","aria-label":n,className:b,style:{position:"absolute",top:0,bottom:0,[o]:0,width:z,maxWidth:"100vw",display:"flex",flexDirection:"column",backgroundColor:i.panelBg,borderLeft:o==="right"?`1px solid ${i.panelBorder}`:"none",borderRight:o==="left"?`1px solid ${i.panelBorder}`:"none",boxShadow:i.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:`translateX(${h(m)})`,transition:`transform ${Xn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...c},children:[(n||s)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${i.divider}`},children:[n&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:i.titleText},children:n}),s&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:i.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=i.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children: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:r}),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};Ad.displayName="Drawer";var $d={dark:{overlay:"rgba(0,0,0,0.4)",panelBg:"rgba(24,24,24,0.65)",panelBorder:"rgba(255,255,255,0.1)",titleText:"#ffffff",bodyText:"#eaeaea",closeHover:"rgba(255,255,255,0.08)",closeColor:"#ACACAC",divider:"rgba(255,255,255,0.08)",shadow:"0 0 60px rgba(0,0,0,0.5)",handleBg:"rgba(255,255,255,0.2)"},light:{overlay:"rgba(0,0,0,0.18)",panelBg:"rgba(255,255,255,0.65)",panelBorder:"rgba(0,0,0,0.08)",titleText:"#1a1a1a",bodyText:"#333333",closeHover:"rgba(0,0,0,0.05)",closeColor:"#888888",divider:"rgba(0,0,0,0.06)",shadow:"0 0 60px rgba(0,0,0,0.12)",handleBg:"rgba(0,0,0,0.15)"}},qn=180,Wd=({open:e,onClose:t,children:o,side:n="bottom",title:r,showClose:a=true,style:l,className:s})=>{let g=A(),b=$d[g],[c,d]=useState(false),[i,u]=useState("idle"),f=useRef(null);useEffect(()=>{if(e){d(true),u("opening");let x=setTimeout(()=>{u("open");},10);return document.body.style.overflow="hidden",()=>clearTimeout(x)}else if(c){u("closing");let x=setTimeout(()=>{d(false),u("idle"),document.body.style.overflow="";},qn);return ()=>clearTimeout(x)}},[e]),useEffect(()=>()=>{document.body.style.overflow="";},[]),useEffect(()=>{if(!c)return;let x=I=>{I.key==="Escape"&&t();};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[c,t]);let R=x=>{let I={bottom:"translateY(100%)",top:"translateY(-100%)",right:"translateX(100%)",left:"translateX(-100%)"};return x==="opening"||x==="idle"?I[n]:x==="open"?"translate(0, 0)":I[n]},z=()=>i==="open"?1:0,h={};n==="bottom"?(h.bottom=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderTopLeftRadius="16px",h.borderTopRightRadius="16px"):n==="top"?(h.top=0,h.left=0,h.right=0,h.maxHeight="85vh",h.borderBottomLeftRadius="16px",h.borderBottomRightRadius="16px"):n==="right"?(h.top=0,h.bottom=0,h.right=0,h.width="400px",h.maxWidth="100vw"):n==="left"&&(h.top=0,h.bottom=0,h.left=0,h.width="400px",h.maxWidth="100vw");let S={};return n==="bottom"?S.borderTop=`1px solid ${b.panelBorder}`:n==="top"?S.borderBottom=`1px solid ${b.panelBorder}`:n==="right"?S.borderLeft=`1px solid ${b.panelBorder}`:n==="left"&&(S.borderRight=`1px solid ${b.panelBorder}`),c?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998},children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:b.overlay,backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",opacity:z(),transition:`opacity ${qn}ms ease`,...i==="closing"?{pointerEvents:"none"}:{}},onClick:t,"aria-hidden":"true"}),jsxs("div",{ref:f,role:"dialog","aria-modal":"true","aria-label":r,className:s,style:{position:"absolute",display:"flex",flexDirection:"column",backgroundColor:b.panelBg,boxShadow:b.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",transform:R(i),transition:`transform ${qn}ms cubic-bezier(0.16, 1, 0.3, 1)`,boxSizing:"border-box",outline:"none",...h,...S,...l},children:[n==="bottom"&&jsx("div",{style:{display:"flex",justifyContent:"center",padding:"10px 0 4px",flexShrink:0},children:jsx("div",{style:{width:"36px",height:"4px",borderRadius:"2px",backgroundColor:b.handleBg}})}),(r||a)&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:n==="bottom"?"8px 24px 16px":"20px 24px 16px",flexShrink:0,borderBottom:`1px solid ${b.divider}`},children:[r&&jsx("h2",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"18px",fontWeight:600,lineHeight:"normal",color:b.titleText},children:r}),a&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:t,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",border:"none",background:"transparent",borderRadius:"8px",cursor:"pointer",color:b.closeColor,marginLeft:"auto",flexShrink:0,transition:"background-color 0.12s ease"},onMouseEnter:x=>{x.currentTarget.style.backgroundColor=b.closeHover;},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="transparent";},children:jsx(XIcon,{size:16,color:b.closeColor})})]}),jsx("div",{style:{flex:1,overflowY:"auto",padding:"20px 24px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:b.bodyText},children:o})]})]}),document.body):null};Wd.displayName="Sheet";var Zd={dark:{text:"#ACACAC",activeText:"#ffffff",linkHover:"#E8612D",separator:"rgba(255,255,255,0.3)"},light:{text:"#888888",activeText:"#1a1a1a",linkHover:"#E8612D",separator:"rgba(0,0,0,0.25)"}},Yd=({items:e,separator:t="/",className:o,style:n})=>{let r=A(),a=Zd[r];return jsx("nav",{"aria-label":"Drobe\u010Dkov\xE1 navigace",className:o,style:{display:"flex",alignItems:"center",gap:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"normal",...n},children:e.map((l,s)=>{let g=s===e.length-1;return jsxs(zn.Fragment,{children:[s>0&&jsx("span",{"aria-hidden":"true",style:{color:a.separator,userSelect:"none",fontSize:"13px"},children:t}),g?jsxs("span",{"aria-current":"page",style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.activeText,fontWeight:600},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]}):jsxs("a",{href:l.href??"#",onClick:l.onClick,style:{display:"inline-flex",alignItems:"center",gap:"6px",color:a.text,fontWeight:400,textDecoration:"none",cursor:"pointer",transition:"color 0.12s ease"},onMouseEnter:b=>{b.currentTarget.style.color=a.linkHover;},onMouseLeave:b=>{b.currentTarget.style.color=a.text;},children:[l.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:l.icon}),l.label]})]},s)})})};Yd.displayName="Breadcrumb";var Xd={dark:{text:"#ACACAC",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(255,255,255,0.08)",disabledText:"rgba(255,255,255,0.2)",border:"rgba(255,255,255,0.12)"},light:{text:"#666666",activeText:"#ffffff",activeBg:"#E8612D",hoverBg:"rgba(0,0,0,0.05)",disabledText:"rgba(0,0,0,0.15)",border:"rgba(0,0,0,0.08)"}},Gd={sm:{size:28,fontSize:"12px",iconSize:14},md:{size:36,fontSize:"14px",iconSize:16},lg:{size:44,fontSize:"16px",iconSize:18}};function _d(e,t,o,n,r){let a=[],l=Math.max(2,e-o),s=Math.min(t-1,e+o);(n||e-o<=1)&&a.push(1),l>2&&(n&&!a.includes(1)&&a.push(1),a.push("ellipsis-start"));for(let g=l;g<=s;g++)a.includes(g)||a.push(g);return s<t-1&&a.push("ellipsis-end"),(r||e+o>=t)&&t>1&&(a.includes(t)||a.push(t)),a}var qd=({page:e,totalPages:t,onChange:o,siblings:n=1,showFirst:r=true,showLast:a=true,size:l="md",className:s,style:g})=>{let b=A(),c=Xd[b],d=Gd[l];if(t<=0)return null;let i=_d(e,t,n,r,a),u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:d.size,height:d.size,border:"none",borderRadius:"8px",background:"transparent",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,padding:0,lineHeight:"normal"};return jsxs("nav",{"aria-label":"Str\xE1nkov\xE1n\xED",className:s,style:{display:"flex",alignItems:"center",gap:"4px",...g},children:[jsx("button",{type:"button","aria-label":"P\u0159edchoz\xED str\xE1nka",disabled:e<=1,onClick:()=>o(e-1),style:{...u,color:e<=1?c.disabledText:c.text,cursor:e<=1?"not-allowed":"pointer"},onMouseEnter:f=>{e>1&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretLeftIcon,{size:d.iconSize,color:e<=1?c.disabledText:c.text})}),i.map((f,m)=>{if(f==="ellipsis-start"||f==="ellipsis-end")return jsx("span",{style:{...u,cursor:"default",color:c.text},"aria-hidden":"true",children:"..."},f);let p=f===e;return jsx("button",{type:"button","aria-current":p?"page":void 0,"aria-label":`Str\xE1nka ${f}`,onClick:()=>o(f),style:{...u,color:p?c.activeText:c.text,backgroundColor:p?c.activeBg:"transparent",fontWeight:p?600:500},onMouseEnter:R=>{p||(R.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:R=>{p||(R.currentTarget.style.backgroundColor="transparent");},children:f},f)}),jsx("button",{type:"button","aria-label":"Dal\u0161\xED str\xE1nka",disabled:e>=t,onClick:()=>o(e+1),style:{...u,color:e>=t?c.disabledText:c.text,cursor:e>=t?"not-allowed":"pointer"},onMouseEnter:f=>{e<t&&(f.currentTarget.style.backgroundColor=c.hoverBg);},onMouseLeave:f=>{f.currentTarget.style.backgroundColor="transparent";},children:jsx(CaretRightIcon,{size:d.iconSize,color:e>=t?c.disabledText:c.text})})]})};qd.displayName="Pagination";var Qd={dark:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#ACACAC",futureBg:"transparent",futureBorder:"rgba(255,255,255,0.2)",lineCompleted:"#E8612D",lineFuture:"rgba(255,255,255,0.15)",labelText:"#ffffff",labelFuture:"#ACACAC",descText:"#ACACAC",descFuture:"rgba(255,255,255,0.3)",hoverBg:"rgba(232,97,45,0.12)"},light:{completedBg:"#E8612D",completedText:"#ffffff",activeBorder:"#E8612D",activeText:"#E8612D",activeBg:"transparent",futureText:"#888888",futureBg:"transparent",futureBorder:"rgba(0,0,0,0.15)",lineCompleted:"#E8612D",lineFuture:"rgba(0,0,0,0.1)",labelText:"#1a1a1a",labelFuture:"#888888",descText:"#888888",descFuture:"rgba(0,0,0,0.3)",hoverBg:"rgba(232,97,45,0.08)"}},Qn=({steps:e,activeStep:t,orientation:o="horizontal",clickable:n=false,onStepClick:r,className:a,style:l})=>{let s=A(),g=Qd[s],[b,c]=useState(null),d=o==="horizontal",i=32,u=f=>!n||!r?false:n==="completed"?f<=t:true;return jsx("div",{className:a,style:{display:"flex",flexDirection:d?"row":"column",alignItems:d?"flex-start":"stretch",gap:0,...l},children:e.map((f,m)=>{let p=m<t,R=m===t,z=m>t,h=m===e.length-1,S=u(m),x=b===m&&S,I=p?g.completedBg:x?g.hoverBg:g.activeBg,v=p?g.completedBg:R||x?g.activeBorder:g.futureBorder,E=p?g.completedText:R||x?g.activeText:g.futureText,y=x?g.activeText:z?g.labelFuture:g.labelText,D=z?g.descFuture:g.descText,B=p?g.lineCompleted:g.lineFuture;return jsxs("div",{style:{display:"flex",flexDirection:d?"column":"row",alignItems:"flex-start",flex:h?"0 0 auto":"1 1 0",minWidth:0,cursor:S?"pointer":"default"},onClick:()=>S&&r?.(m),onMouseEnter:()=>c(m),onMouseLeave:()=>c(null),children:[jsxs("div",{style:{display:"flex",flexDirection:d?"row":"column",alignItems:"center",width:d?"100%":"auto"},children:[jsx("div",{style:{width:i,height:i,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:I,border:`2px solid ${v}`,flexShrink:0,boxSizing:"border-box",transition:"all 0.2s ease"},children:p?jsx(CheckIcon,{size:14,color:g.completedText,weight:"bold"}):jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:600,color:E,lineHeight:1,transition:"color 0.2s ease"},children:m+1})}),!h&&jsx("div",{style:d?{flex:1,height:"2px",backgroundColor:B,margin:"0 8px",transition:"background-color 0.2s ease"}:{width:"2px",flex:1,minHeight:"24px",backgroundColor:B,margin:"6px 0",marginLeft:`${i/2-1}px`,alignSelf:"flex-start",transition:"background-color 0.2s ease"}})]}),jsxs("div",{style:{marginTop:d?"10px":0,marginLeft:d?0:"14px",paddingTop:d?0:"4px",textAlign:"left",minHeight:d||h?void 0:"48px"},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"13px",fontWeight:R||x?600:500,color:y,lineHeight:"normal",transition:"color 0.2s ease"},children:f.label}),f.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:D,lineHeight:"normal",marginTop:"4px",transition:"color 0.2s ease"},children:f.description})]})]},m)})})};Qn.displayName="Stepper";var rp=({size:e=16,color:t})=>{let[o,n]=useState(0),r=useRef(void 0),a=useRef(void 0);return useEffect(()=>{let l=s=>{a.current===void 0&&(a.current=s),n((s-a.current)/800*360%360),r.current=requestAnimationFrame(l);};return r.current=requestAnimationFrame(l),()=>{r.current!==void 0&&cancelAnimationFrame(r.current);}},[]),jsxs("svg",{width:e,height:e,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${o}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:t??"currentColor",strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:t??"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},ap={dark:{contentBg:"transparent",navBorder:"rgba(255,255,255,0.08)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(255,255,255,0.3)",buttonSecondaryText:"#ffffff",buttonSecondaryHover:"rgba(255,255,255,0.06)",buttonDisabledBg:"rgba(255,255,255,0.06)",buttonDisabledText:"rgba(255,255,255,0.3)"},light:{contentBg:"transparent",navBorder:"rgba(0,0,0,0.06)",buttonPrimary:"#FC4F00",buttonPrimaryHover:"#FF6D2A",buttonPrimaryText:"#ffffff",buttonSecondaryBg:"transparent",buttonSecondaryBorder:"rgba(0,0,0,0.2)",buttonSecondaryText:"#1a1a1a",buttonSecondaryHover:"rgba(0,0,0,0.04)",buttonDisabledBg:"rgba(0,0,0,0.04)",buttonDisabledText:"rgba(0,0,0,0.25)"}},ip=({steps:e,activeStep:t,onStepChange:o,orientation:n="horizontal",showNavigation:r=true,finishLabel:a="Dokon\u010Dit",nextLabel:l="Dal\u0161\xED",prevLabel:s="P\u0159edchoz\xED",style:g,className:b})=>{let c=A(),d=ap[c],[i,u]=useState(false),f=t<=0,m=t>=e.length-1,p=Math.max(0,Math.min(t,e.length-1)),R=n==="horizontal",z=e.map(y=>({label:y.label,description:y.description})),h=useCallback(async()=>{if(i)return;let y=e[p];if(y.validate){u(true);try{if(!await y.validate()){u(!1);return}}catch{u(false);return}u(false);}o(p+1);},[i,e,p,o]),S=useCallback(()=>{p>0&&o(p-1);},[p,o]),x=useCallback(y=>{y<p&&o(y);},[p,o]);if(e.length===0)return null;let I={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px",padding:"8px 20px",borderRadius:"8px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,lineHeight:"normal",cursor:"pointer",transition:"background-color 0.12s ease, border-color 0.12s ease",boxSizing:"border-box",outline:"none"},v={...I,backgroundColor:i?d.buttonDisabledBg:d.buttonPrimary,color:i?d.buttonDisabledText:d.buttonPrimaryText,border:"1px solid transparent",cursor:i?"not-allowed":"pointer"},E={...I,backgroundColor:d.buttonSecondaryBg,color:d.buttonSecondaryText,border:`1px solid ${d.buttonSecondaryBorder}`};return jsxs("div",{className:b,style:{display:"flex",flexDirection:R?"column":"row",gap:R?"0":"32px",fontFamily:"'Zalando Sans', sans-serif",...g},children:[jsx("div",{style:{flexShrink:0,...R?{}:{width:"240px"}},children:jsx(Qn,{steps:z,activeStep:p,orientation:n,clickable:"completed",onStepClick:x})}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[jsx("div",{style:{flex:1,padding:R?"24px 0":"0"},children:e[p]?.content}),r&&jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"16px",borderTop:`1px solid ${d.navBorder}`,marginTop:"8px"},children:[jsx("div",{children:!f&&jsxs("button",{type:"button",style:E,onClick:S,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonSecondaryHover);},onMouseLeave:y=>{y.currentTarget.style.backgroundColor=d.buttonSecondaryBg;},children:[jsx(CaretLeft,{size:14}),s]})}),jsx("button",{type:"button",style:v,onClick:h,disabled:i,onMouseEnter:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimaryHover);},onMouseLeave:y=>{i||(y.currentTarget.style.backgroundColor=d.buttonPrimary);},children:i?jsx(rp,{size:14,color:d.buttonDisabledText}):m?jsxs(Fragment,{children:[jsx(Check,{size:14}),a]}):jsxs(Fragment,{children:[l,jsx(CaretRight,{size:14})]})})]})]})]})};ip.displayName="FormWizard";var Ga={dark:{dropdownBg:"rgba(24,24,24,0.95)",dropdownBorder:"rgba(255,255,255,0.12)",text:"#eaeaea",textDisabled:"#666666",hoverBg:"rgba(255,255,255,0.06)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.08)",divider:"rgba(255,255,255,0.08)",shadow:"0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset"},light:{dropdownBg:"rgba(255,255,255,0.95)",dropdownBorder:"rgba(0,0,0,0.1)",text:"#1a1a1a",textDisabled:"#bbbbbb",hoverBg:"rgba(0,0,0,0.04)",dangerText:"#EF3838",dangerHover:"rgba(239,56,56,0.06)",divider:"rgba(0,0,0,0.06)",shadow:"0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03) inset"}},or=180,lp=({items:e,parentRef:t,itemIndex:o,theme:n,onClose:r})=>{let a=Ga[n],l=useRef(null),[s,g]=useState({top:0,left:0}),[b,c]=useState(-1);return useEffect(()=>{if(!t.current)return;let i=t.current.querySelectorAll('[role="menuitem"]')[o];if(!i)return;let u=i.getBoundingClientRect(),f=l.current?.offsetWidth??180,m=window.innerWidth-u.right-4;g({top:u.top,left:m>=f?u.right+4:u.left-f-4});},[t,o]),createPortal(jsx("div",{ref:l,role:"menu",style:{position:"fixed",top:s.top,left:s.left,minWidth:"160px",backgroundColor:a.dropdownBg,border:`1px solid ${a.dropdownBorder}`,borderRadius:"12px",boxShadow:a.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:1e5,overflow:"hidden",boxSizing:"border-box",padding:"6px"},onMouseLeave:()=>c(-1),children:e.map((d,i)=>{if(d.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:a.divider,margin:"4px 6px"}},i);if(d.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:a.textDisabled,padding:`${i>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:d.category},i);let u=d.danger,f=d.disabled,m=i===b,p=f?a.textDisabled:u?a.dangerText:a.text,R=u?a.dangerHover:a.hoverBg;return jsxs("div",{role:"menuitem",style:{display:"flex",alignItems:"center",gap:"10px",padding:"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:p,backgroundColor:m?R:"transparent",cursor:f?"not-allowed":"pointer",opacity:f?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{f||(d.onClick?.(),r());},onMouseEnter:()=>{f||c(i);},children:[d.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:d.icon}),jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:d.label}),d.shortcut&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:a.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:d.shortcut})]},i)})}),document.body)},cp=({trigger:e,items:t,position:o="bottom-left",triggerOnRightClick:n=false,className:r,style:a})=>{let l=A(),s=Ga[l],g=useRef(null),b=useRef(null),[c,d]=useState(false),[i,u]=useState(false),[f,m]=useState("idle"),[p,R]=useState({top:0,left:0,openAbove:false}),[z,h]=useState(-1),[S,x]=useState(null),I=useRef(void 0),v=useCallback(()=>{d(true),u(true),m("opening"),h(-1),requestAnimationFrame(()=>{requestAnimationFrame(()=>m("open"));});},[]),E=useCallback(()=>{d(false),m("closing");let k=setTimeout(()=>{u(false),m("idle");},or);return ()=>clearTimeout(k)},[]),y=useCallback(()=>{if(!g.current)return;let k=g.current.getBoundingClientRect(),M=b.current?.offsetHeight??200,F=b.current?.offsetWidth??200,w=window.innerHeight-k.bottom-6,T=k.top-6,L=w<M&&T>w,N;o==="bottom-right"?(N=k.right-F,N<4&&(N=4)):(N=k.left,N+F>window.innerWidth-4&&(N=window.innerWidth-F-4)),R({top:L?k.top-6:k.bottom+6,left:N,openAbove:L});},[o]);useEffect(()=>{if(i)return y(),window.addEventListener("scroll",y,true),window.addEventListener("resize",y),()=>{window.removeEventListener("scroll",y,true),window.removeEventListener("resize",y);}},[i,y]),useEffect(()=>{if(!c)return;let k=M=>{let F=M.target,w=g.current?.contains(F),T=b.current?.contains(F);!w&&!T&&E();};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[c,E]),useEffect(()=>{if(!c)return;let k=t.map((F,w)=>({item:F,idx:w})).filter(({item:F})=>!F.divider&&!F.disabled),M=F=>{switch(F.key){case "Escape":F.preventDefault(),E();break;case "ArrowDown":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w<k.length-1?w+1:0;h(k[T]?.idx??-1);break}case "ArrowUp":{F.preventDefault();let w=k.findIndex(({idx:L})=>L===z),T=w>0?w-1:k.length-1;h(k[T]?.idx??-1);break}case "Enter":case " ":if(F.preventDefault(),z>=0){let w=t[z];w&&!w.divider&&!w.disabled&&(w.onClick?.(),E());}break}};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[c,z,t,E]);let D=()=>{let k=p.openAbove,M=k?"translateY(8px)":"translateY(-8px)",F=k?"translateY(6px)":"translateY(-6px)",w={transition:`opacity ${or}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${or}ms cubic-bezier(0.16, 1, 0.3, 1)`};return f==="opening"||f==="idle"?{...w,opacity:0,transform:`${M} scale(0.97)`}:f==="open"?{...w,opacity:1,transform:"translateY(0) scale(1)"}:{...w,opacity:0,transform:`${F} scale(0.98)`,pointerEvents:"none"}},B=i?createPortal(jsx("div",{ref:b,role:"menu",style:{position:"fixed",...p.openAbove?{bottom:window.innerHeight-p.top,left:p.left}:{top:p.top,left:p.left},minWidth:"180px",backgroundColor:s.dropdownBg,border:`1px solid ${s.dropdownBorder}`,borderRadius:"12px",boxShadow:s.shadow,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",zIndex:99999,overflow:"hidden",boxSizing:"border-box",padding:"6px",transformOrigin:p.openAbove?"bottom center":"top center",...D()},children:t.map((k,M)=>{if(k.category)return jsx("div",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:500,textTransform:"uppercase",letterSpacing:"0.03em",color:s.textDisabled,padding:`${M>0?"10px":"6px"} 10px 4px`,userSelect:"none"},children:k.category},M);if(k.divider)return jsx("div",{role:"separator",style:{height:"1px",backgroundColor:s.divider,margin:"4px 6px"}},M);let F=k.danger,w=k.disabled,T=M===z,L=typeof k.label!="string",N=L&&!k.onClick,C=w?s.textDisabled:F?s.dangerText:s.text,P=F?s.dangerHover:s.hoverBg;return N?jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:s.text,userSelect:"none"},children:k.label},M):jsxs("div",{role:"menuitem","aria-disabled":w,style:{display:"flex",alignItems:"center",gap:"10px",padding:L?"0":"9px 10px",borderRadius:"6px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:400,lineHeight:"normal",color:C,backgroundColor:T?P:"transparent",cursor:w?"not-allowed":"pointer",opacity:w?.5:1,transition:"background-color 0.12s ease",userSelect:"none"},onClick:()=>{if(!w){if(k.subItems){x(S===M?null:M);return}k.onClick?.(),k.keepOpenOnClick||E();}},onMouseEnter:()=>{w||h(M),k.subItems?(I.current&&clearTimeout(I.current),I.current=setTimeout(()=>x(M),300)):(I.current&&clearTimeout(I.current),x(null));},onMouseLeave:()=>{h(-1),k.subItems&&I.current&&clearTimeout(I.current);},children:[k.icon&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:k.icon}),typeof k.label=="string"?jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1},children:k.label}):k.label,k.shortcut&&!k.subItems&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",color:s.textDisabled,flexShrink:0,marginLeft:"auto",paddingLeft:"16px"},children:k.shortcut}),k.subItems&&jsx(CaretRight,{size:12,color:s.textDisabled,style:{flexShrink:0,marginLeft:"auto"}}),k.subItems&&S===M&&jsx(lp,{items:k.subItems,parentRef:b,itemIndex:M,theme:l,onClose:E})]},M)})}),document.body):null;return jsxs("div",{className:r,style:{display:"inline-flex",position:"relative",...a},children:[jsx("div",{ref:g,onClick:n?void 0:()=>{c?E():v();},onContextMenu:n?k=>{k.preventDefault(),c?E():v();}:void 0,style:{display:"inline-flex",cursor:"pointer"},children:e}),B]})};cp.displayName="DropdownMenu";var pp={dark:{default:"#ffffff",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.7)"},light:{default:"#1a1a1a",danger:"#EF3838",hoverBg:"rgba(0,0,0,0.06)"}},px=({variant:e="default",icon:t,iconPosition:o="left",showIcon:n=true,children:r,style:a,className:l,onMouseEnter:s,onMouseLeave:g,target:b,rel:c,...d})=>{let i=A(),u=pp[i],[f,m]=useState(false),p=e==="danger"?u.danger:u.default,R={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 8px",borderRadius:"4px",backgroundColor:f?u.hoverBg:"transparent",fontFamily:"'Zalando Sans Expanded', sans-serif",fontStyle:"normal",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:p,textDecoration:"none",cursor:"pointer",whiteSpace:"nowrap",transition:"background-color 0.15s ease",userSelect:"none",WebkitUserSelect:"none",...a},z=n&&t?jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0},children:t}):null;return jsx("a",{style:R,className:l,target:b,rel:c??(b==="_blank"?"noopener noreferrer":void 0),onMouseEnter:h=>{m(true),s?.(h);},onMouseLeave:h=>{m(false),g?.(h);},...d,children:o==="right"?jsxs(Fragment,{children:[r,z]}):jsxs(Fragment,{children:[z,r]})})};var bp={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputBg:"rgba(255,255,255,0.06)",inputBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputBg:"rgba(0,0,0,0.04)",inputBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Wo=180,mp=({open:e,onClose:t,value:o,onChange:n,results:r,loading:a=false,placeholder:l="Hledat...",className:s,style:g})=>{let b=A(),c=bp[b],[d,i]=useState(false),[u,f]=useState("idle"),[m,p]=useState(-1),R=useRef(null),z=useRef(null);useEffect(()=>{let y="sm-spotlight-scrollbar-hide";if(document.getElementById(y))return;let D=document.createElement("style");D.id=y,D.textContent=".spotlight-results::-webkit-scrollbar { display: none; }",document.head.appendChild(D);},[]);let h=r;useEffect(()=>{if(e){i(true),f("opening"),p(-1);let y=setTimeout(()=>{f("open");},10);return ()=>clearTimeout(y)}else if(d){f("closing");let y=setTimeout(()=>{i(false),f("idle");},Wo);return ()=>clearTimeout(y)}},[e]),useEffect(()=>{d&&u==="open"&&R.current?.focus();},[d,u]),useEffect(()=>{p(-1);},[r]),useEffect(()=>{if(m<0||!z.current)return;let y=z.current.querySelector(`[data-spotlight-index="${m}"]`);y&&y.scrollIntoView({block:"nearest"});},[m]);let S=useCallback(y=>{switch(y.key){case "Escape":y.preventDefault(),t();break;case "ArrowDown":{y.preventDefault(),p(D=>{let B=D+1;return B>=h.length?0:B});break}case "ArrowUp":{y.preventDefault(),p(D=>{let B=D-1;return B<0?h.length-1:B});break}case "Enter":{y.preventDefault(),m>=0&&m<h.length&&(h[m].onSelect(),t());break}}},[h,m,t]),x=[],I=new Map;h.forEach((y,D)=>{let B=I.get(y.category);B||(B=[],I.set(y.category,B),x.push({category:y.category,items:B})),B.push({...y,flatIndex:D});});let v=()=>{let y={transition:`opacity ${Wo}ms ease`};return u==="opening"||u==="idle"?{...y,opacity:0}:u==="open"?{...y,opacity:1}:{...y,opacity:0,pointerEvents:"none"}},E=()=>{let y={transition:`opacity ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Wo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return u==="opening"||u==="idle"?{...y,opacity:0,transform:"scale(0.95) translateY(-10px)"}:u==="open"?{...y,opacity:1,transform:"scale(1) translateY(0)"}:{...y,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}};return d?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...v()},onKeyDown:S,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:s,style:{position:"relative",display:"flex",flexDirection:"column",width:"560px",maxWidth:"calc(100vw - 32px)",maxHeight:"60vh",backgroundColor:c.cardBg,border:`1px solid ${c.cardBorder}`,borderRadius:"16px",boxShadow:c.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...E(),...g},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${c.divider}`},children:[jsx(MagnifyingGlass,{size:18,color:c.textSecondary}),jsx("input",{ref:R,type:"text",value:o,onChange:y=>n(y.target.value),placeholder:l,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:c.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:c.kbdBg,border:`1px solid ${c.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:c.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:z,role:"listbox",className:"spotlight-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:a?jsx("div",{style:{padding:"8px 2px",display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3,4,5].map(y=>jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px"},children:[jsx(ve,{variant:"rect",width:28,height:28}),jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"4px"},children:[jsx(ve,{variant:"text",width:`${50+y%3*15}%`,height:14}),jsx(ve,{variant:"text",width:`${30+y%2*20}%`,height:11})]})]},y))}):x.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:c.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):x.map(y=>jsxs("div",{role:"group","aria-label":y.category,children:[jsx("div",{style:{padding:"8px 10px 4px",fontFamily:"'Zalando Sans Expanded', sans-serif",fontSize:"10px",fontWeight:400,textTransform:"uppercase",letterSpacing:"0.06em",color:c.categoryText,userSelect:"none"},children:y.category}),y.items.map(D=>{let B=D.flatIndex===m;return jsxs("div",{role:"option","aria-selected":B,"data-spotlight-index":D.flatIndex,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?c.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{D.onSelect(),t();},onMouseEnter:()=>p(D.flatIndex),onMouseLeave:()=>p(-1),children:[D.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?c.activeBg:c.hoverBg,color:c.text,transition:"background-color 0.1s ease"},children:D.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:c.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:D.label}),D.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:c.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:D.description})]})]},D.id)})]},y.category))})]})]}),document.body):null};mp.displayName="Spotlight";var vp={dark:{overlay:"rgba(0,0,0,0.4)",cardBg:"rgba(24,24,24,0.65)",cardBorder:"rgba(255,255,255,0.1)",inputText:"#ffffff",inputPlaceholder:"#888888",text:"#eaeaea",textSecondary:"#888888",categoryText:"rgba(255,255,255,0.4)",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(255,255,255,0.1)",divider:"rgba(255,255,255,0.08)",kbdBg:"rgba(255,255,255,0.08)",kbdBorder:"rgba(255,255,255,0.12)",kbdText:"#888888",shadow:"0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset",emptyText:"#666666"},light:{overlay:"rgba(0,0,0,0.18)",cardBg:"rgba(255,255,255,0.65)",cardBorder:"rgba(0,0,0,0.08)",inputText:"#1a1a1a",inputPlaceholder:"#999999",text:"#1a1a1a",textSecondary:"#666666",categoryText:"rgba(0,0,0,0.4)",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(0,0,0,0.07)",divider:"rgba(0,0,0,0.06)",kbdBg:"rgba(0,0,0,0.05)",kbdBorder:"rgba(0,0,0,0.1)",kbdText:"#999999",shadow:"0 24px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03) inset",emptyText:"#999999"}},Zo=180,Sp=({open:e,onClose:t,groups:o,placeholder:n="Zadejte p\u0159\xEDkaz...",style:r,className:a})=>{let l=A(),s=vp[l],[g,b]=useState(false),[c,d]=useState("idle"),[i,u]=useState(""),[f,m]=useState(-1),p=useRef(null),R=useRef(null);useEffect(()=>{let E="sm-commandmenu-scrollbar-hide";if(document.getElementById(E))return;let y=document.createElement("style");y.id=E,y.textContent=".commandmenu-results::-webkit-scrollbar { display: none; }",document.head.appendChild(y);},[]);let z=o.map(E=>({...E,items:E.items.filter(y=>y.label.toLowerCase().includes(i.toLowerCase())||y.description?.toLowerCase().includes(i.toLowerCase()))})).filter(E=>E.items.length>0),h=z.flatMap(E=>E.items);useEffect(()=>{if(e){u(""),m(-1),b(true),d("opening");let E=setTimeout(()=>{d("open");},10);return ()=>clearTimeout(E)}else if(g){d("closing");let E=setTimeout(()=>{b(false),d("idle");},Zo);return ()=>clearTimeout(E)}},[e]),useEffect(()=>{g&&c==="open"&&p.current?.focus();},[g,c]),useEffect(()=>{m(-1);},[i]),useEffect(()=>{if(f<0||!R.current)return;let E=R.current.querySelector(`[data-cmd-index="${f}"]`);E&&E.scrollIntoView({block:"nearest"});},[f]);let S=useCallback(E=>{switch(E.key){case "Escape":E.preventDefault(),t();break;case "ArrowDown":{E.preventDefault(),m(y=>{let D=y+1;return D>=h.length?0:D});break}case "ArrowUp":{E.preventDefault(),m(y=>{let D=y-1;return D<0?h.length-1:D});break}case "Enter":{E.preventDefault(),f>=0&&f<h.length&&(h[f].onSelect(),t());break}}},[h,f,t]),x=()=>{let E={transition:`opacity ${Zo}ms ease`};return c==="opening"||c==="idle"?{...E,opacity:0}:c==="open"?{...E,opacity:1}:{...E,opacity:0,pointerEvents:"none"}},I=()=>{let E={transition:`opacity ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1), transform ${Zo}ms cubic-bezier(0.16, 1, 0.3, 1)`};return c==="opening"||c==="idle"?{...E,opacity:0,transform:"scale(0.95) translateY(-10px)"}:c==="open"?{...E,opacity:1,transform:"scale(1) translateY(0)"}:{...E,opacity:0,transform:"scale(0.97) translateY(-6px)",pointerEvents:"none"}},v=0;return g?createPortal(jsxs("div",{style:{position:"fixed",inset:0,zIndex:99998,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"18vh",...x()},onKeyDown:S,children:[jsx("div",{style:{position:"absolute",inset:0,backgroundColor:s.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:s.cardBg,border:`1px solid ${s.cardBorder}`,borderRadius:"16px",boxShadow:s.shadow,backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",overflow:"hidden",boxSizing:"border-box",...I(),...r},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"14px 18px",borderBottom:`1px solid ${s.divider}`},children:[jsx(MagnifyingGlassIcon,{size:18,color:s.textSecondary}),jsx("input",{ref:p,type:"text",value:i,onChange:E=>u(E.target.value),placeholder:n,autoComplete:"off",spellCheck:false,style:{flex:1,background:"none",border:"none",outline:"none",fontFamily:"'Zalando Sans', sans-serif",fontSize:"16px",fontWeight:400,color:s.inputText,caretColor:"#FC4F00"}}),jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0},children:"Esc"})]}),jsx("div",{ref:R,role:"listbox",className:"commandmenu-results",style:{flex:1,overflowY:"auto",padding:"8px",scrollbarWidth:"none",msOverflowStyle:"none"},children:z.length===0?jsx("div",{style:{padding:"24px 10px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:s.emptyText},children:"\u017D\xE1dn\xE9 v\xFDsledky"}):z.map(E=>jsxs("div",{role:"group","aria-label":E.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:s.categoryText,userSelect:"none"},children:E.label}),E.items.map(y=>{let D=v++,B=D===f;return jsxs("div",{role:"option","aria-selected":B,"data-cmd-index":D,style:{display:"flex",alignItems:"center",gap:"12px",padding:"10px 10px",borderRadius:"8px",cursor:"pointer",backgroundColor:B?s.hoverBg:"transparent",transition:"background-color 0.1s ease",userSelect:"none"},onClick:()=>{y.onSelect(),t();},onMouseEnter:()=>m(D),onMouseLeave:()=>m(-1),children:[y.icon&&jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,flexShrink:0,borderRadius:"8px",backgroundColor:B?s.activeBg:s.hoverBg,color:s.text,transition:"background-color 0.1s ease"},children:y.icon}),jsxs("div",{style:{flex:1,minWidth:0},children:[jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:s.text,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:y.label}),y.description&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontSize:"12px",fontWeight:400,color:s.textSecondary,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:"1px"},children:y.description})]}),y.shortcut&&jsx("kbd",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"2px 8px",borderRadius:"6px",backgroundColor:s.kbdBg,border:`1px solid ${s.kbdBorder}`,fontFamily:"'Zalando Sans', sans-serif",fontSize:"11px",fontWeight:500,color:s.kbdText,lineHeight:"normal",flexShrink:0,whiteSpace:"nowrap"},children:y.shortcut})]},y.id)})]},E.label))})]})]}),document.body):null};Sp.displayName="CommandMenu";var kp={dark:{background:"rgba(24,24,24,0.8)",border:"rgba(255,255,255,0.1)"},light:{background:"rgba(255,255,255,0.8)",border:"rgba(0,0,0,0.08)"}},ar=250,Cp=({children:e,collapsed:t=false,onCollapse:o,width:n=260,collapsedWidth:r=64,style:a,className:l})=>{let s=A(),g=kp[s],b=t?r:n;return jsx("aside",{className:l,style:{position:"relative",display:"flex",flexDirection:"column",width:`${b}px`,minWidth:`${b}px`,height:"100%",backgroundColor:g.background,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderRight:`1px solid ${g.border}`,boxSizing:"border-box",overflow:"hidden",transition:`width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1), min-width ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`,...a},children:jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden",padding:t?"8px 8px":"8px 12px",display:"flex",flexDirection:"column",alignItems:t?"center":"stretch",transition:`padding ${ar}ms cubic-bezier(0.16, 1, 0.3, 1)`},children:e})})};Cp.displayName="AppSidebar";var Ep={dark:{text:"rgba(255,255,255,0.7)",textHover:"#ffffff",textActive:"#ffffff",icon:"rgba(255,255,255,0.4)",iconHover:"rgba(255,255,255,0.8)",iconActive:"#FC4F00",hoverBg:"rgba(255,255,255,0.06)",activeBg:"rgba(232,97,45,0.1)",chevron:"rgba(255,255,255,0.3)",chevronHover:"rgba(255,255,255,0.7)"},light:{text:"rgba(0,0,0,0.6)",textHover:"#1a1a1a",textActive:"#1a1a1a",icon:"rgba(0,0,0,0.35)",iconHover:"rgba(0,0,0,0.7)",iconActive:"#FC4F00",hoverBg:"rgba(0,0,0,0.04)",activeBg:"rgba(232,97,45,0.07)",chevron:"rgba(0,0,0,0.25)",chevronHover:"rgba(0,0,0,0.6)"}},zp=({label:e,icon:t,active:o=false,defaultExpanded:n=false,expanded:r,onExpandedChange:a,onClick:l,children:s,collapsed:g=false,disabled:b=false,style:c,className:d})=>{let i=A(),u=Ep[i],f=zn.Children.count(s)>0,m=r!==void 0,[p,R]=useState(n),z=m?r:p,[h,S]=useState(false),x=useRef(null),[I,v]=useState(0);useEffect(()=>{x.current&&v(x.current.scrollHeight);},[s,z]);let E=useCallback(()=>{m?a?.(!r):R(M=>{let F=!M;return a?.(F),F});},[m,r,a]),y=useCallback(()=>{b||(f&&E(),l?.());},[b,f,E,l]),D=b?`${u.text}66`:o?u.textActive:h?u.textHover:u.text,B=b?`${u.icon}66`:o?u.iconActive:h?u.iconHover:u.icon,k=o?u.activeBg:h&&!b?u.hoverBg:"transparent";return g?jsx("button",{type:"button",onClick:y,disabled:b,title:e,className:d,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:40,border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:B,cursor:b?"not-allowed":"pointer",transition:"background-color 0.12s ease, color 0.12s ease",flexShrink:0,...c},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),children:t||jsx("span",{style:{fontSize:13,fontWeight:600,color:D},children:e[0]})}):jsxs("div",{className:d,style:c,children:[jsxs("button",{type:"button",onClick:y,disabled:b,style:{display:"flex",alignItems:"center",gap:10,width:"100%",padding:"8px 10px",border:"0 none",borderStyle:"none",outline:"none",borderRadius:8,backgroundColor:k,color:D,cursor:b?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:13,fontWeight:o?500:400,textAlign:"left",transition:"background-color 0.12s ease, color 0.12s ease",lineHeight:"normal",userSelect:"none"},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),children:[t&&jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:B,transition:"color 0.12s ease"},children:t}),jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),f&&jsx(CaretDownIcon,{size:14,color:h?u.chevronHover:u.chevron,style:{flexShrink:0,transition:"transform 0.2s ease, color 0.12s ease",transform:z?"rotate(0deg)":"rotate(-90deg)"}})]}),f&&jsx("div",{ref:x,style:{overflow:"hidden",maxHeight:z?`${I}px`:"0px",transition:"max-height 200ms cubic-bezier(0.16, 1, 0.3, 1)",paddingLeft:12},children:jsx("div",{style:{display:"flex",flexDirection:"column",gap:2,paddingTop:4,paddingBottom:4},children:s})})]})};zp.displayName="SidebarItem";var Bp={dark:{background:"rgba(26,26,26,0.7)",backgroundSolid:"#1a1a1a",border:"rgba(255,255,255,0.1)",shadow:"0 1px 0 rgba(255,255,255,0.04)"},light:{background:"rgba(255,255,255,0.7)",backgroundSolid:"#ffffff",border:"rgba(0,0,0,0.08)",shadow:"0 1px 0 rgba(0,0,0,0.03)"}},Dp=({logo:e,children:t,actions:o,sticky:n=true,glass:r=true,style:a,className:l})=>{let s=A(),g=Bp[s];return jsxs("header",{className:l,style:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"56px",padding:"0 20px",backgroundColor:r?g.background:g.backgroundSolid,borderBottom:`1px solid ${g.border}`,boxShadow:g.shadow,boxSizing:"border-box",...r?{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"}:{},...n?{position:"sticky",top:0,zIndex:1e3}:{},...a},children:[e&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0},children:e}),t&&jsx("nav",{style:{display:"flex",alignItems:"center",gap:"4px",flex:1,justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500},children:t}),o&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:o})]})};Dp.displayName="Navbar";var Lp={dark:{info:{border:"rgba(255,255,255,0.5)",background:"rgba(3,3,3,0.55)"},success:{border:"rgba(0,162,5,0.7)",background:"rgba(3,21,4,0.55)"},error:{border:"rgba(222,0,0,0.7)",background:"rgba(21,3,3,0.55)"},text:"#ffffff",textSecondary:"#ffffff",iconColor:"#ffffff",closeColor:"#ffffff"},light:{info:{border:"rgba(0,0,0,0.12)",background:"rgba(255,255,255,0.7)"},success:{border:"rgba(0,162,5,0.3)",background:"rgba(240,255,240,0.7)"},error:{border:"rgba(222,0,0,0.3)",background:"rgba(255,240,240,0.7)"},text:"#1a1a1a",textSecondary:"#333333",iconColor:"#1a1a1a",closeColor:"#888888"}},Np={info:jsx(Info,{size:28,color:"currentColor"}),success:jsx(CheckCircle,{size:28,color:"#00A205"}),error:jsx(XCircle,{size:28,color:"#DE0000"})},oi=({variant:e="info",title:t,content:o,icon:n,onClose:r,role:a="alert",style:l,className:s})=>{let g=A(),b=Lp[g],{border:c,background:d}=b[e],i=n??Np[e];return jsxs("div",{role:a,"aria-live":a==="alert"?"assertive":"polite",style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px",padding:"12px 12px 12px 16px",backgroundColor:d,border:`2px solid ${c}`,borderRadius:"8px",boxSizing:"border-box",...l},className:s,children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:b.iconColor},children:i}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"16px",color:b.text,lineHeight:"normal"},children:t}),o&&jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",color:b.textSecondary,lineHeight:"normal"},children:o})]})]}),r&&jsx("button",{type:"button",onClick:r,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:0,color:b.closeColor,opacity:.7,flexShrink:0},children:jsx(X,{size:16,color:"currentColor"})})]})};var ni=3,Zp=.06,ri=12,Vo=320,ai=createContext(null),Yp=0,Vp=()=>`sm-toast-${++Yp}-${Date.now()}`,Gx=({children:e,position:t="bottom-right",toastWidth:o=380,gap:n=8,offset:r=16,maxToasts:a=5,duration:l=4e3})=>{let[s,g]=useState([]),b=useCallback(i=>{g(u=>u.map(f=>f.id===i?{...f,lifecycle:"leaving"}:f)),setTimeout(()=>{g(u=>u.filter(f=>f.id!==i));},Vo+100);},[]),c=useCallback(i=>{let u=Vp(),f=i.duration??l,m={id:u,variant:i.variant??"info",title:i.title,content:i.content,icon:i.icon,duration:f,lifecycle:"entering",height:0};return g(p=>{let R=[...p,m];return R.length>a?R.slice(R.length-a):R}),requestAnimationFrame(()=>{requestAnimationFrame(()=>{g(p=>p.map(R=>R.id===u?{...R,lifecycle:"visible"}:R));});}),f>0&&setTimeout(()=>b(u),f),u},[a,b,l]),d=useCallback((i,u)=>{g(f=>f.map(m=>m.id===i&&m.height!==u?{...m,height:u}:m));},[]);return jsxs(ai.Provider,{value:{toast:c,dismiss:b},children:[e,s.length>0&&jsx(Xp,{toasts:s,position:t,toastWidth:o,gap:n,offset:r,onDismiss:b,onHeightMeasured:d})]})},Up=({expandedTransformOverride:e,item:t,depthIndex:o,stackSize:n,expanded:r,isBottom:a,appeared:l,toastWidth:s,onDismiss:g,onHeightMeasured:b})=>{let c=t.lifecycle==="leaving",d=!l||c,i=r?1:Math.max(.7,1-o*Zp),u=r?0:o*ri,f=a?-u:u,p=d?a?"translateY(calc(100% + 32px))":"translateY(calc(-100% - 32px))":e||`scale(${i}) translateY(${f}px)`,R=d?0:r?1:Math.max(.4,1-o*.18),z=!r&&o>=ni,h=n-o,S=useCallback(x=>{x&&t.height===0&&b(t.id,x.offsetHeight);},[t.id,t.height===0]);return jsx("div",{ref:S,style:{position:"absolute",bottom:a?0:"auto",top:a?"auto":0,left:0,right:0,transformOrigin:a?"bottom center":"top center",transform:p,opacity:z?0:R,zIndex:h,transition:[`transform ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`,`opacity ${Vo}ms ease`].join(", "),pointerEvents:o===0||r?"auto":"none",backdropFilter:"blur(32px) saturate(1.4)",WebkitBackdropFilter:"blur(32px) saturate(1.4)",borderRadius:"8px"},children:jsx(oi,{variant:t.variant,title:t.title,content:t.content,icon:t.icon,onClose:()=>g(t.id),style:{width:s,maxWidth:"100%",boxSizing:"border-box"}})})},Xp=({toasts:e,position:t,toastWidth:o,gap:n,offset:r,onDismiss:a,onHeightMeasured:l})=>{let[s,g]=useState(false),[b,c]=useState(new Set),d=t.startsWith("bottom"),i=t.endsWith("right"),u=t.endsWith("center");useEffect(()=>{c(S=>{let x=new Set(S);return e.forEach(I=>{I.lifecycle==="visible"&&x.add(I.id);}),[...x].forEach(I=>{e.find(v=>v.id===I)||x.delete(I);}),x});},[e]);let p=(e[e.length-1]?.height||80)+Math.min(e.length-1,ni-1)*ri,R=e.reduce((S,x)=>S+(x.height||80),0)+Math.max(0,e.length-1)*n,z=s?R:p,h=u?{left:"50%",transform:"translateX(-50%)"}:i?{right:r}:{left:r};return jsx("div",{style:{position:"fixed",zIndex:99999,width:o,maxWidth:`calc(100vw - ${r*2}px)`,height:z,...d?{bottom:r}:{top:r},...h,transition:`height ${Vo}ms cubic-bezier(0.16, 1, 0.3, 1)`},onMouseEnter:()=>g(true),onMouseLeave:()=>g(false),"aria-live":"polite","aria-atomic":"false",children:e.map((S,x)=>{let I=e.length-1-x,v=b.has(S.id),E=S.lifecycle==="leaving",y=!v||E,D;if(s&&!y){let k=e.slice(x+1).reduce((F,w)=>F+(w.height||80)+n,0);D=`translateY(${d?-k:k}px)`;}return jsx(Up,{item:S,depthIndex:I,stackSize:e.length,expanded:s,isBottom:d,appeared:v,toastWidth:o,onDismiss:a,onHeightMeasured:l,expandedTransformOverride:D},S.id)})})},_x=()=>{let e=useContext(ai);if(!e)throw new Error("[sm-ui] useToast() mus\xED b\xFDt vol\xE1n uvnit\u0159 <ToasterProvider>. Obalte ko\u0159en va\u0161\xED aplikace pomoc\xED <ToasterProvider>.");return e};var eu={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)"}},tu={info:{border:"rgba(255,255,255,0.7)",borderLight:"rgba(0,0,0,0.3)",background:"rgba(255,255,255,0.06)",backgroundLight:"rgba(0,0,0,0.04)",iconColor:"rgba(255,255,255,0.7)",iconColorLight:"rgba(0,0,0,0.5)"},success:{border:"#00A205",borderLight:"#00A205",background:"rgba(0,162,5,0.08)",backgroundLight:"rgba(0,162,5,0.06)",iconColor:"#00A205",iconColorLight:"#00A205"},warning:{border:"#F5A623",borderLight:"#F5A623",background:"rgba(245,166,35,0.08)",backgroundLight:"rgba(245,166,35,0.06)",iconColor:"#F5A623",iconColorLight:"#F5A623"},error:{border:"#DE0000",borderLight:"#DE0000",background:"rgba(222,0,0,0.08)",backgroundLight:"rgba(222,0,0,0.06)",iconColor:"#DE0000",iconColorLight:"#DE0000"}},th=({variant:e="info",title:t,children:o,icon:n,closable:r=false,onClose:a,className:l,style:s})=>{let g=A(),b=eu[g],c=tu[e],[d,i]=useState(true);if(!d)return null;let u=g==="light",f=u?c.borderLight:c.border,m=u?c.backgroundLight:c.background,p=u?c.iconColorLight:c.iconColor,z=n??{info:jsx(Info,{size:24,color:p}),success:jsx(CheckCircle,{size:24,color:p}),warning:jsx(Warning,{size:24,color:p}),error:jsx(XCircle,{size:24,color:p})}[e],h=()=>{i(false),a?.();};return jsxs("div",{role:"alert",style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"12px 16px",backgroundColor:m,borderLeft:`4px solid ${f}`,borderRadius:"4px",boxSizing:"border-box",...s},className:l,children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:b.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:b.descriptionText},children:o})]}),r&&jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt upozorn\u011Bn\xED",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:b.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};var lu={dark:{text:"#ffffff",titleText:"#ffffff",descriptionText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",glassBg:"rgba(24,24,24,0.8)",glassBorder:"rgba(255,255,255,0.1)",defaultBg:"rgba(255,255,255,0.04)"},light:{text:"#1a1a1a",titleText:"#1a1a1a",descriptionText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",glassBg:"rgba(255,255,255,0.8)",glassBorder:"rgba(0,0,0,0.08)",defaultBg:"rgba(0,0,0,0.02)"}},cu={info:{accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.3)",bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",icon:"rgba(255,255,255,0.7)",iconLight:"rgba(0,0,0,0.5)"},success:{accent:"#00A205",accentLight:"#00A205",bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",icon:"#00A205",iconLight:"#00A205"},warning:{accent:"#F5A623",accentLight:"#F5A623",bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",icon:"#F5A623",iconLight:"#F5A623"},error:{accent:"#DE0000",accentLight:"#DE0000",bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",icon:"#DE0000",iconLight:"#DE0000"}},du={info:jsx(Info,{size:20}),success:jsx(CheckCircle,{size:20}),warning:jsx(Warning,{size:20}),error:jsx(XCircle,{size:20})},pu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,actions:l,dismissKey:s,position:g="top",sticky:b=false,style:c,className:d})=>{let i=A(),u=lu[i],f=cu[e],[m,p]=useState(()=>s&&typeof window<"u"?localStorage.getItem(`banner-dismiss-${s}`)!=="1":true);if(!m||!t&&!o)return null;let R=i==="light",z=R?f.accentLight:f.accent,h=b?u.glassBg:R?f.bgLight:f.bg,S=R?f.iconLight:f.icon,x=a??du[e],I=()=>{p(false),s&&typeof window<"u"&&localStorage.setItem(`banner-dismiss-${s}`,"1"),r?.();};return jsxs("div",{role:"alert",className:d,style:{width:"100%",display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 20px",backgroundColor:h,borderTop:g==="bottom"?`3px solid ${z}`:"none",borderBottom:g==="top"?`3px solid ${z}`:"none",boxSizing:"border-box",fontFamily:"'Zalando Sans', sans-serif",...b?{position:"sticky",[g]:0,zIndex:1e3,backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderLeft:`1px solid ${u.glassBorder}`,borderRight:`1px solid ${u.glassBorder}`}:{},...c},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,color:S,marginTop:"1px"},children:x}),jsxs("div",{style:{flex:1,minWidth:0},children:[t&&jsx("div",{style:{fontWeight:600,fontSize:"14px",color:u.titleText,lineHeight:"normal"},children:t}),o&&jsx("div",{style:{fontSize:"13px",color:u.descriptionText,lineHeight:"1.5",marginTop:t?"4px":0},children:o})]}),l&&jsx("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:l}),n&&jsx("button",{type:"button","aria-label":"Zav\u0159\xEDt",onClick:I,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"28px",height:"28px",border:"none",background:"transparent",borderRadius:"6px",cursor:"pointer",color:u.closeColor,flexShrink:0,transition:"color 0.12s ease",padding:0},onMouseEnter:v=>{v.currentTarget.style.color=u.closeHover;},onMouseLeave:v=>{v.currentTarget.style.color=u.closeColor;},children:jsx(X,{size:16})})]})};pu.displayName="Banner";var hu={dark:{titleText:"#ffffff",bodyText:"rgba(255,255,255,0.85)",closeColor:"rgba(255,255,255,0.6)",closeHover:"rgba(255,255,255,0.9)",border:"rgba(255,255,255,0.1)"},light:{titleText:"#1a1a1a",bodyText:"rgba(0,0,0,0.7)",closeColor:"rgba(0,0,0,0.4)",closeHover:"rgba(0,0,0,0.8)",border:"rgba(0,0,0,0.08)"}},yu={info:{bg:"rgba(255,255,255,0.06)",bgLight:"rgba(0,0,0,0.04)",accent:"rgba(255,255,255,0.7)",accentLight:"rgba(0,0,0,0.5)"},success:{bg:"rgba(0,162,5,0.08)",bgLight:"rgba(0,162,5,0.06)",accent:"#00A205",accentLight:"#00A205"},warning:{bg:"rgba(245,166,35,0.08)",bgLight:"rgba(245,166,35,0.06)",accent:"#F5A623",accentLight:"#F5A623"},error:{bg:"rgba(222,0,0,0.08)",bgLight:"rgba(222,0,0,0.06)",accent:"#DE0000",accentLight:"#DE0000"}},vu=({variant:e="info",title:t,children:o,closable:n=false,onClose:r,icon:a,action:l,style:s,className:g})=>{let b=A(),c=hu[b],d=yu[e],[i,u]=useState(true);if(!i)return null;let f=b==="light",m=f?d.bgLight:d.bg,p=f?d.accentLight:d.accent,z=a??{info:jsx(Info,{size:20,color:p}),success:jsx(CheckCircle,{size:20,color:p}),warning:jsx(Warning,{size:20,color:p}),error:jsx(XCircle,{size:20,color:p})}[e],h=()=>{u(false),r?.();};return jsxs("div",{role:"status",className:g,style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"14px 16px",backgroundColor:m,border:`1px solid ${c.border}`,borderRadius:"12px",boxSizing:"border-box",...s},children:[jsx("span",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:z}),jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0},children:[jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:700,fontSize:"14px",lineHeight:"normal",color:c.titleText},children:t}),o&&jsx("div",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"13px",lineHeight:"1.4",color:c.bodyText},children:o})]}),l&&jsx("div",{style:{display:"flex",alignItems:"center",flexShrink:0,marginTop:"1px"},children:l}),n&&jsx("button",{type:"button",onClick:h,"aria-label":"Zav\u0159\xEDt notifikaci",style:{display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none",cursor:"pointer",padding:"2px",color:c.closeColor,flexShrink:0,marginTop:"1px"},children:jsx(X,{size:16,color:"currentColor"})})]})};vu.displayName="Notification";var pi={dark:{trackBg:"rgba(255,255,255,0.1)",text:"#ffffff",label:"#ffffff"},light:{trackBg:"rgba(0,0,0,0.08)",text:"#1a1a1a",label:"#1a1a1a"}},ui={default:"#E8612D",success:"#00A205",warning:"#F5A623",danger:"#EF3838"},Su={xs:{height:4,fontSize:"10px"},sm:{height:6,fontSize:"11px"},md:{height:10,fontSize:"12px"}},ci="sm-ui-progress-stripes",di="sm-ui-progress-indeterminate",ku=()=>{if(typeof document>"u"||document.getElementById(ci))return;let e=document.createElement("style");e.id=ci,e.textContent="@keyframes sm-ui-progress-stripes { 0% { background-position: 1rem 0; } 100% { background-position: 0 0; } }",document.head.appendChild(e);},Cu=()=>{if(typeof document>"u"||document.getElementById(di))return;let e=document.createElement("style");e.id=di,e.textContent="@keyframes sm-ui-progress-indeterminate { 0% { left: -40%; width: 40%; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 40%; } }",document.head.appendChild(e);};function fi(e,t,o){if(!o||o.length===0)return e;let n=[...o].sort((a,l)=>a.value-l.value),r=e;for(let a of n)t>=a.value&&(r=a.variant);return r}var xh=({value:e,max:t=100,label:o=false,variant:n="default",thresholds:r,size:a="sm",striped:l=false,animated:s=false,indeterminate:g=false,className:b,style:c})=>{let d=A(),i=pi[d],u=Su[a],f=t>0?Math.max(0,Math.min(100,e/t*100)):0,m=fi(n,e,r),p=ui[m];l&&s&&ku(),g&&Cu();let R=l?{backgroundImage:"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)",backgroundSize:"1rem 1rem",...s?{animation:"sm-ui-progress-stripes 1s linear infinite"}:{}}:{},z=typeof o=="string"?o:o?`${Math.round(f)}%`:null;return jsxs("div",{role:"progressbar","aria-valuenow":g?void 0:Math.round(e),"aria-valuemin":0,"aria-valuemax":t,style:{display:"flex",flexDirection:"column",gap:"4px",width:"100%",...c},className:b,children:[z&&jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:u.fontSize,color:i.text,userSelect:"none"},children:z})}),jsx("div",{style:{width:"100%",height:u.height,backgroundColor:i.trackBg,borderRadius:u.height/2,overflow:"hidden",position:"relative"},children:g?jsx("div",{style:{position:"absolute",height:"100%",backgroundColor:p,borderRadius:u.height/2,animation:"sm-ui-progress-indeterminate 1.5s ease-in-out infinite",...R}}):jsx("div",{style:{width:`${f}%`,height:"100%",backgroundColor:p,borderRadius:u.height/2,transition:"width 0.3s ease, background-color 0.3s ease",...R}})})]})},hh=({value:e,max:t=100,variant:o="default",thresholds:n,size:r=48,thickness:a=4,showValue:l=false,valueLabel:s,label:g,className:b,style:c})=>{let d=A(),i=pi[d],u=t>0?Math.max(0,Math.min(100,e/t*100)):0,f=fi(o,e,n),m=ui[f],p=(r-a)/2,R=2*Math.PI*p,z=R-u/100*R,h=s?s(e,t):l?`${Math.round(u)}%`:null;return jsxs("div",{role:"progressbar","aria-valuenow":Math.round(e),"aria-valuemin":0,"aria-valuemax":t,"aria-label":g,style:{display:"inline-flex",flexDirection:"column",alignItems:"center",gap:"6px",...c},className:b,children:[jsxs("div",{style:{position:"relative",width:r,height:r},children:[jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{transform:"rotate(-90deg)"},children:[jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:i.trackBg,strokeWidth:a}),jsx("circle",{cx:r/2,cy:r/2,r:p,fill:"none",stroke:m,strokeWidth:a,strokeLinecap:"round",strokeDasharray:R,strokeDashoffset:z,style:{transition:"stroke-dashoffset 0.3s ease, stroke 0.3s ease"}})]}),h!=null&&jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"'Zalando Sans', sans-serif",fontWeight:700,fontSize:`${Math.max(10,r*.22)}px`,color:i.text,userSelect:"none"},children:h})]}),g&&jsx("span",{style:{fontFamily:"'Zalando Sans Expanded', sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"normal",textTransform:"uppercase",color:i.label,userSelect:"none"},children:g})]})};var Tu={sm:16,md:24,lg:40},Ch=({size:e="md",color:t,label:o="Na\u010D\xEDt\xE1n\xED",className:n,style:r})=>{let[a,l]=useState(0),s=useRef(void 0),g=useRef(void 0);useEffect(()=>{let d=i=>{g.current===void 0&&(g.current=i),l((i-g.current)/800*360%360),s.current=requestAnimationFrame(d);};return s.current=requestAnimationFrame(d),()=>{s.current!==void 0&&cancelAnimationFrame(s.current);}},[]);let b=typeof e=="number"?e:Tu[e]??24,c=t??"currentColor";return jsx("span",{role:"status","aria-label":o,className:n,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",...r},children:jsxs("svg",{width:b,height:b,viewBox:"0 0 16 16",fill:"none",style:{transform:`rotate(${a}deg)`,flexShrink:0,display:"block"},children:[jsx("circle",{cx:"8",cy:"8",r:"6",stroke:c,strokeWidth:"2",strokeOpacity:"0.25"}),jsx("path",{d:"M8 2a6 6 0 0 1 6 6",stroke:c,strokeWidth:"2",strokeLinecap:"round"})]})})};var Eu={dark:{titleText:"#ffffff",descriptionText:"#eaeaea",cancelBg:"transparent",cancelHover:"rgba(255,255,255,0.08)",cancelBorder:"rgba(255,255,255,0.15)",cancelText:"#eaeaea",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"},light:{titleText:"#1a1a1a",descriptionText:"#333333",cancelBg:"transparent",cancelHover:"rgba(0,0,0,0.05)",cancelBorder:"rgba(0,0,0,0.12)",cancelText:"#333333",confirmBg:"#FC4F00",confirmHover:"#FF6D2A",confirmText:"#ffffff",dangerBg:"#EF3838",dangerHover:"#ff5252",dangerText:"#ffffff"}},zu=({open:e,onConfirm:t,onCancel:o,title:n,description:r,confirmLabel:a="Potvrdit",cancelLabel:l="Zru\u0161it",variant:s="default",loading:g=false,style:b,className:c})=>{let d=A(),i=Eu[d],[u,f]=useState(false),[m,p]=useState(false),R=s==="danger",z=R?m?i.dangerHover:i.dangerBg:m?i.confirmHover:i.confirmBg,h=R?i.dangerText:i.confirmText;return jsx(Vn,{open:e,onClose:o,title:n,size:"sm",className:c,style:b,footer:jsxs(Fragment,{children:[jsx("button",{type:"button",onClick:o,onMouseEnter:()=>f(true),onMouseLeave:()=>f(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:u?i.cancelHover:i.cancelBg,border:`1px solid ${i.cancelBorder}`,borderRadius:"6px",cursor:"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:i.cancelText,lineHeight:"normal",transition:"background-color 0.12s ease"},children:l}),jsx("button",{type:"button",onClick:t,disabled:g,onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",background:z,border:"none",borderRadius:"6px",cursor:g?"not-allowed":"pointer",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",fontWeight:500,color:h,lineHeight:"normal",opacity:g?.7:1,transition:"background-color 0.12s ease, opacity 0.12s ease"},children:g?"Zpracov\xE1v\xE1m...":a})]}),children:r&&jsx("p",{style:{margin:0,fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",lineHeight:"1.6",color:i.descriptionText},children:r})})};zu.displayName="ConfirmDialog";var Hu={dark:{iconColor:"#ACACAC",iconHover:"#ffffff",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(255,255,255,0.08)",buttonBorder:"rgba(255,255,255,0.15)",buttonText:"#eaeaea"},light:{iconColor:"#888888",iconHover:"#1a1a1a",successColor:"#00A205",buttonBg:"transparent",buttonHover:"rgba(0,0,0,0.05)",buttonBorder:"rgba(0,0,0,0.12)",buttonText:"#333333"}},Lu={sm:{iconSize:14,buttonPadding:"4px 10px",iconPadding:"4px",fontSize:"12px"},md:{iconSize:16,buttonPadding:"6px 14px",iconPadding:"6px",fontSize:"13px"},lg:{iconSize:18,buttonPadding:"8px 16px",iconPadding:"8px",fontSize:"14px"}},Nu=async e=>{try{if(navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",t.style.left="-9999px",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return document.body.removeChild(t),o}catch{return false}},$u=({text:e,children:t,size:o="md",variant:n="icon",label:r="Kop\xEDrovat",successLabel:a="Zkop\xEDrov\xE1no",onCopy:l,style:s,className:g})=>{let b=A(),c=Hu[b],d=Lu[o],[i,u]=useState(false),[f,m]=useState(false),p=useRef(null),R=useCallback(async()=>{await Nu(e)&&(u(true),l?.(),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{u(false),p.current=null;},2e3));},[e,l]),z=i?c.successColor:f?c.iconHover:c.iconColor,h=i?CheckIcon:CopySimpleIcon;return t?jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",color:z,...s},children:t}):n==="icon"?jsx("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:d.iconPadding,background:f?c.buttonHover:c.buttonBg,border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease, color 0.12s ease",color:z,...s},children:jsx(h,{size:d.iconSize,color:z})}):jsxs("button",{type:"button","aria-label":i?a:r,onClick:R,onMouseEnter:()=>m(true),onMouseLeave:()=>m(false),className:g,style:{display:"inline-flex",alignItems:"center",gap:"6px",padding:d.buttonPadding,background:f?c.buttonHover:c.buttonBg,border:`1px solid ${c.buttonBorder}`,borderRadius:"6px",cursor:"pointer",transition:"background-color 0.12s ease",fontFamily:"'Zalando Sans', sans-serif",fontSize:d.fontSize,fontWeight:500,color:i?c.successColor:c.buttonText,lineHeight:"normal",...s},children:[jsx(h,{size:d.iconSize,color:i?c.successColor:c.buttonText}),i?a:r]})};$u.displayName="CopyButton";var Ou={dark:{border:"rgba(255,255,255,0.15)",labelColor:"rgba(255,255,255,0.5)",labelBg:"#1a1a1a"},light:{border:"rgba(0,0,0,0.12)",labelColor:"rgba(0,0,0,0.4)",labelBg:"#ffffff"}},Zh=({orientation:e="horizontal",label:t,className:o,style:n})=>{let r=A(),a=Ou[r];return e==="vertical"?jsx("div",{role:"separator","aria-orientation":"vertical",className:o,style:{width:"1px",alignSelf:"stretch",backgroundColor:a.border,flexShrink:0,...n}}):t?jsxs("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{display:"flex",alignItems:"center",width:"100%",gap:"12px",...n},children:[jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}}),jsx("span",{style:{fontFamily:"'Zalando Sans', sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"normal",color:a.labelColor,whiteSpace:"nowrap",userSelect:"none",flexShrink:0},children:t}),jsx("div",{style:{flex:1,height:"1px",backgroundColor:a.border}})]}):jsx("div",{role:"separator","aria-orientation":"horizontal",className:o,style:{width:"100%",height:"1px",backgroundColor:a.border,flexShrink:0,...n}})};var Yu={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},Vu={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around"},Uh=({direction:e="column",gap:t=8,align:o="stretch",justify:n="start",wrap:r=false,fullWidth:a=false,children:l,className:s,style:g})=>jsx("div",{className:s,style:{display:"flex",flexDirection:e,gap:typeof t=="number"?`${t}px`:t,alignItems:Yu[o],justifyContent:Vu[n],flexWrap:r?"wrap":"nowrap",width:a?"100%":void 0,...g},children:l});var Xu={sm:640,md:768,lg:1024,xl:1280},_h=({maxWidth:e="lg",padding:t=16,centered:o=true,children:n,className:r,style:a})=>{let l=typeof e=="number"?e:Xu[e],s=typeof t=="number"?`${t}px`:t;return jsx("div",{className:r,style:{maxWidth:`${l}px`,width:"100%",padding:s,boxSizing:"border-box",...o?{marginLeft:"auto",marginRight:"auto"}:{},...a},children:n})};var Ju={dark:{itemBg:"rgba(255,255,255,0.04)",itemBorder:"rgba(255,255,255,0.08)",itemHoverBg:"rgba(255,255,255,0.07)",text:"#ffffff",textSecondary:"#ACACAC",gripColor:"rgba(255,255,255,0.2)",gripHover:"rgba(255,255,255,0.5)",dropIndicator:"#E8612D",nestHighlight:"rgba(232,97,45,0.10)",nestBorder:"rgba(232,97,45,0.4)",chevron:"rgba(255,255,255,0.4)",chevronHover:"#ffffff",treeLine:"rgba(255,255,255,0.08)"},light:{itemBg:"rgba(0,0,0,0.02)",itemBorder:"rgba(0,0,0,0.07)",itemHoverBg:"rgba(0,0,0,0.04)",text:"#1a1a1a",textSecondary:"#888888",gripColor:"rgba(0,0,0,0.15)",gripHover:"rgba(0,0,0,0.4)",dropIndicator:"#FC4F00",nestHighlight:"rgba(252,79,0,0.06)",nestBorder:"rgba(252,79,0,0.35)",chevron:"rgba(0,0,0,0.3)",chevronHover:"#1a1a1a",treeLine:"rgba(0,0,0,0.06)"}},hi="smDragListPulse",Qu=`@keyframes ${hi}{0%,100%{opacity:1}50%{opacity:0.5}}`;function fr(e,t){for(let o of e){if(o.id===t)return o;if(o.children){let n=fr(o.children,t);if(n)return n}}return null}function pr(e,t,o){let n=fr(e,t);if(!n||!n.children)return false;for(let r of n.children)if(r.id===o||pr([r],r.id,o))return true;return false}function yi(e,t){let o=null;return [e.reduce((r,a)=>{if(a.id===t)return o=a,r;if(a.children){let[l,s]=yi(a.children,t);s&&(o=s),r.push({...a,children:l.length>0?l:void 0});}else r.push(a);return r},[]),o]}function ur(e,t,o,n){if(o==="inside")return e.map(a=>a.id===t?{...a,children:[...a.children||[],n],expanded:true}:a.children?{...a,children:ur(a.children,t,o,n)}:a);let r=[];for(let a of e)a.id===t?o==="before"?(r.push(n),r.push(a)):(r.push(a),r.push(n)):a.children?r.push({...a,children:ur(a.children,t,o,n)}):r.push(a);return r}function vi(e,t){return e.map(o=>o.id===t?{...o,expanded:!o.expanded}:o.children?{...o,children:vi(o.children,t)}:o)}function Si(e,t,o){return e.map(n=>n.id===t?{...n,expanded:o}:n.children?{...n,children:Si(n.children,t,o)}:n)}var xi=({color:e})=>jsx("div",{style:{height:"2px",backgroundColor:e,borderRadius:"1px",position:"relative",animation:`${hi} 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}})}),ki=({item:e,depth:t,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f})=>{let[m,p]=useState(false),[R,z]=useState(false),[h,S]=useState(false),x=useRef(false),I=useRef(null),v=e.children&&e.children.length>0,E=e.expanded??false,y=r===e.id,D=r!==null,B=u==="handle",k=a?.targetId===e.id,M=k&&a?.position==="before",F=k&&a?.position==="after",w=k&&a?.position==="inside",T=y?"transparent":w?f.nestHighlight:R&&!D?f.itemHoverBg:f.itemBg,L=w?f.nestBorder:y?"transparent":f.itemBorder;return jsxs("div",{style:{paddingLeft:t>0?`${t*28}px`:0,position:"relative"},children:[M&&jsx("div",{style:{position:"absolute",top:"-4px",left:t>0?`${t*28+4}px`:"4px",right:"4px",zIndex:10,pointerEvents:"none"},children:jsx(xi,{color:f.dropIndicator})}),jsxs("div",{ref:I,draggable:true,onDragStart:N=>{if(B&&!x.current){N.preventDefault();return}if(x.current=false,N.dataTransfer.effectAllowed="move",N.dataTransfer.setData("text/plain",e.id),I.current){let C=I.current.cloneNode(true);C.style.width=`${I.current.offsetWidth}px`,C.style.opacity="0.85",C.style.transform="rotate(1.5deg) scale(1.02)",C.style.boxShadow="0 8px 24px rgba(0,0,0,0.25)",C.style.position="fixed",C.style.top="-1000px",document.body.appendChild(C),N.dataTransfer.setDragImage(C,N.nativeEvent.offsetX,N.nativeEvent.offsetY),requestAnimationFrame(()=>document.body.removeChild(C));}l(e.id);},onDragOver:N=>{N.preventDefault(),N.stopPropagation(),s(N,e.id,t);},onDragLeave:N=>{let C=N.relatedTarget;I.current&&C&&I.current.contains(C)||(N.stopPropagation(),g(N,I.current),z(false));},onDrop:N=>{N.preventDefault(),N.stopPropagation(),b(N);},onDragEnd:c,onMouseEnter:()=>z(true),onMouseLeave:()=>z(false),style:{display:"flex",alignItems:"center",padding:"10px 14px",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:y?"transparent":f.text,cursor:D?"grabbing":B?"default":"grab",opacity:y?.35:1,backgroundColor:T,borderWidth:"1px",borderColor:L,borderStyle:y?"dashed":"solid",borderRadius:"10px",transition:"background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease",userSelect:"none",gap:"10px",minHeight:"44px",boxSizing:"border-box",boxShadow:w?`inset 0 0 0 1px ${f.nestBorder}`:R&&!D?"0 2px 8px rgba(0,0,0,0.08)":"none",transform:w?"scale(1.01)":"scale(1)"},children:[!i&&jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:D?"grabbing":"grab",padding:"4px 2px",borderRadius:"4px",visibility:y?"hidden":"visible"},onMouseEnter:()=>p(true),onMouseLeave:()=>p(false),onMouseDown:()=>{x.current=true;},children:jsx(DotsSixVertical,{size:14,color:m?f.gripHover:f.gripColor})}),w&&jsx("span",{style:{display:"inline-flex",alignItems:"center",position:"absolute",right:"14px",opacity:.6},children:jsx(ArrowBendDownRight,{size:16,color:f.dropIndicator})}),v?jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),d(e.id);},onMouseEnter:()=>S(true),onMouseLeave:()=>S(false),style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",border:"none",background:"transparent",cursor:"pointer",padding:0,flexShrink:0,borderRadius:"4px",visibility:y?"hidden":"visible"},children:jsx(CaretRight,{size:16,color:h?f.chevronHover:f.chevron,style:{transition:"transform 0.2s ease",transform:E?"rotate(90deg)":"rotate(0deg)",flexShrink:0}})}):null,jsx("div",{style:{display:"flex",alignItems:"center",gap:"10px",flex:1,minWidth:0,visibility:y?"hidden":"visible"},children:i?i(e,{handleProps:{onMouseDown:()=>{x.current=true;},style:{cursor:D?"grabbing":"grab",userSelect:"none"},"aria-label":"P\u0159et\xE1hnout polo\u017Eku"},isDragging:y,depth:t,isExpanded:E,toggleExpand:()=>d(e.id),hasChildren:!!v}):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(xi,{color:f.dropIndicator})}),v&&E&&jsx("div",{style:{marginTop:"6px",paddingLeft:"4px",borderLeft:`2px solid ${f.treeLine}`,marginLeft:"18px",display:"flex",flexDirection:"column",gap:"6px"},children:e.children.map(N=>jsx(ki,{item:N,depth:t+1,allowNesting:o,maxDepth:n,draggedId:r,dropState:a,onDragStart:l,onDragOver:s,onDragLeave:g,onDrop:b,onDragEnd:c,onToggleExpand:d,renderItem:i,dragMode:u,tokens:f},N.id))})]})},ef=({items:e,onReorder:t,renderItem:o,allowNesting:n=false,maxDepth:r=3,dragMode:a="full",className:l,style:s})=>{let g=A(),b=Ju[g],[c,d]=useState(null),[i,u]=useState(null),f=useRef(null),m=useRef(void 0),p=useRef(void 0),R=useRef(null),z=useCallback(E=>{d(E);},[]),h=useCallback((E,y,D)=>{if(!c||c===y||pr(e,c,y))return;m.current&&(clearTimeout(m.current),m.current=void 0);let B=E.currentTarget.getBoundingClientRect(),k=E.clientY-B.top,M=B.height,F;n&&D<r?k<M*.25?F="before":k>M*.75?F="after":F="inside":k<M*.35?F="before":k>M*.65?F="after":R.current?.targetId===y?F=R.current.position:F=k<M/2?"before":"after";let w={targetId:y,position:F},T=fr(e,y);F==="inside"&&T?.children&&T.children.length>0&&!T.expanded?(R.current?.targetId!==y||R.current?.position!=="inside")&&(p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{t(Si(e,y,true));},600)):p.current&&(clearTimeout(p.current),p.current=void 0),R.current=w,u(w);},[c,e,n,r,t]),S=useCallback((E,y)=>{m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{u(null),R.current=null;},60),p.current&&(clearTimeout(p.current),p.current=void 0);},[]),x=useCallback(()=>{if(m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),!c||!i)return;let{targetId:E,position:y}=i;if(c===E||pr(e,c,E))return;let[D,B]=yi(e,c);if(!B)return;let k=ur(D,E,y,B);t(k),d(null),u(null),R.current=null;},[c,i,e,t]),I=useCallback(()=>{m.current&&(clearTimeout(m.current),m.current=void 0),p.current&&(clearTimeout(p.current),p.current=void 0),d(null),u(null),R.current=null;},[]),v=useCallback(E=>{t(vi(e,E));},[e,t]);return useEffect(()=>()=>{m.current&&clearTimeout(m.current),p.current&&clearTimeout(p.current);},[]),jsxs("div",{ref:f,className:l,style:{display:"flex",flexDirection:"column",gap:"6px",...s},children:[jsx("style",{dangerouslySetInnerHTML:{__html:Qu}}),e.length===0?jsx("div",{style:{padding:"32px 16px",textAlign:"center",fontFamily:"'Zalando Sans', sans-serif",fontSize:"14px",color:b.textSecondary,backgroundColor:b.itemBg,borderRadius:"10px",border:`1px solid ${b.itemBorder}`},children:"\u017D\xE1dn\xE9 polo\u017Eky"}):e.map(E=>jsx(ki,{item:E,depth:0,allowNesting:n,maxDepth:r,draggedId:c,dropState:i,onDragStart:z,onDragOver:h,onDragLeave:S,onDrop:x,onDragEnd:I,onToggleExpand:v,renderItem:o,dragMode:a,tokens:b},E.id))]})};ef.displayName="DragList";var rf={dark:{insertionLine:"#FC4F00",dragOverlay:"rgba(24,24,24,0.95)",dragBorder:"rgba(255,255,255,0.12)",dragShadow:"0 8px 30px rgba(0,0,0,0.5)",handleColor:"rgba(255,255,255,0.3)",handleHover:"rgba(255,255,255,0.6)"},light:{insertionLine:"#FC4F00",dragOverlay:"rgba(255,255,255,0.95)",dragBorder:"rgba(0,0,0,0.1)",dragShadow:"0 8px 30px rgba(0,0,0,0.15)",handleColor:"rgba(0,0,0,0.2)",handleHover:"rgba(0,0,0,0.5)"}};function af({items:e,keyExtractor:t,renderItem:o,onReorder:n,direction:r="vertical",handle:a="whole",disabled:l=false,gap:s,style:g,className:b}){let c=A(),d=rf[c],i=r==="vertical",[u,f]=useState(null),[m,p]=useState(null),[R,z]=useState(null),h=useRef(new Map),S=useRef({x:0,y:0}),x=useCallback((v,E)=>{if(l)return;E.preventDefault();let y="touches"in E?{x:E.touches[0].clientX,y:E.touches[0].clientY}:{x:E.clientX,y:E.clientY};S.current=y,f(v),p(v);},[l]);useEffect(()=>{if(u===null)return;let v=y=>{let D="touches"in y?{x:y.touches[0].clientX,y:y.touches[0].clientY}:{x:y.clientX,y:y.clientY},B=u,k=1/0;h.current.forEach((M,F)=>{let w=M.getBoundingClientRect(),T=i?w.top+w.height/2:w.left+w.width/2,L=i?D.y:D.x,N=Math.abs(L-T);N<k&&(k=N,B=F);}),p(B);},E=()=>{if(u!==null&&m!==null&&u!==m){let y=[...e],[D]=y.splice(u,1);y.splice(m,0,D),n(y);}f(null),p(null);};return document.addEventListener("mousemove",v),document.addEventListener("mouseup",E),document.addEventListener("touchmove",v,{passive:false}),document.addEventListener("touchend",E),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",E);}},[u,m,e,n,i]);let I=useCallback((v,E)=>{if(!l){if(E.key===" "||E.key==="Enter")if(E.preventDefault(),R===null)z(v);else {if(R!==v){let y=[...e],[D]=y.splice(R,1);y.splice(v,0,D),n(y);}z(null);}else if(R!==null){let y=i?E.key==="ArrowDown"?1:E.key==="ArrowUp"?-1:0:E.key==="ArrowRight"?1:E.key==="ArrowLeft"?-1:0;if(y!==0){E.preventDefault();let D=Math.max(0,Math.min(e.length-1,R+y));if(D!==R){let B=[...e],[k]=B.splice(R,1);B.splice(D,0,k),n(B),z(D);}}E.key==="Escape"&&z(null);}}},[l,R,e,n,i]);return jsx("div",{className:b,style:{display:"flex",flexDirection:i?"column":"row",gap:s??0,position:"relative",...g},children:e.map((v,E)=>{let y=t(v),D=u===E,B=R===E,k=u!==null&&m===E&&u>E,M=u!==null&&m===E&&u<E,F=a==="explicit"?jsx("span",{style:{display:"inline-flex",alignItems:"center",cursor:l?"default":"grab",color:d.handleColor,transition:"color 0.12s ease",touchAction:"none"},onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),onMouseEnter:T=>{T.currentTarget.style.color=d.handleHover;},onMouseLeave:T=>{T.currentTarget.style.color=d.handleColor;},children:jsx(DotsSixVertical,{size:16})}):null,w=a==="whole"?{onMouseDown:T=>x(E,T),onTouchStart:T=>x(E,T),style:{cursor:l?"default":"grab",touchAction:"none"}}:{};return jsxs("div",{ref:T=>{T?h.current.set(E,T):h.current.delete(E);},tabIndex:l?-1:0,role:"listitem","aria-grabbed":D||B,onKeyDown:T=>I(E,T),...a==="whole"?w:{},style:{position:"relative",opacity:D?.4:1,outline:B?`2px solid ${d.insertionLine}`:"none",outlineOffset:"2px",borderRadius:"4px",transition:"opacity 0.15s ease",...a==="whole"?w.style:{}},children:[k&&jsx("div",{style:{position:"absolute",[i?"top":"left"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}}),o(v,F),M&&jsx("div",{style:{position:"absolute",[i?"bottom":"right"]:-1,[i?"left":"top"]:0,[i?"right":"bottom"]:0,[i?"height":"width"]:"2px",backgroundColor:d.insertionLine,borderRadius:"1px",zIndex:10}})]},y)})})}af.displayName="SortableList";var lf={dark:{dividerBg:"rgba(255,255,255,0.06)",dividerHover:"rgba(255,255,255,0.15)",dividerActive:"#FC4F00"},light:{dividerBg:"rgba(0,0,0,0.06)",dividerHover:"rgba(0,0,0,0.12)",dividerActive:"#FC4F00"}},cf=({orientation:e="horizontal",children:t,defaultSizes:o,minSizes:n,maxSizes:r,onResize:a,persistKey:l,dividerSize:s=4,disabled:g=false,style:b,className:c})=>{let d=A(),i=lf[d],u=useRef(null),f=zn.Children.count(t),m=e==="horizontal",p=()=>{if(l&&typeof window<"u"){let B=localStorage.getItem(`splitter-${l}`);if(B)try{let k=JSON.parse(B);if(Array.isArray(k)&&k.length===f)return k}catch{}}return o&&o.length===f?o:Array.from({length:f},()=>100/f)},[R,z]=useState(p),[h,S]=useState(null),[x,I]=useState(null),v=useRef(null);useEffect(()=>{l&&typeof window<"u"&&h===null&&localStorage.setItem(`splitter-${l}`,JSON.stringify(R));},[R,l,h]);let E=useCallback(()=>u.current?m?u.current.clientWidth:u.current.clientHeight:0,[m]),y=useCallback((B,k)=>{g||(S(B),v.current={pos:k,sizes:[...R]});},[g,R]);useEffect(()=>{if(h===null)return;let B=m?"col-resize":"row-resize";document.body.style.cursor=B,document.body.style.userSelect="none";let k=F=>{if(!v.current||h===null)return;let w="touches"in F?F.touches[0][m?"clientX":"clientY"]:F[m?"clientX":"clientY"],T=E();if(!T)return;let N=(w-v.current.pos)/T*100,C=[...v.current.sizes],P=h,H=h+1;C[P]=v.current.sizes[P]+N,C[H]=v.current.sizes[H]-N;let W=T/100;if(n){let V=(n[P]??0)/W,q=(n[H]??0)/W;C[P]<V&&(C[H]+=C[P]-V,C[P]=V),C[H]<q&&(C[P]+=C[H]-q,C[H]=q);}if(r){let V=r[P]?r[P]/W:100,q=r[H]?r[H]/W:100;C[P]>V&&(C[H]+=C[P]-V,C[P]=V),C[H]>q&&(C[P]+=C[H]-q,C[H]=q);}C[P]<0||C[H]<0||(z(C),a&&a(C.map(V=>Math.round(V*W))));},M=()=>{S(null),v.current=null,document.body.style.cursor="",document.body.style.userSelect="";};return document.addEventListener("mousemove",k),document.addEventListener("mouseup",M),document.addEventListener("touchmove",k,{passive:false}),document.addEventListener("touchend",M),()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",M),document.removeEventListener("touchmove",k),document.removeEventListener("touchend",M),document.body.style.cursor="",document.body.style.userSelect="";}},[h,m,E,n,r,a]);let D=zn.Children.toArray(t);return jsx("div",{ref:u,className:c,style:{display:"flex",flexDirection:m?"row":"column",width:"100%",height:"100%",overflow:"hidden",...b},children:D.map((B,k)=>jsxs(zn.Fragment,{children:[jsx("div",{style:{flex:`0 0 calc(${R[k]??100/f}% - ${(f-1)*s/f}px)`,overflow:"auto",minWidth:0,minHeight:0},children:B}),k<D.length-1&&jsx("div",{style:{flex:`0 0 ${s}px`,backgroundColor:h===k?i.dividerActive:x===k?i.dividerHover:i.dividerBg,cursor:g?"default":m?"col-resize":"row-resize",transition:h===k?"none":"background-color 0.15s ease",touchAction:"none"},onMouseDown:M=>y(k,m?M.clientX:M.clientY),onTouchStart:M=>y(k,m?M.touches[0].clientX:M.touches[0].clientY),onMouseEnter:()=>!g&&I(k),onMouseLeave:()=>I(null)})]},k))})};cf.displayName="Splitter";export{Sc as Accordion,vc as AccordionItem,th as Alert,Cp as AppSidebar,zb as Avatar,ed as AvatarStack,Wb as Badge,pu as Banner,Yd as Breadcrumb,Mi as Button,dd as Calendar,bc as Card,Gr as Checkbox,_r as CheckboxGroup,Cl as ColorPicker,Ts as Combobox,Sp as CommandMenu,zu as ConfirmDialog,_h as Container,$u as CopyButton,sc as DataGrid,bd as DataList,Ur as DatePicker,Ls as DatePickerGroup,Zh as Divider,ef as DragList,Ad as Drawer,cp as DropdownMenu,Zc as EmptyState,ia as FileUpload,_i as FormField,ip as FormWizard,Vi as IconButton,Kl as ImageCropper,zr as Input,Hf as InputGroup,px as Link,uc as MobileDataCard,Vn as Modal,Dp as Navbar,vu as Notification,ps as NumberInput,Ll as OTPInput,qd as Pagination,Xl as PhoneInput,Bc as Popover,xh as ProgressBar,hh as ProgressCircle,dn as Radio,jr as RadioGroup,zl as Rating,bl as SegmentedControl,Hr as Select,bs as SelectGroup,Wd as Sheet,zp as SidebarItem,ve as Skeleton,ra as Slider,af as SortableList,Ch as Spinner,cf as Splitter,mp as Spotlight,Uh as Stack,_c as Stat,Td as StatusBadge,Qn as Stepper,Jr as Switch,wc as Tab,Rc as TabPanel,rc as Table,Tc as Tabs,$b as Tag,Ob as TagItem,ea as Textarea,fd as Timeline,oi as Toast,Gx as ToasterProvider,ht as Tooltip,vd as Tree,A as useTheme,_x as useToast};//# sourceMappingURL=index.mjs.map
|
|
19
19
|
//# sourceMappingURL=index.mjs.map
|