/*! For license information please see 7808.1432881a64903d454a9c.js.LICENSE.txt */ "use strict";(self.webpackChunkengine=self.webpackChunkengine||[]).push([[7808,5893,8521],{17808:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});var n=r(5439),o=r.n(n),i=r(28416),s=r(69755),l=r(68218),a=r.n(l),m=r(9411),c=r.n(m),d=r(53804),u=r(85893);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r span{margin:0.125em;}"],f?(0,m.css)(["padding:0.4375em;"]):(0,m.css)(["padding:1em;"])));function C(e){var t,r,n=e.styles,o=e.isInTop,l=e.titleText,c=e.results,d=e.theme,f=(0,i.useRef)(null),C=(t=(0,i.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,l=[],a=!0,m=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;a=!1}else for(;!(a=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){m=!0,o=e}finally{try{if(!a&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(m)throw o}}return l}}(t,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),I=C[0],_=C[1],k=(0,i.useCallback)((function(){_(!1)}),[I]);return a()(k,f),(0,u.jsx)(m.ThemeProvider,{theme:{name:d},children:(0,u.jsxs)(h,{style:n.container,ref:f,children:[(0,u.jsx)(g,{style:n.row,children:c}),(0,u.jsxs)(y,{"data-gtm":"Results bar","aria-label":"Results bar",onClick:function(){return _((function(e){return!e}))},style:n.toggleBtn,children:[(0,u.jsx)(b,{style:n.icon,iconHistory:!0,children:(0,u.jsx)(s.History,{color:"white"})}),(0,u.jsx)(b,{style:n.icon,children:o?I?(0,u.jsx)(s.CaretUp,{color:"white"}):(0,u.jsx)(s.CaretDown,{color:"white"}):I?(0,u.jsx)(s.CaretDown,{color:"white"}):(0,u.jsx)(s.CaretUp,{color:"white"})})]}),I&&(0,u.jsxs)(w,{style:n.popup,open:I,children:[(0,u.jsx)(x,{style:n.popupHeader,children:(0,u.jsx)(v,{style:n.popupTitle,children:l})}),(0,u.jsx)(j,{style:n.popupBody,children:c})]})]})})}C.propTypes={theme:o().string,styles:o().object,isInTop:o().bool,results:o().array,titleText:o().string},C.defaultProps={styles:{},isInTop:!1,results:[],titleText:"",theme:"bottom"};const I=(0,i.memo)(C)},75251:(e,t,r)=>{var n=r(28416),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function m(e,t,r){var n,i={},m=null,c=null;for(n in void 0!==r&&(m=""+r),void 0!==t.key&&(m=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,n)&&!a.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:m,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=m,t.jsxs=m},85893:(e,t,r)=>{e.exports=r(75251)}}]);