import{SEARCH_GROUP_FACET_FIELD as f}from"../../../../constants/index.js";import{SEARCH_GROUP_NAME_DOCUMENTATION as u}from"../../search/constants.js";function S(t,o,e){const c=o();for(const[r,n]of Object.entries(t)){const s=c.get(r);if(s){const a=new Set(s.values??[]).add(n);s.values=Array.from(a)}}e(c)}function h(t,o){const e={[f]:u};if(!t)return e;const c=o();for(const[r,n]of Object.entries(t))c.has(r)&&(e[r]=String(n));return e}export{h as extractDocumentSearchFacets,S as setDocumentSearchFacets};
