LocalCDN-Firefox-Chrome-Brave/resources/findify-bundle/6.17.0/autocomplete.jsm

2 lines
26 KiB
JavaScript
Raw Normal View History

2021-02-28 18:10:28 +01:00
(window.findifyJsonp=window.findifyJsonp||[]).push([[1],{"+MKu":function(e,t,n){"use strict";n.r(t);var o=n("aZci"),i=n("KXty"),r=n("zDdf"),a=n("lrOp"),c=n("8nTv"),s=n("1NYs"),u=n.n(s);t.default=Object(i.compose)(Object(i.setDisplayName)("Dropdown"),Object(r.default)(u.a),o.connectSuggestions,a.default)(c.default)},"172o":function(e,t,n){"use strict";n.r(t);var o=n("KXty"),i=n("t7Qm"),r=n("sOw0"),a=n.n(r),c=n("zDdf");t.default=Object(o.compose)(Object(o.setDisplayName)("ProductMatches"),Object(o.defaultProps)({columns:3}),Object(c.default)(a.a))(i.default)},"1DRH":function(e,t,n){"use strict";n.r(t),n.d(t,"usePosition",(function(){return l}));var o=n("EKKX"),i=n.n(o),r=n("gZYI"),a=n.n(r),c=n("Jmof");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var u={},l=function(e){var t=Object(c.useRef)(null),n=Object(c.useState)(u[e.get("widgetKey")]||e.get("position")||"left"),o=a()(n,2),i=o[0],r=o[1];return Object(c.useEffect)((function(){t.current&&!u[e.get("widgetKey")]&&window.requestAnimationFrame((function(){if(t.current){var n=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.width;return window.innerWidth<n+o?"right":"left"}(t.current);u[e.get("widgetKey")]=n,r(n)}}))}),[t]),[i,e.get("position")?void 0:t]};t.default=function(e){var t=Object(c.createFactory)(e);return function(e){var n=l(e.config),o=a()(n,2),r=o[0],c=o[1];return t(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{position:r,innerRef:c}))}}},"1NYs":function(e,t){e.exports={root:"findify-layouts--autocomplete--dropdown",wrapper:"findify-layouts--autocomplete--dropdown__wrapper","type-title":"findify-layouts--autocomplete--dropdown__type-title",typeTitle:"findify-layouts--autocomplete--dropdown__type-title","suggestions-title":"findify-layouts--autocomplete--dropdown__suggestions-title",suggestionsTitle:"findify-layouts--autocomplete--dropdown__suggestions-title","trending-title":"findify-layouts--autocomplete--dropdown__trending-title",trendingTitle:"findify-layouts--autocomplete--dropdown__trending-title",overlay:"findify-layouts--autocomplete--dropdown__overlay","not-found":"findify-layouts--autocomplete--dropdown__not-found",notFound:"findify-layouts--autocomplete--dropdown__not-found","start-typing":"findify-layouts--autocomplete--dropdown__start-typing",startTyping:"findify-layouts--autocomplete--dropdown__start-typing",tip:"findify-layouts--autocomplete--dropdown__tip",highlight:"findify-layouts--autocomplete--dropdown__highlight",container:"findify-layouts--autocomplete--dropdown__container","product-matches-container":"findify-layouts--autocomplete--dropdown__product-matches-container",productMatchesContainer:"findify-layouts--autocomplete--dropdown__product-matches-container","suggestions-container":"findify-layouts--autocomplete--dropdown__suggestions-container",suggestionsContainer:"findify-layouts--autocomplete--dropdown__suggestions-container"}},"1X6+":function(e,t,n){"use strict";n.r(t);var o=n("KXty"),i=n("gNLg");t.default=Object(o.compose)(Object(o.setDisplayName)("Pure"),Object(o.shouldUpdate)((function(e,t){return!Object.keys(t).every((function(n){return Object(i.is)(t[n],e[n])}))})))},"78fZ":function(e,t,n){"use strict";n.r(t);var o=n("EKKX"),i=n.n(o),r=n("Z1L4"),a=n.n(r),c=n("Jmof"),s=n.n(c),u=n("JgyH"),l=n.n(u),d=n("k19o"),f=n("uAbj"),p=n.n(f);function m(e,t,n){var o=new RegExp("(".concat(p()(t),")"),"i");return e.replace(o,'<span class="'.concat(n.highlightedText,'">$1</span>'))}t.default=function(e){var t,n=e.item,o=e.query,r=e.theme,u=e.highlighted,f=e.onClick,p=e.icon,g=e.isTrendingSearches,y=(a()(e,["item","query","theme","highlighted","onClick","icon","isTrendingSea
//# sourceMappingURL=autocomplete.js.map