var e=function(e,r,n){var t=e.reduce((function(e,t){var u,o=t.categoryId;return o?(null!==(u=r[o])&&void 0!==u&&u.onlyShowOnSearch&&!n||(e[o]?e[o].push(t):e[o]=[t]),e):e}),{});return Object.keys(r).reduce((function(e,r){return t[r]&&(e[r]=t[r]),e}),{})},r=function(e,r){return r.filter((function(r){return!e||r.label.toLowerCase().includes(e.toLowerCase())}))};export{r as defaultFilter,e as getOptionsByCategories};
