@shopito/design-system-fe 0.1.16 → 0.1.17

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.
@@ -0,0 +1,10 @@
1
+ import 'swiper/css';
2
+ import 'swiper/css/pagination';
3
+ import 'swiper/css/navigation';
4
+ interface CarouselProps {
5
+ images: string[];
6
+ autoPlay: false | number;
7
+ }
8
+ export declare const Carousel: ({ images, autoPlay }: CarouselProps) => import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
10
+ //# sourceMappingURL=Carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/Carousel.tsx"],"names":[],"mappings":"AAGA,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAI/B,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,GAAI,sBAA8B,aAAa,mDAiCnE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Carousel } from './Carousel';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/common/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,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,...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 ee={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:ee[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 k={sm:`max-w-sm`,md:`max-w-md`,lg:`max-w-lg`,xl:`max-w-xl`,full:`max-w-full mx-4`};function A({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]`,k[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 j=(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})]})]})});j.displayName=`Checkbox`;var M=(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})]})]})});M.displayName=`Toggle`;var N=[`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 ne({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 N[t%N.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 re=({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}),ie={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},ae={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`},oe={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`},se={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`},ce={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`},le={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`},ue={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`},de={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`},P={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`},F={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`},I={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`},L={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`},R={1:`lg:col-start-2`,2:`lg:col-start-3`,3:`lg:col-start-4`,4:`lg:col-start-5`,5:`lg:col-start-6`,6:`lg:col-start-7`,7:`lg:col-start-8`,8:`lg:col-start-9`,9:`lg:col-start-10`,10:`lg:col-start-11`,11:`lg:col-start-12`},z={1:`xl:col-start-2`,2:`xl:col-start-3`,3:`xl:col-start-4`,4:`xl:col-start-5`,5:`xl:col-start-6`,6:`xl:col-start-7`,7:`xl:col-start-8`,8:`xl:col-start-9`,9:`xl:col-start-10`,10:`xl:col-start-11`,11:`xl:col-start-12`},B=({children:e,cols:t=12,gap:n,rowGap:r,colGap:i,as:a=`div`,className:o})=>(0,u.jsx)(a,{className:(0,m.default)(`grid`,`w-full`,ie[t],n!==void 0&&ae[n],r!==void 0&&oe[r],i!==void 0&&se[i],o),children:e});B.displayName=`Grid`;var V=({children:e,span:t,sm:n,md:r,lg:i,xl:a,offset:o,smOffset:s,mdOffset:c,lgOffset:l,xlOffset:d,className:f,...p})=>(0,u.jsx)(`div`,{className:(0,m.default)(t&&ce[t],n&&le[n],r&&ue[r],i&&de[i],a&&P[a],o&&F[o],s&&I[s],c&&L[c],l&&R[l],d&&z[d],f),...p,children:e});V.displayName=`Col`;var H=({value:e,onChange:t,min:n=1,max:r=999,step:i=1,disabled:a=!1,label:o,error:s,hint:c,id:d,className:f})=>{let p=(0,l.useId)(),h=d??p,g=(0,l.useRef)(null),[_,v]=(0,l.useState)(String(e));(0,l.useEffect)(()=>{document.activeElement!==g.current&&v(String(e))},[e]);let y=e=>Math.min(r,Math.max(n,e)),b=n=>{let r=parseInt(n,10),i=isNaN(r)?e:y(r);v(String(i)),i!==e&&t(i)},x=e=>{let n=e.target.value.replace(/[^0-9]/g,``);v(n);let r=parseInt(n,10);isNaN(r)||t(y(r))},S=()=>b(_),C=e=>{if(e.key===`Enter`){b(_),g.current?.blur();return}![`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key)&&!/^[0-9]$/.test(e.key)&&!e.metaKey&&!e.ctrlKey&&e.preventDefault()},w=()=>t(y(e-i)),T=()=>t(y(e+i)),E=e-i>=n,D=e+i<=r;return(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input-wrapper`,f),children:[o&&(0,u.jsx)(`label`,{htmlFor:h,className:`input-label`,children:o}),(0,u.jsxs)(`div`,{className:(0,m.default)(`quantity-input`,s&&`has-error`,a&&`is-disabled`),children:[(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:w,disabled:a||!E,"aria-label":`Snížit množství`,tabIndex:-1,children:(0,u.jsx)(fe,{})}),(0,u.jsx)(`input`,{ref:g,id:h,type:`text`,inputMode:`numeric`,className:`quantity-field`,value:_,onChange:x,onBlur:S,onKeyDown:C,disabled:a,"aria-label":o??`Množství`,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":e}),(0,u.jsx)(`button`,{type:`button`,className:`quantity-btn`,onClick:T,disabled:a||!D,"aria-label":`Zvýšit množství`,tabIndex:-1,children:(0,u.jsx)(pe,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};H.displayName=`QuantityInput`;var fe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`2`,viewBox:`0 0 12 2`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M1 1H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),pe=()=>(0,u.jsx)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,"aria-hidden":`true`,children:(0,u.jsx)(`path`,{d:`M6 1V11M1 6H11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})}),U=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),me=(e,t,n)=>{if(t<=n*2+5)return U(1,t);let r=Math.max(e-n,1),i=Math.min(e+n,t),a=r>2,o=i<t-1;return!a&&o?[...U(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...U(t-(2+n*2),t)]:[1,`…`,...U(r,i),`…`,t]},W=({active:e,disabled:t,children:n,...r})=>(0,u.jsx)(`button`,{disabled:t,className:(0,m.default)(`pagination-button`,`pagination-button-${e?`active`:`inactive`}`),...r,children:n}),G=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=me(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(W,{disabled:e<=1,onClick:()=>n(e-1),"aria-label":`Previous page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M15.75 19.5L8.25 12l7.5-7.5`})})}),i.map((t,r)=>t===`…`?(0,u.jsx)(`span`,{className:`pagination-dots`,children:`…`},`dots-${r}`):(0,u.jsx)(W,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(W,{disabled:e>=t,onClick:()=>n(e+1),"aria-label":`Next page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]})};function 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 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`,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 ge({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)(he,{}),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)(_e,{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)(ve,{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 _e({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 ve({className:e}){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:e,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`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 ye({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 be({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 xe({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)(be,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function Se({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 Ce({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 we({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)(Ce,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function Te(e){let t=e.toLowerCase();return t===`sale`||t===`akce`?`danger`:t===`new`||t===`nové`?`primary`:t===`hot`?`warning`:`default`}function X(e,t=`Kč`){return`${e.toLocaleString(`cs-CZ`)} ${t}`}function Ee(e,t){return Math.round((1-t/e)*100)}function Z({product:e,onAddToCart:t,onWishlistToggle:n,isWishlisted:r=!1,onProductClick:i,size:a=`default`,className:o=``}){let[s,c]=(0,l.useState)(!1),[d,f]=(0,l.useState)(!1),p=e.originalPrice!==void 0&&e.originalPrice>e.price;return(0,u.jsxs)(`article`,{className:[`group relative flex flex-col bg-white rounded-xl border border-gray-200`,`hover:shadow-md transition-shadow duration-200 overflow-hidden cursor-pointer`,o].filter(Boolean).join(` `),onClick:()=>i?.(e),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,u.jsxs)(`div`,{className:`relative overflow-hidden bg-gray-50 ${a===`compact`?`aspect-square`:`aspect-4/3`}`,children:[e.image?(0,u.jsx)(`img`,{src:s&&e.imageHover?e.imageHover:e.image,alt:e.name,className:`w-full h-full object-contain p-4 transition-transform duration-300 group-hover:scale-105`}):(0,u.jsx)(`div`,{className:`w-full h-full flex items-center justify-center text-5xl bg-linear-to-br from-gray-100 to-gray-200`,children:`🛍️`}),e.badge&&(0,u.jsx)(`div`,{className:`absolute top-2 left-2`,children:(0,u.jsx)(S,{variant:Te(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${Ee(e.originalPrice,e.price)}%`:e.badge})}),e.inStock===!1&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-white/70 flex items-center justify-center`,children:(0,u.jsx)(`span`,{className:`text-sm font-semibold text-gray-500 bg-white/90 px-3 py-1 rounded-full border border-gray-200`,children:`Vyprodáno`})}),(0,u.jsx)(`button`,{onClick:t=>{t.stopPropagation(),n?.(e)},"aria-label":r?`Remove from wishlist`:`Add to wishlist`,className:[`absolute top-2 right-2 w-8 h-8 flex items-center justify-center rounded-full bg-white shadow-sm border border-gray-100`,`transition-all duration-200`,`opacity-0 group-hover:opacity-100 focus:opacity-100`,r?`text-danger-500`:`text-gray-400 hover:text-danger-400`].join(` `),children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 ${r?`fill-current`:`fill-none`}`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z`})})}),(0,u.jsx)(`div`,{className:[`absolute bottom-0 left-0 right-0 p-2 transition-transform duration-200`,s?`translate-y-0`:`translate-y-full`].join(` `),children:(0,u.jsx)(h,{variant:`primary`,size:`sm`,fullWidth:!0,loading:!1,disabled:e.inStock===!1,onClick:n=>{n.stopPropagation(),t?.(e),f(!0),setTimeout(()=>f(!1),1500)},className:`shadow-lg`,children:d?(0,u.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M4.5 12.75l6 6 9-13.5`})}),`Přidáno`]}):`Přidat do košíku`})})]}),(0,u.jsxs)(`div`,{className:`flex flex-col gap-1.5 ${a===`compact`?`p-3`:`p-4`}`,children:[e.variants&&e.variants.length>0&&(0,u.jsxs)(`div`,{className:`flex gap-1`,children:[e.variants.slice(0,5).map(e=>(0,u.jsx)(`span`,{title:e.label,className:`w-4 h-4 rounded-full border border-gray-300 shrink-0`,style:{backgroundColor:e.color??`#ccc`}},e.id)),e.variants.length>5&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`+`,e.variants.length-5]})]}),(0,u.jsx)(`h3`,{className:`font-medium text-gray-900 leading-snug line-clamp-2 group-hover:text-primary-600 transition-colors ${a===`compact`?`text-xs`:`text-sm`}`,children:e.name}),e.rating!==void 0&&(0,u.jsx)(we,{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:X(e.price,e.currency)}),p&&(0,u.jsx)(`span`,{className:`text-sm text-gray-400 line-through`,children:X(e.originalPrice,e.currency)})]})]})]})}var Q={2:`grid-cols-2`,3:`grid-cols-2 md:grid-cols-3`,4:`grid-cols-2 sm:grid-cols-3 lg:grid-cols-4`,5:`grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},De=[{value:`newest`,label:`Nejnovější`},{value:`price-asc`,label:`Cena: od nejnižší`},{value:`price-desc`,label:`Cena: od nejvyšší`},{value:`rating`,label:`Hodnocení`},{value:`bestseller`,label:`Bestsellery`}];function Oe(){return(0,u.jsxs)(`div`,{className:`rounded-xl border border-gray-100 overflow-hidden animate-pulse`,children:[(0,u.jsx)(`div`,{className:`aspect-4/3 bg-gray-200`}),(0,u.jsxs)(`div`,{className:`p-4 space-y-2`,children:[(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-3/4`}),(0,u.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-1/2`}),(0,u.jsx)(`div`,{className:`h-5 bg-gray-200 rounded w-1/3 mt-2`})]})]})}function ke({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=De,selectedSort:s,onSortChange:c,activeFilters:l=[],onRemoveFilter:d,onClearFilters:f,loading:p=!1,emptyState:m,onAddToCart:h,onWishlistToggle:g,onProductClick:_,wishlisted:v=[],className:b=``}){let x=t?Math.ceil(t/i):void 0,S=a>=5?`compact`:`default`;return(0,u.jsxs)(`div`,{className:[`w-full`,b].filter(Boolean).join(` `),children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 mb-4`,children:[(0,u.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[t!==void 0&&(0,u.jsxs)(`span`,{className:`text-sm text-gray-500`,children:[(0,u.jsx)(`span`,{className:`font-semibold text-gray-900`,children:t}),` produktů`]}),l.map(e=>(0,u.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs bg-primary-50 text-primary-700 border border-primary-200 rounded-full px-2.5 py-1`,children:[e,(0,u.jsx)(`button`,{onClick:()=>d?.(e),"aria-label":`Remove filter ${e}`,className:`hover:text-primary-900 transition-colors`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-3 h-3`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]},e)),l.length>1&&(0,u.jsx)(`button`,{onClick:f,className:`text-xs text-gray-400 hover:text-gray-600 underline underline-offset-2 transition-colors`,children:`Zrušit vše`})]}),(0,u.jsx)(y,{options:o,value:s??``,onChange:e=>c?.(e.target.value),"aria-label":`Sort products`,className:`text-sm`})]}),p?(0,u.jsx)(`div`,{className:`grid gap-4 ${Q[a]}`,children:Array.from({length:i>12?12:i}).map((e,t)=>(0,u.jsx)(Oe,{},t))}):e.length===0?(0,u.jsx)(`div`,{className:`py-16 text-center`,children:m??(0,u.jsxs)(`div`,{className:`space-y-2`,children:[(0,u.jsx)(`p`,{className:`text-4xl`,children:`🔍`}),(0,u.jsx)(`p`,{className:`font-semibold text-gray-900`,children:`Žádné produkty nenalezeny`}),(0,u.jsx)(`p`,{className:`text-sm text-gray-500`,children:`Zkuste upravit filtry nebo hledat jinak.`}),l.length>0&&(0,u.jsx)(`button`,{onClick:f,className:`mt-3 text-sm text-primary-600 hover:underline`,children:`Zrušit všechny filtry`})]})}):(0,u.jsx)(`div`,{className:`grid gap-4 ${Q[a]}`,children:e.map(e=>(0,u.jsx)(Z,{product:e,size:S,onAddToCart:h,onWishlistToggle:g,onProductClick:_,isWishlisted:v.includes(e.id)},e.id))}),x&&x>1&&r&&(0,u.jsx)(`div`,{className:`flex justify-center mt-8`,children:(0,u.jsx)(G,{page:n,totalPages:x,onPageChange:r})})]})}var Ae={default:`bg-gray-50 border border-gray-200`,primary:`bg-primary-600`,dark:`bg-gray-900`,gradient:`bg-linear-to-br from-primary-600 via-primary-700 to-violet-700`,outline:`bg-white border-2 border-primary-600`,image:`relative overflow-hidden`},je={default:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},primary:{eyebrow:`text-primary-100`,title:`text-white`,description:`text-primary-100`},dark:{eyebrow:`text-primary-400`,title:`text-white`,description:`text-gray-400`},gradient:{eyebrow:`text-primary-200`,title:`text-white`,description:`text-primary-100`},outline:{eyebrow:`text-primary-600`,title:`text-gray-900`,description:`text-gray-600`},image:{eyebrow:`text-white/70`,title:`text-white`,description:`text-white/80`}},Me={sm:{wrapper:`px-6 py-6 rounded-xl`,title:`text-xl font-bold`,description:`text-sm`,eyebrow:`text-xs`},md:{wrapper:`px-8 py-10 rounded-2xl`,title:`text-2xl font-bold`,description:`text-base`,eyebrow:`text-xs`},lg:{wrapper:`px-10 py-14 rounded-2xl`,title:`text-3xl font-bold`,description:`text-lg`,eyebrow:`text-sm`},xl:{wrapper:`px-12 py-20 rounded-3xl`,title:`text-4xl font-extrabold leading-tight`,description:`text-xl`,eyebrow:`text-sm`}},Ne={left:{wrapper:`items-start text-left`,actions:`justify-start`},center:{wrapper:`items-center text-center`,actions:`justify-center`},right:{wrapper:`items-end text-right`,actions:`justify-end`}};function Pe({eyebrow:e,title:t,description:n,actions:r=[],align:i=`center`,layout:a=`stacked`,size:o=`md`,variant:s=`default`,background:c,backgroundImage:l,media:d,className:f=``,style:p}){let m=je[s],g=Me[o],_=Ne[i],v=a===`inline`,y={...c?{background:c}:{},...l?{backgroundImage:`url(${l})`,backgroundSize:`cover`,backgroundPosition:`center`}:{},...p};return(0,u.jsxs)(`div`,{className:[`w-full`,Ae[s],g.wrapper,f].filter(Boolean).join(` `),style:Object.keys(y).length?y:void 0,children:[(s===`image`||l)&&(0,u.jsx)(`div`,{className:`absolute inset-0 bg-black/50`}),(0,u.jsxs)(`div`,{className:`relative ${v?`flex flex-wrap items-center justify-between gap-6`:`flex flex-col gap-4 ${_.wrapper}`}`,children:[(0,u.jsxs)(`div`,{className:`flex flex-col gap-2 ${v?`flex-1 min-w-0`:_.wrapper}`,children:[e&&(0,u.jsx)(`p`,{className:`font-semibold uppercase tracking-widest ${g.eyebrow} ${m.eyebrow}`,children:e}),(0,u.jsx)(`h2`,{className:`${g.title} ${m.title}`,children:t}),n&&(0,u.jsx)(`p`,{className:`max-w-2xl ${g.description} ${m.description}`,children:n})]}),d&&!v&&(0,u.jsx)(`div`,{className:`mt-2`,children:d}),r.length>0&&(0,u.jsx)(`div`,{className:`flex flex-wrap gap-3 ${v?`shrink-0`:_.actions}`,children:r.map((e,t)=>{let n=(0,u.jsx)(h,{variant:e.variant??(t===0?$(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 $(e){return e===`default`||e===`outline`?`primary`:`secondary`}function Fe(){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 Ie(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`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 Le(){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 Re(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`w-4 h-4 shrink-0`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z`})})}function ze(){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 Be(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`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 Ve(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`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 He(){return(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{d:`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 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:`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 We={facebook:ze,instagram:Be,twitter:Ve,youtube:He,tiktok:Ue},Ge={phone:Fe,email:Ie,address:Le,hours:Re};function Ke(e){if(!e)return null;if(typeof e==`string`){let t=Ge[e];return t?(0,u.jsx)(t,{}):null}return e}function qe(e){if(typeof e==`string`){let t=We[e];return t?(0,u.jsx)(t,{}):null}return e}function Je({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=Ke(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:qe(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=ne,exports.Badge=S,exports.BannerCarousel=Se,exports.Button=h,exports.CallToAction=Pe,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.CategoryTree=ye,exports.Checkbox=j,exports.Col=V,exports.Container=f,exports.Footer=Je,exports.Grid=B,exports.Header=ge,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=xe,exports.Modal=A,exports.Pagination=G,exports.ProductCard=Z,exports.ProductGrid=ke,exports.QuantityInput=H,exports.Select=y,exports.Spinner=O,exports.Stack=re,exports.Text=x,exports.Toggle=M;
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`);l=c(l,1);let 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 ee=(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})]})]})});ee.displayName=`Checkbox`;var te=(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})]})]})});te.displayName=`Toggle`;var ne=[`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 re({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 ne[t%ne.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 ie=({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}),ae={1:`grid-cols-1`,2:`grid-cols-2`,3:`grid-cols-3`,4:`grid-cols-4`,6:`grid-cols-6`,12:`grid-cols-12`},oe={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`},se={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`},ce={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`},le={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`},ue={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`},de={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`},fe={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`},pe={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`},me={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`},he={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`},ge={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`},_e={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`},ve={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`},ye=({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`,ae[t],n!==void 0&&oe[n],r!==void 0&&se[r],i!==void 0&&ce[i],o),children:e});ye.displayName=`Grid`;var be=({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&&le[t],n&&ue[n],r&&de[r],i&&fe[i],a&&pe[a],o&&me[o],s&&he[s],c&&ge[c],l&&_e[l],d&&ve[d],f),...p,children:e});be.displayName=`Col`;var xe=({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)(Se,{})}),(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)(Ce,{})})]}),(s||c)&&(0,u.jsx)(`p`,{className:(0,m.default)(`helper-text`,s&&`has-error`),children:s??c})]})};xe.displayName=`QuantityInput`;var Se=()=>(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`})}),Ce=()=>(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`})}),N=(e,t)=>Array.from({length:t-e+1},(t,n)=>e+n),we=(e,t,n)=>{if(t<=n*2+5)return N(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?[...N(1,3+n*2),`…`,t]:a&&!o?[1,`…`,...N(t-(2+n*2),t)]:[1,`…`,...N(r,i),`…`,t]},Te=({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}),Ee=({page:e,totalPages:t,onPageChange:n,siblingsCount:r=1})=>{let i=we(e,t,r);return(0,u.jsxs)(`nav`,{"aria-label":`Pagination`,className:`pagination`,children:[(0,u.jsx)(Te,{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)(Te,{active:t===e,onClick:()=>n(t),"aria-label":`Page ${t}`,"aria-current":t===e?`page`:void 0,children:t},t)),(0,u.jsx)(Te,{disabled:e>=t,onClick:()=>n(e+1),"aria-label":`Next page`,children:(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`w-4 h-4`,children:(0,u.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M8.25 4.5l7.5 7.5-7.5 7.5`})})})]})};function De(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function P(e={},t={}){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:De(t[n])&&De(e[n])&&Object.keys(t[n]).length>0&&P(e[n],t[n])})}var Oe={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function F(){let e=typeof document<`u`?document:{};return P(e,Oe),e}var ke={document:Oe,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function I(){let e=typeof window<`u`?window:{};return P(e,ke),e}function Ae(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function je(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function Me(e,t=0){return setTimeout(e,t)}function L(){return Date.now()}function Ne(e){let t=I(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}function Pe(e,t=`x`){let n=I(),r,i,a,o=Ne(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function R(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function Fe(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function z(...e){let t=Object(e[0]);for(let n=1;n<e.length;n+=1){let r=e[n];if(r!=null&&!Fe(r)){let e=Object.keys(Object(r)).filter(e=>e!==`__proto__`&&e!==`constructor`&&e!==`prototype`);for(let n=0,i=e.length;n<i;n+=1){let i=e[n],a=Object.getOwnPropertyDescriptor(r,i);a!==void 0&&a.enumerable&&(R(t[i])&&R(r[i])?r[i].__swiper__?t[i]=r[i]:z(t[i],r[i]):!R(t[i])&&R(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:z(t[i],r[i])):t[i]=r[i])}}}return t}function B(e,t,n){e.style.setProperty(t,n)}function Ie({swiper:e,targetPosition:t,side:n}){let r=I(),i=-e.translate,a=null,o,s=e.params.speed;e.wrapperEl.style.scrollSnapType=`none`,r.cancelAnimationFrame(e.cssModeFrameID);let c=t>i?`next`:`prev`,l=(e,t)=>c===`next`&&e>=t||c===`prev`&&e<=t,u=()=>{o=new Date().getTime(),a===null&&(a=o);let c=Math.max(Math.min((o-a)/s,1),0),d=i+(.5-Math.cos(c*Math.PI)/2)*(t-i);if(l(d,t)&&(d=t),e.wrapperEl.scrollTo({[n]:d}),l(d,t)){e.wrapperEl.style.overflow=`hidden`,e.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{e.wrapperEl.style.overflow=``,e.wrapperEl.scrollTo({[n]:d})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function V(e,t=``){let n=I(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function Le(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function Re(e,t){let n=I(),r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||=Le(e,t)),r}function H(e){try{console.warn(e);return}catch{}}function U(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Ae(t)),n}function ze(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Be(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function W(e,t){return I().getComputedStyle(e,null).getPropertyValue(t)}function G(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Ve(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function He(e,t,n){let r=I();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}function K(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function q(e,t=``){typeof trustedTypes<`u`?e.innerHTML=trustedTypes.createPolicy(`html`,{createHTML:e=>e}).createHTML(t):e.innerHTML=t}var Ue;function We(){let e=I(),t=F();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ge(){return Ue||=We(),Ue}var Ke;function qe({userAgent:e}={}){let t=Ge(),n=I(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),l=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r===`Win32`,p=r===`MacIntel`;return!l&&p&&t.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${o}x${s}`)>=0&&(l=i.match(/(Version)\/([\d.]+)/),l||=[0,1,`13_0_0`],p=!1),c&&!f&&(a.os=`android`,a.android=!0),(l||d||u)&&(a.os=`ios`,a.ios=!0),a}function Je(e={}){return Ke||=qe(e),Ke}var Ye;function Xe(){let e=I(),t=Je(),n=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(r()){let t=String(e.navigator.userAgent);if(t.includes(`Version/`)){let[e,r]=t.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));n=e<16||e===16&&r<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r(),o=a||i&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function Ze(){return Ye||=Xe(),Ye}function Qe({swiper:e,on:t,emit:n}){let r=I(),i=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(t=>{a=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,a=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,a=n?n.height:(t[0]||t).blockSize)}),(i!==n||a!==r)&&o()})}),i.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},l=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&r.ResizeObserver!==void 0){s();return}r.addEventListener(`resize`,o),r.addEventListener(`orientationchange`,l)}),t(`destroy`,()=>{c(),r.removeEventListener(`resize`,o),r.removeEventListener(`orientationchange`,l)})}function $e({swiper:e,extendParams:t,on:n,emit:r}){let i=[],a=I(),o=(t,n={})=>{let o=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(t.length===1){r(`observerUpdate`,t[0]);return}let n=function(){r(`observerUpdate`,t[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});o.observe(t,{attributes:n.attributes===void 0?!0:n.attributes,childList:e.isElement||(n.childList===void 0?!0:n).childList,characterData:n.characterData===void 0?!0:n.characterData}),i.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=Ve(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}var et={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]==`string`||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function tt(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(W(r,`padding-left`)||0,10)-parseInt(W(r,`padding-right`)||0,10),n=n-parseInt(W(r,`padding-top`)||0,10)-parseInt(W(r,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function nt(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}let n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,l=V(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:l.length,d=[],f=[],p=[],m=n.slidesOffsetBefore;typeof m==`function`&&(m=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h==`function`&&(h=n.slidesOffsetAfter.call(e));let g=e.snapGrid.length,_=e.slidesGrid.length,v=e.size-m-h,y=n.spaceBetween,b=-m,x=0,S=0;if(v===void 0)return;typeof y==`string`&&y.indexOf(`%`)>=0?y=parseFloat(y.replace(`%`,``))/100*v:typeof y==`string`&&(y=parseFloat(y)),e.virtualSize=-y-m-h,l.forEach(e=>{a?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),n.centeredSlides&&n.cssMode&&(B(r,`--swiper-centered-offset-before`,``),B(r,`--swiper-centered-offset-after`,``)),n.cssMode&&(B(r,`--swiper-slides-offset-before`,`${m}px`),B(r,`--swiper-slides-offset-after`,`${h}px`));let C=n.grid&&n.grid.rows>1&&e.grid;C?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let w,T=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>n.breakpoints[e].slidesPerView!==void 0).length>0;for(let r=0;r<u;r+=1){w=0;let i=l[r];if(!(i&&(C&&e.grid.updateSlide(r,i,l),W(i,`display`)===`none`))){if(s&&n.slidesPerView===`auto`)n.virtual.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&i&&(n.roundLengths&&(w=Math.floor(w)),i.style[e.getDirectionLabel(`width`)]=`${w}px`);else if(n.slidesPerView===`auto`){T&&(i.style[e.getDirectionLabel(`width`)]=``);let r=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),n.roundLengths)w=e.isHorizontal()?He(i,`width`,!0):He(i,`height`,!0);else{let e=t(r,`width`),n=t(r,`padding-left`),a=t(r,`padding-right`),o=t(r,`margin-left`),s=t(r,`margin-right`),c=r.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)w=e+o+s;else{let{clientWidth:t,offsetWidth:r}=i;w=e+n+a+o+s+(r-t)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),n.roundLengths&&(w=Math.floor(w))}else w=(v-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),i&&(i.style[e.getDirectionLabel(`width`)]=`${w}px`);i&&(i.swiperSlideSize=w),p.push(w),n.centeredSlides?(b=b+w/2+x/2+y,x===0&&r!==0&&(b=b-v/2-y),r===0&&(b=b-v/2-y),Math.abs(b)<1/1e3&&(b=0),n.roundLengths&&(b=Math.floor(b)),S%n.slidesPerGroup===0&&d.push(b),f.push(b)):(n.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(b),f.push(b),b=b+w+y),e.virtualSize+=w+y,x=w,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+h,a&&o&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+y}px`),C&&e.grid.updateWrapperSize(w,d),!n.centeredSlides){let t=n.slidesPerView!==`auto`&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView===`auto`||t),i=d.length;if(r){let e;if(n.slidesPerView===`auto`){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?y:0),t<=v);--n)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}let a=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),r?t<=i&&a.push(o):d[t]<=e.virtualSize-v&&a.push(o)}d=a,Math.floor(e.virtualSize-v)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-v))}if(s&&n.loop){let t=p[0]+y;if(n.slidesPerGroup>1){let r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(d.length===0&&(d=[0]),y!==0){let t=e.isHorizontal()&&a?`marginLeft`:e.getDirectionLabel(`marginRight`);l.filter((e,t)=>!n.cssMode||n.loop?!0:t!==l.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(y||0)}),e-=y;let t=e>v?e-v:0;d=d.map(e=>e<=0?-m:e>t?t+h:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(y||0)}),e-=y,e<v){let t=(v-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){B(r,`--swiper-centered-offset-before`,`${-d[0]}px`),B(r,`--swiper-centered-offset-after`,`${e.size/2-p[p.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit(`slidesLengthChange`),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),f.length!==_&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!s&&!n.cssMode&&(n.effect===`slide`||n.effect===`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}}function rt(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function it(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var at=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function ot(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e],m=f>=0&&f<=t.size-t.slidesSizesGrid[e],h=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;h&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),at(c,h,n.slideVisibleClass),at(c,m,n.slideFullyVisibleClass),c.progress=i?-u:u,c.originalProgress=i?-d:d}}function st(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}var ct=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function lt(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=e=>V(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(a)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${t}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`);else o?(c=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),l=t.find(e=>e.column===i-1)):c=t[i];c&&(o||(u=Be(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),l=ze(c,`.${n.slideClass}, swiper-slide`)[0],n.loop)),t.forEach(e=>{ct(e,e===c,n.slideActiveClass),ct(e,e===u,n.slideNextClass),ct(e,e===l,n.slidePrevClass)}),e.emitSlidesClasses()}var J=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},ut=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},dt=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{a.includes(t.column)&&ut(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&ut(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&ut(e,r)};function ft(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function pt(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(c===void 0&&(c=ft(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`));return}if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(c);return}let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){let e=t.slides.find(e=>e.column===c),n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){let e=t.slides[c].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:c}),t.initialized&&dt(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function mt(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute(`data-swiper-slide-index`),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var ht={updateSize:tt,updateSlides:nt,updateAutoHeight:rt,updateSlidesOffset:it,updateSlidesProgress:ot,updateProgress:st,updateSlidesClasses:lt,updateActiveIndex:pt,updateClickedSlide:mt};function gt(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=Pe(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function _t(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function vt(){return-this.snapGrid[0]}function yt(){return-this.snapGrid[this.snapGrid.length-1]}function bt(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return Ie({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var xt={getTranslate:gt,setTranslate:_t,minTranslate:vt,maxTranslate:yt,translateTo:bt};function St(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function Ct({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function wt(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Ct({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}function Tt(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Ct({swiper:n,runCallbacks:e,direction:t,step:`End`}))}var Et={setTransition:St,transitionStart:wt,transitionEnd:Tt};function Dt(e=0,t,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(!m&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;t===void 0&&(t=a.params.speed);let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;v=o>d?`next`:o<d?`prev`:`reset`;let y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(f&&-_===a.translate||!f&&_===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0)y&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return Ie({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}let b=Ze().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function Ot(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o+=i.virtual.slidesBefore;else{let e;if(a){let t=o*i.params.grid.rows;e=i.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)*1===t).column}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u=i.params.slidesPerView;u===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d||=e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e).column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function kt(e,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;e===void 0&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function At(e,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c||r.destroyed)return r;e===void 0&&(e=r.params.speed);let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a.map(e=>f(e)),h=i.freeMode&&i.freeMode.enabled,g=a[m.indexOf(p)-1];if(g===void 0&&(i.cssMode||h)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(g=h?a[e]:a[e>0?e-1:e])}let _=0;if(g!==void 0&&(_=o.indexOf(g),_<0&&(_=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic(`previous`,!0)+1,_=Math.max(_,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(_,e,t,n)}),!0;return r.slideTo(_,e,t,n)}function jt(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Mt(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function Nt(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i=e.getSlideIndexWhenGrid(e.clickedIndex),a,o=e.isElement?`swiper-slide`:`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(a):i>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(V(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),Me(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var Pt={slideTo:Dt,slideToLoop:Ot,slideNext:kt,slidePrev:At,slideReset:jt,slideToClosest:Mt,slideToClickedSlide:Nt};function Ft(e,t){let n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;let a=()=>{V(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)})},o=()=>{let e=V(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();let c=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%c!==0,u=s&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){let e=n.isElement?U(`swiper-slide`,[r.slideBlankClass]):U(`div`,[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(d(c-n.slides.length%c),n.recalcSlides(),n.updateSlides()):H(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),a()):(u&&(r.loopAddBlankSlides?(d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):H(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),a());let f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:`next`,initial:t})}function It({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:a,byController:o,byMousewheel:s}={}){let c=this;if(!c.params.loop)return;c.emit(`beforeLoopFix`);let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=c,{centeredSlides:m,slidesOffsetBefore:h,slidesOffsetAfter:g,initialSlide:_}=p,v=m||!!h||!!g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=d,c.emit(`loopFix`);return}let y=p.slidesPerView;y===`auto`?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),v&&y%2==0&&(y+=1));let b=p.slidesPerGroupAuto?y:p.slidesPerGroup,x=v?Math.max(b,Math.ceil(y/2)):b;x%b!==0&&(x+=b-x%b),x+=p.loopAdditionalSlides,c.loopedSlides=x;let S=c.grid&&p.grid&&p.grid.rows>1;l.length<y+x||c.params.effect===`cards`&&l.length<y+x*2?H(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):S&&p.grid.fill===`row`&&H("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let C=[],w=[],T=S?Math.ceil(l.length/p.grid.rows):l.length,E=a&&T-_<y&&!v,D=E?_:c.activeIndex;i===void 0?i=c.getSlideIndex(l.find(e=>e.classList.contains(p.slideActiveClass))):D=i;let O=n===`next`||!n,k=n===`prev`||!n,A=0,j=0,M=(S?l[i].column:i)+(v&&r===void 0?-y/2+.5:0);if(M<x){A=Math.max(x-M,b);for(let e=0;e<x-M;e+=1){let t=e-Math.floor(e/T)*T;if(S){let e=T-t-1;for(let t=l.length-1;t>=0;--t)l[t].column===e&&C.push(t)}else C.push(T-t-1)}}else if(M+y>T-x){j=Math.max(M-(T-x*2),b),E&&(j=Math.max(j,y-T+_+1));for(let e=0;e<j;e+=1){let t=e-Math.floor(e/T)*T;S?l.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect===`cards`&&l.length<y+x*2&&(w.includes(i)&&w.splice(w.indexOf(i),1),C.includes(i)&&C.splice(C.indexOf(i),1)),k&&C.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.prepend(l[e]),l[e].swiperLoopMoveDOM=!1}),O&&w.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.append(l[e]),l[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView===`auto`?c.updateSlides():S&&(C.length>0&&k||w.length>0&&O)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(C.length>0&&k){if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D+A]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D+Math.ceil(A),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){let e=S?C.length/p.grid.rows:C.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&O)if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D-j]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D-j,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=S?w.length/p.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){let a={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...a,slideTo:e.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...a,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit(`loopFix`)}function Lt(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Rt={loopCreate:Ft,loopFix:It,loopDestroy:Lt};function zt(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Bt(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Vt={setGrabCursor:zt,unsetGrabCursor:Bt};function Ht(e,t=this){function n(t){if(!t||t===F()||t===I())return null;t.assignedSlot&&(t=t.assignedSlot);let r=t.closest(e);return!r&&!t.getRootNode?null:r||n(t.getRootNode().host)}return n(t)}function Ut(e,t,n){let r=I(),{params:i}=e,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return a&&(n<=o||n>=r.innerWidth-o)?a===`prevent`?(t.preventDefault(),!0):!1:!0}function Wt(e){let t=this,n=F(),r=e;r.originalEvent&&(r=r.originalEvent);let i=t.touchEventsData;if(r.type===`pointerdown`){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type===`touchstart`&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type===`touchstart`){Ut(t,r,r.targetTouches[0].pageX);return}let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&r.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=r.target;if(a.touchEventsTarget===`wrapper`&&!Re(c,t.wrapperEl)||`which`in r&&r.which===3||`button`in r&&r.button>0||i.isTouched&&i.isMoved)return;let l=!!a.noSwipingClass&&a.noSwipingClass!==``,u=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&u&&(c=u[0]);let d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(f?Ht(d,c):c.closest(d))){t.allowClick=!0;return}if(a.swipeHandler&&!c.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let p=o.currentX,m=o.currentY;if(!Ut(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,i.touchStartTime=L(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&(r.pointerType===`mouse`||r.pointerType!==`mouse`&&!c.matches(i.focusableElements))&&n.activeElement.blur();let g=h&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||g)&&!c.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,r)}function Gt(e){let t=F(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type===`pointermove`&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let l;if(c.type===`touchmove`){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){a.startX=u,a.startY=d;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=L());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(o&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;else if(!o&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!==`mouse`&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit(`touchMove`,c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;let f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,c),r.startMoving===void 0&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||c.type===`touchmove`&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let m=n.isHorizontal()?f:p,h=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),h=Math.abs(h)*(o?1:-1)),a.diff=m,m*=i.touchRatio,o&&(m=-m,h=-h);let g=n.touchesDirection;n.swipeDirection=m>0?`prev`:`next`,n.touchesDirection=h>0?`prev`:`next`;let _=n.params.loop&&!i.cssMode,v=n.touchesDirection===`next`&&n.allowSlideNext||n.touchesDirection===`prev`&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit(`sliderFirstMove`,c)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit(`sliderMove`,c),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),m>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**b))):m<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**b))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Kt(e){let t=this,n=t.touchEventsData,r=e;r.originalEvent&&(r=r.originalEvent);let i;if(!(r.type===`touchend`||r.type===`touchcancel`)){if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}else if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return;if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:s,slidesGrid:c,enabled:l}=t;if(!l||!a.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let u=L(),d=u-n.touchStartTime;if(t.allowClick){let e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit(`tap click`,r),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=L(),Me(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(f=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=f>=-t.maxTranslate()&&!t.params.loop,m=0,h=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;c[e+t]===void 0?(p||f>=c[e])&&(m=e,h=c[c.length-1]-c[c.length-2]):(p||f>=c[e]&&f<c[e+t])&&(m=e,h=c[e+t]-c[e])}let g=null,_=null;a.rewind&&(t.isBeginning?_=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));let v=(f-c[m])/h,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+y):t.slideTo(m)),t.swipeDirection===`prev`&&(v>1-a.longSwipesRatio?t.slideTo(m+y):_!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(_):t.slideTo(m))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):(t.swipeDirection===`next`&&t.slideTo(g===null?m+y:g),t.swipeDirection===`prev`&&t.slideTo(_===null?m:_))}}function qt(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;if((t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){let t=o?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function Jt(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Yt(){let e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function Xt(e){let t=this;J(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update()}function Zt(){let e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}var Qt=(e,t)=>{let n=F(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;!i||typeof i==`string`||(n[c](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:s}),i[c](`touchstart`,e.onTouchStart,{passive:!1}),i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`touchmove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`touchend`,e.onTouchEnd,{passive:!0}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`touchcancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),n[c](`contextmenu`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,qt,!0):e[l](`observerUpdate`,qt,!0),i[c](`load`,e.onLoad,{capture:!0}))};function $t(){let e=this,{params:t}=e;e.onTouchStart=Wt.bind(e),e.onTouchMove=Gt.bind(e),e.onTouchEnd=Kt.bind(e),e.onDocumentTouchStart=Zt.bind(e),t.cssMode&&(e.onScroll=Yt.bind(e)),e.onClick=Jt.bind(e),e.onLoad=Xt.bind(e),Qt(e,`on`)}function en(){Qt(this,`off`)}var tn={attachEvents:$t,detachEvents:en},nn=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function rn(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=F(),s=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,c=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:o.querySelector(r.breakpointsBase),l=e.getBreakpoint(a,s,c);if(!l||e.currentBreakpoint===l)return;let u=(l in a?a[l]:void 0)||e.originalParams,d=nn(e,r),f=nn(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor(),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(u[t]===void 0)return;let n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let g=u.direction&&u.direction!==r.direction,_=r.loop&&(u.slidesPerView!==r.slidesPerView||g),v=r.loop;g&&n&&e.changeDirection(),z(e.params,u);let y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!y?e.disable():!h&&y&&e.enable(),e.currentBreakpoint=l,e.emit(`_beforeBreakpoint`,u),n&&(_?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit(`breakpoint`,u)}function an(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=I(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}var on={setBreakpoint:rn,getBreakpoint:an};function sn(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function cn(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=sn([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function ln(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var un={addClasses:cn,removeClasses:ln};function dn(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var fn={checkOverflow:dn},pn={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function mn(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){z(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){z(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),z(t,n)}}var hn={eventsEmitter:et,update:ht,translate:xt,transition:Et,slide:Pt,loop:Rt,grabCursor:Vt,events:tn,breakpoints:on,checkOverflow:fn,classes:un},gn={},_n=class e{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={},r=z({},r),n&&!r.el&&(r.el=n);let i=F();if(r.el&&typeof r.el==`string`&&i.querySelectorAll(r.el).length>1){let t=[];return i.querySelectorAll(r.el).forEach(n=>{let i=z({},r,{el:n});t.push(new e(i))}),t}let a=this;a.__swiper__=!0,a.support=Ge(),a.device=Je({userAgent:r.userAgent}),a.browser=Ze(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{typeof e==`function`&&a.modules.indexOf(e)<0&&a.modules.push(e)});let o={};return a.modules.forEach(e=>{e({params:r,swiper:a,extendParams:mn(r,o),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}),a.params=z({},z({},pn,o),gn,r),a.originalParams=z({},a.params),a.passedParams=z({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction===`horizontal`},isVertical(){return a.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit(`_swiper`),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=G(V(t,`.${n.slideClass}, swiper-slide`)[0]);return G(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:n}=e;e.slides=V(t,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize):0,t;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&J(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):V(n,r())[0];return!i&&t.params.createElements&&(i=U(`div`,t.params.wrapperClass),n.append(i),V(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||W(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||W(n,`direction`)===`rtl`),wrongRTL:W(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEach(e=>{e.complete?J(t,e):e.addEventListener(`load`,e=>{J(t,e.target)})}),dt(t),t.initialized=!0,dt(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),je(n)),n.destroyed=!0,null)}static extendDefaults(e){z(gn,e)}static get extendedDefaults(){return gn}static get defaults(){return pn}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(hn).forEach(e=>{Object.keys(hn[e]).forEach(t=>{_n.prototype[t]=hn[e][t]})}),_n.use([Qe,$e]);var vn=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function Y(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`&&!e.__swiper__}function X(e,t){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:Y(t[n])&&Y(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:X(e[n],t[n]):e[n]=t[n]})}function yn(e={}){return e.navigation&&e.navigation.nextEl===void 0&&e.navigation.prevEl===void 0}function bn(e={}){return e.pagination&&e.pagination.el===void 0}function xn(e={}){return e.scrollbar&&e.scrollbar.el===void 0}function Sn(e=``){let t=e.split(` `).map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(` `)}function Cn(e=``){return e?e.includes(`swiper-wrapper`)?e:`swiper-wrapper ${e}`:`swiper-wrapper`}function wn({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:s}){let c=r.filter(e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`),{params:l,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:m}=e,h,g,_,v,y,b,x,S;r.includes(`thumbs`)&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes(`controller`)&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(g=!0),r.includes(`pagination`)&&n.pagination&&(n.pagination.el||s)&&(l.pagination||l.pagination===!1)&&u&&!u.el&&(_=!0),r.includes(`scrollbar`)&&n.scrollbar&&(n.scrollbar.el||o)&&(l.scrollbar||l.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes(`navigation`)&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(l.navigation||l.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);let C=t=>{e[t]&&(e[t].destroy(),t===`navigation`?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),l[t].prevEl=void 0,l[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),l[t].el=void 0,e[t].el=void 0))};r.includes(`loop`)&&e.isElement&&(l.loop&&!n.loop?b=!0:!l.loop&&n.loop?x=!0:S=!0),c.forEach(e=>{if(Y(l[e])&&Y(n[e]))Object.assign(l[e],n[e]),(e===`navigation`||e===`pagination`||e===`scrollbar`)&&`enabled`in n[e]&&!n[e].enabled&&C(e);else{let t=n[e];(t===!0||t===!1)&&(e===`navigation`||e===`pagination`||e===`scrollbar`)?t===!1&&C(e):l[e]=n[e]}}),c.includes(`controller`)&&!g&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes(`children`)&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes(`virtual`)&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes(`children`)&&t&&l.loop&&(S=!0),h&&m.init()&&m.update(!0),g&&(e.controller.control=l.controller.control),_&&(e.isElement&&(!s||typeof s==`string`)&&(s=document.createElement(`div`),s.classList.add(`swiper-pagination`),s.part.add(`pagination`),e.el.appendChild(s)),s&&(l.pagination.el=s),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o==`string`)&&(o=document.createElement(`div`),o.classList.add(`swiper-scrollbar`),o.part.add(`scrollbar`),e.el.appendChild(o)),o&&(l.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!i||typeof i==`string`)&&(i=document.createElement(`div`),i.classList.add(`swiper-button-next`),q(i,e.navigation.arrowSvg),i.part.add(`button-next`),e.el.appendChild(i)),(!a||typeof a==`string`)&&(a=document.createElement(`div`),a.classList.add(`swiper-button-prev`),q(a,e.navigation.arrowSvg),a.part.add(`button-prev`),e.el.appendChild(a))),i&&(l.navigation.nextEl=i),a&&(l.navigation.prevEl=a),d.init(),d.update()),r.includes(`allowSlideNext`)&&(e.allowSlideNext=n.allowSlideNext),r.includes(`allowSlidePrev`)&&(e.allowSlidePrev=n.allowSlidePrev),r.includes(`direction`)&&e.changeDirection(n.direction,!1),(b||S)&&e.loopDestroy(),(x||S)&&e.loopCreate(),e.update()}function Tn(e={},t=!0){let n={on:{}},r={},i={};X(n,pn),n._emitClasses=!0,n.init=!1;let a={},o=vn.map(e=>e.replace(/_/,``)),s=Object.assign({},e);return Object.keys(s).forEach(s=>{e[s]!==void 0&&(o.indexOf(s)>=0?Y(e[s])?(n[s]={},i[s]={},X(n[s],e[s]),X(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]==`function`?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a[s]=e[s])}),[`navigation`,`pagination`,`scrollbar`].forEach(e=>{n[e]===!0&&(n[e]={}),n[e]===!1&&delete n[e]}),{params:n,passedParams:i,rest:a,events:r}}function En({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},o){yn(o)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),bn(o)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),xn(o)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}function Dn(e,t,n,r,i){let a=[];if(!t)return a;let o=e=>{a.indexOf(e)<0&&a.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join(``)!==t.join(``)&&o(`children`),r.length!==n.length&&o(`children`)}return vn.filter(e=>e[0]===`_`).map(e=>e.replace(/_/,``)).forEach(n=>{if(n in e&&n in t)if(Y(e[n])&&Y(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length===i.length?(r.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&o(n)})):o(n)}else e[n]!==t[n]&&o(n)}),a}var On=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit(`_virtualUpdated`),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Z(){return Z=Object.assign?Object.assign.bind():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},Z.apply(this,arguments)}function kn(e){return e.type&&e.type.displayName&&e.type.displayName.includes(`SwiperSlide`)}function An(e){let t=[];return l.default.Children.toArray(e).forEach(e=>{kn(e)?t.push(e):e.props&&e.props.children&&An(e.props.children).forEach(e=>t.push(e))}),t}function jn(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return l.default.Children.toArray(e).forEach(e=>{if(kn(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=An(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n[`container-end`].push(e)}else n[`container-end`].push(e)}),{slides:t,slots:n}}function Mn(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?`right`:`left`]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,u=[];for(let e=s;e<c;e+=1)e>=a&&e<=o&&u.push(t[r(e)]);return u.map((t,n)=>l.default.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}function Q(e,t){return typeof window>`u`?(0,l.useEffect)(e,t):(0,l.useLayoutEffect)(e,t)}var Nn=(0,l.createContext)(null),Pn=(0,l.createContext)(null),Fn=(0,l.forwardRef)(({className:e,tag:t=`div`,wrapperTag:n=`div`,children:r,onSwiper:i,...a}={},o)=>{let s=!1,[c,u]=(0,l.useState)(`swiper`),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(!1),h=(0,l.useRef)(!1),g=(0,l.useRef)(null),_=(0,l.useRef)(null),v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),S=(0,l.useRef)(null),C=(0,l.useRef)(null),{params:w,passedParams:T,rest:E,events:D}=Tn(a),{slides:O,slots:k}=jn(r),A=()=>{m(!p)};Object.assign(w.on,{_containerClasses(e,t){u(t)}});let j=()=>{Object.assign(w.on,D),s=!0;let e={...w};if(delete e.wrapperClass,_.current=new _n(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=O;let e={cache:!1,slides:O,renderExternal:f,renderExternalUpdate:!1};X(_.current.params.virtual,e),X(_.current.originalParams.virtual,e)}};g.current||j(),_.current&&_.current.on(`_beforeBreakpoint`,A);let M=()=>{s||!D||!_.current||Object.keys(D).forEach(e=>{_.current.on(e,D[e])})},ee=()=>{!D||!_.current||Object.keys(D).forEach(e=>{_.current.off(e,D[e])})};(0,l.useEffect)(()=>()=>{_.current&&_.current.off(`_beforeBreakpoint`,A)}),(0,l.useEffect)(()=>{!h.current&&_.current&&(_.current.emitSlidesClasses(),h.current=!0)}),Q(()=>{if(o&&(o.current=g.current),g.current)return _.current.destroyed&&j(),En({el:g.current,nextEl:b.current,prevEl:x.current,paginationEl:S.current,scrollbarEl:C.current,swiper:_.current},w),i&&!_.current.destroyed&&i(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),Q(()=>{M();let e=Dn(T,v.current,O,y.current,e=>e.key);return v.current=T,y.current=O,e.length&&_.current&&!_.current.destroyed&&wn({swiper:_.current,slides:O,passedParams:T,changedParams:e,nextEl:b.current,prevEl:x.current,scrollbarEl:C.current,paginationEl:S.current}),()=>{ee()}}),Q(()=>{On(_.current)},[d]);function te(){return w.virtual?Mn(_.current,O,d):O.map((e,t)=>l.default.cloneElement(e,{swiper:_.current,swiperSlideIndex:t}))}return l.default.createElement(t,Z({ref:g,className:Sn(`${c}${e?` ${e}`:``}`)},E),l.default.createElement(Pn.Provider,{value:_.current},k[`container-start`],l.default.createElement(n,{className:Cn(w.wrapperClass)},k[`wrapper-start`],te(),k[`wrapper-end`]),yn(w)&&l.default.createElement(l.default.Fragment,null,l.default.createElement(`div`,{ref:x,className:`swiper-button-prev`}),l.default.createElement(`div`,{ref:b,className:`swiper-button-next`})),xn(w)&&l.default.createElement(`div`,{ref:C,className:`swiper-scrollbar`}),bn(w)&&l.default.createElement(`div`,{ref:S,className:`swiper-pagination`}),k[`container-end`]))});Fn.displayName=`Swiper`;var In=(0,l.forwardRef)(({tag:e=`div`,children:t,className:n=``,swiper:r,zoom:i,lazy:a,virtualIndex:o,swiperSlideIndex:s,...c}={},u)=>{let d=(0,l.useRef)(null),[f,p]=(0,l.useState)(`swiper-slide`),[m,h]=(0,l.useState)(!1);function g(e,t,n){t===d.current&&p(n)}Q(()=>{if(s!==void 0&&(d.current.swiperSlideIndex=s),u&&(u.current=d.current),!(!d.current||!r)){if(r.destroyed){f!==`swiper-slide`&&p(`swiper-slide`);return}return r.on(`_slideClass`,g),()=>{r&&r.off(`_slideClass`,g)}}}),Q(()=>{r&&d.current&&!r.destroyed&&p(r.getSlideClasses(d.current))},[r]);let _={isActive:f.indexOf(`swiper-slide-active`)>=0,isVisible:f.indexOf(`swiper-slide-visible`)>=0,isFullyVisible:f.indexOf(`swiper-slide-fully-visible`)>=0,isPrev:f.indexOf(`swiper-slide-prev`)>=0,isNext:f.indexOf(`swiper-slide-next`)>=0},v=()=>typeof t==`function`?t(_):t;return l.default.createElement(e,Z({ref:d,className:Sn(`${f}${n?` ${n}`:``}`),"data-swiper-slide-index":o,onLoad:()=>{h(!0)}},c),i&&l.default.createElement(Nn.Provider,{value:_},l.default.createElement(`div`,{className:`swiper-zoom-container`,"data-swiper-zoom":typeof i==`number`?i:void 0},v(),a&&!m&&l.default.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&l.default.createElement(Nn.Provider,{value:_},v(),a&&!m&&l.default.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});In.displayName=`SwiperSlide`;function Ln(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=V(e.el,`.${r[i]}`)[0];a||(a=U(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}var Rn=`<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>`;function zn({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:Rn};function i(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n&&n.length>1&&e.el.querySelectorAll(t).length===1?n=e.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function a(t,n){let r=e.params.navigation;t=K(t),t.forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function o(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){a(n,!1),a(t,!1);return}a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function c(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function l(){let t=e.params.navigation;if(e.params.navigation=Ln(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!(t.nextEl||t.prevEl))return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=K(n),r=K(r);let a=(n,r)=>{if(n){if(t.addIcons&&n.matches(`.swiper-button-next,.swiper-button-prev`)&&!n.querySelector(`svg`)){let e=document.createElement(`div`);q(e,Rn),n.appendChild(e.querySelector(`svg`)),e.remove()}n.addEventListener(`click`,r===`next`?c:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};n.forEach(e=>a(e,`next`)),r.forEach(e=>a(e,`prev`))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=K(t),n=K(n);let r=(t,n)=>{t.removeEventListener(`click`,n===`next`?c:s),t.classList.remove(...e.params.navigation.disabledClass.split(` `))};t.forEach(e=>r(e,`next`)),n.forEach(e=>r(e,`prev`))}n(`init`,()=>{e.params.navigation.enabled===!1?f():(l(),o())}),n(`toEdge fromEdge lock unlock`,()=>{o()}),n(`destroy`,()=>{u()}),n(`enable disable`,()=>{let{nextEl:t,prevEl:n}=e.navigation;if(t=K(t),n=K(n),e.enabled){o();return}[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n(`click`,(t,n)=>{let{nextEl:i,prevEl:a}=e.navigation;i=K(i),a=K(a);let o=n.target,s=a.includes(o)||i.includes(o);if(e.isElement&&!s){let e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||a.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):a.length&&(t=a[0].classList.contains(e.params.navigation.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...i,...a].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(` `)),l(),o()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(` `)),u()};Object.assign(e.navigation,{enable:d,disable:f,update:o,init:l,destroy:u})}function $(e=``){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}function Bn({swiper:e,extendParams:t,on:n,emit:r}){let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&(t.classList.add(`${r}-${n}`),t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&t.classList.add(`${r}-${n}-${n}`)))}function l(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function u(t){let n=t.target.closest($(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=G(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;let t=l(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function d(){let t=e.rtl,n=e.params.pagination;if(s())return;let i=e.pagination.el;i=K(i);let l,u,d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,f=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,l=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(u=e.previousIndex||0,l=e.activeIndex||0):(l=e.snapIndex,u=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s,d,f;if(n.dynamicBullets&&(a=He(r[0],e.isHorizontal()?`width`:`height`,!0),i.forEach(t=>{t.style[e.isHorizontal()?`width`:`height`]=`${a*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&u!==void 0&&(o+=l-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(l-o,0),d=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(d+s)/2),r.forEach(e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=G(t);r===l?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&(r>=s&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&c(t,`prev`),r===d&&c(t,`next`))});else{let t=r[l];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===l?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[d];for(let e=s;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));c(e,`prev`),c(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-f*a,s=t?`right`:`left`;r.forEach(t=>{t.style[e.isHorizontal()?s:`top`]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll($(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(l+1)}),t.querySelectorAll($(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(f)})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(l+1)/f,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll($(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(q(t,n.renderCustom(e,l+1,f)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function f(){let t=e.params.pagination;if(s())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,i=e.pagination.el;i=K(i);let a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&q(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...n.querySelectorAll($(t.bulletClass)))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function p(){e.params.pagination=Ln(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=e.params.pagination;if(!t.el)return;let n;typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||n.length===0)&&(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>Ve(t,`.swiper`)[0]===e.el))),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=K(n),n.forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,u),e.enabled||n.classList.add(t.lockClass)}))}function m(){let t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=K(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,u))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:n}=e.pagination;n=K(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{e.params.pagination.enabled===!1?g():(p(),f(),d())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&d()}),n(`snapIndexChange`,()=>{d()}),n(`snapGridLengthChange`,()=>{f(),d()}),n(`destroy`,()=>{m()}),n(`enable disable`,()=>{let{el:t}=e.pagination;t&&(t=K(t),t.forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.pagination.lockClass)))}),n(`lock unlock`,()=>{d()}),n(`click`,(t,n)=>{let i=n.target,a=K(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(e.params.pagination.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=K(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=K(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:h,disable:g,render:f,update:d,init:p,destroy:m})}function Vn({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,s=i&&i.autoplay?i.autoplay.delay:3e3,c=i&&i.autoplay?i.autoplay.delay:3e3,l,u=new Date().getTime(),d,f,p,m,h,g;function _(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener(`transitionend`,_),!(g||t.detail&&t.detail.bySwiperTouchMove)&&T())}let v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&=(c=l,!1);let t=e.autoplay.paused?l:u+c-new Date().getTime();e.autoplay.timeLeft=t,r(`autoplayTimeLeft`,t,t/s),o=requestAnimationFrame(()=>{v()})},y=()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains(`swiper-slide-active`)):e.slides[e.activeIndex],t)return parseInt(t.getAttribute(`data-swiper-autoplay`),10)},b=()=>{let t=e.params.autoplay.delay,n=y();return!Number.isNaN(n)&&n>0&&(t=n),t},x=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),v();let n=t;n===void 0&&(n=b(),s=n,c=n),l=n;let i=e.params.speed,d=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),r(`autoplay`)):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),r(`autoplay`)):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),r(`autoplay`)):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,i,!0,!0),r(`autoplay`)),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return n>0?(clearTimeout(a),a=setTimeout(()=>{d()},n)):requestAnimationFrame(()=>{d()}),n},S=()=>{u=new Date().getTime(),e.autoplay.running=!0,x(),r(`autoplayStart`)},C=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),r(`autoplayStop`)},w=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),t||(h=!0);let i=()=>{r(`autoplayPause`),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener(`transitionend`,_):T()};if(e.autoplay.paused=!0,n){i();return}l=(l||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&l<0&&!e.params.loop)&&(l<0&&(l=0),i())},T=()=>{e.isEnd&&l<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),h?(h=!1,x(l)):x(),e.autoplay.paused=!1,r(`autoplayResume`))},E=()=>{if(e.destroyed||!e.autoplay.running)return;let t=F();t.visibilityState===`hidden`&&(h=!0,w(!0)),t.visibilityState===`visible`&&T()},D=t=>{t.pointerType===`mouse`&&(h=!0,g=!0,!(e.animating||e.autoplay.paused)&&w(!0))},O=t=>{t.pointerType===`mouse`&&(g=!1,e.autoplay.paused&&T())},k=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener(`pointerenter`,D),e.el.addEventListener(`pointerleave`,O))},A=()=>{e.el&&typeof e.el!=`string`&&(e.el.removeEventListener(`pointerenter`,D),e.el.removeEventListener(`pointerleave`,O))},j=()=>{F().addEventListener(`visibilitychange`,E)},M=()=>{F().removeEventListener(`visibilitychange`,E)};n(`init`,()=>{e.params.autoplay.enabled&&(k(),j(),S())}),n(`destroy`,()=>{A(),M(),e.autoplay.running&&C()}),n(`_freeModeStaticRelease`,()=>{(p||h)&&T()}),n(`_freeModeNoMomentumRelease`,()=>{e.params.autoplay.disableOnInteraction?C():w(!0,!0)}),n(`beforeTransitionStart`,(t,n,r)=>{e.destroyed||!e.autoplay.running||(r||!e.params.autoplay.disableOnInteraction?w(!0,!0):C())}),n(`sliderFirstMove`,()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){C();return}f=!0,p=!1,h=!1,m=setTimeout(()=>{h=!0,p=!0,w(!0)},200)}}),n(`touchEnd`,()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(m),clearTimeout(a),e.params.autoplay.disableOnInteraction){p=!1,f=!1;return}p&&e.params.cssMode&&T(),p=!1,f=!1}}),n(`slideChange`,()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(l=b(),s=b())}),Object.assign(e.autoplay,{start:S,stop:C,pause:w,resume:T})}var Hn=({images:e,autoPlay:t=!1})=>{if(e.length===0)return null;let n=e.map(e=>(0,u.jsx)(In,{children:(0,u.jsx)(`img`,{src:e})}));return(0,u.jsx)(Fn,{spaceBetween:30,centeredSlides:!0,autoplay:typeof t==`number`?{delay:t,disableOnInteraction:!1}:void 0,pagination:{clickable:!0},navigation:!0,modules:[Vn,Bn,zn],className:`swiper`,children:n})};function Un({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 Wn(){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 Gn({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)(Wn,{}),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)(Un,{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)(Kn,{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)(Un,{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)(Kn,{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)(qn,{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)(Jn,{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 Kn({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 qn({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 Jn({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 Yn({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||Xn(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)(Yn,{node:e,activeId:t,onSelect:n,showCounts:r,depth:i+1,defaultExpandAll:a},e.id))})]})}function Xn(e,t){return!t||!e.children?!1:e.children.some(e=>e.id===t||Xn(e,t))}function Zn({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)(Yn,{node:e,activeId:t,onSelect:s,showCounts:r,depth:0,defaultExpandAll:i},e.id))})})}function Qn({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 $n({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)(Qn,{item:d,onNavigate:e=>n?.(e),onClose:()=>i(null)})})]})}function er({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 tr({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 nr({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)(tr,{filled:t<=Math.round(e)},t))}),t!==void 0&&(0,u.jsxs)(`span`,{className:`text-xs text-gray-400`,children:[`(`,t,`)`]})]})}function rr(e){let t=e.toLowerCase();return t===`sale`||t===`akce`?`danger`:t===`new`||t===`nové`?`primary`:t===`hot`?`warning`:`default`}function ir(e,t=`Kč`){return`${e.toLocaleString(`cs-CZ`)} ${t}`}function ar(e,t){return Math.round((1-t/e)*100)}function or({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:rr(e.badge),size:`sm`,children:e.badge===`sale`&&p?`-${ar(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)(nr,{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:ir(e.price,e.currency)}),p&&(0,u.jsx)(`span`,{className:`text-sm text-gray-400 line-through`,children:ir(e.originalPrice,e.currency)})]})]})]})}var sr={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`},cr=[{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 lr(){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 ur({products:e,totalCount:t,page:n=1,onPageChange:r,perPage:i=20,columns:a=4,sortOptions:o=cr,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 ${sr[a]}`,children:Array.from({length:i>12?12:i}).map((e,t)=>(0,u.jsx)(lr,{},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 ${sr[a]}`,children:e.map(e=>(0,u.jsx)(or,{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)(Ee,{page:n,totalPages:x,onPageChange:r})})]})}var dr={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`},fr={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`}},pr={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`}},mr={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 hr({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=fr[s],g=pr[o],_=mr[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`,dr[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?gr(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 gr(e){return e===`default`||e===`outline`?`primary`:`secondary`}function _r(){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 vr(){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 yr(){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 br(){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 xr(){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 Sr(){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 Cr(){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 wr(){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 Tr(){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 Er={facebook:xr,instagram:Sr,twitter:Cr,youtube:wr,tiktok:Tr},Dr={phone:_r,email:vr,address:yr,hours:br};function Or(e){if(!e)return null;if(typeof e==`string`){let t=Dr[e];return t?(0,u.jsx)(t,{}):null}return e}function kr(e){if(typeof e==`string`){let t=Er[e];return t?(0,u.jsx)(t,{}):null}return e}function Ar({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=Or(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:kr(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=re,exports.Badge=S,exports.BannerCarousel=er,exports.Button=h,exports.CallToAction=hr,exports.Card=w,exports.CardBody=E,exports.CardFooter=D,exports.CardHeader=T,exports.Carousel=Hn,exports.CategoryTree=Zn,exports.Checkbox=ee,exports.Col=be,exports.Container=f,exports.Footer=Ar,exports.Grid=ye,exports.Header=Gn,exports.Heading=b,exports.IconButton=_,exports.Input=v,exports.LoadingSpin=g,exports.Main=p,exports.MegaMenu=$n,exports.Modal=M,exports.Pagination=Ee,exports.ProductCard=or,exports.ProductGrid=ur,exports.QuantityInput=xe,exports.Select=y,exports.Spinner=O,exports.Stack=ie,exports.Text=x,exports.Toggle=te;
2
2
  //# sourceMappingURL=index.cjs.map