1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-12 03:16:16 +01:00
LocalCDN-Firefox-Chrome-Brave/resources/findify-bundle/6.17.0/recommendation.jsm

2 lines
161 KiB
JavaScript
Raw Normal View History

2021-02-28 18:10:28 +01:00
(window.findifyJsonp=window.findifyJsonp||[]).push([[5],{"0Y/9":function(e,t,i){"use strict";i.r(t);var s=i("Jmof"),a=i("aZci"),n=i("yi8E"),r=i("SWjm"),o=Object(a.connectConfig)((function(e){var t=e.config.get("template");return"swiper"===t?Object(s.createElement)(r.default):"grid"===t?Object(s.createElement)(n.default):"slider"===t?Object(s.createElement)(r.default):null}));t.default=o},"4NNA":function(e,t){e.exports={root:"findify-layouts--recommendation--slider"}},"8ATk":function(e,t,i){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var a in t=arguments[i])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=a(i("Jmof")),o=n(i("bhYp")),l=i("nK60"),d=function(e){var t=e.Swiper,i=e.activeSlideKey,a=e.ContainerEl,n=e.children,d=e.containerClass,h=e.getSwiper,c=e.navigation,u=e.noSwiping,p=e.pagination,f=e.parallax,v=e.parallaxEl,m=e.WrapperEl,g=e.wrapperClass,w=e.rebuildOnUpdate,b=e.renderScrollbar,y=e.renderPagination,x=e.renderPrevButton,E=e.renderNextButton,T=e.renderParallax,C=e.rtl,S=e.scrollbar,M=e.shouldSwiperUpdate,P=e.slideClass,k=e.loop,O=e.modules,$=void 0===O?[]:O;if(!(t&&n&&a&&m))return null;var z=r.createRef(),L=r.useRef(null);if(t.use($),!l.validateChildren(n))return null;var I=function(){if(!i)return null;var e=0,t=k?1:0;return r.Children.forEach(n,(function(s){r.isValidElement(s)&&(s.key===i&&(e=t),t+=1)})),e},A=function(e){"function"==typeof h&&h(e)},D=function(){z.current&&null===L.current&&(L.current=new t(z.current,o.default({},e)),A(L.current))},N=function(){null!==L.current&&(L.current.destroy(!0,!0),L.current=null,A(L.current))};r.useEffect((function(){D();var e=I();return null!==L.current&&null!==e&&L.current.slideTo(e),function(){return N()}}),[]),r.useEffect((function(){if(null!==L.current){if(w)N(),D();else if(M){null!==L.current&&(L.current.update(),A(L.current));var e=L.current.slides.length;if(e<=L.current.activeIndex){var t=Math.max(e-1,0);L.current.slideTo(t)}}var i=I();null!==i&&L.current.slideTo(i)}}));var j=l.isModuleAvailable($,"parallax")&&f&&v,H=l.isModuleAvailable($,"pagination")&&p&&p.el,G=l.isModuleAvailable($,"scrollbar")&&S&&S.el,V=l.isModuleAvailable($,"navigation"),B=V&&c&&c.nextEl,X=V&&c&&c.prevEl;return r.default.createElement(a,{className:d,dir:C&&"rtl",ref:z},j&&T&&T(e),r.default.createElement(m,{className:g},r.Children.map(n,(function(e){if(!l.isReactElement(e))return null;var t=[P,e.props.className];return u&&t.push("swiper-no-swiping"),r.cloneElement(e,s({},e.props,{className:t.join(" ").trim()}))}))),H&&y&&y(e),G&&b&&b(e),B&&E&&E(e),X&&x&&x(e))};d.defaultProps={containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide",ContainerEl:"div",WrapperEl:"div",renderScrollbar:function(e){var t=e.scrollbar;return t?r.default.createElement("div",{className:l.classNames(t.el)}):null},renderPagination:function(e){var t=e.pagination;return t?r.default.createElement("div",{className:l.classNames(t.el)}):null},renderPrevButton:function(e){var t=e.navigation;return t?r.default.createElement("div",{className:l.classNames(t.prevEl)}):null},renderNextButton:function(e){var t=e.navigation;return t?r.default.createElement("div",{className:l.classNames(t.nextEl)}):null},renderParallax:function(e){var t=e.parallaxEl;return t?r.default.createElement("div",{className:l.classNames(t.el),"data-swiper-parallax":t.value}):null},modules:[]},d.displayName="ReactIdSwiperCustom",t.default=d},"8BDN":function(e,t,i){"use strict";i.r(t);var s=i("Jmof"),a=i.n(s),n=i("v9H4"),r=i("uW8t"),o=i("Cx2C");t.default=function(e){var t=e.items,i=e.config,s=e.theme,l=e.sliderOptions;return t&&t.size>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(o.default,{ti
//# sourceMappingURL=recommendation.js.map