"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[27],{167:(e,s,r)=>{r.d(s,{a:()=>u});var c=r(0),n=r(369),a=r(168);const{wrapper:t,wrapperComparePrice:i,wrapperCrossedPrice:d,wrapperActualPrice:o,wrapperActualPriceRed:l,wrapperPercentage:p}=a.a,u=({minPrice:e,maxPrice:s,currency:r,isFromPrice:a,percentageDiff:u,inlineStyle:m})=>{const j=s>e,b=u>=15,h=e.toFixed(2),g=s.toFixed(2);return a?(0,c.jsx)("div",Object.assign({className:(0,n.b)(t,m)},{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",Object.assign({className:o},{children:"From"})),(0,c.jsx)("p",Object.assign({className:(0,n.b)(o,l)},{children:`${r}${h}`})),b&&(0,c.jsx)("p",Object.assign({className:p},{children:`(${u}% off)`}))]})})):(0,c.jsxs)("div",Object.assign({className:t},{children:[j&&(0,c.jsx)("p",Object.assign({className:(0,n.b)(i,d)},{children:`${r}${g}`})),(0,c.jsx)("p",Object.assign({className:(0,n.b)(o,j&&l)},{children:`${r}${h}`})),b&&(0,c.jsx)("p",Object.assign({className:p},{children:`(${u}% off)`}))]}))}},21:(e,s,r)=>{r.d(s,{a:()=>n});var c=r(2);function n(e,s){(0,c.useEffect)((()=>{const r=r=>{e.current&&!e.current.contains(r.target)&&s(r)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}}),[e,s])}}}]);