text: import createConnector from'../core/createConnector';import PropTypes from'prop-types';export default createConnector({displayName:'AlgoliaCurrentRefinements',propTypes:{transformItems:PropTypes.func},getProvidedProps:function getProvidedProps(a,b,c,d){var e=d.reduce(function(f,g){return'undefined'==typeof g.items?f:a.clearsQuery||'query'!==g.id?a.clearsQuery&&'query'===g.id&&''===g.items[0].currentRefinement?f:f.concat(g.items):f},[]);return{items:a.transformItems?a.transformItems(e):e,canRefine:0<e.length}},refine:function refine(a,b,c){var d=c instanceof Array?c.map(function(e){return e.value}):[c];return d.reduce(function(e,f){return f(e)},b)}});