(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6967,7505],{16867:e=>{e.exports={reviews:"InlineSummary_reviews__skCBe",reviewsSmall:"InlineSummary_reviewsSmall__34rxb",stars:"InlineSummary_stars__bhh2p",logo:"InlineSummary_logo__Oi3iO",starsIcons:"InlineSummary_starsIcons__iCK7g",starsText:"InlineSummary_starsText__i_kxu",starsTextCarousel:"InlineSummary_starsTextCarousel__LFkaO"}},17505:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>i});var a=r(37876);r(14232);var t=r(65381),l=r.n(t);let i=e=>{let s=[],r=[],t=e.input||0,i=Math.round(10*t)/10;for(let e=1;e<=Math.floor(i);e+=1)s.push(e);for(let e=1;e<=5-Math.ceil(t);e+=1)r.push(e);let o=Math.round((i-Math.floor(i))*10);return(0,a.jsxs)("div",{className:l().root,children:[s.map(e=>(0,a.jsx)("img",{width:"25",height:"25",src:"https://www.ukmeds.co.uk/images/feefo/feefo-star.svg",alt:"star"},e)),o>0&&(0,a.jsx)("img",{width:"25",height:"25",src:"https://www.ukmeds.co.uk/images/feefo/".concat("feefo-star".concat(o),".svg"),alt:"star"}),r.map(e=>(0,a.jsx)("img",{width:"25",height:"25",src:"https://www.ukmeds.co.uk/images/feefo/feefo-star0.svg",alt:"star"},e))]})}},26967:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>d});var a=r(37876);r(14232);var t=r(35946),l=r(17505),i=r(16867),o=r.n(i),n=r(58103),m=r.n(n),u=r(19666),f=r(17564),c=r(89099);let h="https://www.feefo.com/en-GB/reviews/".concat("uk-meds"),_="ukmeds"===f.YY.EU||"ukmeds"===f.YY.NM?"feefo-white-yellow.svg":"feefo-grey-yellow.svg",d=(0,t.Ng)(function(e){return{summary:e.reviews.feefo.summary}})(e=>{let{className:s,propSummary:r,summary:t,size:i="large",logo:n=!0,carousel:d=!1}=e,g=r||t,v=(0,c.useRouter)().asPath.includes("black-friday"),{t:w}=(0,u.B)();return[f.YY.NM,f.YY.PX].includes("ukmeds")?null:(0,a.jsxs)("a",{className:m()(o().reviews,{[o().reviewsSmall]:"small"===i},s),href:h,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsxs)("div",{className:o().stars,children:[(0,a.jsx)("div",{className:o().starsIcons,children:(0,a.jsx)(l.default,{input:g.rating})}),"large"===i&&(0,a.jsxs)("span",{className:d?o().starsTextCarousel:o().starsText,children:[g.rating," out of 5 - ",g.number_of_reviews," ",w(f.Pd.Reviews)]})]}),n&&(0,a.jsx)("div",{className:o().logo,children:(0,a.jsx)("img",{src:"https://www.ukmeds.co.uk/images/feefo/".concat(v?"feefo-white-yellow.svg":_),alt:"Feefo"})})]})})},65381:e=>{e.exports={root:"ReviewStars_root__4opF1"}}}]);