(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[677],{12679:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l,r,o,d,i=S(a(14041)),n=S(a(39067)),u=S(a(10037)),f=a(71102),s=S(a(93285)),c=S(a(35983)),p=S(a(63670)),v=a(12908),y=a(55019),m=S(a(63202)),g=S(a(20953)),b=S(a(48094)),_=D(a(31700)),h=D(a(931)),O=S(a(4705)),k=S(a(25622)),F=S(a(35109)),L=S(a(8177)),j=a(31085);function N(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(N=function(e){return e?a:t})(e)}function D(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=N(t);if(a&&a.has(e))return a.get(e);var l={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var d=r?Object.getOwnPropertyDescriptor(e,o):null;d&&(d.get||d.set)?Object.defineProperty(l,o,d):l[o]=e[o]}return l.default=e,a&&a.set(e,l),l}function S(e){return e&&e.__esModule?e:{default:e}}function B(e,t,a,l){d||(d="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var r=e&&e.defaultProps,o=arguments.length-3;if(t||0===o||(t={children:void 0}),1===o)t.children=l;else if(o>1){for(var i=Array(o),n=0;n<o;n++)i[n]=arguments[n+3];t.children=i}if(t&&r)for(var u in r)void 0===t[u]&&(t[u]=r[u]);else t||(t=r||{});return{$$typeof:d,type:e,key:void 0===a?null:""+a,ref:null,props:t,_owner:null}}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)({}).hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},w.apply(null,arguments)}var C=p.default.bind(m.default);function P(e){var t=e.head,a=void 0===t?{}:t,d=e.title,n=e.alternative,p=e.products,N=e.breadcrumb,D=void 0===N?{}:N,S=e.pager,P=e.loading,A=e.sortOrder,W=e.facets,I=e.contents,M=e.routes,T=e.onImageLoad,H=e.loadedImages,E=e.toggleListDisplay,x=e.initialFacetFilterDisplay,K=e.closedFacetFilters,q=e.closeOrOpenFacetFilter,G=e.setTrackingListType,J=(0,v.createHandleClick)(M),R=i.default.useCallback((function(e,t){G(t),J(e),Array.isArray(t)?t.forEach((function(e){(0,u.default)(e)})):(0,u.default)(t)}),[]);var U=!W||!1===W.enabled;return B("div",{"data-test-sell-search-page":!0},void 0,(0,j.jsx)(s.default,w({},a)),B(L.default,{web:!0},void 0,(0,j.jsx)(g.default,w({},D,{onClickBack:function(e){e.preventDefault(),f.browserHistory.goBack()},onLinkClick:J}))),B("div",{className:m.default.main},void 0,B("div",{className:m.default.headline},void 0,d?B(c.default,{prio1:!0,tag:"h2","data-test-sell-search-title":!0},void 0,d):null,P&&!d?l||(l=B(c.default,{prio1:!0,skeleton:!0},void 0,"Suchergebnis für ______")):null,n&&B(c.default,{prio3:!0,"data-test-sell-search-alternative":!0},void 0,n)),I?B("div",{className:m.default.contents},void 0,B(F.default,{content:I,onLinkClick:J,onImageLoad:T,loadedImages:H,fullWidth:!0})):null,B("div",{className:m.default.wrapper},void 0,U?null:B("div",{className:m.default.facetBar},void 0,W&&W.facets.length>0&&B(O.default,{facetFilters:W,initialDisplay:x,toggleListDisplay:E,closeOrOpenFacetFilter:q,closedFacetFilters:K})),B("div",{className:C({productsWrapper:!U,productsWrapperFull:U})},void 0,B("div",{className:m.default.topBar},void 0,B("div",{className:m.default.topPager},void 0,S?B(b.default,{pager:S,type:"reduced"}):null),B("div",{className:m.default.sortOrder},void 0,A?(0,j.jsx)(_.default,w({id:"sortSelect"},A)):null,P&&!A?r||(r=B(_.SkeletonSortSelect,{})):null,x&&W&&B("div",{className:m.default.filterButton},void 0,B(k.default,{onClick:E,heading:W.heading,count:W&&W.selectedCountSum,name:"category-search"})))),p?B("div",{className:m.default.products},void 0,p?B(h.default,{products:p,onLinkClick:R,fullWidth:U}):null,P&&!p?o||(o=B(h.SkeletonProductList,{})):null):null,S?B("div",{className:m.default.bottomBar},void 0,B(b.default,{pager:S,type:"detailed"})):null,!P&&B(y.SellFeedbackFragment,{lazy:!0,type:"search",metadata:JSON.stringify({key:"query",value:(null==W?void 0:W.originalQuery)||"empty"})})))))}P.propTypes={head:n.default.object,products:n.default.array,breadcrumb:n.default.object,title:n.default.string,alternative:n.default.string,pager:n.default.object,sortOrder:n.default.object,facets:n.default.object,loading:n.default.bool,contents:n.default.array,routes:n.default.array,onImageLoad:n.default.func,loadedImages:n.default.object,initialFacetFilterDisplay:n.default.bool,toggleListDisplay:n.default.func,closedFacetFilters:n.default.object,closeOrOpenFacetFilter:n.default.func,setTrackingListType:n.default.func,onClickBack:n.default.func};t.default=P},63202:function(e){e.exports={main:"mf-SfeQOsuo",headline:"mf-F70ijUiD",topBar:"mf-fb4cyLaJ",bottomBar:"mf-sRlyyG7A",topPager:"mf-Z4ozNcgq",sortOrder:"mf-Z5AoNT7h",filterButton:"mf-dXKkmWTl",wrapper:"mf-GHbRa18B",facetBar:"mf-wCmnG7o1",productsWrapper:"mf-rPHLRyI8",productsWrapperFull:"mf-rmqMKoJ4"}}}]); //# sourceMappingURL=search-page.chunk.0e484eeb4b72eade03e7.js.map