@shopito/design-system-fe 0.1.26 → 0.1.27

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 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,OAAO,CAAC;AAItD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe;IACf,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB;IACrB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uBAAuB;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AA4FD,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,iBAAsC,EACtC,QAAQ,EACR,aAAiB,EACjB,WAAW,EACX,UAAkB,EAClB,YAAY,EACZ,eAAe,EACf,UAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,OAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,GACV,EAAE,WAAW,2CAyKb"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../src/components/Header/Header.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yBAAyB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe;IACf,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qBAAqB;IACrB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,uBAAuB;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AA4FD,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,iBAAsC,EACtC,QAAQ,EACR,aAAiB,EACjB,WAAW,EACX,UAAkB,EAClB,YAAY,EACZ,eAAe,EACf,UAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,OAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,GACV,EAAE,WAAW,2CAwKb"}
@@ -1,6 +1,5 @@
1
1
  import type { InputHTMLAttributes, ReactNode } from 'react';
2
- import type { FieldProps } from 'formik';
3
- export interface InputProps extends FieldProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'form'> {
2
+ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
4
3
  label?: string;
5
4
  error?: string;
6
5
  hint?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/common/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGzC,MAAM,WAAW,UACf,SAAQ,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,KAAK,yGAmDjB,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/common/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5D,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,eAAO,MAAM,KAAK,yGAuCjB,CAAC"}
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,field:s,form:c,...l},d)=>{let f=o??e?.toLowerCase().replace(/\s+/g,`-`);return(0,u.jsxs)(`div`,{className:`w-full`,children:[e&&(0,u.jsx)(`label`,{htmlFor:f,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:d,id:f,className:(0,m.default)(`input`,t&&`has-error`,!!r&&`with-left-icon`,!!i&&`with-right-icon`,`w-full`,a),...l,...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 ee({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 O={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 te({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:O[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 ne={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,full:`max-w-full mx-4`};function re({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]`,ne[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 ie=(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})]})]})});ie.displayName=`Checkbox`;var k=(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})]})]})});k.displayName=`Toggle`;var ae=[`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 oe({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 ae[t%ae.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 se=({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}),ce={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},le={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`},ue={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`},de={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`},fe={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`},pe={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`},me={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`},he={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`},ge={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`},_e={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`},ve={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`},ye={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`},be={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`},xe={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`},Se=({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`,ce[t],n!==void 0&&le[n],r!==void 0&&ue[r],i!==void 0&&de[i],o),children:e});Se.displayName=`Grid`;var Ce=({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&&fe[t],n&&pe[n],r&&me[r],i&&he[i],a&&ge[a],o&&_e[o],s&&ve[s],c&&ye[c],l&&be[l],d&&xe[d],f),...p,children:e});Ce.displayName=`Col`;var we=({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)(Te,{})}),(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)(Ee,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};we.displayName=`QuantityInput`;var Te=()=>(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`})}),Ee=()=>(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`})}),De=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),Oe=(e,t,n)=>{if(t<=n*2+5)return De(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?[...De(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...De(t-(2+n*2),t)]:[1,`…`,...De(r,i),`…`,t]},ke=({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}),Ae=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=Oe(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(ke,{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)(ke,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(ke,{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`})})})]})},je=({direction:e,disabled:t,onClick:n})=>(0,u.jsx)(`button`,{onClick:n,disabled:t,className:(0,m.default)(`carousel-btn`,e===`prev`?`carousel-btn-prev`:`carousel-btn-next`),"aria-label":e===`prev`?`Previous slide`:`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:e===`prev`?(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`}):(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})});function Me({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 Ne({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]),ee=(0,l.useCallback)(()=>D(v-1),[v,D]),O=(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(O,s),()=>{w.current&&clearInterval(w.current)}},[o,b,s,O,_]);let te=e=>{T.current=e.touches[0].clientX},ne=e=>{if(T.current===null)return;let t=e.changedTouches[0].clientX-T.current;Math.abs(t)>50&&(t<0?O():ee()),T.current=null};if(h===0)return null;let re=c||v>0,ie=c||v<g,k=`calc((100% - ${n}px * ${t-1}) / ${t})`;return(0,u.jsxs)(`div`,{className:(0,m.default)(`carousel-wrapper`,d),onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),onTouchStart:te,onTouchEnd:ne,...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:k,maxWidth:k,...r&&{height:r}},"aria-hidden":n<v||n>=v+t,children:e},n))})}),i&&_&&(0,u.jsxs)(l.Fragment,{children:[(0,u.jsx)(je,{direction:`prev`,disabled:!re,onClick:ee}),(0,u.jsx)(je,{direction:`next`,disabled:!ie,onClick:O})]}),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))})]})}var Pe=function(e){return Fe(e)&&!Ie(e)};function Fe(e){return!!e&&typeof e==`object`}function Ie(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||Re(e)}var Le=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function Re(e){return e.$$typeof===Le}function ze(e){return Array.isArray(e)?[]:{}}function Be(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ue(ze(e),e,t):e}function Ve(e,t,n){return e.concat(t).map(function(e){return Be(e,n)})}function He(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=Be(e[t],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Be(t[i],n):r[i]=Ue(e[i],t[i],n)}),r}function Ue(e,t,n){n||={},n.arrayMerge=n.arrayMerge||Ve,n.isMergeableObject=n.isMergeableObject||Pe;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):He(e,t,n):Be(t,n)}Ue.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return Ue(e,n,t)},{})};var We=typeof global==`object`&&global&&global.Object===Object&&global,Ge=typeof self==`object`&&self&&self.Object===Object&&self,A=We||Ge||Function(`return this`)(),j=A.Symbol,Ke=Object.prototype,qe=Ke.hasOwnProperty,Je=Ke.toString,M=j?j.toStringTag:void 0;function Ye(e){var t=qe.call(e,M),n=e[M];try{e[M]=void 0;var r=!0}catch{}var i=Je.call(e);return r&&(t?e[M]=n:delete e[M]),i}var Xe=Object.prototype.toString;function Ze(e){return Xe.call(e)}var Qe=`[object Null]`,$e=`[object Undefined]`,et=j?j.toStringTag:void 0;function N(e){return e==null?e===void 0?$e:Qe:et&&et in Object(e)?Ye(e):Ze(e)}function tt(e,t){return function(n){return e(t(n))}}var nt=tt(Object.getPrototypeOf,Object);function P(e){return typeof e==`object`&&!!e}function rt(){this.__data__=[],this.size=0}function it(e,t){return e===t||e!==e&&t!==t}function at(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1}var ot=Array.prototype.splice;function st(e){var t=this.__data__,n=at(t,e);return n<0?!1:(n==t.length-1?t.pop():ot.call(t,n,1),--this.size,!0)}function ct(e){var t=this.__data__,n=at(t,e);return n<0?void 0:t[n][1]}function lt(e){return at(this.__data__,e)>-1}function ut(e,t){var n=this.__data__,r=at(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function F(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}F.prototype.clear=rt,F.prototype.delete=st,F.prototype.get=ct,F.prototype.has=lt,F.prototype.set=ut;function dt(){this.__data__=new F,this.size=0}function ft(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function pt(e){return this.__data__.get(e)}function mt(e){return this.__data__.has(e)}function ht(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var gt=`[object AsyncFunction]`,_t=`[object Function]`,vt=`[object GeneratorFunction]`,yt=`[object Proxy]`;function bt(e){if(!ht(e))return!1;var t=N(e);return t==_t||t==vt||t==gt||t==yt}var xt=A[`__core-js_shared__`],St=function(){var e=/[^.]+$/.exec(xt&&xt.keys&&xt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Ct(e){return!!St&&St in e}var wt=Function.prototype.toString;function I(e){if(e!=null){try{return wt.call(e)}catch{}try{return e+``}catch{}}return``}var Tt=/[\\^$.*+?()[\]{}|]/g,Et=/^\[object .+?Constructor\]$/,Dt=Function.prototype,Ot=Object.prototype,kt=Dt.toString,At=Ot.hasOwnProperty,jt=RegExp(`^`+kt.call(At).replace(Tt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Mt(e){return!ht(e)||Ct(e)?!1:(bt(e)?jt:Et).test(I(e))}function Nt(e,t){return e?.[t]}function L(e,t){var n=Nt(e,t);return Mt(n)?n:void 0}var R=L(A,`Map`),z=L(Object,`create`);function Pt(){this.__data__=z?z(null):{},this.size=0}function Ft(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var It=`__lodash_hash_undefined__`,Lt=Object.prototype.hasOwnProperty;function Rt(e){var t=this.__data__;if(z){var n=t[e];return n===It?void 0:n}return Lt.call(t,e)?t[e]:void 0}var zt=Object.prototype.hasOwnProperty;function Bt(e){var t=this.__data__;return z?t[e]!==void 0:zt.call(t,e)}var Vt=`__lodash_hash_undefined__`;function Ht(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=z&&t===void 0?Vt:t,this}function B(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}B.prototype.clear=Pt,B.prototype.delete=Ft,B.prototype.get=Rt,B.prototype.has=Bt,B.prototype.set=Ht;function Ut(){this.size=0,this.__data__={hash:new B,map:new(R||F),string:new B}}function Wt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Gt(e,t){var n=e.__data__;return Wt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Kt(e){var t=Gt(this,e).delete(e);return this.size-=+!!t,t}function qt(e){return Gt(this,e).get(e)}function Jt(e){return Gt(this,e).has(e)}function Yt(e,t){var n=Gt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function V(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=Ut,V.prototype.delete=Kt,V.prototype.get=qt,V.prototype.has=Jt,V.prototype.set=Yt;var Xt=200;function Zt(e,t){var n=this.__data__;if(n instanceof F){var r=n.__data__;if(!R||r.length<Xt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new V(r)}return n.set(e,t),this.size=n.size,this}function H(e){var t=this.__data__=new F(e);this.size=t.size}H.prototype.clear=dt,H.prototype.delete=ft,H.prototype.get=pt,H.prototype.has=mt,H.prototype.set=Zt;function Qt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var $t=function(){try{var e=L(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function en(e,t,n){t==`__proto__`&&$t?$t(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var tn=Object.prototype.hasOwnProperty;function nn(e,t,n){var r=e[t];(!(tn.call(e,t)&&it(r,n))||n===void 0&&!(t in e))&&en(e,t,n)}function rn(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?en(n,s,c):nn(n,s,c)}return n}function an(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var on=`[object Arguments]`;function sn(e){return P(e)&&N(e)==on}var cn=Object.prototype,ln=cn.hasOwnProperty,un=cn.propertyIsEnumerable,dn=sn(function(){return arguments}())?sn:function(e){return P(e)&&ln.call(e,`callee`)&&!un.call(e,`callee`)},U=Array.isArray;function fn(){return!1}var pn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,mn=pn&&typeof module==`object`&&module&&!module.nodeType&&module,hn=mn&&mn.exports===pn?A.Buffer:void 0,gn=(hn?hn.isBuffer:void 0)||fn,_n=9007199254740991,vn=/^(?:0|[1-9]\d*)$/;function yn(e,t){var n=typeof e;return t??=_n,!!t&&(n==`number`||n!=`symbol`&&vn.test(e))&&e>-1&&e%1==0&&e<t}var bn=9007199254740991;function xn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=bn}var Sn=`[object Arguments]`,Cn=`[object Array]`,wn=`[object Boolean]`,Tn=`[object Date]`,En=`[object Error]`,Dn=`[object Function]`,On=`[object Map]`,kn=`[object Number]`,An=`[object Object]`,jn=`[object RegExp]`,Mn=`[object Set]`,Nn=`[object String]`,Pn=`[object WeakMap]`,Fn=`[object ArrayBuffer]`,In=`[object DataView]`,Ln=`[object Float32Array]`,Rn=`[object Float64Array]`,zn=`[object Int8Array]`,Bn=`[object Int16Array]`,Vn=`[object Int32Array]`,Hn=`[object Uint8Array]`,Un=`[object Uint8ClampedArray]`,Wn=`[object Uint16Array]`,Gn=`[object Uint32Array]`,W={};W[Ln]=W[Rn]=W[zn]=W[Bn]=W[Vn]=W[Hn]=W[Un]=W[Wn]=W[Gn]=!0,W[Sn]=W[Cn]=W[Fn]=W[wn]=W[In]=W[Tn]=W[En]=W[Dn]=W[On]=W[kn]=W[An]=W[jn]=W[Mn]=W[Nn]=W[Pn]=!1;function Kn(e){return P(e)&&xn(e.length)&&!!W[N(e)]}function qn(e){return function(t){return e(t)}}var Jn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,G=Jn&&typeof module==`object`&&module&&!module.nodeType&&module,Yn=G&&G.exports===Jn&&We.process,K=function(){try{return G&&G.require&&G.require(`util`).types||Yn&&Yn.binding&&Yn.binding(`util`)}catch{}}(),Xn=K&&K.isTypedArray,Zn=Xn?qn(Xn):Kn,Qn=Object.prototype.hasOwnProperty;function $n(e,t){var n=U(e),r=!n&&dn(e),i=!n&&!r&&gn(e),a=!n&&!r&&!i&&Zn(e),o=n||r||i||a,s=o?an(e.length,String):[],c=s.length;for(var l in e)(t||Qn.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||yn(l,c)))&&s.push(l);return s}var er=Object.prototype;function tr(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||er)}var nr=tt(Object.keys,Object),rr=Object.prototype.hasOwnProperty;function ir(e){if(!tr(e))return nr(e);var t=[];for(var n in Object(e))rr.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ar(e){return e!=null&&xn(e.length)&&!bt(e)}function or(e){return ar(e)?$n(e):ir(e)}function sr(e,t){return e&&rn(t,or(t),e)}function cr(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lr=Object.prototype.hasOwnProperty;function ur(e){if(!ht(e))return cr(e);var t=tr(e),n=[];for(var r in e)r==`constructor`&&(t||!lr.call(e,r))||n.push(r);return n}function dr(e){return ar(e)?$n(e,!0):ur(e)}function fr(e,t){return e&&rn(t,dr(t),e)}var pr=typeof exports==`object`&&exports&&!exports.nodeType&&exports,mr=pr&&typeof module==`object`&&module&&!module.nodeType&&module,hr=mr&&mr.exports===pr?A.Buffer:void 0,gr=hr?hr.allocUnsafe:void 0;function _r(e,t){if(t)return e.slice();var n=e.length,r=gr?gr(n):new e.constructor(n);return e.copy(r),r}function vr(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}function yr(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function br(){return[]}var xr=Object.prototype.propertyIsEnumerable,Sr=Object.getOwnPropertySymbols,Cr=Sr?function(e){return e==null?[]:(e=Object(e),yr(Sr(e),function(t){return xr.call(e,t)}))}:br;function wr(e,t){return rn(e,Cr(e),t)}function Tr(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Er=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tr(t,Cr(e)),e=nt(e);return t}:br;function Dr(e,t){return rn(e,Er(e),t)}function Or(e,t,n){var r=t(e);return U(e)?r:Tr(r,n(e))}function kr(e){return Or(e,or,Cr)}function Ar(e){return Or(e,dr,Er)}var jr=L(A,`DataView`),Mr=L(A,`Promise`),Nr=L(A,`Set`),Pr=L(A,`WeakMap`),Fr=`[object Map]`,Ir=`[object Object]`,Lr=`[object Promise]`,Rr=`[object Set]`,zr=`[object WeakMap]`,Br=`[object DataView]`,Vr=I(jr),Hr=I(R),Ur=I(Mr),Wr=I(Nr),Gr=I(Pr),q=N;(jr&&q(new jr(new ArrayBuffer(1)))!=Br||R&&q(new R)!=Fr||Mr&&q(Mr.resolve())!=Lr||Nr&&q(new Nr)!=Rr||Pr&&q(new Pr)!=zr)&&(q=function(e){var t=N(e),n=t==Ir?e.constructor:void 0,r=n?I(n):``;if(r)switch(r){case Vr:return Br;case Hr:return Fr;case Ur:return Lr;case Wr:return Rr;case Gr:return zr}return t});var Kr=q,qr=Object.prototype.hasOwnProperty;function Jr(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&qr.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Yr=A.Uint8Array;function Xr(e){var t=new e.constructor(e.byteLength);return new Yr(t).set(new Yr(e)),t}function Zr(e,t){var n=t?Xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Qr=/\w*$/;function $r(e){var t=new e.constructor(e.source,Qr.exec(e));return t.lastIndex=e.lastIndex,t}var ei=j?j.prototype:void 0,ti=ei?ei.valueOf:void 0;function ni(e){return ti?Object(ti.call(e)):{}}function ri(e,t){var n=t?Xr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ii=`[object Boolean]`,ai=`[object Date]`,oi=`[object Map]`,si=`[object Number]`,ci=`[object RegExp]`,li=`[object Set]`,ui=`[object String]`,di=`[object Symbol]`,fi=`[object ArrayBuffer]`,pi=`[object DataView]`,mi=`[object Float32Array]`,hi=`[object Float64Array]`,gi=`[object Int8Array]`,_i=`[object Int16Array]`,vi=`[object Int32Array]`,yi=`[object Uint8Array]`,bi=`[object Uint8ClampedArray]`,xi=`[object Uint16Array]`,Si=`[object Uint32Array]`;function Ci(e,t,n){var r=e.constructor;switch(t){case fi:return Xr(e);case ii:case ai:return new r(+e);case pi:return Zr(e,n);case mi:case hi:case gi:case _i:case vi:case yi:case bi:case xi:case Si:return ri(e,n);case oi:return new r;case si:case ui:return new r(e);case ci:return $r(e);case li:return new r;case di:return ni(e)}}var wi=Object.create,Ti=function(){function e(){}return function(t){if(!ht(t))return{};if(wi)return wi(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ei(e){return typeof e.constructor==`function`&&!tr(e)?Ti(nt(e)):{}}var Di=`[object Map]`;function Oi(e){return P(e)&&Kr(e)==Di}var ki=K&&K.isMap,Ai=ki?qn(ki):Oi,ji=`[object Set]`;function Mi(e){return P(e)&&Kr(e)==ji}var Ni=K&&K.isSet,Pi=Ni?qn(Ni):Mi,Fi=1,Ii=2,Li=4,Ri=`[object Arguments]`,zi=`[object Array]`,Bi=`[object Boolean]`,Vi=`[object Date]`,Hi=`[object Error]`,Ui=`[object Function]`,Wi=`[object GeneratorFunction]`,Gi=`[object Map]`,Ki=`[object Number]`,qi=`[object Object]`,Ji=`[object RegExp]`,Yi=`[object Set]`,Xi=`[object String]`,Zi=`[object Symbol]`,Qi=`[object WeakMap]`,$i=`[object ArrayBuffer]`,ea=`[object DataView]`,ta=`[object Float32Array]`,na=`[object Float64Array]`,ra=`[object Int8Array]`,ia=`[object Int16Array]`,aa=`[object Int32Array]`,oa=`[object Uint8Array]`,sa=`[object Uint8ClampedArray]`,ca=`[object Uint16Array]`,la=`[object Uint32Array]`,J={};J[Ri]=J[zi]=J[$i]=J[ea]=J[Bi]=J[Vi]=J[ta]=J[na]=J[ra]=J[ia]=J[aa]=J[Gi]=J[Ki]=J[qi]=J[Ji]=J[Yi]=J[Xi]=J[Zi]=J[oa]=J[sa]=J[ca]=J[la]=!0,J[Hi]=J[Ui]=J[Qi]=!1;function ua(e,t,n,r,i,a){var o,s=t&Fi,c=t&Ii,l=t&Li;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!ht(e))return e;var u=U(e);if(u){if(o=Jr(e),!s)return vr(e,o)}else{var d=Kr(e),f=d==Ui||d==Wi;if(gn(e))return _r(e,s);if(d==qi||d==Ri||f&&!i){if(o=c||f?{}:Ei(e),!s)return c?Dr(e,fr(o,e)):wr(e,sr(o,e))}else{if(!J[d])return i?e:{};o=Ci(e,d,s)}}a||=new H;var p=a.get(e);if(p)return p;a.set(e,o),Pi(e)?e.forEach(function(r){o.add(ua(r,t,n,r,e,a))}):Ai(e)&&e.forEach(function(r,i){o.set(i,ua(r,t,n,i,e,a))});var m=u?void 0:(l?c?Ar:kr:c?dr:or)(e);return Qt(m||e,function(r,i){m&&(i=r,r=e[i]),nn(o,i,ua(r,t,n,i,e,a))}),o}var da=1,fa=4;function pa(e){return ua(e,da|fa)}var ma=o(((e,t)=>{var n=Array.isArray,r=Object.keys,i=Object.prototype.hasOwnProperty,a=typeof Element<`u`;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){var s=n(e),c=n(t),l,u,d;if(s&&c){if(u=e.length,u!=t.length)return!1;for(l=u;l--!==0;)if(!o(e[l],t[l]))return!1;return!0}if(s!=c)return!1;var f=e instanceof Date,p=t instanceof Date;if(f!=p)return!1;if(f&&p)return e.getTime()==t.getTime();var m=e instanceof RegExp,h=t instanceof RegExp;if(m!=h)return!1;if(m&&h)return e.toString()==t.toString();var g=r(e);if(u=g.length,u!==r(t).length)return!1;for(l=u;l--!==0;)if(!i.call(t,g[l]))return!1;if(a&&e instanceof Element&&t instanceof Element)return e===t;for(l=u;l--!==0;)if(d=g[l],!(d===`_owner`&&e.$$typeof)&&!o(e[d],t[d]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||e.number===-2146828260)return console.warn(`Warning: react-fast-compare does not handle circular references.`,e.name,e.message),!1;throw e}}})),ha=process.env.NODE_ENV===`production`;function Y(e,t){if(!ha){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}var ga=4;function _a(e){return ua(e,ga)}function va(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ya=`[object Symbol]`;function ba(e){return typeof e==`symbol`||P(e)&&N(e)==ya}var xa=`Expected a function`;function Sa(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(xa);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Sa.Cache||V),n}Sa.Cache=V;var Ca=500;function wa(e){var t=Sa(e,function(e){return n.size===Ca&&n.clear(),e}),n=t.cache;return t}var Ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ea=/\\(\\)?/g,Da=wa(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Ta,function(e,n,r,i){t.push(r?i.replace(Ea,`$1`):n||e)}),t}),Oa=1/0;function ka(e){if(typeof e==`string`||ba(e))return e;var t=e+``;return t==`0`&&1/e==-Oa?`-0`:t}var Aa=1/0,ja=j?j.prototype:void 0,Ma=ja?ja.toString:void 0;function Na(e){if(typeof e==`string`)return e;if(U(e))return va(e,Na)+``;if(ba(e))return Ma?Ma.call(e):``;var t=e+``;return t==`0`&&1/e==-Aa?`-0`:t}function Pa(e){return e==null?``:Na(e)}function Fa(e){return U(e)?va(e,ka):ba(e)?[e]:vr(Da(Pa(e)))}var Ia=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),La=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,ee=i,O=h,te=m,ne=r,re=o,ie=a,k=f,ae=!1;function oe(e){return ae||(ae=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),se(e)||x(e)===l}function se(e){return x(e)===u}function ce(e){return x(e)===c}function le(e){return x(e)===s}function ue(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function de(e){return x(e)===d}function fe(e){return x(e)===i}function pe(e){return x(e)===h}function me(e){return x(e)===m}function he(e){return x(e)===r}function ge(e){return x(e)===o}function _e(e){return x(e)===a}function ve(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=ee,e.Lazy=O,e.Memo=te,e.Portal=ne,e.Profiler=re,e.StrictMode=ie,e.Suspense=k,e.isAsyncMode=oe,e.isConcurrentMode=se,e.isContextConsumer=ce,e.isContextProvider=le,e.isElement=ue,e.isForwardRef=de,e.isFragment=fe,e.isLazy=pe,e.isMemo=me,e.isPortal=he,e.isProfiler=ge,e.isStrictMode=_e,e.isSuspense=ve,e.isValidElementType=b,e.typeOf=x})()})),Ra=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Ia():t.exports=La()})),za=o(((e,t)=>{var n=Ra(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Ba=c(ma());za();function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Va(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Z(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ha(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}var Ua=(0,l.createContext)(void 0);Ua.displayName=`FormikContext`,Ua.Provider,Ua.Consumer;function Wa(){var e=(0,l.useContext)(Ua);return!e&&(process.env.NODE_ENV===`production`?Y(!1):Y(!1,`Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.`)),e}var Ga=function(e){return Array.isArray(e)&&e.length===0},Ka=function(e){return typeof e==`function`},qa=function(e){return typeof e==`object`&&!!e},Ja=function(e){return String(Math.floor(Number(e)))===e},Ya=function(e){return l.Children.count(e)===0};function Q(e,t,n,r){r===void 0&&(r=0);for(var i=Fa(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Xa(e,t,n){for(var r=_a(e),i=r,a=0,o=Fa(t);a<o.length-1;a++){var s=o[a],c=Q(e,o.slice(0,a+1));if(c&&(qa(c)||Array.isArray(c)))i=i[s]=_a(c);else{var l=o[a+1];i=i[s]=Ja(l)&&Number(l)>=0?[]:{}}}return(a===0?e:i)[o[a]]===n?e:(n===void 0?delete i[o[a]]:i[o[a]]=n,a===0&&n===void 0&&delete r[o[a]],r)}typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?l.useLayoutEffect:l.useEffect;function Za(e){var t=e.validate,n=e.name,r=e.render,i=e.children,a=e.as,o=e.component,s=e.className,c=Z(e,[`validate`,`name`,`render`,`children`,`as`,`component`,`className`]),u=Z(Wa(),[`validate`,`validationSchema`]);process.env.NODE_ENV!==`production`&&(0,l.useEffect)(function(){r&&(process.env.NODE_ENV===`production`?Y(!1):Y(!1,`<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="`+n+`" render={({field, form}) => ...} /> with <Field name="`+n+`">{({field, form, meta}) => ...}</Field>`)),a&&i&&Ka(i)&&(process.env.NODE_ENV===`production`?Y(!1):Y(!1,`You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored.`)),o&&i&&Ka(i)&&(process.env.NODE_ENV===`production`?Y(!1):Y(!1,`You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored.`)),r&&i&&!Ya(i)&&(process.env.NODE_ENV===`production`?Y(!1):Y(!1,`You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored`))},[]);var d=u.registerField,f=u.unregisterField;(0,l.useEffect)(function(){return d(n,{validate:t}),function(){f(n)}},[d,f,n,t]);var p=u.getFieldProps(X({name:n},c)),m=u.getFieldMeta(n),h={field:p,form:u};if(r)return r(X({},h,{meta:m}));if(Ka(i))return i(X({},h,{meta:m}));if(o){if(typeof o==`string`){var g=c.innerRef,_=Z(c,[`innerRef`]);return(0,l.createElement)(o,X({ref:g},p,_,{className:s}),i)}return(0,l.createElement)(o,X({field:p,form:u},c,{className:s}),i)}var v=a||`input`;if(typeof v==`string`){var y=c.innerRef,b=Z(c,[`innerRef`]);return(0,l.createElement)(v,X({ref:y},p,b,{className:s}),i)}return(0,l.createElement)(v,X({},p,c,{className:s}),i)}var Qa=(0,l.forwardRef)(function(e,t){var n=e.action,r=Z(e,[`action`]),i=n??`#`,a=Wa(),o=a.handleReset,s=a.handleSubmit;return(0,l.createElement)(`form`,X({onSubmit:s,ref:t,onReset:o,action:i},r))});Qa.displayName=`Form`;var $a=function(e,t,n){var r=$(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},eo=function(e,t,n){var r=$(e),i=r[t];return r[t]=r[n],r[n]=i,r},to=function(e,t,n){var r=$(e);return r.splice(t,0,n),r},no=function(e,t,n){var r=$(e);return r[t]=n,r},$=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(X({},e,{length:t+1}))},ro=function(e,t){var n=typeof e==`function`?e:t;return function(e){return Array.isArray(e)||qa(e)?n($(e)):e}},io=function(e){Va(t,e);function t(t){var n=e.call(this,t)||this;return n.updateArrayField=function(e,t,r){var i=n.props,a=i.name,o=i.formik.setFormikState;o(function(n){var i=ro(r,e),o=ro(t,e),s=Xa(n.values,a,e(Q(n.values,a))),c=r?i(Q(n.errors,a)):void 0,l=t?o(Q(n.touched,a)):void 0;return Ga(c)&&(c=void 0),Ga(l)&&(l=void 0),X({},n,{values:s,errors:r?Xa(n.errors,a,c):n.errors,touched:t?Xa(n.touched,a,l):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat($(t),[pa(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return eo(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return $a(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return to(n,e,t)},function(t){return to(t,e,null)},function(t){return to(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return no(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t=r.length,r},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Ha(n)),n.pop=n.pop.bind(Ha(n)),n}var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,Ba.default)(Q(e.formik.values,e.name),Q(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?$(n):[];return t||=r[e],Ka(r.splice)&&r.splice(e,1),Ka(r.every)&&r.every(function(e){return e===void 0})?[]:r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||=n&&n.pop&&n.pop(),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,a=t.name,o=t.formik,s=Z(o,[`validate`,`validationSchema`]),c=X({},e,{form:s,name:a});return n?(0,l.createElement)(n,c):r?r(c):i?typeof i==`function`?i(c):Ya(i)?null:l.Children.only(i):null},t}(l.Component);io.defaultProps={validateOnChange:!0};function ao({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 oo(){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 so({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)(Za,{component:v,placeholder:t,value:_,onChange:e=>y(e.target.value),onKeyDown:e=>{e.key===`Enter`&&n?.(_)},leftIcon:(0,u.jsx)(oo,{}),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)(ao,{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)(co,{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)(ao,{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)(co,{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)(lo,{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)(uo,{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 co({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 lo({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 uo({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 fo({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||po(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)(fo,{node:e,activeId:t,onSelect:n,showCounts:r,depth:i+1,defaultExpandAll:a},e.id))})]})}function po(e,t){return!t||!e.children?!1:e.children.some(e=>e.id===t||po(e,t))}function mo({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)(fo,{node:e,activeId:t,onSelect:s,showCounts:r,depth:0,defaultExpandAll:i},e.id))})})}function ho({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 go({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)(ho,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function _o({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 vo({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 yo({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)(vo,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function bo(e){let t=e.toLowerCase();return t===`sale`||t===`akce`?`danger`:t===`new`||t===`nové`?`primary`:t===`hot`?`warning`:`default`}function xo(e,t=`Kč`){return`${e.toLocaleString(`cs-CZ`)} ${t}`}function So(e,t){return Math.round((1-t/e)*100)}function Co({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:bo(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${So(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)(yo,{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:xo(e.price,e.currency)}),p&&(0,u.jsx)(`span`,{className:`text-sm text-gray-400 line-through`,children:xo(e.originalPrice,e.currency)})]})]})]})}var wo={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`},To=[{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 Eo(){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 Do({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=To,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 ${wo[a]}`,children:Array.from({length:i>12?12:i}).map((e,t)=>(0,u.jsx)(Eo,{},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 ${wo[a]}`,children:e.map(e=>(0,u.jsx)(Co,{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)(Ae,{page:n,totalPages:x,onPageChange:r})})]})}function Oo({children:e,gap:t=16,scrollStep:n=.8,className:r,...i}){let a=(0,l.useRef)(null),[o,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),f=()=>{let e=a.current;e&&(s(e.scrollLeft>1),d(e.scrollLeft<e.scrollWidth-e.clientWidth-1))};(0,l.useEffect)(()=>{f();let e=a.current;if(!e)return;e.addEventListener(`scroll`,f,{passive:!0});let t=new ResizeObserver(f);return t.observe(e),()=>{e.removeEventListener(`scroll`,f),t.disconnect()}},[]);let p=e=>{let t=a.current;t&&t.scrollBy({left:e*t.clientWidth*n,behavior:`smooth`})};return(0,u.jsxs)(`div`,{className:(0,m.default)(`carousel-wrapper`,r),...i,children:[(0,u.jsx)(`div`,{ref:a,className:`product-carousel-viewport`,children:(0,u.jsx)(`div`,{className:`product-carousel-track`,style:{gap:`${t}px`},children:e})}),o&&(0,u.jsx)(je,{direction:`prev`,onClick:()=>p(-1)}),c&&(0,u.jsx)(je,{direction:`next`,onClick:()=>p(1)})]})}var ko={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`},Ao={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`}},jo={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`}},Mo={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 No({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=Ao[s],g=jo[o],_=Mo[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`,ko[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?Po(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 Po(e){return e===`default`||e===`outline`?`primary`:`secondary`}function Fo(){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 Io(){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 Lo(){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 Ro(){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 zo(){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 Bo(){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 Vo(){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 Ho(){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 Uo(){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 Wo={facebook:zo,instagram:Bo,twitter:Vo,youtube:Ho,tiktok:Uo},Go={phone:Fo,email:Io,address:Lo,hours:Ro};function Ko(e){if(!e)return null;if(typeof e==`string`){let t=Go[e];return t?(0,u.jsx)(t,{}):null}return e}function qo(e){if(typeof e==`string`){let t=Wo[e];return t?(0,u.jsx)(t,{}):null}return e}function Jo({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=Ko(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:qo(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=te,exports.Avatar=oe,exports.Badge=S,exports.BannerCarousel=_o,exports.Button=h,exports.CallToAction=No,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.Carousel=Ne,exports.CarouselCover=Me,exports.CategoryTree=mo,exports.Checkbox=ie,exports.Col=Ce,exports.Container=f,exports.Footer=Jo,exports.Grid=Se,exports.Header=so,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=go,exports.Modal=re,exports.Pagination=Ae,exports.ProductCard=Co,exports.ProductCarousel=Oo,exports.ProductGrid=Do,exports.QuantityInput=we,exports.Select=y,exports.Spinner=ee,exports.Stack=se,exports.Text=x,exports.Toggle=k;
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 te=({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}),I={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},L={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`},R={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`},fe={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`},z=({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`,I[t],n!==void 0&&L[n],r!==void 0&&R[r],i!==void 0&&ne[i],o),children:e});z.displayName=`Grid`;var B=({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&&fe[d],f),...p,children:e});B.displayName=`Col`;var V=({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)(pe,{})}),(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)(me,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};V.displayName=`QuantityInput`;var pe=()=>(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`})}),me=()=>(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`})}),H=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),he=(e,t,n)=>{if(t<=n*2+5)return H(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?[...H(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...H(t-(2+n*2),t)]:[1,`…`,...H(r,i),`…`,t]},U=({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}),W=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=he(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(U,{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)(U,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(U,{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`})})})]})},G=({direction:e,disabled:t,onClick:n})=>(0,u.jsx)(`button`,{onClick:n,disabled:t,className:(0,m.default)(`carousel-btn`,e===`prev`?`carousel-btn-prev`:`carousel-btn-next`),"aria-label":e===`prev`?`Previous slide`:`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:e===`prev`?(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`}):(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})});function ge({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 _e({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-wrapper`,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)(l.Fragment,{children:[(0,u.jsx)(G,{direction:`prev`,disabled:!M,onClick:O}),(0,u.jsx)(G,{direction:`next`,disabled:!N,onClick:k})]}),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 ve(){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 ye({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)(ve,{}),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)(be,{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)(xe,{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 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:`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 xe({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 Se({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 Ce({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)(Se,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function we({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 Te({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 Ee({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)(Te,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function De(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 Oe(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:De(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${Oe(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)(Ee,{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`},ke=[{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 Ae(){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 je({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=ke,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)(Ae,{},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)(W,{page:n,totalPages:x,onPageChange:r})})]})}function Me({children:e,gap:t=16,scrollStep:n=.8,className:r,...i}){let a=(0,l.useRef)(null),[o,s]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),f=()=>{let e=a.current;e&&(s(e.scrollLeft>1),d(e.scrollLeft<e.scrollWidth-e.clientWidth-1))};(0,l.useEffect)(()=>{f();let e=a.current;if(!e)return;e.addEventListener(`scroll`,f,{passive:!0});let t=new ResizeObserver(f);return t.observe(e),()=>{e.removeEventListener(`scroll`,f),t.disconnect()}},[]);let p=e=>{let t=a.current;t&&t.scrollBy({left:e*t.clientWidth*n,behavior:`smooth`})};return(0,u.jsxs)(`div`,{className:(0,m.default)(`carousel-wrapper`,r),...i,children:[(0,u.jsx)(`div`,{ref:a,className:`product-carousel-viewport`,children:(0,u.jsx)(`div`,{className:`product-carousel-track`,style:{gap:`${t}px`},children:e})}),o&&(0,u.jsx)(G,{direction:`prev`,onClick:()=>p(-1)}),c&&(0,u.jsx)(G,{direction:`next`,onClick:()=>p(1)})]})}var Ne={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`},Pe={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`}},Fe={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`}},Ie={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 Le({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=Pe[s],g=Fe[o],_=Ie[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`,Ne[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?Re(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 Re(e){return e===`default`||e===`outline`?`primary`:`secondary`}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:`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 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:`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 Ve(){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 He(){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 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:`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 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:`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 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:`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 Ke(){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 qe(){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 Je={facebook:Ue,instagram:We,twitter:Ge,youtube:Ke,tiktok:qe},Ye={phone:ze,email:Be,address:Ve,hours:He};function Xe(e){if(!e)return null;if(typeof e==`string`){let t=Ye[e];return t?(0,u.jsx)(t,{}):null}return e}function Ze(e){if(typeof e==`string`){let t=Je[e];return t?(0,u.jsx)(t,{}):null}return e}function Qe({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=Xe(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:Ze(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=we,exports.Button=h,exports.CallToAction=Le,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.Carousel=_e,exports.CarouselCover=ge,exports.CategoryTree=X,exports.Checkbox=N,exports.Col=B,exports.Container=f,exports.Footer=Qe,exports.Grid=z,exports.Header=ye,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=Ce,exports.Modal=M,exports.Pagination=W,exports.ProductCard=Q,exports.ProductCarousel=Me,exports.ProductGrid=je,exports.QuantityInput=V,exports.Select=y,exports.Spinner=O,exports.Stack=te,exports.Text=x,exports.Toggle=P;
2
2
  //# sourceMappingURL=index.cjs.map