"use strict";(self.webpackChunkwebpackYWCASBlocksJsonp=self.webpackChunkwebpackYWCASBlocksJsonp||[]).push([[831],{146(e,s,a){a.r(s),a.d(s,{default:()=>h});var t=a(609),r=a(368),c=a.n(r),o=a(939),l=a(560),n=a(212),u=a(106);var i=a(956),g=a(135);const h=(0,i.n)(g.A)(e=>{const{className:s,showImage:a,showCategories:r,imageSize:i,maxResultsToShow:g,layout:h,noResults:m}=e,{query:p}=(0,u.$A)(),{results:k,isSearching:w,getCategories:y}=(0,l.$)({query:p,maxResults:g,showCategories:r,page:0}),{isLoading:d,categories:C}={isLoading:!1,categories:[]},S=c()("ywcas-search-results",s,h);return d||w?(0,t.createElement)(o.Spinner,{color:"default",size:"md",thickness:3.6}):(0,t.createElement)(o.Box,{className:S},!w&&k.totalResults>0?(0,t.createElement)(n.cM,{searchQuery:p,categoryList:C,results:k,...e}):(0,t.createElement)(o.Typography,null,m))})},956(e,s,a){var t=a(609),r=a(486);a.d(s,["n",0,e=>s=>a=>{const c=(0,r.N)(e,a);return(0,t.createElement)(s,{...a,...c})}])}}]);