"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[19],{43:function(e,t,s){var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=d(s(219));t.default=e=>(0,r.default)(Object.assign({centerText:!1},e))},219:function(e,t,s){var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(0),l=(d(s(2)),d(s(53))),c=d(s(10)),i=d(s(1)),n=d(s(9)),o=d(s(71));t.default=function({heading:e,columns:t,rows:s,collectionHandle:d,products:a,cta:u,ctaText:m,centerText:f=!1,showProductColors:h=!0,useSharedState:g}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",Object.assign({className:(0,i.default)("mb-3 md:mb-6",f&&"text-center")},{children:(0,r.jsx)(n.default,Object.assign({component:"h2"},{children:e}))})),(0,r.jsx)("div",Object.assign({className:"overflow-x-auto md:overflow-visible"},{children:(0,r.jsx)("ul",Object.assign({className:(0,i.default)("flex items-stretch -mx-1.5","md:grid md:flex-none md:-m-3",f&&"items-center",1===s&&"md:grid-rows-1",2===s&&"md:grid-rows-2",3===s&&"md:grid-rows-3",4===s&&"md:grid-rows-4",2===t&&"md:grid-cols-2",3===t&&"md:grid-cols-3",4===t&&"md:grid-cols-4",5===t&&"md:grid-cols-5",6===t&&"md:grid-cols-6",7===t&&"md:grid-cols-7",8===t&&"md:grid-cols-8",o.default.productsContainer)},{children:(null==a?void 0:a.length)>0&&a.slice(0,s*t).map(((e,t)=>(0,r.jsx)(l.default,{handle:d,product:e,centerText:f,showProductColors:h,useSharedState:g},e.handle)))}))})),m&&(0,r.jsx)("div",Object.assign({className:(0,i.default)("flex justify-center mt-5 w-full","md:mt-8")},{children:(0,r.jsx)(c.default,Object.assign({href:u.href,shineOnHover:!0},{children:m}))}))]})}}}]);