"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[16],{30:function(e,t,s){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductRating=t.getStars=void 0;const a=s(0),i=(s(1),s(178)),n=r(s(29)),c=s(2),{wrapper:l,wrapperWithZoom:o,wrapperStars:u,wrapperText:d,wrapperSsrOnly:p}=n.default;function h(e){const t=Math.ceil(2*e)/2,s=[];for(let e=1;e<=5;e++){const r=e<=t?"full":e<=t+.5?"half":"empty";s.push(r)}return s}t.getStars=h,t.ProductRating=function({rating:e,raters:t,size:s="sm",isWithoutZoom:r=!1}){const n=h(e),f=t.toString(),g=(0,c.getPreparedRaters)(f);return(0,a.jsxs)("div",Object.assign({className:r?l:o},{children:[(0,a.jsx)("div",Object.assign({className:u},{children:n.map(((e,t)=>(0,a.jsx)(i.RatingStar,{type:e,size:s},t)))})),(0,a.jsxs)("div",Object.assign({className:d},{children:[(0,a.jsxs)("span",Object.assign({"aria-hidden":"true",className:"no-translate"},{children:[" (",g,")"]})),(0,a.jsxs)("p",Object.assign({className:p},{children:["Product Rating: ",e,", with ",g," reviews."]}))]}))]}))}},178:function(e,t,s){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RatingStar=void 0;const a=s(0),i=(s(1),s(2)),n=r(s(28)),{wrapper:c}=n.default;t.RatingStar=function({type:e,size:t}){return(0,a.jsxs)("svg",Object.assign({className:(0,i.cx)(c,t),width:"16",height:"16",viewBox:"0 0 100 100","aria-hidden":"true"},{children:["half"===e&&(0,a.jsx)("path",{fill:"currentcolor",d:"M51 7l0 69.21-27.17 14.1 4.92-30.3-21.93-21.54 30.72-4.44Z"}),(0,a.jsx)("path",{stroke:"currentcolor","stroke-width":"7",fill:"full"===e?"currentcolor":"none","stroke-linejoin":"round",d:"M50 7l13.76 26.59 30.56 5.06-21.58 21.25 4.68 30.63-27.38-14.32\n -27.17 14.1 4.92-30.3-21.93-21.54 30.72-4.44Z"})]}))}}}]);