mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-12 03:16:16 +01:00
2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
/*! For license information please see recommendation.js.LICENSE.txt */
|
|
(self.findifyJsonp=self.findifyJsonp||[]).push([[864],{JgyH:function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var u=t(i);if("string"===u||"number"===u)e.push(i);else if(Array.isArray(i)&&i.length){var l=r.apply(null,i);l&&e.push(l)}else if("object"===u)for(var a in i)n.call(i,a)&&i[a]&&e.push(a)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"===t(define.amd)&&define.amd?define("classnames",[],(function(){return r})):window.classNames=r}()},aaqy:function(e,t,n){"use strict";var r=n("tZxb");function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},T9WB:function(e,t,n){e.exports=n("aaqy")()},tZxb:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},jKGO:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==r(t)&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+r(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n("Jmof"),c=n("T9WB"),s=[],f=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function p(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var o=d(e[r]);o.loading?t.loading=!0:(t.loaded[r]=o.loaded,t.error=o.error),n.push(o.promise),o.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(e){t.error=e}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function m(e,t){return a.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function y(e,t){var r,d;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var p=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:m,webpack:null,modules:null},t),y=null;function h(){return y||(y=e(p.loader)),y.promise}return s.push(h),"function"==typeof p.webpack&&f.push((function(){if(e=p.webpack,"object"===o(n.m)&&e().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return h();var e})),d=r=function(t){function n(r){i(this,n);var o=u(this,t.call(this,r));return o.retry=function(){o.setState({error:null,loading:!0,timedOut:!1}),y=e(p.loader),o._loadModule()},h(),o.state={error:y.error,pastDelay:!1,timedOut:!1,loading:y.loading,loaded:y.loaded},o}return l(n,t),n.preload=function(){return h()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(p.modules)&&p.modules.forEach((function(t){e.context.loadable.report(t)})),y.loading){"number"==typeof p.delay&&(0===p.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){e.setState({pastDelay:!0})}),p.delay)),"number"==typeof p.timeout&&(this._timeout=setTimeout((function(){e.setState({timedOut:!0})}),p.timeout));var t=function(){e._mounted&&(e.setState({error:y.error,loaded:y.loaded,loading:y.loading}),e._clearTimeouts())};y.promise.then((function(){t()})).catch((function(e){t()}))}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?a.createElement(p.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?p.render(this.state.loaded,this.props):null},n}(a.Component),r.contextTypes={loadable:c.shape({report:c.func.isRequired})},d}function h(e){return y(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return y(p,e)};var b=function(e){function t(){return i(this,t),u(this,e.apply(this,arguments))}return l(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return a.Children.only(this.props.children)},t}(a.Component);function g(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return g(e)}))}b.propTypes={report:c.func.isRequired},b.childContextTypes={loadable:c.shape({report:c.func.isRequired}).isRequired},h.Capture=b,h.preloadAll=function(){return new Promise((function(e,t){g(s).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){g(f).then(e,e)}))},e.exports=h},L4m3:function(e,t,n){"use strict";n("bhYp");var r=n("Jmof"),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,a={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,s=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,r)&&!a.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:s,props:i,_owner:u.current}}t.jsx=c,t.jsxs=c},APSE:function(e,t,n){"use strict";e.exports=n("L4m3")},naU3:function(e,t,n){"use strict";var r=n("jKGO"),o=n.n(r),i=n("jd+S");t.default=o()({loader:i.default.components.swiper,loading:function(){return null}})},"jd+S":function(e,t,n){"use strict";t.default={views:{search:function(){return Promise.all([n.e(299),n.e(266),n.e(464)]).then(n.bind(n,"2g2b"))},autocomplete:function(){return n.e(413).then(n.bind(n,"Ne2L"))},recommendation:function(){return Promise.all([n.e(299),n.e(266),n.e(864)]).then(n.bind(n,"0Y/9"))},zeroResults:function(){return Promise.all([n.e(299),n.e(266),n.e(464)]).then(n.bind(n,"d67Z"))},custom:function(){return n.e(347).then(n.bind(n,"oJDh"))},content:function(){return Promise.all([n.e(299),n.e(266),n.e(426)]).then(n.bind(n,"8bt2"))},tabs:function(){return n.e(229).then(n.bind(n,"TDmD"))}},autocomplete:{sidebar:function(){return Promise.all([n.e(359),n.e(299),n.e(266),n.e(31)]).then(n.bind(n,"cyJn"))},dropdown:function(){return Promise.all([n.e(299),n.e(266),n.e(795)]).then(n.bind(n,"+MKu"))},fullscreenWithInput:function(){return Promise.all([n.e(299),n.e(266),n.e(67)]).then(n.bind(n,"wRha"))}},components:{virtualizedList:function(){return Promise.all([n.e(412),n.e(717)]).then(n.bind(n,"nGW9"))},drawer:function(){return Promise.all([n.e(359),n.e(388)]).then(n.bind(n,"94tO"))},dropdown:function(){return Promise.all([n.e(466),n.e(299),n.e(423)]).then(n.bind(n,"0kbf"))},swiper:function(){return Promise.all([n.e(775),n.e(299),n.e(463)]).then(n.bind(n,"1y4O"))},swiperRaw:function(){return Promise.all([n.e(775),n.e(890)]).then(n.bind(n,"PDvd"))},rangeSlider:function(){return n.e(862).then(n.bind(n,"nd5R"))}}}},lyd9:function(e,t,n){"use strict";var r=n("Jmof");t.default=function(e){(0,r.useEffect)((function(){window&&(window.scrollTo(window.scrollX,window.scrollY-1),window.scrollTo(window.scrollX,window.scrollY+1))}),[e])}},yi8E:function(e,t,n){"use strict";var r=n("xlCz"),o=n("Cx2C"),i=n("uW8t"),u=n("ZWvu"),l=n("8EDo"),a=n.n(l),c=n("aZci"),s=n("APSE");t.default=function(e){var t=e.theme,n=void 0===t?a():t,l=(0,c.useItems)(),f=l.items,d=l.config;return null!=f&&f.size?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.default,{title:!0,component:"p",className:n.title,children:d.get("title")}),(0,s.jsx)(r.default,{gutter:20,columns:d.getIn(["breakpoints","grid"]),children:(0,u.default)({config:d.get("product"),array:f,factory:i.default})})]}):null}},SWjm:function(e,t,n){"use strict";var r=n("naU3"),o=n("uW8t"),i=n("Cx2C"),u=n("iPqH"),l=n("aZci"),a=n("lyd9"),c=n("4NNA"),s=n.n(c),f=n("APSE");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){var t=e.theme,n=void 0===t?s():t,c=(0,l.useItems)(),d=c.items,m=c.config,y=function(e){var t=(0,u.default)(e.getIn(["breakpoints","grid"]));return{spaceBetween:12,slidesPerView:12/Number(t)}}(m);return(0,a.default)(d),null!=d&&d.size?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(i.default,{title:!0,component:"p",className:n.title,children:m.get("title")}),(0,f.jsx)(r.default,p(p({},y),{},{slot:m.get("slot"),children:d.map((function(e){return(0,f.jsx)(o.default,{item:e,config:m.get("product")},e.hashCode())})).toArray()}))]}):null}},"0Y/9":function(e,t,n){"use strict";n.r(t);var r=n("Jmof"),o=n("aZci"),i=n("yi8E"),u=n("SWjm");t.default=function(){var e=(0,o.useConfig)().config.get("template");return"slider"===e?(0,r.createElement)(u.default):"grid"===e?(0,r.createElement)(i.default):null}},"8EDo":function(e){e.exports={title:"findify-layouts--recommendation--grid__title"}},"4NNA":function(e){e.exports={title:"findify-layouts--recommendation--slider__title"}}}]); |