"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[8],{24: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 i=r(0);r(25),r(26);const n=r(1),s=a(r(27)),o=r(1),l=a(r(55));r(56),r(57);const d=r(50),{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,n.useRef)(null),[f,p]=(0,o.useState)(0),[v,C]=(0,o.useState)(!0);return(0,n.useEffect)((()=>{C(!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,i.jsxs)("div",{className:`${u} mainContainerImageCarousel ${v&&" jsDisabled "} ${a}`,children:[" ",(0,i.jsx)("button",{className:`arrow arrowPrev ${c} ${h}`,onClick:e=>{e.preventDefault(),l.current?.slickPrev()},"aria-label":"Previous slide",children:(0,i.jsx)(d.Arrow,{})})," ",(0,i.jsx)("button",{className:`arrow arrowNext ${c} ${m}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},"aria-label":"Next slide",children:(0,i.jsx)(d.Arrow,{})}),(0,i.jsx)(s.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{p(e)},children:t})]})}},50:(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"})})}},19:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.modifyTitle=t.limitedProductByVariety=t.isProductsAvailableInCurrentCountry=void 0,t.isProductsAvailableInCurrentCountry=({product:e,countryCode:t})=>{if(!e)return!1;const r=e?.variants[0],a=r?.variantProductsPricing;return a?.some((e=>e.country===t))},t.limitedProductByVariety=({varietyData:e,limitedEditionFlags:r,productsExpandYourPalate:a,countryCode:i,featureInternationalization:n})=>e.filter((e=>{if(!r.peppermintMochaEnabled&&"Peppermint Mocha"===e.varietyName)return!1;if(!r.gingerbreadCookieEnabled&&"Gingerbread Cookie"===e.varietyName)return!1;if(!r.cherryChocolateWaffleConeEnabled&&"Cherry Chocolate Waffle Cone"===e.varietyName)return!1;if(n){if(!e.isLimited)return!1;const r=a.find((t=>t.handle===e.handle));return(0,t.isProductsAvailableInCurrentCountry)({product:r,countryCode:i})}return e.isLimited})),t.modifyTitle=e=>"Cacao Salt Caramel Peanut"===e?"Cacao Salt
Caramel Peanut":e},23: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 i=r(0),n=a(r(171));t.RatingStars=({rating:e=0,numberOfStars:t,starDimension:r,starRatedColor:a,starEmptyColor:s})=>(0,i.jsx)("div",{className:"starRatings",style:{height:"23px"},children:(0,i.jsx)(n.default,{rating:Number(e||0),starRatedColor:a,starEmptyColor:s,numberOfStars:t,name:"rating",starDimension:r,starSpacing:"1px"})})},22: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 i=r(0),n=(r(2),a(r(44))),s=r(64),{mainContainer:o,title:l,starsContainer:d,carouselContainer:u,slideContainer:c,slideTitle:h,slideDescription:m,bottomSlideContainer:f,slideProduct:p,slideAuthor:v}=n.default;t.Reviews=function(){return(0,i.jsxs)("div",{className:`ReviewsMainContainer ${o}`,children:[(0,i.jsx)("h2",{className:`${l} title`,children:"Reviews Are in"}),(0,i.jsx)("div",{className:`${u} carouselContainer `,children:(0,i.jsx)(s.SlidesCarousel,{carouselSettings:{infinite:!0,dots:!0,speed:500,slidesToShow:1,slidesPerRow:1,slidesToScroll:1,centerMode:!1,centerPadding:"0",variableWidth:!0},arrowStyles:n.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,i.jsx)("div",{className:`${c} slideContainer`,children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("a",{className:`ReviewsStarsContainer ${d}`,href:"/pages/reviews",children:Array.from({length:e.ratingNumber}).map((e=>"★"))}),(0,i.jsx)("label",{className:`slideTitle ${h}`,children:e.title}),(0,i.jsx)("p",{className:`slideDescription ${m}`,children:e.description})]}),(0,i.jsxs)("div",{className:`bottomSlideContainer ${f}`,children:[(0,i.jsx)("p",{className:p,children:e.product}),(0,i.jsx)("p",{className:`slideAuthor ${v}`,children:e.author})]})]})},t)))})})]})}},64: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 i=r(0);r(25),r(26);const n=r(1),s=a(r(27)),o=r(1),l=a(r(46));r(47);const d=r(161),{mainContainer:u,arrow:c,arrowNext:h}=l.default;t.SlidesCarousel=({className:e="",children:t,carouselSettings:r,arrowStyles:a})=>{const l=(0,n.useRef)(null),[,m]=(0,o.useState)(0);return(0,i.jsxs)("div",{className:`${u} mainContainerReviews `,children:[(0,i.jsx)("div",{className:`${c} ${h} ${a}`,onClick:e=>{e.preventDefault(),l.current?.slickNext()},children:(0,i.jsx)(d.Arrow,{})}),(0,i.jsx)(s.default,{ref:l,arrows:!1,className:`${e}`,...r,afterChange:e=>{m(e)},children:t})]})}},161:(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)"})]})}}}]);