"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[55],{265:(e,r,a)=>{var s=a(0),t=a(281),n=a(2),p=a(9),i=a(82),c=a(3);const{wrapper:l,wrapperName:o,wrapperNameBrand:d,wrapperNameTitle:j,wrapperStars:w,wrapperDescription:m,wrapperAuthor:h,wrapperAuthorName:g,wrapperAuthorSize:b,wrapperDate:u}={wrapper:"Z1AYTJYd",wrapperName:"tgVbz0IA",wrapperNameBrand:"hP0LptwD",wrapperNameTitle:"qjX1fluG",wrapperStars:"I_tpbmOh",wrapperDescription:"eDhoWfIS",wrapperAuthor:"IQo50RcX",wrapperAuthorName:"fe39at7f",wrapperAuthorSize:"awAqZ_jZ",wrapperDate:"YjXLT0GY"},O=({rating:e,description:r,author:a,size:t,date:n,product:{brand:p,colorName:O,name:x}})=>{const{stars:N,emptyStars:v}=(0,i.a)(e),f=`${x} | `;return(0,s.jsxs)("div",Object.assign({className:l},{children:[(0,s.jsxs)("div",Object.assign({className:o},{children:[(0,s.jsx)("p",Object.assign({className:d},{children:p})),(0,s.jsxs)("p",Object.assign({className:j},{children:[f,(0,s.jsx)("span",{children:O})]}))]})),(0,s.jsxs)("div",Object.assign({className:w},{children:[N.map(((e,r)=>(0,s.jsx)(c.A,{},`star${r}`))),v.length>0&&v.map(((e,r)=>(0,s.jsx)(c.t,{},`emptyStar${r}`)))]})),(0,s.jsx)("p",Object.assign({className:m},{children:r})),(0,s.jsxs)("div",Object.assign({className:h},{children:[(0,s.jsx)("p",Object.assign({className:g},{children:a})),(0,s.jsx)("p",Object.assign({className:b},{children:`(${t})`}))]})),(0,s.jsx)("p",Object.assign({className:u},{children:n}))]}))},{wrapper:x,wrapperImage:N,wrapperImageTitle:v,wrapperContent:f,wrapperContentStars:S,wrapperContentDescription:y,wrapperContentAuthor:A,wrapperContentAuthorName:D,wrapperContentAuthorSize:T,wrapperContentDate:C}={wrapper:"l6omFLe_",wrapperImage:"NfEfj6Wh",wrapperImageTitle:"vrEF3iM_",wrapperContent:"OQuLAlpR",wrapperContentStars:"wsR5ZEuW",wrapperContentDescription:"aN9cTJAb",wrapperContentAuthor:"RS9peqeq",wrapperContentAuthorName:"ItOZdGdP",wrapperContentAuthorSize:"W3_ZjnDX",wrapperContentDate:"evM_q8m1"},I=({rating:e,description:r,author:a,size:t,date:n,image:{src:p,altText:l},product:{brand:o,name:d}})=>{const{stars:j,emptyStars:w}=(0,i.a)(e);return(0,s.jsxs)("div",Object.assign({className:x},{children:[(0,s.jsxs)("div",Object.assign({className:N},{children:[(0,s.jsx)("img",{src:p,alt:l}),(0,s.jsxs)("div",Object.assign({className:v},{children:[(0,s.jsxs)("b",{children:[o," "]})," ",d]}))]})),(0,s.jsxs)("div",Object.assign({className:f},{children:[(0,s.jsxs)("div",Object.assign({className:S},{children:[j.map(((e,r)=>(0,s.jsx)(c.A,{},`star${r}`))),w.length>0&&w.map(((e,r)=>(0,s.jsx)(c.t,{},`emptyStar${r}`)))]})),(0,s.jsx)("p",Object.assign({className:y},{children:r})),(0,s.jsxs)("div",Object.assign({className:A},{children:[(0,s.jsx)("p",Object.assign({className:D},{children:a})),(0,s.jsx)("p",Object.assign({className:T},{children:`(${t})`}))]})),(0,s.jsx)("p",Object.assign({className:C},{children:n}))]}))]}))},{wrapper:k,wrapperStars:z,wrapperDescription:P,wrapperAuthor:$,wrapperAuthorName:E,wrapperAuthorSize:L,wrapperDate:R}={wrapper:"vLyLjscY",wrapperStars:"Md94g8p1",wrapperDescription:"z1W8v_tU",wrapperAuthor:"GV39dHWE",wrapperAuthorName:"bSiBYlz6",wrapperAuthorSize:"qcSoEju5",wrapperDate:"zsvAxxzn"},_=({rating:e,description:r,author:a,size:t,date:n})=>{const{stars:p,emptyStars:l}=(0,i.a)(e);return(0,s.jsxs)("div",Object.assign({className:k},{children:[(0,s.jsxs)("div",Object.assign({className:z},{children:[p.map(((e,r)=>(0,s.jsx)(c.j,{},`star${r}`))),l.length>0&&l.map(((e,r)=>(0,s.jsx)(c.hb,{},`emptyStar${r}`)))]})),(0,s.jsx)("p",Object.assign({className:P},{children:r})),(0,s.jsxs)("div",Object.assign({className:$},{children:[(0,s.jsx)("p",Object.assign({className:E},{children:a})),(0,s.jsx)("p",Object.assign({className:L},{children:`(${t})`}))]})),(0,s.jsx)("p",Object.assign({className:R},{children:n}))]}))};const H=e=>{var{withName:r,withNameAndImage:a}=e,t=function(e,r){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(a[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(s=Object.getOwnPropertySymbols(e);t{var{title:r,subtitle:a,reviews:i,reviewsLinkText:c,href:l}=e,o=function(e,r){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(a[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(s=Object.getOwnPropertySymbols(e);t{const[e,r]=(0,n.useState)(!1),[a,s]=(0,n.useState)(0),[t,i]=(0,n.useState)(!1),[c,l]=(0,n.useState)(0),[o,d]=(0,p.a)({initial:0,loop:!0,slides:{origin:"center",perView:1.17,spacing:10},slideChanged(e){s(e.track.details.rel)},created(e){i(!0),l(e.slides.length)}});return(0,n.useEffect)((()=>{r(!0)}),[]),{handleMoveToIndex:e=>{var r;null===(r=d.current)||void 0===r||r.moveToIdx(e)},jsEnabled:e,loaded:t,sliderRef:o,instanceRef:d,currentSlide:a,slidesLength:c}})();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",Object.assign({className:M},{children:[(0,s.jsxs)("div",Object.assign({className:Y},{children:[(0,s.jsx)("p",Object.assign({className:q},{children:r})),(0,s.jsx)("p",Object.assign({className:B},{children:a}))]})),j&&(0,s.jsx)("div",Object.assign({ref:m,className:`keen-slider ${W}`},{children:i.slice(0,5).map(((e,r)=>(0,s.jsx)("div",Object.assign({className:(0,t.a)(`keen-slider__slide number-slide${r+1} ${F}`,g===r&&Z)},{children:(0,s.jsx)(H,Object.assign({},e,o))}))))})),w&&h.current&&(0,s.jsx)("div",Object.assign({className:X},{children:[...Array(b).keys()].map((e=>(0,s.jsx)("button",{onClick:()=>d(e),className:(0,t.a)(G,g===e&&J)},e)))})),(0,s.jsx)("a",Object.assign({className:Q,href:l},{children:c}))]}))})};const{wrapper:U}={wrapper:"XqpkrWtN"};(0,a(4).createEntrypoint)("reviews-mobile",(e=>{var r=function(e,r){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(a[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(s=Object.getOwnPropertySymbols(e);t{a.d(r,{a:()=>s});const s=e=>{const r=(e=>{const r=e.toString();return r.length<=4?r:e.toPrecision(3)})(e<=0?0:e>=5?5:e),a=Math.floor(+r),s=+(+r%(a||1)).toFixed(2),t=a+(s>=.75?1:0),n=s>=.25&&s<.75;return{stars:new Array(t).fill(""),emptyStars:new Array(5-t-(n?1:0)).fill(""),halfStar:n,ratingToDisplay:r.substring(0,3)}}}},e=>{e.O(0,[1,2,3,4,5,6],(()=>(265,e(e.s=265)))),e.O()}]);