<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var C=Object.defineProperty;var R=(s,e,a)=&gt;e in s?C(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a;var r=(s,e,a)=&gt;(R(s,typeof e!="symbol"?e+"":e,a),a);import{R as S,r as A,j as E}from"./vendor/react-core.00N1NUa-.min.js";import{c as F,L as i,p as g,cF as _,dj as f,cT as T,dk as D,dl as I,a_ as y,I as O}from"../assets/forum-CmzvdFz6.js";import{E as P}from"./types.Bnp7nMni.min.js";const t=F("@@search");class o{}r(o,"performSearchACs",t.async("SEARCH")),r(o,"updateSearchFormAC",t("UPDATE_FORM")),r(o,"resetFormAC",t("RESET_FORM")),r(o,"performDomainSearchACs",t.async("DOMAIN_SEARCH"));const p={domain:f,query:"",page:1,sort:"relevance",scope:T,initialized:!1},m={form:p,response:{status:i.PENDING},domainSearchResponse:{}},M=["sort","domain","scope","page","pageURL"],j=g(_().case(o.updateSearchFormAC,(s,e)=&gt;{let a=!1;if(s.form.initialized)for(const c of M)e[c]!==void 0&amp;&amp;s.form[c]!==e[c]&amp;&amp;(a=!0);!s.form.initialized&amp;&amp;e.initialized&amp;&amp;(a=!0);const n={...s.form,...e,needsResearch:a};return e.initialized||"page"in e||(n.page=1),s.form=n,s}).case(o.performSearchACs.started,(s,e)=&gt;(s.form.needsResearch=!1,s.form.initialized=!0,s.response.status=i.LOADING,s)).case(o.performSearchACs.done,(s,e)=&gt;(s.response.status=i.SUCCESS,s.response.data=e.result,s)).case(o.performSearchACs.failed,(s,e)=&gt;(s.response.status=i.ERROR,s.response.error=e.error,s)).case(o.performDomainSearchACs.started,(s,e)=&gt;{const{domain:a}=e;return s.domainSearchResponse[a]={status:i.LOADING},s}).case(o.performDomainSearchACs.done,(s,e)=&gt;{const{domain:a}=e.params;return s.domainSearchResponse[a].status=i.SUCCESS,s.domainSearchResponse[a].data=e.result,s}).case(o.performDomainSearchACs.failed,(s,e)=&gt;{const{domain:a}=e.params;return s.domainSearchResponse[a].status=i.ERROR,s.domainSearchResponse[a].error=e.error,s}).case(o.resetFormAC,s=&gt;(s.form={...p},s.response={status:i.PENDING},s)));class N{constructor(){r(this,"ResultComponent",D);r(this,"defaultFormValues");r(this,"PanelComponent");r(this,"subTypes",[]);r(this,"addSubType",e=&gt;{this.subTypes.find(a=&gt;a.type===e.type)||this.subTypes.push(e)});r(this,"additionalFilterSchemaFields",[]);r(this,"isIsolatedType",!1);r(this,"ResultWrapper");r(this,"MetaComponent");r(this,"SpecificRecordPanelComponent");r(this,"SpecificRecordComponent");r(this,"showSpecificRecordCrumbs",!1)}getAllowedFields(e){return[]}getFilterSchema(e){return P}addFieldToFilterSchema(e){this.additionalFilterSchemaFields.push(e)}get sortValues(){return[]}mapResultToProps(e){var c,d,u;const a=e.type?((c=this.subTypes.find(l=&gt;l.type===e.type))==null?void 0:c.icon)??this.icon:this.icon??null,n={imageSet:I(((d=e==null?void 0:e.image)==null?void 0:d.urlSrcSet)??{})};return{name:e.name,url:e.url,excerpt:e.body,image:(u=e.image)==null?void 0:u.url,highlight:e.highlight,icon:a,tags:e==null?void 0:e.tags,...n.imageSet.length&gt;0?n:{}}}}const h=new class extends N{constructor(){super(...arguments);r(this,"key",f);r(this,"sort",0);r(this,"name","All");r(this,"icon",E.jsx(O,{icon:"search-all"}));r(this,"recordTypes",[])}},L=S.createContext({updateForm:()=&gt;{},resetForm:()=&gt;{},response:m.response,domainSearchResponse:m.domainSearchResponse,form:m.form,search:async()=&gt;{},domains:[h],currentDomain:h,handleSourceChange:async s=&gt;{},defaultFormValues:p,currentSource:y.sources[0]??void 0});function v(){return A.useContext(L)}export{p as D,m as I,N as S,o as a,L as b,j as s,v as u};
</pre></body></html>