"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[8],{47:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Carousel=void 0;const s=r(0);r(48),r(49);const i=r(1),n=a(r(50)),o=r(1),l=a(r(124));r(125),r(126);const d=r(88),{mainContainer:u,arrow:c,arrowPrev:h,arrowNext:m,hidden:f}=l.default;t.Carousel=({className:e="",children:t,carouselSettings:r,arrowStyles:a})=>{const l=(0,i.useRef)(null),[f,p]=(0,o.useState)(0),[w,v]=(0,o.useState)(!0);return(0,i.useEffect)((()=>{v(!1);const e=e=>{"ArrowLeft"===e.key?l.current?.slickPrev():"ArrowRight"===e.key&&l.current?.slickNext()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[]),(0,s.jsxs)("div",{className:`${u} mainContainerImageCarousel ${w&&" jsDisabled "} ${a}`,children:[" ",(0,s.jsx)("button",{className:`arrow arrowPrev ${c} ${h}`,onClick:e=>{e.preventDefault(),l.current?.slickPrev()},"aria-label":"Previous slide",children:(0,s.jsx)(d.Arrow,{})})," ",(0,s.jsx)("button",{className:`arrow arrowNext ${c} ${m}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},"aria-label":"Next slide",children:(0,s.jsx)(d.Arrow,{})}),(0,s.jsx)(n.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{p(e)},children:t})]})}},88:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const a=r(0);r(2),t.Arrow=function({}){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",width:"40",height:"40",children:(0,a.jsx)("path",{d:"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"})})}},46:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingStars=void 0;const s=r(0),i=a(r(372));t.RatingStars=({rating:e=0,numberOfStars:t,starDimension:r,starRatedColor:a,starEmptyColor:n})=>(0,s.jsx)("div",{className:"starRatings",style:{height:"23px"},children:(0,s.jsx)(i.default,{rating:Number(e||0),starRatedColor:a,starEmptyColor:n,numberOfStars:t,name:"rating",starDimension:r,starSpacing:"1px"})})},45:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Reviews=void 0;const s=r(0),i=(r(2),a(r(82))),n=r(132),{mainContainer:o,title:l,starsContainer:d,carouselContainer:u,slideContainer:c,slideTitle:h,slideDescription:m,bottomSlideContainer:f,slideProduct:p,slideAuthor:w}=i.default;t.Reviews=function(){return(0,s.jsxs)("div",{className:`ReviewsMainContainer ${o}`,children:[(0,s.jsx)("h2",{className:`${l} title`,children:"Reviews Are in"}),(0,s.jsx)("div",{className:`${u} carouselContainer `,children:(0,s.jsx)(n.SlidesCarousel,{carouselSettings:{infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0},arrowStyles:i.default.arrowStyles,children:[{title:"I’d eat this every day.",description:"Its been hard to find a bar that tastes good and is gluten free, dairy free, and has no whey protein. I know it is a lot to ask haha but this bar is it. There is a more natural feeling to this bar that tastes like I am eating something real.",product:"Cacao Salt Caramel Peanut",author:"Alex M.",ratingNumber:5},{title:"Wow, so good!",description:"This bar isn’t chalky like most protein bars and actually has a great aftertaste.",product:"Espresso Vanilla Cinnamon",author:"Madison V. ",ratingNumber:5},{title:"First protein bar I don’t get sick of.",description:"I usually can’t more than a couple of bites of a protein bar before I get bored and throw it away. This bar tastes elevated and made me want to actually keep eating it.",product:"Cacao Salt Caramel Peanut",author:"Jess B.",ratingNumber:5},{title:"Finally, a perfect bar.",description:"Finally, after so many bars & searching for years... these are the most PERFECT bars especially when you need to get that protein in without the sugar!",product:"Dark Chocolate Coconut",author:"Terra K.",ratingNumber:5},{title:"Best of its kind!",description:"I'm a personal trainer and nutritionist and these are some of the best bars I've found for flavor and nutrition.",product:"Cacao Salt Caramel Peanut",author:"Kara S.",ratingNumber:5},{title:"In truth, truly surprised.",description:"Truly surprised I dig this flavor as much as I do. Admittedly, it took 2. Something about it reminds me of my Favorite cookie as a kid: a Linzer tart.",product:"",author:"Marnie A.",ratingNumber:4},{title:"We ate the entire box in the first week.",description:"Between myself and my 17-year-old son (who is a picky eater) we ate all the bars in one week. Delicious!",product:"Dark Chocolate Coconut",author:"Angela H.",ratingNumber:5},{title:"Pretty good for a protein bar.",description:"I don’t really eat protein bars but was interested in the collagen. Perhaps a little more sugar would make it even better.",product:"Cacao Salt Caramel Peanut",author:"Morgan F.",ratingNumber:3}]?.map(((e,t)=>(0,s.jsx)("div",{className:`${c} slideContainer`,children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{className:`ReviewsStarsContainer ${d}`,href:"/pages/reviews",children:Array.from({length:e.ratingNumber}).map((e=>"★"))}),(0,s.jsx)("label",{className:`slideTitle ${h}`,children:e.title}),(0,s.jsx)("p",{className:`slideDescription ${m}`,children:e.description})]}),(0,s.jsxs)("div",{className:`bottomSlideContainer ${f}`,children:[(0,s.jsx)("p",{className:p,children:e.product}),(0,s.jsx)("p",{className:`slideAuthor ${w}`,children:e.author})]})]})},t)))})})]})}},132:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SlidesCarousel=void 0;const s=r(0);r(48),r(49);const i=r(1),n=a(r(50)),o=r(1),l=a(r(84));r(85);const d=r(362),{mainContainer:u,arrow:c,arrowNext:h}=l.default;t.SlidesCarousel=({className:e="",children:t,carouselSettings:r,arrowStyles:a})=>{const l=(0,i.useRef)(null),[,m]=(0,o.useState)(0);return(0,s.jsxs)("div",{className:`${u} mainContainerReviews `,children:[(0,s.jsx)("div",{className:`${c} ${h} ${a}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},children:(0,s.jsx)(d.Arrow,{})}),(0,s.jsx)(n.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{m(e)},children:t})]})}},362:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=void 0;const a=r(0);r(2),t.Arrow=function({}){return(0,a.jsxs)("svg",{viewBox:"0 0 100 100",children:[(0,a.jsx)("title",{children:"Next"}),(0,a.jsx)("path",{d:"M24,56L100,56L100,43L24,43L52,15L43,6L0,50L43,94L52,85L24,56Z",class:"arrow",transform:"translate(100, 100) rotate(180)"})]})}}}]);