@shopito/design-system-fe 0.1.20 → 0.1.22

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.
@@ -1,10 +1,22 @@
1
- import type { ReactNode, HTMLAttributes } from 'react';
1
+ import type { ReactNode, HTMLAttributes, CSSProperties } from 'react';
2
+ export interface CarouselCoverProps {
3
+ /** Image URL rendered as background-size: cover */
4
+ src: string;
5
+ alt?: string;
6
+ children?: ReactNode;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ }
10
+ /** Drop inside a Carousel slide — renders image as cover background */
11
+ export declare function CarouselCover({ src, alt, children, className, style, }: CarouselCoverProps): import("react/jsx-runtime").JSX.Element;
2
12
  export interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
3
13
  children: ReactNode;
4
14
  /** Number of slides visible at once */
5
15
  slidesPerView?: number;
6
16
  /** Gap between slides in px */
7
17
  gap?: number;
18
+ /** Fixed slide height in px */
19
+ height?: number;
8
20
  /** Show prev/next arrow buttons */
9
21
  arrows?: boolean;
10
22
  /** Show dot navigation indicators */
@@ -14,5 +26,5 @@ export interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
14
26
  /** Wrap around from last to first slide */
15
27
  loop?: boolean;
16
28
  }
17
- export declare function Carousel({ children, slidesPerView, gap, arrows, dots, autoPlay, autoPlayInterval, loop, className, ...props }: CarouselProps): import("react/jsx-runtime").JSX.Element | null;
29
+ export declare function Carousel({ children, slidesPerView, gap, height, arrows, dots, autoPlay, autoPlayInterval, loop, className, ...props }: CarouselProps): import("react/jsx-runtime").JSX.Element | null;
18
30
  //# sourceMappingURL=Carousel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/Carousel.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,aAAiB,EACjB,GAAQ,EACR,MAAa,EACb,IAAW,EACX,QAAgB,EAChB,gBAAuB,EACvB,IAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,kDA6Kf"}
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/Carousel.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGtE,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,GAAG,EACH,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CAWpB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,aAAiB,EACjB,GAAQ,EACR,MAAM,EACN,MAAa,EACb,IAAW,EACX,QAAgB,EAChB,gBAAuB,EACvB,IAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,kDAkLf"}
@@ -1,3 +1,3 @@
1
- export { Carousel } from './Carousel';
2
- export type { CarouselProps } from './Carousel';
1
+ export { Carousel, CarouselCover } from './Carousel';
2
+ export type { CarouselProps, CarouselCoverProps } from './Carousel';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AACpD,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`),u=require(`react/jsx-runtime`),d=require(`react-dom`);var f=({children:e})=>(0,u.jsx)(`div`,{className:`container`,children:e}),p=({children:e})=>(0,u.jsx)(`main`,{className:`main`,children:(0,u.jsx)(f,{children:e})}),m=c(o(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),h=(0,l.forwardRef)(({variant:e=`primary`,size:t=`md`,loading:n=!1,fullWidth:r=!1,disabled:i,children:a,className:o=``,...s},c)=>(0,u.jsxs)(`button`,{ref:c,disabled:i||n,className:(0,m.default)(`btn`,e&&`btn-${e}`,t&&`btn-${t}`,r&&`w-full`,o),...s,children:[n&&(0,u.jsxs)(`svg`,{className:`animate-spin h-4 w-4 shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,u.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,u.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`})]}),a]}));h.displayName=`Button`;var g=({size:e=`md`})=>(0,u.jsxs)(`svg`,{className:(0,m.default)(`loading-spin`,`loading-spin-${e}`),xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,u.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,u.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`})]}),_=(0,l.forwardRef)(({icon:e,label:t,variant:n=`ghost`,size:r=`md`,loading:i=!1,disabled:a,className:o=``,...s},c)=>(0,u.jsx)(`button`,{ref:c,disabled:a||i,"aria-label":t,title:t,className:(0,m.default)(`icon-button`,`icon-button-${n}`,`icon-button-${r}`,o),...s,children:i?(0,u.jsx)(g,{size:r}):e}));_.displayName=`IconButton`;var v=(0,l.forwardRef)(({label:e,error:t,hint:n,leftIcon:r,rightIcon:i,className:a=``,id:o,...s},c)=>{let l=o??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:`w-full`,children:[e&&(0,u.jsx)(`label`,{htmlFor:l,className:`input-label`,children:e}),(0,u.jsxs)(`div`,{className:`relative`,children:[r&&(0,u.jsx)(`span`,{className:`left-icon`,children:r}),(0,u.jsx)(`input`,{ref:c,id:l,className:(0,m.default)(`input`,t&&`has-error`,!!r&&`with-left-icon`,!!i&&`with-right-icon`,`w-full`,a),...s}),i&&(0,u.jsx)(`span`,{className:`right-icon`,children:i})]}),(t||n)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,t&&`has-error`),children:t??n})]})});v.displayName=`Input`;var y=(0,l.forwardRef)(({label:e,error:t,hint:n,options:r,placeholder:i,className:a=``,id:o,...s},c)=>{let l=o??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:(0,m.default)(`select-wrapper`,`w-full`),children:[e&&(0,u.jsx)(`label`,{htmlFor:l,className:`select-label`,children:e}),(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsxs)(`select`,{ref:c,id:l,className:(0,m.default)(`select`,`w-full`,t&&`has-error`,a),...s,children:[i&&(0,u.jsx)(`option`,{value:``,disabled:!0,children:i}),r.map(e=>(0,u.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value))]}),(0,u.jsx)(`span`,{className:`select-chevron-icon`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})})]}),(t||n)&&(0,u.jsx)(`p`,{className:(0,m.default)(`select-helper`,t&&`has-error`),children:t??n})]})});y.displayName=`Select`;var b=({as:e,level:t=1,color:n=`default`,className:r=``,children:i,...a})=>(0,u.jsx)(e??`h${t}`,{className:(0,m.default)(`text-color-${n}`,`heading-size-${t}`,r),...a,children:i}),x=({variant:e=`body`,color:t=`default`,as:n=`p`,className:r=``,children:i,...a})=>(0,u.jsx)(n,{className:(0,m.default)(`text-color-${t}`,`text-variant-${e}`,r),...a,children:i});function S({variant:e=`default`,size:t=`md`,dot:n=!1,className:r,children:i,...a}){return(0,u.jsxs)(`span`,{className:(0,m.default)(`badge`,`badge-${e}`,`badge-${t}`,r),...a,children:[n&&(0,u.jsx)(`span`,{className:(0,m.default)(`badge-dot`,`badge-dot-${e}`)}),i]})}var C={none:``,sm:`p-4`,md:`p-6`,lg:`p-8`};function w({children:e,padding:t=`md`,shadow:n=!0,border:r=!0,className:i=``,...a}){return(0,u.jsx)(`div`,{className:[`bg-white rounded-xl overflow-hidden`,r?`border border-gray-200`:``,n?`shadow-sm`:``,C[t],i].filter(Boolean).join(` `),...a,children:e})}function T({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`px-6 py-4 border-b border-gray-100`,t].filter(Boolean).join(` `),...n,children:e})}function E({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`p-6`,t].filter(Boolean).join(` `),...n,children:e})}function D({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`px-6 py-4 border-t border-gray-100 bg-gray-50`,t].filter(Boolean).join(` `),...n,children:e})}function O({size:e=`md`,color:t=`primary`,label:n=`Loading…`,className:r=``,...i}){return(0,u.jsxs)(`span`,{role:`status`,"aria-label":n,className:(0,m.default)(`spinner-wrapper`,r),...i,children:[(0,u.jsx)(`span`,{className:(0,m.default)(`spinner`,`spinner-${e}`,`spinner-${t}`)}),(0,u.jsx)(`span`,{className:`sr-only`,children:n})]})}var k={info:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z`}),success:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z`}),warning:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z`}),danger:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z`})};function A({variant:e=`info`,title:t,children:n,onClose:r,className:i=``,...a}){return(0,u.jsxs)(`div`,{role:`alert`,className:(0,m.default)(`alert`,`alert-${e}`,`w-full`,i),...a,children:[(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:(0,m.default)(`alert-icon`,`alert-icon-${e}`),children:k[e]}),(0,u.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[t&&(0,u.jsx)(`p`,{className:`alert-title`,children:t}),(0,u.jsx)(`div`,{className:`alert-text`,children:n})]}),r&&(0,u.jsx)(`button`,{onClick:r,className:`alert-close-btn`,"aria-label":`Close`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]})}var j={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,full:`max-w-full mx-4`};function M({open:e,onClose:t,title:n,children:r,footer:i,size:a=`md`,closeOnBackdrop:o=!0}){let s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t}},[e]),(0,l.useEffect)(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t()};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,t]),e?(0,d.createPortal)((0,u.jsx)(`div`,{ref:s,className:`fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm`,onClick:e=>{o&&e.target===s.current&&t()},children:(0,u.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":n?`modal-title`:void 0,className:[`relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]`,j[a]].join(` `),children:[n&&(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0`,children:[(0,u.jsx)(`h2`,{id:`modal-title`,className:`text-lg font-semibold text-gray-900`,children:n}),(0,u.jsx)(`button`,{onClick:t,className:`text-gray-400 hover:text-gray-600 transition-colors`,"aria-label":`Close modal`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:r}),i&&(0,u.jsx)(`div`,{className:`px-6 py-4 border-t border-gray-100 shrink-0 bg-gray-50 rounded-b-xl`,children:i})]})}),document.body):null}var N=(0,l.forwardRef)(({label:e,description:t,error:n,indeterminate:r,className:i=``,id:a,...o},s)=>{let c=a??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:(0,m.default)(`checkbox-wrapper`,i),children:[(0,u.jsx)(`div`,{className:`checkbox-wrapper-inner`,children:(0,u.jsx)(`input`,{ref:e=>{e&&(e.indeterminate=r??!1),typeof s==`function`?s(e):s&&(s.current=e)},id:c,type:`checkbox`,className:(0,m.default)(`checkbox`,n&&`has-error`),...o})}),(e||t)&&(0,u.jsxs)(`div`,{children:[e&&(0,u.jsx)(`label`,{htmlFor:c,className:`checkbox-label`,children:e}),t&&(0,u.jsx)(`p`,{className:`checkbox-description`,children:t}),n&&(0,u.jsx)(`p`,{className:`checkbox-error`,children:n})]})]})});N.displayName=`Checkbox`;var P=(0,l.forwardRef)(({label:e,description:t,size:n=`md`,className:r=``,id:i,...a},o)=>{let s=i??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`label`,{htmlFor:s,className:(0,m.default)(`toggle`,a.disabled&&`toggle-disabled`,r),children:[(0,u.jsxs)(`div`,{className:(0,m.default)(`toggle-wrapper`,`toggle-wrapper-${n}`),children:[(0,u.jsx)(`input`,{ref:o,id:s,type:`checkbox`,role:`switch`,className:`sr-only peer`,...a}),(0,u.jsx)(`div`,{className:`toggle-track`}),(0,u.jsx)(`div`,{className:(0,m.default)(`toggle-thumb`,`toggle-thumb-${n}`)})]}),(e||t)&&(0,u.jsxs)(`div`,{children:[e&&(0,u.jsx)(`span`,{className:`toggle-label`,children:e}),t&&(0,u.jsx)(`span`,{className:`toggle-description`,children:t})]})]})});P.displayName=`Toggle`;var F=[`bg-red-500`,`bg-orange-500`,`bg-amber-500`,`bg-emerald-500`,`bg-teal-500`,`bg-cyan-500`,`bg-blue-500`,`bg-violet-500`,`bg-pink-500`];function I({src:e,alt:t,name:n,size:r=`md`,className:i,...a}){let o=[`avatar`,`avatar-${r}`,i],s=e=>{let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);return F[t%F.length]},c=e=>e.split(` `).slice(0,2).map(e=>e[0]).join(``).toUpperCase();return e?(0,u.jsx)(`span`,{className:(0,m.default)(o),...a,children:(0,u.jsx)(`img`,{src:e,alt:t??n??``,className:`w-full h-full object-cover`})}):n?(0,u.jsx)(`span`,{className:(0,m.default)(o,s(n)),"aria-label":n,...a,children:c(n)}):(0,u.jsx)(`span`,{className:(0,m.default)(o,`avatar-fallback`),...a,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,className:`w-3/5 h-3/5`,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z`,clipRule:`evenodd`})})})}var L=({direction:e=`row`,gap:t,alignItems:n=`start`,justifyItems:r=`start`,justifyContent:i=`normal`,className:a,children:o})=>(0,u.jsx)(`div`,{className:(0,m.default)(`stack`,`stack-${e}`,t&&`gap-${t}`,{start:`items-start`,end:`items-end`,center:`items-center`,baseline:`items-baseline`,stretch:`items-stretch`}[n],{start:`justify-items-start`,end:`justify-items-end`,center:`justify-items-center`,stretch:`justify-items-stretch`}[r],{normal:`justify-normal`,start:`justify-start`,end:`justify-end`,center:`justify-center`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`,stretch:`justify-stretch`}[i],a),children:o}),R={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},ee={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`,16:`gap-16`},te={0:`gap-y-0`,1:`gap-y-1`,2:`gap-y-2`,3:`gap-y-3`,4:`gap-y-4`,5:`gap-y-5`,6:`gap-y-6`,8:`gap-y-8`,10:`gap-y-10`,12:`gap-y-12`,16:`gap-y-16`},ne={0:`gap-x-0`,1:`gap-x-1`,2:`gap-x-2`,3:`gap-x-3`,4:`gap-x-4`,5:`gap-x-5`,6:`gap-x-6`,8:`gap-x-8`,10:`gap-x-10`,12:`gap-x-12`,16:`gap-x-16`},re={1:`col-span-1`,2:`col-span-2`,3:`col-span-3`,4:`col-span-4`,5:`col-span-5`,6:`col-span-6`,7:`col-span-7`,8:`col-span-8`,9:`col-span-9`,10:`col-span-10`,11:`col-span-11`,12:`col-span-12`},ie={1:`sm:col-span-1`,2:`sm:col-span-2`,3:`sm:col-span-3`,4:`sm:col-span-4`,5:`sm:col-span-5`,6:`sm:col-span-6`,7:`sm:col-span-7`,8:`sm:col-span-8`,9:`sm:col-span-9`,10:`sm:col-span-10`,11:`sm:col-span-11`,12:`sm:col-span-12`},ae={1:`md:col-span-1`,2:`md:col-span-2`,3:`md:col-span-3`,4:`md:col-span-4`,5:`md:col-span-5`,6:`md:col-span-6`,7:`md:col-span-7`,8:`md:col-span-8`,9:`md:col-span-9`,10:`md:col-span-10`,11:`md:col-span-11`,12:`md:col-span-12`},oe={1:`lg:col-span-1`,2:`lg:col-span-2`,3:`lg:col-span-3`,4:`lg:col-span-4`,5:`lg:col-span-5`,6:`lg:col-span-6`,7:`lg:col-span-7`,8:`lg:col-span-8`,9:`lg:col-span-9`,10:`lg:col-span-10`,11:`lg:col-span-11`,12:`lg:col-span-12`},se={1:`xl:col-span-1`,2:`xl:col-span-2`,3:`xl:col-span-3`,4:`xl:col-span-4`,5:`xl:col-span-5`,6:`xl:col-span-6`,7:`xl:col-span-7`,8:`xl:col-span-8`,9:`xl:col-span-9`,10:`xl:col-span-10`,11:`xl:col-span-11`,12:`xl:col-span-12`},ce={1:`col-start-2`,2:`col-start-3`,3:`col-start-4`,4:`col-start-5`,5:`col-start-6`,6:`col-start-7`,7:`col-start-8`,8:`col-start-9`,9:`col-start-10`,10:`col-start-11`,11:`col-start-12`},le={1:`sm:col-start-2`,2:`sm:col-start-3`,3:`sm:col-start-4`,4:`sm:col-start-5`,5:`sm:col-start-6`,6:`sm:col-start-7`,7:`sm:col-start-8`,8:`sm:col-start-9`,9:`sm:col-start-10`,10:`sm:col-start-11`,11:`sm:col-start-12`},ue={1:`md:col-start-2`,2:`md:col-start-3`,3:`md:col-start-4`,4:`md:col-start-5`,5:`md:col-start-6`,6:`md:col-start-7`,7:`md:col-start-8`,8:`md:col-start-9`,9:`md:col-start-10`,10:`md:col-start-11`,11:`md:col-start-12`},de={1:`lg:col-start-2`,2:`lg:col-start-3`,3:`lg:col-start-4`,4:`lg:col-start-5`,5:`lg:col-start-6`,6:`lg:col-start-7`,7:`lg:col-start-8`,8:`lg:col-start-9`,9:`lg:col-start-10`,10:`lg:col-start-11`,11:`lg:col-start-12`},z={1:`xl:col-start-2`,2:`xl:col-start-3`,3:`xl:col-start-4`,4:`xl:col-start-5`,5:`xl:col-start-6`,6:`xl:col-start-7`,7:`xl:col-start-8`,8:`xl:col-start-9`,9:`xl:col-start-10`,10:`xl:col-start-11`,11:`xl:col-start-12`},B=({children:e,cols:t=12,gap:n,rowGap:r,colGap:i,as:a=`div`,className:o})=>(0,u.jsx)(a,{className:(0,m.default)(`grid`,`w-full`,R[t],n!==void 0&&ee[n],r!==void 0&&te[r],i!==void 0&&ne[i],o),children:e});B.displayName=`Grid`;var V=({children:e,span:t,sm:n,md:r,lg:i,xl:a,offset:o,smOffset:s,mdOffset:c,lgOffset:l,xlOffset:d,className:f,...p})=>(0,u.jsx)(`div`,{className:(0,m.default)(t&&re[t],n&&ie[n],r&&ae[r],i&&oe[i],a&&se[a],o&&ce[o],s&&le[s],c&&ue[c],l&&de[l],d&&z[d],f),...p,children:e});V.displayName=`Col`;var H=({value:e,onChange:t,min:n=1,max:r=999,step:i=1,disabled:a=!1,label:o,error:s,hint:c,id:d,className:f})=>{let p=(0,l.useId)(),h=d??p,g=(0,l.useRef)(null),[_,v]=(0,l.useState)(String(e));(0,l.useEffect)(()=>{document.activeElement!==g.current&&v(String(e))},[e]);let y=e=>Math.min(r,Math.max(n,e)),b=n=>{let r=parseInt(n,10),i=isNaN(r)?e:y(r);v(String(i)),i!==e&&t(i)},x=e=>{let n=e.target.value.replace(/[^0-9]/g,``);v(n);let r=parseInt(n,10);isNaN(r)||t(y(r))},S=()=>b(_),C=e=>{if(e.key===`Enter`){b(_),g.current?.blur();return}![`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&!/^[0-9]$/.test(e.key)&&!e.metaKey&&!e.ctrlKey&&e.preventDefault()},w=()=>t(y(e-i)),T=()=>t(y(e+i)),E=e-i>=n,D=e+i<=r;return(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input-wrapper`,f),children:[o&&(0,u.jsx)(`label`,{htmlFor:h,className:`input-label`,children:o}),(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input`,s&&`has-error`,a&&`is-disabled`),children:[(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:w,disabled:a||!E,"aria-label":`Snížit množství`,tabIndex:-1,children:(0,u.jsx)(fe,{})}),(0,u.jsx)(`input`,{ref:g,id:h,type:`text`,inputMode:`numeric`,className:`quantity-field`,value:_,onChange:x,onBlur:S,onKeyDown:C,disabled:a,"aria-label":o??`Množství`,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":e}),(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:T,disabled:a||!D,"aria-label":`Zvýšit množství`,tabIndex:-1,children:(0,u.jsx)(pe,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};H.displayName=`QuantityInput`;var fe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`2`,viewBox:`0 0 12 2`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 1H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),pe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M6 1V11M1 6H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),U=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),me=(e,t,n)=>{if(t<=n*2+5)return U(1,t);let r=Math.max(e-n,1),i=Math.min(e+n,t),a=r>2,o=i<t-1;return!a&&o?[...U(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...U(t-(2+n*2),t)]:[1,`…`,...U(r,i),`…`,t]},W=({active:e,disabled:t,children:n,...r})=>(0,u.jsx)(`button`,{disabled:t,className:(0,m.default)(`pagination-button`,`pagination-button-${e?`active`:`inactive`}`),...r,children:n}),G=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=me(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(W,{disabled:e<=1,onClick:()=>n(e-1),"aria-label":`Previous page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),i.map((t,r)=>t===`…`?(0,u.jsx)(`span`,{className:`pagination-dots`,children:`…`},`dots-${r}`):(0,u.jsx)(W,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(W,{disabled:e>=t,onClick:()=>n(e+1),"aria-label":`Next page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]})};function he({children:e,slidesPerView:t=1,gap:n=16,arrows:r=!0,dots:i=!0,autoPlay:a=!1,autoPlayInterval:o=4e3,loop:s=!1,className:c,...d}){let f=l.Children.toArray(e),p=f.length,h=s?p-1:Math.max(0,p-t),g=p>t,[_,v]=(0,l.useState)(0),[y,b]=(0,l.useState)(!1),x=(0,l.useRef)(null),S=(0,l.useRef)(null),C=(0,l.useRef)(null),w=(0,l.useRef)(null),T=(0,l.useCallback)((e,t=!0)=>{let n=x.current;if(!n)return;let r=n.children[e];r&&(t||(n.style.transition=`none`,n.getBoundingClientRect()),n.style.transform=`translateX(${-r.offsetLeft}px)`,t||(n.getBoundingClientRect(),n.style.transition=``))},[]),E=(0,l.useCallback)(e=>{v(s?(e%p+p)%p:Math.max(0,Math.min(e,h)))},[p,s,h]),D=(0,l.useCallback)(()=>E(_-1),[_,E]),O=(0,l.useCallback)(()=>E(_+1),[_,E]);(0,l.useLayoutEffect)(()=>{T(_)},[_,T]),(0,l.useEffect)(()=>{let e=S.current;if(!e)return;let t=new ResizeObserver(()=>T(_,!1));return t.observe(e),()=>t.disconnect()},[_,T]),(0,l.useEffect)(()=>{if(!(!a||y||!g))return C.current=setInterval(O,o),()=>{C.current&&clearInterval(C.current)}},[a,y,o,O,g]);let k=e=>{w.current=e.touches[0].clientX},A=e=>{if(w.current===null)return;let t=e.changedTouches[0].clientX-w.current;Math.abs(t)>50&&(t<0?O():D()),w.current=null};if(p===0)return null;let j=s||_>0,M=s||_<h;return(0,u.jsxs)(`div`,{className:(0,m.default)(`carousel`,c),onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onTouchStart:k,onTouchEnd:A,...d,children:[(0,u.jsx)(`div`,{ref:S,className:`carousel-viewport`,children:(0,u.jsx)(`div`,{ref:x,className:`carousel-track`,style:{gap:`${n}px`},children:f.map((e,r)=>(0,u.jsx)(`div`,{className:`carousel-slide`,style:{minWidth:`calc((100% - ${n}px * ${t-1}) / ${t})`,maxWidth:`calc((100% - ${n}px * ${t-1}) / ${t})`},"aria-hidden":r<_||r>=_+t,children:e},r))})}),r&&g&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`button`,{onClick:D,disabled:!j,className:`carousel-btn carousel-btn-prev`,"aria-label":`Previous slide`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),(0,u.jsx)(`button`,{onClick:O,disabled:!M,className:`carousel-btn carousel-btn-next`,"aria-label":`Next slide`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]}),i&&g&&(0,u.jsx)(`div`,{className:`carousel-dots`,children:Array.from({length:h+1}).map((e,t)=>(0,u.jsx)(`button`,{onClick:()=>E(t),className:(0,m.default)(`carousel-dot`,t===_&&`carousel-dot-active`),"aria-label":`Go to slide ${t+1}`,"aria-current":t===_?`true`:void 0},t))})]})}function K({trigger:e,items:t,onSelect:n,getKey:r,renderItem:i}){let[a,o]=(0,l.useState)(!1),s=(0,l.useRef)(null),c=()=>o(!1);return(0,u.jsxs)(`div`,{ref:s,className:`relative`,onBlur:e=>{s.current?.contains(e.relatedTarget)||c()},onKeyDown:e=>{e.key===`Escape`&&c()},children:[(0,u.jsx)(`div`,{role:`button`,tabIndex:0,onClick:()=>o(e=>!e),onKeyDown:e=>e.key===`Enter`&&o(e=>!e),className:`cursor-pointer`,children:e}),a&&(0,u.jsx)(`ul`,{role:`menu`,className:`absolute right-0 top-full mt-1 z-50 min-w-28 bg-white rounded-lg shadow-lg border border-gray-100 py-1 text-sm`,children:t.map(e=>(0,u.jsx)(`li`,{role:`none`,children:(0,u.jsx)(`button`,{role:`menuitem`,className:`w-full px-3 py-1.5 text-left hover:bg-gray-50 text-gray-700 whitespace-nowrap`,onClick:()=>{n(e),c()},children:i?i(e):e.label})},r(e)))})]})}function ge(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 15.803a7.5 7.5 0 0010.607 10.607z`})})}function _e({logo:e,searchPlaceholder:t=`Hledat produkty…`,onSearch:n,cartItemCount:r=0,onCartClick:i,isLoggedIn:a=!1,customerName:o,onCustomerClick:s,currencies:c=[],selectedCurrency:d,onCurrencyChange:f,locales:p=[],selectedLocale:m,onLocaleChange:h,rightSlot:g}){let[_,y]=(0,l.useState)(``),b=c.find(e=>e.code===d),x=p.find(e=>e.code===m);return(0,u.jsx)(`header`,{className:`bg-white border-b border-gray-200 sticky top-0 z-40`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 h-16 flex items-center gap-4`,children:[(0,u.jsx)(`div`,{className:`shrink-0`,children:e??(0,u.jsx)(`span`,{className:`text-xl font-bold text-primary-600 tracking-tight`,children:`shopito`})}),(0,u.jsx)(`div`,{className:`flex-1 max-w-xl`,children:(0,u.jsx)(v,{placeholder:t,value:_,onChange:e=>y(e.target.value),onKeyDown:e=>{e.key===`Enter`&&n?.(_)},leftIcon:(0,u.jsx)(ge,{}),rightIcon:_?(0,u.jsx)(`button`,{onClick:()=>{y(``),n?.(``)},className:`hover:text-gray-600 transition-colors`,"aria-label":`Clear search`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})}):void 0})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0 ml-auto`,children:[c.length>0&&(0,u.jsx)(K,{trigger:(0,u.jsxs)(`button`,{className:`flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors font-medium`,children:[(0,u.jsx)(`span`,{children:b?.symbol??d}),(0,u.jsx)(`span`,{className:`text-xs text-gray-400`,children:b?.code??d}),(0,u.jsx)(q,{className:`w-3 h-3 text-gray-400`})]}),items:c,getKey:e=>e.code,onSelect:e=>f?.(e.code),renderItem:e=>(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{className:`w-6 text-center font-medium text-gray-500`,children:e.symbol}),(0,u.jsx)(`span`,{children:e.label})]})}),p.length>0&&(0,u.jsx)(K,{trigger:(0,u.jsxs)(`button`,{className:`flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,children:[x?.flag&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:x.flag}),(0,u.jsx)(`span`,{className:`font-medium uppercase`,children:x?.code??m}),(0,u.jsx)(q,{className:`w-3 h-3 text-gray-400`})]}),items:p,getKey:e=>e.code,onSelect:e=>h?.(e.code),renderItem:e=>(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[e.flag&&(0,u.jsx)(`span`,{className:`text-base`,children:e.flag}),(0,u.jsx)(`span`,{children:e.label})]})}),(c.length>0||p.length>0)&&(0,u.jsx)(`div`,{className:`w-px h-5 bg-gray-200 mx-1`}),(0,u.jsx)(`button`,{onClick:s,className:`flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,"aria-label":a?`My account`:`Sign in`,children:a?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`w-6 h-6 rounded-full bg-primary-600 text-white flex items-center justify-center text-xs font-bold`,children:(o??`U`)[0].toUpperCase()}),o&&(0,u.jsx)(`span`,{className:`hidden sm:block font-medium max-w-32 truncate`,children:o})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ve,{className:`w-5 h-5`}),(0,u.jsx)(`span`,{className:`hidden sm:block font-medium`,children:`Přihlásit se`})]})}),(0,u.jsxs)(`button`,{onClick:i,className:`relative flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,"aria-label":`Cart, ${r} items`,children:[(0,u.jsx)(ye,{className:`w-5 h-5`}),(0,u.jsx)(`span`,{className:`hidden sm:block font-medium`,children:`Košík`}),r>0&&(0,u.jsx)(`span`,{className:`absolute -top-0.5 -right-0.5 min-w-4.5 h-4.5 flex items-center justify-center rounded-full bg-primary-600 text-white text-[10px] font-bold leading-none px-1`,children:r>99?`99+`:r})]}),g]})]})})}function q({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})}function ve({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z`})})}function ye({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z`})})}function J({node:e,activeId:t,onSelect:n,showCounts:r,depth:i,defaultExpandAll:a}){let o=e.children&&e.children.length>0,[s,c]=(0,l.useState)(a||Y(e,t)),d=e.id===t;return(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`div`,{className:[`group flex items-center gap-1.5 rounded-lg px-2 py-1.5 cursor-pointer select-none`,`transition-colors text-sm`,d?`bg-primary-50 text-primary-700 font-medium`:`text-gray-700 hover:bg-gray-50 hover:text-gray-900`,i>0?`ml-${Math.min(i*4,8)}`:``].filter(Boolean).join(` `),style:i>0?{marginLeft:i*16}:void 0,onClick:()=>{n(e),o&&c(e=>!e)},role:`button`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(e),o&&c(e=>!e))},"aria-expanded":o?s:void 0,children:[o?(0,u.jsx)(`span`,{className:`shrink-0 text-gray-400 transition-transform duration-150 ${s?`rotate-90`:``}`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})}):(0,u.jsx)(`span`,{className:`w-3.5 shrink-0`}),e.icon&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:e.icon}),(0,u.jsx)(`span`,{className:`flex-1 truncate`,children:e.label}),r&&e.count!==void 0&&(0,u.jsx)(`span`,{className:`text-xs rounded-full px-1.5 py-0.5 font-medium ${d?`bg-primary-100 text-primary-600`:`bg-gray-100 text-gray-500`}`,children:e.count})]}),o&&s&&(0,u.jsx)(`ul`,{role:`group`,children:e.children.map(e=>(0,u.jsx)(J,{node:e,activeId:t,onSelect:n,showCounts:r,depth:i+1,defaultExpandAll:a},e.id))})]})}function Y(e,t){return!t||!e.children?!1:e.children.some(e=>e.id===t||Y(e,t))}function be({categories:e,activeId:t,onSelect:n,showCounts:r=!0,defaultExpandAll:i=!1,className:a=``,...o}){let s=e=>n?.(e);return(0,u.jsx)(`nav`,{"aria-label":`Category navigation`,className:[`w-full`,a].filter(Boolean).join(` `),...o,children:(0,u.jsx)(`ul`,{role:`tree`,className:`space-y-0.5`,children:e.map(e=>(0,u.jsx)(J,{node:e,activeId:t,onSelect:s,showCounts:r,depth:0,defaultExpandAll:i},e.id))})})}function xe({item:e,onNavigate:t,onClose:n}){return e.columns?.length?(0,u.jsx)(`div`,{className:`absolute left-0 right-0 top-full z-50 bg-white border-b border-gray-200 shadow-lg`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-6 flex gap-8`,children:[(0,u.jsx)(`div`,{className:`flex-1 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6`,children:e.columns.map((e,r)=>(0,u.jsxs)(`div`,{children:[e.heading&&(0,u.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-400 mb-2`,children:e.heading}),(0,u.jsx)(`ul`,{className:`space-y-1`,children:e.items.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsxs)(`button`,{className:`flex items-center gap-1.5 text-sm text-gray-700 hover:text-primary-600 transition-colors py-0.5`,onClick:()=>{t(e),n()},children:[e.label,e.badge&&(0,u.jsx)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded-full bg-danger-50 text-danger-600 leading-none`,children:e.badge})]})},e.id))})]},r))}),e.featured&&(0,u.jsx)(`div`,{className:`w-52 shrink-0`,children:(0,u.jsxs)(`button`,{className:`group block w-full rounded-xl overflow-hidden border border-gray-100 text-left hover:shadow-md transition-shadow`,onClick:()=>{t(e),n()},children:[e.featured.image?(0,u.jsx)(`img`,{src:e.featured.image,alt:e.featured.title,className:`w-full h-28 object-cover`}):(0,u.jsx)(`div`,{className:`w-full h-28 bg-linear-to-br from-primary-100 to-primary-200 flex items-center justify-center text-4xl`,children:e.icon??`🛍️`}),(0,u.jsxs)(`div`,{className:`p-3`,children:[e.featured.eyebrow&&(0,u.jsx)(`p`,{className:`text-[10px] font-semibold uppercase tracking-wider text-primary-500 mb-0.5`,children:e.featured.eyebrow}),(0,u.jsx)(`p`,{className:`text-sm font-semibold text-gray-900 group-hover:text-primary-600 transition-colors`,children:e.featured.title}),e.featured.description&&(0,u.jsx)(`p`,{className:`text-xs text-gray-500 mt-0.5 line-clamp-2`,children:e.featured.description}),e.featured.cta&&(0,u.jsxs)(`span`,{className:`inline-block mt-2 text-xs font-medium text-primary-600`,children:[e.featured.cta,` →`]})]})]})})]})}):null}function Se({items:e,activeId:t,onNavigate:n}){let[r,i]=(0,l.useState)(null),a=(0,l.useRef)(null),o=e=>{a.current&&clearTimeout(a.current),i(e)},s=()=>{a.current=setTimeout(()=>i(null),120)},c=()=>{a.current&&clearTimeout(a.current)},d=e.find(e=>e.id===r);return(0,u.jsxs)(`nav`,{"aria-label":`Main navigation`,className:`relative bg-white border-b border-gray-100`,onMouseLeave:s,children:[(0,u.jsx)(`div`,{className:`max-w-7xl mx-auto px-4`,children:(0,u.jsx)(`ul`,{className:`flex items-center gap-0`,role:`menubar`,children:e.map(e=>{let a=!!e.columns?.length,s=r===e.id,c=t===e.id;return(0,u.jsx)(`li`,{role:`none`,children:(0,u.jsxs)(`button`,{role:`menuitem`,"aria-haspopup":a?`true`:void 0,"aria-expanded":a?s:void 0,className:[`flex items-center gap-1.5 px-4 py-3.5 text-sm font-medium transition-colors relative`,`outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500`,c||s?`text-primary-600`:`text-gray-700 hover:text-gray-900`,s?`after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary-600`:``].filter(Boolean).join(` `),onMouseEnter:()=>a?o(e.id):i(null),onFocus:()=>a&&o(e.id),onClick:()=>{a||(n?.(e),i(null))},children:[e.icon&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:e.icon}),e.label,a&&(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5 transition-transform duration-150 ${s?`rotate-180`:``}`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})]})},e.id)})})}),d?.columns?.length&&(0,u.jsx)(`div`,{onMouseEnter:c,onMouseLeave:s,children:(0,u.jsx)(xe,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function Ce({banners:e,autoPlay:t=!0,autoPlayInterval:n=5e3,arrows:r=!0,dots:i=!0,className:a=``,aspectRatio:o=`3 / 1`}){let[s,c]=(0,l.useState)(0),[d,f]=(0,l.useState)(!1),p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=e.length,g=(0,l.useCallback)(e=>{c((e%h+h)%h)},[h]),_=()=>g(s-1),v=(0,l.useCallback)(()=>g(s+1),[s,g]);(0,l.useEffect)(()=>{if(!(!t||d||h<=1))return p.current=setInterval(v,n),()=>{p.current&&clearInterval(p.current)}},[t,d,n,v,h]);let y=(0,l.useRef)(null),b=e=>{y.current=e.touches[0].clientX},x=e=>{if(y.current===null)return;let t=e.changedTouches[0].clientX-y.current;Math.abs(t)>50&&(t<0?v():_()),y.current=null};if(h===0)return null;let S=e[s],C=S.textColor===`light`||!S.textColor;return(0,u.jsxs)(`div`,{className:[`relative overflow-hidden rounded-xl`,a].filter(Boolean).join(` `),style:{aspectRatio:o},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onTouchStart:b,onTouchEnd:x,children:[(0,u.jsx)(`div`,{ref:m,className:`relative w-full h-full`,children:e.map((e,t)=>(0,u.jsxs)(`div`,{"aria-hidden":t!==s,className:[`absolute inset-0 transition-opacity duration-700`,t===s?`opacity-100 z-10`:`opacity-0 z-0`].join(` `),style:{background:e.backgroundImage?`url(${e.backgroundImage}) center/cover no-repeat`:e.backgroundColor??`linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%)`},children:[e.backgroundImage&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-black/50 via-black/20 to-transparent`}),(0,u.jsxs)(`div`,{className:`relative z-10 h-full flex items-center px-8 md:px-12 gap-8`,children:[(0,u.jsxs)(`div`,{className:`flex-1 max-w-lg`,children:[e.eyebrow&&(0,u.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-widest mb-2 ${C?`text-white/70`:`text-gray-500`}`,children:e.eyebrow}),(0,u.jsx)(`h2`,{className:`text-2xl md:text-3xl lg:text-4xl font-bold leading-tight ${C?`text-white`:`text-gray-900`}`,children:e.title}),e.subtitle&&(0,u.jsx)(`p`,{className:`mt-2 text-sm md:text-base ${C?`text-white/80`:`text-gray-600`}`,children:e.subtitle}),e.ctaLabel&&(0,u.jsxs)(`button`,{onClick:e.onCtaClick,className:[`mt-5 inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-semibold transition-all`,C?`bg-white text-gray-900 hover:bg-gray-100`:`bg-primary-600 text-white hover:bg-primary-700`].join(` `),children:[e.ctaLabel,(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})]})]}),e.sideImage&&(0,u.jsx)(`div`,{className:`hidden md:block flex-1 h-full flex items-end justify-end overflow-hidden`,children:(0,u.jsx)(`img`,{src:e.sideImage,alt:``,className:`h-full w-auto object-contain object-bottom drop-shadow-2xl`})})]})]},e.id))}),r&&h>1&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`button`,{onClick:_,className:`absolute left-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm`,"aria-label":`Previous banner`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),(0,u.jsx)(`button`,{onClick:v,className:`absolute right-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm`,"aria-label":`Next banner`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]}),i&&h>1&&(0,u.jsx)(`div`,{className:`absolute bottom-3 left-1/2 -translate-x-1/2 z-20 flex gap-1.5`,children:e.map((e,t)=>(0,u.jsx)(`button`,{onClick:()=>g(t),"aria-label":`Go to slide ${t+1}`,className:[`rounded-full transition-all duration-300`,t===s?`w-5 h-2 bg-white`:`w-2 h-2 bg-white/50 hover:bg-white/80`].join(` `)},t))}),t&&h>1&&(0,u.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 h-0.5 bg-white/20 z-20`,children:(0,u.jsx)(`div`,{className:`h-full bg-white/60 ${d?``:`animate-progress`}`,style:{animation:d?`none`:`progress ${n}ms linear`}},`${s}-${d}`)})]})}function we({filled:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`w-3.5 h-3.5 ${e?`fill-amber-400 stroke-amber-400`:`fill-gray-200 stroke-gray-300`}`,strokeWidth:1,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z`})})}function X({value:e,count:t}){return(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(`div`,{className:`flex gap-0.5`,children:[1,2,3,4,5].map(t=>(0,u.jsx)(we,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function Te(e){let t=e.toLowerCase();return t===`sale`||t===`akce`?`danger`:t===`new`||t===`nové`?`primary`:t===`hot`?`warning`:`default`}function Z(e,t=`Kč`){return`${e.toLocaleString(`cs-CZ`)} ${t}`}function Ee(e,t){return Math.round((1-t/e)*100)}function Q({product:e,onAddToCart:t,onWishlistToggle:n,isWishlisted:r=!1,onProductClick:i,size:a=`default`,className:o=``}){let[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!1),p=e.originalPrice!==void 0&&e.originalPrice>e.price;return(0,u.jsxs)(`article`,{className:[`group relative flex flex-col bg-white rounded-xl border border-gray-200`,`hover:shadow-md transition-shadow duration-200 overflow-hidden cursor-pointer`,o].filter(Boolean).join(` `),onClick:()=>i?.(e),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,u.jsxs)(`div`,{className:`relative overflow-hidden bg-gray-50 ${a===`compact`?`aspect-square`:`aspect-4/3`}`,children:[e.image?(0,u.jsx)(`img`,{src:s&&e.imageHover?e.imageHover:e.image,alt:e.name,className:`w-full h-full object-contain p-4 transition-transform duration-300 group-hover:scale-105`}):(0,u.jsx)(`div`,{className:`w-full h-full flex items-center justify-center text-5xl bg-linear-to-br from-gray-100 to-gray-200`,children:`🛍️`}),e.badge&&(0,u.jsx)(`div`,{className:`absolute top-2 left-2`,children:(0,u.jsx)(S,{variant:Te(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${Ee(e.originalPrice,e.price)}%`:e.badge})}),e.inStock===!1&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-white/70 flex items-center justify-center`,children:(0,u.jsx)(`span`,{className:`text-sm font-semibold text-gray-500 bg-white/90 px-3 py-1 rounded-full border border-gray-200`,children:`Vyprodáno`})}),(0,u.jsx)(`button`,{onClick:t=>{t.stopPropagation(),n?.(e)},"aria-label":r?`Remove from wishlist`:`Add to wishlist`,className:[`absolute top-2 right-2 w-8 h-8 flex items-center justify-center rounded-full bg-white shadow-sm border border-gray-100`,`transition-all duration-200`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,r?`text-danger-500`:`text-gray-400 hover:text-danger-400`].join(` `),children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 ${r?`fill-current`:`fill-none`}`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z`})})}),(0,u.jsx)(`div`,{className:[`absolute bottom-0 left-0 right-0 p-2 transition-transform duration-200`,s?`translate-y-0`:`translate-y-full`].join(` `),children:(0,u.jsx)(h,{variant:`primary`,size:`sm`,fullWidth:!0,loading:!1,disabled:e.inStock===!1,onClick:n=>{n.stopPropagation(),t?.(e),f(!0),setTimeout(()=>f(!1),1500)},className:`shadow-lg`,children:d?(0,u.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4.5 12.75l6 6 9-13.5`})}),`Přidáno`]}):`Přidat do košíku`})})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1.5 ${a===`compact`?`p-3`:`p-4`}`,children:[e.variants&&e.variants.length>0&&(0,u.jsxs)(`div`,{className:`flex gap-1`,children:[e.variants.slice(0,5).map(e=>(0,u.jsx)(`span`,{title:e.label,className:`w-4 h-4 rounded-full border border-gray-300 shrink-0`,style:{backgroundColor:e.color??`#ccc`}},e.id)),e.variants.length>5&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`+`,e.variants.length-5]})]}),(0,u.jsx)(`h3`,{className:`font-medium text-gray-900 leading-snug line-clamp-2 group-hover:text-primary-600 transition-colors ${a===`compact`?`text-xs`:`text-sm`}`,children:e.name}),e.rating!==void 0&&(0,u.jsx)(X,{value:e.rating,count:e.reviewCount}),(0,u.jsxs)(`div`,{className:`flex items-baseline gap-2 mt-auto pt-1`,children:[(0,u.jsx)(`span`,{className:`font-bold text-gray-900 ${a===`compact`?`text-base`:`text-lg`}`,children:Z(e.price,e.currency)}),p&&(0,u.jsx)(`span`,{className:`text-sm text-gray-400 line-through`,children:Z(e.originalPrice,e.currency)})]})]})]})}var $={2:`grid-cols-2`,3:`grid-cols-2 md:grid-cols-3`,4:`grid-cols-2 sm:grid-cols-3 lg:grid-cols-4`,5:`grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},De=[{value:`newest`,label:`Nejnovější`},{value:`price-asc`,label:`Cena: od nejnižší`},{value:`price-desc`,label:`Cena: od nejvyšší`},{value:`rating`,label:`Hodnocení`},{value:`bestseller`,label:`Bestsellery`}];function Oe(){return(0,u.jsxs)(`div`,{className:`rounded-xl border border-gray-100 overflow-hidden animate-pulse`,children:[(0,u.jsx)(`div`,{className:`aspect-4/3 bg-gray-200`}),(0,u.jsxs)(`div`,{className:`p-4 space-y-2`,children:[(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-3/4`}),(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-1/2`}),(0,u.jsx)(`div`,{className:`h-5 bg-gray-200 rounded w-1/3 mt-2`})]})]})}function ke({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=De,selectedSort:s,onSortChange:c,activeFilters:l=[],onRemoveFilter:d,onClearFilters:f,loading:p=!1,emptyState:m,onAddToCart:h,onWishlistToggle:g,onProductClick:_,wishlisted:v=[],className:b=``}){let x=t?Math.ceil(t/i):void 0,S=a>=5?`compact`:`default`;return(0,u.jsxs)(`div`,{className:[`w-full`,b].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 mb-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[t!==void 0&&(0,u.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[(0,u.jsx)(`span`,{className:`font-semibold text-gray-900`,children:t}),` produktů`]}),l.map(e=>(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs bg-primary-50 text-primary-700 border border-primary-200 rounded-full px-2.5 py-1`,children:[e,(0,u.jsx)(`button`,{onClick:()=>d?.(e),"aria-label":`Remove filter ${e}`,className:`hover:text-primary-900 transition-colors`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3 h-3`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]},e)),l.length>1&&(0,u.jsx)(`button`,{onClick:f,className:`text-xs text-gray-400 hover:text-gray-600 underline underline-offset-2 transition-colors`,children:`Zrušit vše`})]}),(0,u.jsx)(y,{options:o,value:s??``,onChange:e=>c?.(e.target.value),"aria-label":`Sort products`,className:`text-sm`})]}),p?(0,u.jsx)(`div`,{className:`grid gap-4 ${$[a]}`,children:Array.from({length:i>12?12:i}).map((e,t)=>(0,u.jsx)(Oe,{},t))}):e.length===0?(0,u.jsx)(`div`,{className:`py-16 text-center`,children:m??(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`p`,{className:`text-4xl`,children:`🔍`}),(0,u.jsx)(`p`,{className:`font-semibold text-gray-900`,children:`Žádné produkty nenalezeny`}),(0,u.jsx)(`p`,{className:`text-sm text-gray-500`,children:`Zkuste upravit filtry nebo hledat jinak.`}),l.length>0&&(0,u.jsx)(`button`,{onClick:f,className:`mt-3 text-sm text-primary-600 hover:underline`,children:`Zrušit všechny filtry`})]})}):(0,u.jsx)(`div`,{className:`grid gap-4 ${$[a]}`,children:e.map(e=>(0,u.jsx)(Q,{product:e,size:S,onAddToCart:h,onWishlistToggle:g,onProductClick:_,isWishlisted:v.includes(e.id)},e.id))}),x&&x>1&&r&&(0,u.jsx)(`div`,{className:`flex justify-center mt-8`,children:(0,u.jsx)(G,{page:n,totalPages:x,onPageChange:r})})]})}var Ae={default:`bg-gray-50 border border-gray-200`,primary:`bg-primary-600`,dark:`bg-gray-900`,gradient:`bg-linear-to-br from-primary-600 via-primary-700 to-violet-700`,outline:`bg-white border-2 border-primary-600`,image:`relative overflow-hidden`},je={default:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},primary:{eyebrow:`text-primary-100`,title:`text-white`,description:`text-primary-100`},dark:{eyebrow:`text-primary-400`,title:`text-white`,description:`text-gray-400`},gradient:{eyebrow:`text-primary-200`,title:`text-white`,description:`text-primary-100`},outline:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},image:{eyebrow:`text-white/70`,title:`text-white`,description:`text-white/80`}},Me={sm:{wrapper:`px-6 py-6 rounded-xl`,title:`text-xl font-bold`,description:`text-sm`,eyebrow:`text-xs`},md:{wrapper:`px-8 py-10 rounded-2xl`,title:`text-2xl font-bold`,description:`text-base`,eyebrow:`text-xs`},lg:{wrapper:`px-10 py-14 rounded-2xl`,title:`text-3xl font-bold`,description:`text-lg`,eyebrow:`text-sm`},xl:{wrapper:`px-12 py-20 rounded-3xl`,title:`text-4xl font-extrabold leading-tight`,description:`text-xl`,eyebrow:`text-sm`}},Ne={left:{wrapper:`items-start text-left`,actions:`justify-start`},center:{wrapper:`items-center text-center`,actions:`justify-center`},right:{wrapper:`items-end text-right`,actions:`justify-end`}};function Pe({eyebrow:e,title:t,description:n,actions:r=[],align:i=`center`,layout:a=`stacked`,size:o=`md`,variant:s=`default`,background:c,backgroundImage:l,media:d,className:f=``,style:p}){let m=je[s],g=Me[o],_=Ne[i],v=a===`inline`,y={...c?{background:c}:{},...l?{backgroundImage:`url(${l})`,backgroundSize:`cover`,backgroundPosition:`center`}:{},...p};return(0,u.jsxs)(`div`,{className:[`w-full`,Ae[s],g.wrapper,f].filter(Boolean).join(` `),style:Object.keys(y).length?y:void 0,children:[(s===`image`||l)&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-black/50`}),(0,u.jsxs)(`div`,{className:`relative ${v?`flex flex-wrap items-center justify-between gap-6`:`flex flex-col gap-4 ${_.wrapper}`}`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 ${v?`flex-1 min-w-0`:_.wrapper}`,children:[e&&(0,u.jsx)(`p`,{className:`font-semibold uppercase tracking-widest ${g.eyebrow} ${m.eyebrow}`,children:e}),(0,u.jsx)(`h2`,{className:`${g.title} ${m.title}`,children:t}),n&&(0,u.jsx)(`p`,{className:`max-w-2xl ${g.description} ${m.description}`,children:n})]}),d&&!v&&(0,u.jsx)(`div`,{className:`mt-2`,children:d}),r.length>0&&(0,u.jsx)(`div`,{className:`flex flex-wrap gap-3 ${v?`shrink-0`:_.actions}`,children:r.map((e,t)=>{let n=(0,u.jsx)(h,{variant:e.variant??(t===0?Fe(s):`outline`),size:e.size??(o===`sm`?`sm`:o===`xl`?`lg`:`md`),onClick:e.onClick,children:e.label},t);return e.href?(0,u.jsx)(`a`,{href:e.href,className:`contents`,children:n},t):n})})]})]})}function Fe(e){return e===`default`||e===`outline`?`primary`:`secondary`}function Ie(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z`})})}function Le(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75`})})}function Re(){return(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:[(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 10.5a3 3 0 11-6 0 3 3 0 016 0z`}),(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z`})]})}function ze(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z`})})}function Be(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.41c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.236 2.686.236v2.97h-1.513c-1.491 0-1.956.93-1.956 1.886v2.267h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z`})})}function Ve(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z`})})}function He(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`})})}function Ue(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`})})}function We(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.69a8.18 8.18 0 004.78 1.52V6.76a4.85 4.85 0 01-1.01-.07z`})})}var Ge={facebook:Be,instagram:Ve,twitter:He,youtube:Ue,tiktok:We},Ke={phone:Ie,email:Le,address:Re,hours:ze};function qe(e){if(!e)return null;if(typeof e==`string`){let t=Ke[e];return t?(0,u.jsx)(t,{}):null}return e}function Je(e){if(typeof e==`string`){let t=Ge[e];return t?(0,u.jsx)(t,{}):null}return e}function Ye({logo:e,tagline:t,contactHeading:n=`Kontakty`,contacts:r=[],linkGroups:i=[],socialLinks:a=[],copyright:o,bottomLinks:s=[],className:c=``}){let l=new Date().getFullYear();return(0,u.jsx)(`footer`,{className:[`bg-gray-900 text-gray-300`,c].filter(Boolean).join(` `),children:(0,u.jsxs)(f,{children:[(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-12 grid grid-cols-1 md:grid-cols-2 gap-10 lg:gap-16`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(`div`,{className:`mb-3`,children:e}):(0,u.jsx)(`span`,{className:`text-xl font-bold text-white tracking-tight mb-3 block`,children:`shopito`}),t&&(0,u.jsx)(`p`,{className:`text-sm text-gray-400 max-w-xs`,children:t})]}),r.length>0&&(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`h3`,{className:`text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3`,children:n}),(0,u.jsx)(`ul`,{className:`space-y-3`,children:r.map((e,t)=>{let n=qe(e.icon),r=(0,u.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[n&&(0,u.jsx)(`span`,{className:`mt-0.5 text-primary-400`,children:n}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`p`,{className:`text-xs text-gray-500 leading-none mb-0.5`,children:e.label}),(0,u.jsx)(`p`,{className:`text-sm text-gray-200 ${e.href?`hover:text-white transition-colors`:``}`,children:e.value})]})]});return(0,u.jsx)(`li`,{children:e.href?(0,u.jsx)(`a`,{href:e.href,children:r}):r},t)})})]}),a.length>0&&(0,u.jsx)(`div`,{className:`flex gap-2 flex-wrap`,children:a.map((e,t)=>(0,u.jsx)(`a`,{href:e.href,"aria-label":e.label,className:`w-8 h-8 flex items-center justify-center rounded-lg bg-gray-800 text-gray-400 hover:bg-primary-600 hover:text-white transition-colors`,children:Je(e.icon)},t))})]}),i.length>0&&(0,u.jsx)(`div`,{className:`grid gap-8 ${i.length===1?`grid-cols-1`:i.length===2?`grid-cols-2`:`grid-cols-2 sm:grid-cols-3`}`,children:i.map((e,t)=>(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`h3`,{className:`text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3`,children:e.heading}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:e.href?(0,u.jsx)(`a`,{href:e.href,className:`text-sm text-gray-400 hover:text-white transition-colors`,children:e.label}):(0,u.jsx)(`button`,{onClick:e.onClick,className:`text-sm text-gray-400 hover:text-white transition-colors text-left`,children:e.label})},t))})]},t))})]}),(0,u.jsx)(`div`,{className:`border-t border-gray-800`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsx)(`p`,{className:`text-xs text-gray-500`,children:o??`© ${l} Shopito. Všechna práva vyhrazena.`}),s.length>0&&(0,u.jsx)(`nav`,{className:`flex flex-wrap gap-4`,children:s.map((e,t)=>e.href?(0,u.jsx)(`a`,{href:e.href,className:`text-xs text-gray-500 hover:text-gray-300 transition-colors`,children:e.label},t):(0,u.jsx)(`button`,{onClick:e.onClick,className:`text-xs text-gray-500 hover:text-gray-300 transition-colors`,children:e.label},t))})]})})]})})}exports.Alert=A,exports.Avatar=I,exports.Badge=S,exports.BannerCarousel=Ce,exports.Button=h,exports.CallToAction=Pe,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.Carousel=he,exports.CategoryTree=be,exports.Checkbox=N,exports.Col=V,exports.Container=f,exports.Footer=Ye,exports.Grid=B,exports.Header=_e,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=Se,exports.Modal=M,exports.Pagination=G,exports.ProductCard=Q,exports.ProductGrid=ke,exports.QuantityInput=H,exports.Select=y,exports.Spinner=O,exports.Stack=L,exports.Text=x,exports.Toggle=P;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`),u=require(`react/jsx-runtime`),d=require(`react-dom`);var f=({children:e})=>(0,u.jsx)(`div`,{className:`container`,children:e}),p=({children:e})=>(0,u.jsx)(`main`,{className:`main`,children:(0,u.jsx)(f,{children:e})}),m=c(o(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),h=(0,l.forwardRef)(({variant:e=`primary`,size:t=`md`,loading:n=!1,fullWidth:r=!1,disabled:i,children:a,className:o=``,...s},c)=>(0,u.jsxs)(`button`,{ref:c,disabled:i||n,className:(0,m.default)(`btn`,e&&`btn-${e}`,t&&`btn-${t}`,r&&`w-full`,o),...s,children:[n&&(0,u.jsxs)(`svg`,{className:`animate-spin h-4 w-4 shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,u.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,u.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`})]}),a]}));h.displayName=`Button`;var g=({size:e=`md`})=>(0,u.jsxs)(`svg`,{className:(0,m.default)(`loading-spin`,`loading-spin-${e}`),xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,children:[(0,u.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,u.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z`})]}),_=(0,l.forwardRef)(({icon:e,label:t,variant:n=`ghost`,size:r=`md`,loading:i=!1,disabled:a,className:o=``,...s},c)=>(0,u.jsx)(`button`,{ref:c,disabled:a||i,"aria-label":t,title:t,className:(0,m.default)(`icon-button`,`icon-button-${n}`,`icon-button-${r}`,o),...s,children:i?(0,u.jsx)(g,{size:r}):e}));_.displayName=`IconButton`;var v=(0,l.forwardRef)(({label:e,error:t,hint:n,leftIcon:r,rightIcon:i,className:a=``,id:o,...s},c)=>{let l=o??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:`w-full`,children:[e&&(0,u.jsx)(`label`,{htmlFor:l,className:`input-label`,children:e}),(0,u.jsxs)(`div`,{className:`relative`,children:[r&&(0,u.jsx)(`span`,{className:`left-icon`,children:r}),(0,u.jsx)(`input`,{ref:c,id:l,className:(0,m.default)(`input`,t&&`has-error`,!!r&&`with-left-icon`,!!i&&`with-right-icon`,`w-full`,a),...s}),i&&(0,u.jsx)(`span`,{className:`right-icon`,children:i})]}),(t||n)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,t&&`has-error`),children:t??n})]})});v.displayName=`Input`;var y=(0,l.forwardRef)(({label:e,error:t,hint:n,options:r,placeholder:i,className:a=``,id:o,...s},c)=>{let l=o??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:(0,m.default)(`select-wrapper`,`w-full`),children:[e&&(0,u.jsx)(`label`,{htmlFor:l,className:`select-label`,children:e}),(0,u.jsxs)(`div`,{className:`relative`,children:[(0,u.jsxs)(`select`,{ref:c,id:l,className:(0,m.default)(`select`,`w-full`,t&&`has-error`,a),...s,children:[i&&(0,u.jsx)(`option`,{value:``,disabled:!0,children:i}),r.map(e=>(0,u.jsx)(`option`,{value:e.value,disabled:e.disabled,children:e.label},e.value))]}),(0,u.jsx)(`span`,{className:`select-chevron-icon`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})})]}),(t||n)&&(0,u.jsx)(`p`,{className:(0,m.default)(`select-helper`,t&&`has-error`),children:t??n})]})});y.displayName=`Select`;var b=({as:e,level:t=1,color:n=`default`,className:r=``,children:i,...a})=>(0,u.jsx)(e??`h${t}`,{className:(0,m.default)(`text-color-${n}`,`heading-size-${t}`,r),...a,children:i}),x=({variant:e=`body`,color:t=`default`,as:n=`p`,className:r=``,children:i,...a})=>(0,u.jsx)(n,{className:(0,m.default)(`text-color-${t}`,`text-variant-${e}`,r),...a,children:i});function S({variant:e=`default`,size:t=`md`,dot:n=!1,className:r,children:i,...a}){return(0,u.jsxs)(`span`,{className:(0,m.default)(`badge`,`badge-${e}`,`badge-${t}`,r),...a,children:[n&&(0,u.jsx)(`span`,{className:(0,m.default)(`badge-dot`,`badge-dot-${e}`)}),i]})}var C={none:``,sm:`p-4`,md:`p-6`,lg:`p-8`};function w({children:e,padding:t=`md`,shadow:n=!0,border:r=!0,className:i=``,...a}){return(0,u.jsx)(`div`,{className:[`bg-white rounded-xl overflow-hidden`,r?`border border-gray-200`:``,n?`shadow-sm`:``,C[t],i].filter(Boolean).join(` `),...a,children:e})}function T({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`px-6 py-4 border-b border-gray-100`,t].filter(Boolean).join(` `),...n,children:e})}function E({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`p-6`,t].filter(Boolean).join(` `),...n,children:e})}function D({children:e,className:t=``,...n}){return(0,u.jsx)(`div`,{className:[`px-6 py-4 border-t border-gray-100 bg-gray-50`,t].filter(Boolean).join(` `),...n,children:e})}function O({size:e=`md`,color:t=`primary`,label:n=`Loading…`,className:r=``,...i}){return(0,u.jsxs)(`span`,{role:`status`,"aria-label":n,className:(0,m.default)(`spinner-wrapper`,r),...i,children:[(0,u.jsx)(`span`,{className:(0,m.default)(`spinner`,`spinner-${e}`,`spinner-${t}`)}),(0,u.jsx)(`span`,{className:`sr-only`,children:n})]})}var k={info:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z`}),success:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z`}),warning:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z`}),danger:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z`})};function A({variant:e=`info`,title:t,children:n,onClose:r,className:i=``,...a}){return(0,u.jsxs)(`div`,{role:`alert`,className:(0,m.default)(`alert`,`alert-${e}`,`w-full`,i),...a,children:[(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:(0,m.default)(`alert-icon`,`alert-icon-${e}`),children:k[e]}),(0,u.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[t&&(0,u.jsx)(`p`,{className:`alert-title`,children:t}),(0,u.jsx)(`div`,{className:`alert-text`,children:n})]}),r&&(0,u.jsx)(`button`,{onClick:r,className:`alert-close-btn`,"aria-label":`Close`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]})}var j={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,full:`max-w-full mx-4`};function M({open:e,onClose:t,title:n,children:r,footer:i,size:a=`md`,closeOnBackdrop:o=!0}){let s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=t}},[e]),(0,l.useEffect)(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t()};return document.addEventListener(`keydown`,n),()=>document.removeEventListener(`keydown`,n)},[e,t]),e?(0,d.createPortal)((0,u.jsx)(`div`,{ref:s,className:`fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm`,onClick:e=>{o&&e.target===s.current&&t()},children:(0,u.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-labelledby":n?`modal-title`:void 0,className:[`relative w-full bg-white rounded-xl shadow-xl flex flex-col max-h-[90vh]`,j[a]].join(` `),children:[n&&(0,u.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4 border-b border-gray-100 shrink-0`,children:[(0,u.jsx)(`h2`,{id:`modal-title`,className:`text-lg font-semibold text-gray-900`,children:n}),(0,u.jsx)(`button`,{onClick:t,className:`text-gray-400 hover:text-gray-600 transition-colors`,"aria-label":`Close modal`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]}),(0,u.jsx)(`div`,{className:`flex-1 overflow-y-auto px-6 py-4`,children:r}),i&&(0,u.jsx)(`div`,{className:`px-6 py-4 border-t border-gray-100 shrink-0 bg-gray-50 rounded-b-xl`,children:i})]})}),document.body):null}var N=(0,l.forwardRef)(({label:e,description:t,error:n,indeterminate:r,className:i=``,id:a,...o},s)=>{let c=a??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:(0,m.default)(`checkbox-wrapper`,i),children:[(0,u.jsx)(`div`,{className:`checkbox-wrapper-inner`,children:(0,u.jsx)(`input`,{ref:e=>{e&&(e.indeterminate=r??!1),typeof s==`function`?s(e):s&&(s.current=e)},id:c,type:`checkbox`,className:(0,m.default)(`checkbox`,n&&`has-error`),...o})}),(e||t)&&(0,u.jsxs)(`div`,{children:[e&&(0,u.jsx)(`label`,{htmlFor:c,className:`checkbox-label`,children:e}),t&&(0,u.jsx)(`p`,{className:`checkbox-description`,children:t}),n&&(0,u.jsx)(`p`,{className:`checkbox-error`,children:n})]})]})});N.displayName=`Checkbox`;var P=(0,l.forwardRef)(({label:e,description:t,size:n=`md`,className:r=``,id:i,...a},o)=>{let s=i??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`label`,{htmlFor:s,className:(0,m.default)(`toggle`,a.disabled&&`toggle-disabled`,r),children:[(0,u.jsxs)(`div`,{className:(0,m.default)(`toggle-wrapper`,`toggle-wrapper-${n}`),children:[(0,u.jsx)(`input`,{ref:o,id:s,type:`checkbox`,role:`switch`,className:`sr-only peer`,...a}),(0,u.jsx)(`div`,{className:`toggle-track`}),(0,u.jsx)(`div`,{className:(0,m.default)(`toggle-thumb`,`toggle-thumb-${n}`)})]}),(e||t)&&(0,u.jsxs)(`div`,{children:[e&&(0,u.jsx)(`span`,{className:`toggle-label`,children:e}),t&&(0,u.jsx)(`span`,{className:`toggle-description`,children:t})]})]})});P.displayName=`Toggle`;var F=[`bg-red-500`,`bg-orange-500`,`bg-amber-500`,`bg-emerald-500`,`bg-teal-500`,`bg-cyan-500`,`bg-blue-500`,`bg-violet-500`,`bg-pink-500`];function ee({src:e,alt:t,name:n,size:r=`md`,className:i,...a}){let o=[`avatar`,`avatar-${r}`,i],s=e=>{let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);return F[t%F.length]},c=e=>e.split(` `).slice(0,2).map(e=>e[0]).join(``).toUpperCase();return e?(0,u.jsx)(`span`,{className:(0,m.default)(o),...a,children:(0,u.jsx)(`img`,{src:e,alt:t??n??``,className:`w-full h-full object-cover`})}):n?(0,u.jsx)(`span`,{className:(0,m.default)(o,s(n)),"aria-label":n,...a,children:c(n)}):(0,u.jsx)(`span`,{className:(0,m.default)(o,`avatar-fallback`),...a,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,className:`w-3/5 h-3/5`,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M7.5 6a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM3.751 20.105a8.25 8.25 0 0116.498 0 .75.75 0 01-.437.695A18.683 18.683 0 0112 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 01-.437-.695z`,clipRule:`evenodd`})})})}var I=({direction:e=`row`,gap:t,alignItems:n=`start`,justifyItems:r=`start`,justifyContent:i=`normal`,className:a,children:o})=>(0,u.jsx)(`div`,{className:(0,m.default)(`stack`,`stack-${e}`,t&&`gap-${t}`,{start:`items-start`,end:`items-end`,center:`items-center`,baseline:`items-baseline`,stretch:`items-stretch`}[n],{start:`justify-items-start`,end:`justify-items-end`,center:`justify-items-center`,stretch:`justify-items-stretch`}[r],{normal:`justify-normal`,start:`justify-start`,end:`justify-end`,center:`justify-center`,between:`justify-between`,around:`justify-around`,evenly:`justify-evenly`,stretch:`justify-stretch`}[i],a),children:o}),L={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},R={0:`gap-0`,1:`gap-1`,2:`gap-2`,3:`gap-3`,4:`gap-4`,5:`gap-5`,6:`gap-6`,8:`gap-8`,10:`gap-10`,12:`gap-12`,16:`gap-16`},te={0:`gap-y-0`,1:`gap-y-1`,2:`gap-y-2`,3:`gap-y-3`,4:`gap-y-4`,5:`gap-y-5`,6:`gap-y-6`,8:`gap-y-8`,10:`gap-y-10`,12:`gap-y-12`,16:`gap-y-16`},ne={0:`gap-x-0`,1:`gap-x-1`,2:`gap-x-2`,3:`gap-x-3`,4:`gap-x-4`,5:`gap-x-5`,6:`gap-x-6`,8:`gap-x-8`,10:`gap-x-10`,12:`gap-x-12`,16:`gap-x-16`},re={1:`col-span-1`,2:`col-span-2`,3:`col-span-3`,4:`col-span-4`,5:`col-span-5`,6:`col-span-6`,7:`col-span-7`,8:`col-span-8`,9:`col-span-9`,10:`col-span-10`,11:`col-span-11`,12:`col-span-12`},ie={1:`sm:col-span-1`,2:`sm:col-span-2`,3:`sm:col-span-3`,4:`sm:col-span-4`,5:`sm:col-span-5`,6:`sm:col-span-6`,7:`sm:col-span-7`,8:`sm:col-span-8`,9:`sm:col-span-9`,10:`sm:col-span-10`,11:`sm:col-span-11`,12:`sm:col-span-12`},ae={1:`md:col-span-1`,2:`md:col-span-2`,3:`md:col-span-3`,4:`md:col-span-4`,5:`md:col-span-5`,6:`md:col-span-6`,7:`md:col-span-7`,8:`md:col-span-8`,9:`md:col-span-9`,10:`md:col-span-10`,11:`md:col-span-11`,12:`md:col-span-12`},oe={1:`lg:col-span-1`,2:`lg:col-span-2`,3:`lg:col-span-3`,4:`lg:col-span-4`,5:`lg:col-span-5`,6:`lg:col-span-6`,7:`lg:col-span-7`,8:`lg:col-span-8`,9:`lg:col-span-9`,10:`lg:col-span-10`,11:`lg:col-span-11`,12:`lg:col-span-12`},se={1:`xl:col-span-1`,2:`xl:col-span-2`,3:`xl:col-span-3`,4:`xl:col-span-4`,5:`xl:col-span-5`,6:`xl:col-span-6`,7:`xl:col-span-7`,8:`xl:col-span-8`,9:`xl:col-span-9`,10:`xl:col-span-10`,11:`xl:col-span-11`,12:`xl:col-span-12`},ce={1:`col-start-2`,2:`col-start-3`,3:`col-start-4`,4:`col-start-5`,5:`col-start-6`,6:`col-start-7`,7:`col-start-8`,8:`col-start-9`,9:`col-start-10`,10:`col-start-11`,11:`col-start-12`},le={1:`sm:col-start-2`,2:`sm:col-start-3`,3:`sm:col-start-4`,4:`sm:col-start-5`,5:`sm:col-start-6`,6:`sm:col-start-7`,7:`sm:col-start-8`,8:`sm:col-start-9`,9:`sm:col-start-10`,10:`sm:col-start-11`,11:`sm:col-start-12`},ue={1:`md:col-start-2`,2:`md:col-start-3`,3:`md:col-start-4`,4:`md:col-start-5`,5:`md:col-start-6`,6:`md:col-start-7`,7:`md:col-start-8`,8:`md:col-start-9`,9:`md:col-start-10`,10:`md:col-start-11`,11:`md:col-start-12`},de={1:`lg:col-start-2`,2:`lg:col-start-3`,3:`lg:col-start-4`,4:`lg:col-start-5`,5:`lg:col-start-6`,6:`lg:col-start-7`,7:`lg:col-start-8`,8:`lg:col-start-9`,9:`lg:col-start-10`,10:`lg:col-start-11`,11:`lg:col-start-12`},z={1:`xl:col-start-2`,2:`xl:col-start-3`,3:`xl:col-start-4`,4:`xl:col-start-5`,5:`xl:col-start-6`,6:`xl:col-start-7`,7:`xl:col-start-8`,8:`xl:col-start-9`,9:`xl:col-start-10`,10:`xl:col-start-11`,11:`xl:col-start-12`},B=({children:e,cols:t=12,gap:n,rowGap:r,colGap:i,as:a=`div`,className:o})=>(0,u.jsx)(a,{className:(0,m.default)(`grid`,`w-full`,L[t],n!==void 0&&R[n],r!==void 0&&te[r],i!==void 0&&ne[i],o),children:e});B.displayName=`Grid`;var V=({children:e,span:t,sm:n,md:r,lg:i,xl:a,offset:o,smOffset:s,mdOffset:c,lgOffset:l,xlOffset:d,className:f,...p})=>(0,u.jsx)(`div`,{className:(0,m.default)(t&&re[t],n&&ie[n],r&&ae[r],i&&oe[i],a&&se[a],o&&ce[o],s&&le[s],c&&ue[c],l&&de[l],d&&z[d],f),...p,children:e});V.displayName=`Col`;var H=({value:e,onChange:t,min:n=1,max:r=999,step:i=1,disabled:a=!1,label:o,error:s,hint:c,id:d,className:f})=>{let p=(0,l.useId)(),h=d??p,g=(0,l.useRef)(null),[_,v]=(0,l.useState)(String(e));(0,l.useEffect)(()=>{document.activeElement!==g.current&&v(String(e))},[e]);let y=e=>Math.min(r,Math.max(n,e)),b=n=>{let r=parseInt(n,10),i=isNaN(r)?e:y(r);v(String(i)),i!==e&&t(i)},x=e=>{let n=e.target.value.replace(/[^0-9]/g,``);v(n);let r=parseInt(n,10);isNaN(r)||t(y(r))},S=()=>b(_),C=e=>{if(e.key===`Enter`){b(_),g.current?.blur();return}![`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&!/^[0-9]$/.test(e.key)&&!e.metaKey&&!e.ctrlKey&&e.preventDefault()},w=()=>t(y(e-i)),T=()=>t(y(e+i)),E=e-i>=n,D=e+i<=r;return(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input-wrapper`,f),children:[o&&(0,u.jsx)(`label`,{htmlFor:h,className:`input-label`,children:o}),(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input`,s&&`has-error`,a&&`is-disabled`),children:[(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:w,disabled:a||!E,"aria-label":`Snížit množství`,tabIndex:-1,children:(0,u.jsx)(fe,{})}),(0,u.jsx)(`input`,{ref:g,id:h,type:`text`,inputMode:`numeric`,className:`quantity-field`,value:_,onChange:x,onBlur:S,onKeyDown:C,disabled:a,"aria-label":o??`Množství`,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":e}),(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:T,disabled:a||!D,"aria-label":`Zvýšit množství`,tabIndex:-1,children:(0,u.jsx)(pe,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};H.displayName=`QuantityInput`;var fe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`2`,viewBox:`0 0 12 2`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 1H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),pe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M6 1V11M1 6H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),U=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),me=(e,t,n)=>{if(t<=n*2+5)return U(1,t);let r=Math.max(e-n,1),i=Math.min(e+n,t),a=r>2,o=i<t-1;return!a&&o?[...U(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...U(t-(2+n*2),t)]:[1,`…`,...U(r,i),`…`,t]},W=({active:e,disabled:t,children:n,...r})=>(0,u.jsx)(`button`,{disabled:t,className:(0,m.default)(`pagination-button`,`pagination-button-${e?`active`:`inactive`}`),...r,children:n}),G=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=me(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(W,{disabled:e<=1,onClick:()=>n(e-1),"aria-label":`Previous page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),i.map((t,r)=>t===`…`?(0,u.jsx)(`span`,{className:`pagination-dots`,children:`…`},`dots-${r}`):(0,u.jsx)(W,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(W,{disabled:e>=t,onClick:()=>n(e+1),"aria-label":`Next page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]})};function he({src:e,alt:t,children:n,className:r,style:i}){return(0,u.jsx)(`div`,{role:t?`img`:void 0,"aria-label":t,className:(0,m.default)(`carousel-cover`,r),style:{backgroundImage:`url(${e})`,...i},children:n})}function ge({children:e,slidesPerView:t=1,gap:n=16,height:r,arrows:i=!0,dots:a=!0,autoPlay:o=!1,autoPlayInterval:s=4e3,loop:c=!1,className:d,...f}){let p=l.Children.toArray(e),h=p.length,g=c?h-1:Math.max(0,h-t),_=h>t,[v,y]=(0,l.useState)(0),[b,x]=(0,l.useState)(!1),S=(0,l.useRef)(null),C=(0,l.useRef)(null),w=(0,l.useRef)(null),T=(0,l.useRef)(null),E=(0,l.useCallback)((e,t=!0)=>{let n=S.current;if(!n)return;let r=n.children[e];r&&(t||(n.style.transition=`none`,n.getBoundingClientRect()),n.style.transform=`translateX(${-r.offsetLeft}px)`,t||(n.getBoundingClientRect(),n.style.transition=``))},[]),D=(0,l.useCallback)(e=>{y(c?(e%h+h)%h:Math.max(0,Math.min(e,g)))},[h,c,g]),O=(0,l.useCallback)(()=>D(v-1),[v,D]),k=(0,l.useCallback)(()=>D(v+1),[v,D]);(0,l.useLayoutEffect)(()=>{E(v)},[v,E]),(0,l.useEffect)(()=>{let e=C.current;if(!e)return;let t=new ResizeObserver(()=>E(v,!1));return t.observe(e),()=>t.disconnect()},[v,E]),(0,l.useEffect)(()=>{if(!(!o||b||!_))return w.current=setInterval(k,s),()=>{w.current&&clearInterval(w.current)}},[o,b,s,k,_]);let A=e=>{T.current=e.touches[0].clientX},j=e=>{if(T.current===null)return;let t=e.changedTouches[0].clientX-T.current;Math.abs(t)>50&&(t<0?k():O()),T.current=null};if(h===0)return null;let M=c||v>0,N=c||v<g,P=`calc((100% - ${n}px * ${t-1}) / ${t})`;return(0,u.jsxs)(`div`,{className:(0,m.default)(`carousel`,d),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),onTouchStart:A,onTouchEnd:j,...f,children:[(0,u.jsx)(`div`,{ref:C,className:`carousel-viewport`,style:r?{height:r}:void 0,children:(0,u.jsx)(`div`,{ref:S,className:`carousel-track`,style:{gap:`${n}px`},children:p.map((e,n)=>(0,u.jsx)(`div`,{className:`carousel-slide`,style:{minWidth:P,maxWidth:P,...r&&{height:r}},"aria-hidden":n<v||n>=v+t,children:e},n))})}),i&&_&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`button`,{onClick:O,disabled:!M,className:`carousel-btn carousel-btn-prev`,"aria-label":`Previous slide`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),(0,u.jsx)(`button`,{onClick:k,disabled:!N,className:`carousel-btn carousel-btn-next`,"aria-label":`Next slide`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]}),a&&_&&(0,u.jsx)(`div`,{className:`carousel-dots`,children:Array.from({length:g+1}).map((e,t)=>(0,u.jsx)(`button`,{onClick:()=>D(t),className:(0,m.default)(`carousel-dot`,t===v&&`carousel-dot-active`),"aria-label":`Go to slide ${t+1}`,"aria-current":t===v?`true`:void 0},t))})]})}function K({trigger:e,items:t,onSelect:n,getKey:r,renderItem:i}){let[a,o]=(0,l.useState)(!1),s=(0,l.useRef)(null),c=()=>o(!1);return(0,u.jsxs)(`div`,{ref:s,className:`relative`,onBlur:e=>{s.current?.contains(e.relatedTarget)||c()},onKeyDown:e=>{e.key===`Escape`&&c()},children:[(0,u.jsx)(`div`,{role:`button`,tabIndex:0,onClick:()=>o(e=>!e),onKeyDown:e=>e.key===`Enter`&&o(e=>!e),className:`cursor-pointer`,children:e}),a&&(0,u.jsx)(`ul`,{role:`menu`,className:`absolute right-0 top-full mt-1 z-50 min-w-28 bg-white rounded-lg shadow-lg border border-gray-100 py-1 text-sm`,children:t.map(e=>(0,u.jsx)(`li`,{role:`none`,children:(0,u.jsx)(`button`,{role:`menuitem`,className:`w-full px-3 py-1.5 text-left hover:bg-gray-50 text-gray-700 whitespace-nowrap`,onClick:()=>{n(e),c()},children:i?i(e):e.label})},r(e)))})]})}function _e(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 15.803a7.5 7.5 0 0010.607 10.607z`})})}function ve({logo:e,searchPlaceholder:t=`Hledat produkty…`,onSearch:n,cartItemCount:r=0,onCartClick:i,isLoggedIn:a=!1,customerName:o,onCustomerClick:s,currencies:c=[],selectedCurrency:d,onCurrencyChange:f,locales:p=[],selectedLocale:m,onLocaleChange:h,rightSlot:g}){let[_,y]=(0,l.useState)(``),b=c.find(e=>e.code===d),x=p.find(e=>e.code===m);return(0,u.jsx)(`header`,{className:`bg-white border-b border-gray-200 sticky top-0 z-40`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 h-16 flex items-center gap-4`,children:[(0,u.jsx)(`div`,{className:`shrink-0`,children:e??(0,u.jsx)(`span`,{className:`text-xl font-bold text-primary-600 tracking-tight`,children:`shopito`})}),(0,u.jsx)(`div`,{className:`flex-1 max-w-xl`,children:(0,u.jsx)(v,{placeholder:t,value:_,onChange:e=>y(e.target.value),onKeyDown:e=>{e.key===`Enter`&&n?.(_)},leftIcon:(0,u.jsx)(_e,{}),rightIcon:_?(0,u.jsx)(`button`,{onClick:()=>{y(``),n?.(``)},className:`hover:text-gray-600 transition-colors`,"aria-label":`Clear search`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})}):void 0})}),(0,u.jsxs)(`div`,{className:`flex items-center gap-1 shrink-0 ml-auto`,children:[c.length>0&&(0,u.jsx)(K,{trigger:(0,u.jsxs)(`button`,{className:`flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors font-medium`,children:[(0,u.jsx)(`span`,{children:b?.symbol??d}),(0,u.jsx)(`span`,{className:`text-xs text-gray-400`,children:b?.code??d}),(0,u.jsx)(q,{className:`w-3 h-3 text-gray-400`})]}),items:c,getKey:e=>e.code,onSelect:e=>f?.(e.code),renderItem:e=>(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(`span`,{className:`w-6 text-center font-medium text-gray-500`,children:e.symbol}),(0,u.jsx)(`span`,{children:e.label})]})}),p.length>0&&(0,u.jsx)(K,{trigger:(0,u.jsxs)(`button`,{className:`flex items-center gap-1 px-2 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,children:[x?.flag&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:x.flag}),(0,u.jsx)(`span`,{className:`font-medium uppercase`,children:x?.code??m}),(0,u.jsx)(q,{className:`w-3 h-3 text-gray-400`})]}),items:p,getKey:e=>e.code,onSelect:e=>h?.(e.code),renderItem:e=>(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[e.flag&&(0,u.jsx)(`span`,{className:`text-base`,children:e.flag}),(0,u.jsx)(`span`,{children:e.label})]})}),(c.length>0||p.length>0)&&(0,u.jsx)(`div`,{className:`w-px h-5 bg-gray-200 mx-1`}),(0,u.jsx)(`button`,{onClick:s,className:`flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,"aria-label":a?`My account`:`Sign in`,children:a?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`w-6 h-6 rounded-full bg-primary-600 text-white flex items-center justify-center text-xs font-bold`,children:(o??`U`)[0].toUpperCase()}),o&&(0,u.jsx)(`span`,{className:`hidden sm:block font-medium max-w-32 truncate`,children:o})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ye,{className:`w-5 h-5`}),(0,u.jsx)(`span`,{className:`hidden sm:block font-medium`,children:`Přihlásit se`})]})}),(0,u.jsxs)(`button`,{onClick:i,className:`relative flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-sm text-gray-600 hover:bg-gray-50 transition-colors`,"aria-label":`Cart, ${r} items`,children:[(0,u.jsx)(be,{className:`w-5 h-5`}),(0,u.jsx)(`span`,{className:`hidden sm:block font-medium`,children:`Košík`}),r>0&&(0,u.jsx)(`span`,{className:`absolute -top-0.5 -right-0.5 min-w-4.5 h-4.5 flex items-center justify-center rounded-full bg-primary-600 text-white text-[10px] font-bold leading-none px-1`,children:r>99?`99+`:r})]}),g]})]})})}function q({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})}function ye({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z`})})}function be({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z`})})}function J({node:e,activeId:t,onSelect:n,showCounts:r,depth:i,defaultExpandAll:a}){let o=e.children&&e.children.length>0,[s,c]=(0,l.useState)(a||Y(e,t)),d=e.id===t;return(0,u.jsxs)(`li`,{children:[(0,u.jsxs)(`div`,{className:[`group flex items-center gap-1.5 rounded-lg px-2 py-1.5 cursor-pointer select-none`,`transition-colors text-sm`,d?`bg-primary-50 text-primary-700 font-medium`:`text-gray-700 hover:bg-gray-50 hover:text-gray-900`,i>0?`ml-${Math.min(i*4,8)}`:``].filter(Boolean).join(` `),style:i>0?{marginLeft:i*16}:void 0,onClick:()=>{n(e),o&&c(e=>!e)},role:`button`,tabIndex:0,onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(e),o&&c(e=>!e))},"aria-expanded":o?s:void 0,children:[o?(0,u.jsx)(`span`,{className:`shrink-0 text-gray-400 transition-transform duration-150 ${s?`rotate-90`:``}`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})}):(0,u.jsx)(`span`,{className:`w-3.5 shrink-0`}),e.icon&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:e.icon}),(0,u.jsx)(`span`,{className:`flex-1 truncate`,children:e.label}),r&&e.count!==void 0&&(0,u.jsx)(`span`,{className:`text-xs rounded-full px-1.5 py-0.5 font-medium ${d?`bg-primary-100 text-primary-600`:`bg-gray-100 text-gray-500`}`,children:e.count})]}),o&&s&&(0,u.jsx)(`ul`,{role:`group`,children:e.children.map(e=>(0,u.jsx)(J,{node:e,activeId:t,onSelect:n,showCounts:r,depth:i+1,defaultExpandAll:a},e.id))})]})}function Y(e,t){return!t||!e.children?!1:e.children.some(e=>e.id===t||Y(e,t))}function X({categories:e,activeId:t,onSelect:n,showCounts:r=!0,defaultExpandAll:i=!1,className:a=``,...o}){let s=e=>n?.(e);return(0,u.jsx)(`nav`,{"aria-label":`Category navigation`,className:[`w-full`,a].filter(Boolean).join(` `),...o,children:(0,u.jsx)(`ul`,{role:`tree`,className:`space-y-0.5`,children:e.map(e=>(0,u.jsx)(J,{node:e,activeId:t,onSelect:s,showCounts:r,depth:0,defaultExpandAll:i},e.id))})})}function xe({item:e,onNavigate:t,onClose:n}){return e.columns?.length?(0,u.jsx)(`div`,{className:`absolute left-0 right-0 top-full z-50 bg-white border-b border-gray-200 shadow-lg`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-6 flex gap-8`,children:[(0,u.jsx)(`div`,{className:`flex-1 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6`,children:e.columns.map((e,r)=>(0,u.jsxs)(`div`,{children:[e.heading&&(0,u.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-wider text-gray-400 mb-2`,children:e.heading}),(0,u.jsx)(`ul`,{className:`space-y-1`,children:e.items.map(e=>(0,u.jsx)(`li`,{children:(0,u.jsxs)(`button`,{className:`flex items-center gap-1.5 text-sm text-gray-700 hover:text-primary-600 transition-colors py-0.5`,onClick:()=>{t(e),n()},children:[e.label,e.badge&&(0,u.jsx)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded-full bg-danger-50 text-danger-600 leading-none`,children:e.badge})]})},e.id))})]},r))}),e.featured&&(0,u.jsx)(`div`,{className:`w-52 shrink-0`,children:(0,u.jsxs)(`button`,{className:`group block w-full rounded-xl overflow-hidden border border-gray-100 text-left hover:shadow-md transition-shadow`,onClick:()=>{t(e),n()},children:[e.featured.image?(0,u.jsx)(`img`,{src:e.featured.image,alt:e.featured.title,className:`w-full h-28 object-cover`}):(0,u.jsx)(`div`,{className:`w-full h-28 bg-linear-to-br from-primary-100 to-primary-200 flex items-center justify-center text-4xl`,children:e.icon??`🛍️`}),(0,u.jsxs)(`div`,{className:`p-3`,children:[e.featured.eyebrow&&(0,u.jsx)(`p`,{className:`text-[10px] font-semibold uppercase tracking-wider text-primary-500 mb-0.5`,children:e.featured.eyebrow}),(0,u.jsx)(`p`,{className:`text-sm font-semibold text-gray-900 group-hover:text-primary-600 transition-colors`,children:e.featured.title}),e.featured.description&&(0,u.jsx)(`p`,{className:`text-xs text-gray-500 mt-0.5 line-clamp-2`,children:e.featured.description}),e.featured.cta&&(0,u.jsxs)(`span`,{className:`inline-block mt-2 text-xs font-medium text-primary-600`,children:[e.featured.cta,` →`]})]})]})})]})}):null}function Se({items:e,activeId:t,onNavigate:n}){let[r,i]=(0,l.useState)(null),a=(0,l.useRef)(null),o=e=>{a.current&&clearTimeout(a.current),i(e)},s=()=>{a.current=setTimeout(()=>i(null),120)},c=()=>{a.current&&clearTimeout(a.current)},d=e.find(e=>e.id===r);return(0,u.jsxs)(`nav`,{"aria-label":`Main navigation`,className:`relative bg-white border-b border-gray-100`,onMouseLeave:s,children:[(0,u.jsx)(`div`,{className:`max-w-7xl mx-auto px-4`,children:(0,u.jsx)(`ul`,{className:`flex items-center gap-0`,role:`menubar`,children:e.map(e=>{let a=!!e.columns?.length,s=r===e.id,c=t===e.id;return(0,u.jsx)(`li`,{role:`none`,children:(0,u.jsxs)(`button`,{role:`menuitem`,"aria-haspopup":a?`true`:void 0,"aria-expanded":a?s:void 0,className:[`flex items-center gap-1.5 px-4 py-3.5 text-sm font-medium transition-colors relative`,`outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary-500`,c||s?`text-primary-600`:`text-gray-700 hover:text-gray-900`,s?`after:absolute after:bottom-0 after:left-0 after:right-0 after:h-0.5 after:bg-primary-600`:``].filter(Boolean).join(` `),onMouseEnter:()=>a?o(e.id):i(null),onFocus:()=>a&&o(e.id),onClick:()=>{a||(n?.(e),i(null))},children:[e.icon&&(0,u.jsx)(`span`,{className:`text-base leading-none`,children:e.icon}),e.label,a&&(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3.5 h-3.5 transition-transform duration-150 ${s?`rotate-180`:``}`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})})]})},e.id)})})}),d?.columns?.length&&(0,u.jsx)(`div`,{onMouseEnter:c,onMouseLeave:s,children:(0,u.jsx)(xe,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function Ce({banners:e,autoPlay:t=!0,autoPlayInterval:n=5e3,arrows:r=!0,dots:i=!0,className:a=``,aspectRatio:o=`3 / 1`}){let[s,c]=(0,l.useState)(0),[d,f]=(0,l.useState)(!1),p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=e.length,g=(0,l.useCallback)(e=>{c((e%h+h)%h)},[h]),_=()=>g(s-1),v=(0,l.useCallback)(()=>g(s+1),[s,g]);(0,l.useEffect)(()=>{if(!(!t||d||h<=1))return p.current=setInterval(v,n),()=>{p.current&&clearInterval(p.current)}},[t,d,n,v,h]);let y=(0,l.useRef)(null),b=e=>{y.current=e.touches[0].clientX},x=e=>{if(y.current===null)return;let t=e.changedTouches[0].clientX-y.current;Math.abs(t)>50&&(t<0?v():_()),y.current=null};if(h===0)return null;let S=e[s],C=S.textColor===`light`||!S.textColor;return(0,u.jsxs)(`div`,{className:[`relative overflow-hidden rounded-xl`,a].filter(Boolean).join(` `),style:{aspectRatio:o},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onTouchStart:b,onTouchEnd:x,children:[(0,u.jsx)(`div`,{ref:m,className:`relative w-full h-full`,children:e.map((e,t)=>(0,u.jsxs)(`div`,{"aria-hidden":t!==s,className:[`absolute inset-0 transition-opacity duration-700`,t===s?`opacity-100 z-10`:`opacity-0 z-0`].join(` `),style:{background:e.backgroundImage?`url(${e.backgroundImage}) center/cover no-repeat`:e.backgroundColor??`linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%)`},children:[e.backgroundImage&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-black/50 via-black/20 to-transparent`}),(0,u.jsxs)(`div`,{className:`relative z-10 h-full flex items-center px-8 md:px-12 gap-8`,children:[(0,u.jsxs)(`div`,{className:`flex-1 max-w-lg`,children:[e.eyebrow&&(0,u.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-widest mb-2 ${C?`text-white/70`:`text-gray-500`}`,children:e.eyebrow}),(0,u.jsx)(`h2`,{className:`text-2xl md:text-3xl lg:text-4xl font-bold leading-tight ${C?`text-white`:`text-gray-900`}`,children:e.title}),e.subtitle&&(0,u.jsx)(`p`,{className:`mt-2 text-sm md:text-base ${C?`text-white/80`:`text-gray-600`}`,children:e.subtitle}),e.ctaLabel&&(0,u.jsxs)(`button`,{onClick:e.onCtaClick,className:[`mt-5 inline-flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-semibold transition-all`,C?`bg-white text-gray-900 hover:bg-gray-100`:`bg-primary-600 text-white hover:bg-primary-700`].join(` `),children:[e.ctaLabel,(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})]})]}),e.sideImage&&(0,u.jsx)(`div`,{className:`hidden md:block flex-1 h-full flex items-end justify-end overflow-hidden`,children:(0,u.jsx)(`img`,{src:e.sideImage,alt:``,className:`h-full w-auto object-contain object-bottom drop-shadow-2xl`})})]})]},e.id))}),r&&h>1&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`button`,{onClick:_,className:`absolute left-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm`,"aria-label":`Previous banner`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),(0,u.jsx)(`button`,{onClick:v,className:`absolute right-3 top-1/2 -translate-y-1/2 z-20 w-9 h-9 flex items-center justify-center rounded-full bg-black/30 text-white hover:bg-black/50 transition-colors backdrop-blur-sm`,"aria-label":`Next banner`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-5 h-5`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]}),i&&h>1&&(0,u.jsx)(`div`,{className:`absolute bottom-3 left-1/2 -translate-x-1/2 z-20 flex gap-1.5`,children:e.map((e,t)=>(0,u.jsx)(`button`,{onClick:()=>g(t),"aria-label":`Go to slide ${t+1}`,className:[`rounded-full transition-all duration-300`,t===s?`w-5 h-2 bg-white`:`w-2 h-2 bg-white/50 hover:bg-white/80`].join(` `)},t))}),t&&h>1&&(0,u.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 h-0.5 bg-white/20 z-20`,children:(0,u.jsx)(`div`,{className:`h-full bg-white/60 ${d?``:`animate-progress`}`,style:{animation:d?`none`:`progress ${n}ms linear`}},`${s}-${d}`)})]})}function we({filled:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`w-3.5 h-3.5 ${e?`fill-amber-400 stroke-amber-400`:`fill-gray-200 stroke-gray-300`}`,strokeWidth:1,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z`})})}function Te({value:e,count:t}){return(0,u.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,u.jsx)(`div`,{className:`flex gap-0.5`,children:[1,2,3,4,5].map(t=>(0,u.jsx)(we,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function Ee(e){let t=e.toLowerCase();return t===`sale`||t===`akce`?`danger`:t===`new`||t===`nové`?`primary`:t===`hot`?`warning`:`default`}function Z(e,t=`Kč`){return`${e.toLocaleString(`cs-CZ`)} ${t}`}function De(e,t){return Math.round((1-t/e)*100)}function Q({product:e,onAddToCart:t,onWishlistToggle:n,isWishlisted:r=!1,onProductClick:i,size:a=`default`,className:o=``}){let[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!1),p=e.originalPrice!==void 0&&e.originalPrice>e.price;return(0,u.jsxs)(`article`,{className:[`group relative flex flex-col bg-white rounded-xl border border-gray-200`,`hover:shadow-md transition-shadow duration-200 overflow-hidden cursor-pointer`,o].filter(Boolean).join(` `),onClick:()=>i?.(e),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,u.jsxs)(`div`,{className:`relative overflow-hidden bg-gray-50 ${a===`compact`?`aspect-square`:`aspect-4/3`}`,children:[e.image?(0,u.jsx)(`img`,{src:s&&e.imageHover?e.imageHover:e.image,alt:e.name,className:`w-full h-full object-contain p-4 transition-transform duration-300 group-hover:scale-105`}):(0,u.jsx)(`div`,{className:`w-full h-full flex items-center justify-center text-5xl bg-linear-to-br from-gray-100 to-gray-200`,children:`🛍️`}),e.badge&&(0,u.jsx)(`div`,{className:`absolute top-2 left-2`,children:(0,u.jsx)(S,{variant:Ee(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${De(e.originalPrice,e.price)}%`:e.badge})}),e.inStock===!1&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-white/70 flex items-center justify-center`,children:(0,u.jsx)(`span`,{className:`text-sm font-semibold text-gray-500 bg-white/90 px-3 py-1 rounded-full border border-gray-200`,children:`Vyprodáno`})}),(0,u.jsx)(`button`,{onClick:t=>{t.stopPropagation(),n?.(e)},"aria-label":r?`Remove from wishlist`:`Add to wishlist`,className:[`absolute top-2 right-2 w-8 h-8 flex items-center justify-center rounded-full bg-white shadow-sm border border-gray-100`,`transition-all duration-200`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,r?`text-danger-500`:`text-gray-400 hover:text-danger-400`].join(` `),children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 ${r?`fill-current`:`fill-none`}`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z`})})}),(0,u.jsx)(`div`,{className:[`absolute bottom-0 left-0 right-0 p-2 transition-transform duration-200`,s?`translate-y-0`:`translate-y-full`].join(` `),children:(0,u.jsx)(h,{variant:`primary`,size:`sm`,fullWidth:!0,loading:!1,disabled:e.inStock===!1,onClick:n=>{n.stopPropagation(),t?.(e),f(!0),setTimeout(()=>f(!1),1500)},className:`shadow-lg`,children:d?(0,u.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4.5 12.75l6 6 9-13.5`})}),`Přidáno`]}):`Přidat do košíku`})})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1.5 ${a===`compact`?`p-3`:`p-4`}`,children:[e.variants&&e.variants.length>0&&(0,u.jsxs)(`div`,{className:`flex gap-1`,children:[e.variants.slice(0,5).map(e=>(0,u.jsx)(`span`,{title:e.label,className:`w-4 h-4 rounded-full border border-gray-300 shrink-0`,style:{backgroundColor:e.color??`#ccc`}},e.id)),e.variants.length>5&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`+`,e.variants.length-5]})]}),(0,u.jsx)(`h3`,{className:`font-medium text-gray-900 leading-snug line-clamp-2 group-hover:text-primary-600 transition-colors ${a===`compact`?`text-xs`:`text-sm`}`,children:e.name}),e.rating!==void 0&&(0,u.jsx)(Te,{value:e.rating,count:e.reviewCount}),(0,u.jsxs)(`div`,{className:`flex items-baseline gap-2 mt-auto pt-1`,children:[(0,u.jsx)(`span`,{className:`font-bold text-gray-900 ${a===`compact`?`text-base`:`text-lg`}`,children:Z(e.price,e.currency)}),p&&(0,u.jsx)(`span`,{className:`text-sm text-gray-400 line-through`,children:Z(e.originalPrice,e.currency)})]})]})]})}var $={2:`grid-cols-2`,3:`grid-cols-2 md:grid-cols-3`,4:`grid-cols-2 sm:grid-cols-3 lg:grid-cols-4`,5:`grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},Oe=[{value:`newest`,label:`Nejnovější`},{value:`price-asc`,label:`Cena: od nejnižší`},{value:`price-desc`,label:`Cena: od nejvyšší`},{value:`rating`,label:`Hodnocení`},{value:`bestseller`,label:`Bestsellery`}];function ke(){return(0,u.jsxs)(`div`,{className:`rounded-xl border border-gray-100 overflow-hidden animate-pulse`,children:[(0,u.jsx)(`div`,{className:`aspect-4/3 bg-gray-200`}),(0,u.jsxs)(`div`,{className:`p-4 space-y-2`,children:[(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-3/4`}),(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-1/2`}),(0,u.jsx)(`div`,{className:`h-5 bg-gray-200 rounded w-1/3 mt-2`})]})]})}function Ae({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=Oe,selectedSort:s,onSortChange:c,activeFilters:l=[],onRemoveFilter:d,onClearFilters:f,loading:p=!1,emptyState:m,onAddToCart:h,onWishlistToggle:g,onProductClick:_,wishlisted:v=[],className:b=``}){let x=t?Math.ceil(t/i):void 0,S=a>=5?`compact`:`default`;return(0,u.jsxs)(`div`,{className:[`w-full`,b].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 mb-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[t!==void 0&&(0,u.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[(0,u.jsx)(`span`,{className:`font-semibold text-gray-900`,children:t}),` produktů`]}),l.map(e=>(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs bg-primary-50 text-primary-700 border border-primary-200 rounded-full px-2.5 py-1`,children:[e,(0,u.jsx)(`button`,{onClick:()=>d?.(e),"aria-label":`Remove filter ${e}`,className:`hover:text-primary-900 transition-colors`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3 h-3`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]},e)),l.length>1&&(0,u.jsx)(`button`,{onClick:f,className:`text-xs text-gray-400 hover:text-gray-600 underline underline-offset-2 transition-colors`,children:`Zrušit vše`})]}),(0,u.jsx)(y,{options:o,value:s??``,onChange:e=>c?.(e.target.value),"aria-label":`Sort products`,className:`text-sm`})]}),p?(0,u.jsx)(`div`,{className:`grid gap-4 ${$[a]}`,children:Array.from({length:i>12?12:i}).map((e,t)=>(0,u.jsx)(ke,{},t))}):e.length===0?(0,u.jsx)(`div`,{className:`py-16 text-center`,children:m??(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`p`,{className:`text-4xl`,children:`🔍`}),(0,u.jsx)(`p`,{className:`font-semibold text-gray-900`,children:`Žádné produkty nenalezeny`}),(0,u.jsx)(`p`,{className:`text-sm text-gray-500`,children:`Zkuste upravit filtry nebo hledat jinak.`}),l.length>0&&(0,u.jsx)(`button`,{onClick:f,className:`mt-3 text-sm text-primary-600 hover:underline`,children:`Zrušit všechny filtry`})]})}):(0,u.jsx)(`div`,{className:`grid gap-4 ${$[a]}`,children:e.map(e=>(0,u.jsx)(Q,{product:e,size:S,onAddToCart:h,onWishlistToggle:g,onProductClick:_,isWishlisted:v.includes(e.id)},e.id))}),x&&x>1&&r&&(0,u.jsx)(`div`,{className:`flex justify-center mt-8`,children:(0,u.jsx)(G,{page:n,totalPages:x,onPageChange:r})})]})}var je={default:`bg-gray-50 border border-gray-200`,primary:`bg-primary-600`,dark:`bg-gray-900`,gradient:`bg-linear-to-br from-primary-600 via-primary-700 to-violet-700`,outline:`bg-white border-2 border-primary-600`,image:`relative overflow-hidden`},Me={default:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},primary:{eyebrow:`text-primary-100`,title:`text-white`,description:`text-primary-100`},dark:{eyebrow:`text-primary-400`,title:`text-white`,description:`text-gray-400`},gradient:{eyebrow:`text-primary-200`,title:`text-white`,description:`text-primary-100`},outline:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},image:{eyebrow:`text-white/70`,title:`text-white`,description:`text-white/80`}},Ne={sm:{wrapper:`px-6 py-6 rounded-xl`,title:`text-xl font-bold`,description:`text-sm`,eyebrow:`text-xs`},md:{wrapper:`px-8 py-10 rounded-2xl`,title:`text-2xl font-bold`,description:`text-base`,eyebrow:`text-xs`},lg:{wrapper:`px-10 py-14 rounded-2xl`,title:`text-3xl font-bold`,description:`text-lg`,eyebrow:`text-sm`},xl:{wrapper:`px-12 py-20 rounded-3xl`,title:`text-4xl font-extrabold leading-tight`,description:`text-xl`,eyebrow:`text-sm`}},Pe={left:{wrapper:`items-start text-left`,actions:`justify-start`},center:{wrapper:`items-center text-center`,actions:`justify-center`},right:{wrapper:`items-end text-right`,actions:`justify-end`}};function Fe({eyebrow:e,title:t,description:n,actions:r=[],align:i=`center`,layout:a=`stacked`,size:o=`md`,variant:s=`default`,background:c,backgroundImage:l,media:d,className:f=``,style:p}){let m=Me[s],g=Ne[o],_=Pe[i],v=a===`inline`,y={...c?{background:c}:{},...l?{backgroundImage:`url(${l})`,backgroundSize:`cover`,backgroundPosition:`center`}:{},...p};return(0,u.jsxs)(`div`,{className:[`w-full`,je[s],g.wrapper,f].filter(Boolean).join(` `),style:Object.keys(y).length?y:void 0,children:[(s===`image`||l)&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-black/50`}),(0,u.jsxs)(`div`,{className:`relative ${v?`flex flex-wrap items-center justify-between gap-6`:`flex flex-col gap-4 ${_.wrapper}`}`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 ${v?`flex-1 min-w-0`:_.wrapper}`,children:[e&&(0,u.jsx)(`p`,{className:`font-semibold uppercase tracking-widest ${g.eyebrow} ${m.eyebrow}`,children:e}),(0,u.jsx)(`h2`,{className:`${g.title} ${m.title}`,children:t}),n&&(0,u.jsx)(`p`,{className:`max-w-2xl ${g.description} ${m.description}`,children:n})]}),d&&!v&&(0,u.jsx)(`div`,{className:`mt-2`,children:d}),r.length>0&&(0,u.jsx)(`div`,{className:`flex flex-wrap gap-3 ${v?`shrink-0`:_.actions}`,children:r.map((e,t)=>{let n=(0,u.jsx)(h,{variant:e.variant??(t===0?Ie(s):`outline`),size:e.size??(o===`sm`?`sm`:o===`xl`?`lg`:`md`),onClick:e.onClick,children:e.label},t);return e.href?(0,u.jsx)(`a`,{href:e.href,className:`contents`,children:n},t):n})})]})]})}function Ie(e){return e===`default`||e===`outline`?`primary`:`secondary`}function Le(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z`})})}function Re(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75`})})}function ze(){return(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:[(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15 10.5a3 3 0 11-6 0 3 3 0 016 0z`}),(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z`})]})}function Be(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z`})})}function Ve(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.41c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.236 2.686.236v2.97h-1.513c-1.491 0-1.956.93-1.956 1.886v2.267h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z`})})}function He(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z`})})}function Ue(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`})})}function We(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`})})}function Ge(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-2.88 2.5 2.89 2.89 0 01-2.89-2.89 2.89 2.89 0 012.89-2.89c.28 0 .54.04.79.1V9.01a6.33 6.33 0 00-.79-.05 6.34 6.34 0 00-6.34 6.34 6.34 6.34 0 006.34 6.34 6.34 6.34 0 006.33-6.34V8.69a8.18 8.18 0 004.78 1.52V6.76a4.85 4.85 0 01-1.01-.07z`})})}var Ke={facebook:Ve,instagram:He,twitter:Ue,youtube:We,tiktok:Ge},qe={phone:Le,email:Re,address:ze,hours:Be};function Je(e){if(!e)return null;if(typeof e==`string`){let t=qe[e];return t?(0,u.jsx)(t,{}):null}return e}function Ye(e){if(typeof e==`string`){let t=Ke[e];return t?(0,u.jsx)(t,{}):null}return e}function Xe({logo:e,tagline:t,contactHeading:n=`Kontakty`,contacts:r=[],linkGroups:i=[],socialLinks:a=[],copyright:o,bottomLinks:s=[],className:c=``}){let l=new Date().getFullYear();return(0,u.jsx)(`footer`,{className:[`bg-gray-900 text-gray-300`,c].filter(Boolean).join(` `),children:(0,u.jsxs)(f,{children:[(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-12 grid grid-cols-1 md:grid-cols-2 gap-10 lg:gap-16`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,u.jsxs)(`div`,{children:[e?(0,u.jsx)(`div`,{className:`mb-3`,children:e}):(0,u.jsx)(`span`,{className:`text-xl font-bold text-white tracking-tight mb-3 block`,children:`shopito`}),t&&(0,u.jsx)(`p`,{className:`text-sm text-gray-400 max-w-xs`,children:t})]}),r.length>0&&(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`h3`,{className:`text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3`,children:n}),(0,u.jsx)(`ul`,{className:`space-y-3`,children:r.map((e,t)=>{let n=Je(e.icon),r=(0,u.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[n&&(0,u.jsx)(`span`,{className:`mt-0.5 text-primary-400`,children:n}),(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`p`,{className:`text-xs text-gray-500 leading-none mb-0.5`,children:e.label}),(0,u.jsx)(`p`,{className:`text-sm text-gray-200 ${e.href?`hover:text-white transition-colors`:``}`,children:e.value})]})]});return(0,u.jsx)(`li`,{children:e.href?(0,u.jsx)(`a`,{href:e.href,children:r}):r},t)})})]}),a.length>0&&(0,u.jsx)(`div`,{className:`flex gap-2 flex-wrap`,children:a.map((e,t)=>(0,u.jsx)(`a`,{href:e.href,"aria-label":e.label,className:`w-8 h-8 flex items-center justify-center rounded-lg bg-gray-800 text-gray-400 hover:bg-primary-600 hover:text-white transition-colors`,children:Ye(e.icon)},t))})]}),i.length>0&&(0,u.jsx)(`div`,{className:`grid gap-8 ${i.length===1?`grid-cols-1`:i.length===2?`grid-cols-2`:`grid-cols-2 sm:grid-cols-3`}`,children:i.map((e,t)=>(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`h3`,{className:`text-xs font-semibold uppercase tracking-widest text-gray-500 mb-3`,children:e.heading}),(0,u.jsx)(`ul`,{className:`space-y-2`,children:e.links.map((e,t)=>(0,u.jsx)(`li`,{children:e.href?(0,u.jsx)(`a`,{href:e.href,className:`text-sm text-gray-400 hover:text-white transition-colors`,children:e.label}):(0,u.jsx)(`button`,{onClick:e.onClick,className:`text-sm text-gray-400 hover:text-white transition-colors text-left`,children:e.label})},t))})]},t))})]}),(0,u.jsx)(`div`,{className:`border-t border-gray-800`,children:(0,u.jsxs)(`div`,{className:`max-w-7xl mx-auto px-4 py-4 flex flex-wrap items-center justify-between gap-3`,children:[(0,u.jsx)(`p`,{className:`text-xs text-gray-500`,children:o??`© ${l} Shopito. Všechna práva vyhrazena.`}),s.length>0&&(0,u.jsx)(`nav`,{className:`flex flex-wrap gap-4`,children:s.map((e,t)=>e.href?(0,u.jsx)(`a`,{href:e.href,className:`text-xs text-gray-500 hover:text-gray-300 transition-colors`,children:e.label},t):(0,u.jsx)(`button`,{onClick:e.onClick,className:`text-xs text-gray-500 hover:text-gray-300 transition-colors`,children:e.label},t))})]})})]})})}exports.Alert=A,exports.Avatar=ee,exports.Badge=S,exports.BannerCarousel=Ce,exports.Button=h,exports.CallToAction=Fe,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.Carousel=ge,exports.CarouselCover=he,exports.CategoryTree=X,exports.Checkbox=N,exports.Col=V,exports.Container=f,exports.Footer=Xe,exports.Grid=B,exports.Header=ve,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=Se,exports.Modal=M,exports.Pagination=G,exports.ProductCard=Q,exports.ProductGrid=Ae,exports.QuantityInput=H,exports.Select=y,exports.Spinner=O,exports.Stack=I,exports.Text=x,exports.Toggle=P;
2
2
  //# sourceMappingURL=index.cjs.map