PageSourceSearch

https://www.ehitusuudised.ee/_next/static/chunks/1d0mf1ot7q8n_.js?dpl=06c0976789f7d9e593a2d5dee94be2bf2258b72e

js ehitusuudised.ee collected 2026-09-24 21:44:44 UTC 25,172 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="75a65d04-4bc2-67ff-6aad-36bd2820d8a2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93106,e=>{e.v({wrapper:"SortOrderSelect-module-scss-module__7VCyCq__wrapper"})},832351,575322,346167,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(271645),r=e.i(618566);e.i(785269);var n=e.i(322831),s=e.i(510256),i=e.i(316957),c=e.i(238159),o=e.i(181538);let d=(e,t)=>({channels:e.get("channels")?e.get("channels").split(","):[],query:e.get("query")||"",topics:e.get("topics")?e.get("topics").split(","):[],since:e.get("since")||"",until:e.get("until")||"",order:e.get("order")||"date",scope:u(t,e.get("scope"))}),u=(e,t)=>c.SearchScope[t]||(0,o.getDefaultFilterScope)(e);e.s(["getSearchFromParams",0,d],575322);var h=e.i(463084),f=e.i(598389),m=e.i(867719),p=e.i(869697),x=e.i(641626),y=e.i(152113);let g=e=>{let a,r,s,i,c=(0,l.c)(10),{value:o,onChange:d}=e,{t:u}=(0,n.useTranslation)();c[0]!==u?(a=u("search.filters.keyword"),c[0]=u,c[1]=a):a=c[1];let h=o||"";return c[2]!==d?(r=e=>d(e.target.value),c[2]=d,c[3]=r):r=c[3],c[4]!==h||c[5]!==r?(s=(0,t.jsx)(x.default,{enterKeyHint:"search",id:"search-filter-keyword",value:h,onChange:r}),c[4]=h,c[5]=r,c[6]=s):s=c[6],c[7]!==a||c[8]!==s?(i=(0,t.jsx)(y.default,{label:a,for:"search-filter-keyword",children:s}),c[7]=a,c[8]=s,c[9]=i):i=c[9],i};e.s(["default",0,g],346167);var _=e.i(632729),S=e.i(344497);let j=e=>{let r,i,c,o,d,u,h,f,m,p,x=(0,l.c)(26),{since:g,until:j,onSelect:v}=e,{t:b}=(0,n.useTranslation)();x[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.formatDate)(_.DateTime.now().toISODate(),"yyyy-LL-dd"),x[0]=r):r=x[0];let k=r;x[1]!==b?(i=b("search.filters.from"),x[1]=b,x[2]=i):i=x[2];let C=g||"",w=j||k||"";x[3]!==v?(c=e=>v("since",e.target.value),x[3]=v,x[4]=c):c=x[4],x[5]!==C||x[6]!==w||x[7]!==c?(o=(0,t.jsx)(S.default,{id:"search-filter-from",value:C,max:w,onChange:c}),x[5]=C,x[6]=w,x[7]=c,x[8]=o):o=x[8],x[9]!==i||x[10]!==o?(d=(0,t.jsx)(y.default,{label:i,size:"narrow",for:"search-filter-from",children:o}),x[9]=i,x[10]=o,x[11]=d):d=x[11],x[12]!==b?(u=b("search.filters.to"),x[12]=b,x[13]=u):u=x[13];let N=j||"",D=g||"";return x[14]!==v?(h=e=>v("until",e.target.value),x[14]=v,x[15]=h):h=x[15],x[16]!==h||x[17]!==N||x[18]!==D?(f=(0,t.jsx)(S.default,{id:"search-filter-to",value:N,min:D,max:k||"",onChange:h}),x[16]=h,x[17]=N,x[18]=D,x[19]=f):f=x[19],x[20]!==f||x[21]!==u?(m=(0,t.jsx)(y.default,{label:u,size:"narrow",for:"search-filter-to",children:f}),x[20]=f,x[21]=u,x[22]=m):m=x[22],x[23]!==m||x[24]!==d?(p=(0,t.jsxs)(a.Fragment,{children:[d,m]}),x[23]=m,x[24]=d,x[25]=p):p=x[25],p};var v=e.i(76487),b=e.i(93106);let k=e=>{let a,r,s,i,c,o,d,u,h=(0,l.c)(21),{order:f,onSelect:m}=e,{t:p}=(0,n.useTranslation)();h[0]!==p?(a=p("search.filters.orderDate"),h[0]=p,h[1]=a):a=h[1],h[2]!==m?(r=e=>{e.preventDefault(),m("date")},h[2]=m,h[3]=r):r=h[3];let x=!f||"date"===f;h[4]!==a||h[5]!==r||h[6]!==x?(s={title:a,href:"#",onClick:r,active:x},h[4]=a,h[5]=r,h[6]=x,h[7]=s):s=h[7],h[8]!==p?(i=p("search.filters.orderRelevance"),h[8]=p,h[9]=i):i=h[9],h[10]!==m?(c=e=>{e.preventDefault(),m("relevance")},h[10]=m,h[11]=c):c=h[11];let y="relevance"===f;h[12]!==i||h[13]!==c||h[14]!==y?(o={title:i,href:"#",onClick:c,active:y},h[12]=i,h[13]=c,h[14]=y,h[15]=o):o=h[15],h[16]!==s||h[17]!==o?(d=[s,o],h[16]=s,h[17]=o,h[18]=d):d=h[18];let g=d;return h[19]!==g?(u=(0,t.jsx)("div",{className:b.default.wrapper,children:(0,t.jsx)(v.default,{theme:"small",layout:"vertical",stretch:!0,items:g})}),h[19]=g,h[20]=u):u=h[20],u};var C=e.i(721940),w=e.i(71829);let N=e=>{let a,r,s,i,c,o=(0,l.c)(16),{defaultOpen:d,channels:u,selected:h}=e,{t:f}=(0,n.useTranslation)();o[0]!==e||o[1]!==h?(a=t=>{if(t===w.SEARCH_DISPLAY_ALL_ID)return e.onSelect([]);{let l=h.includes(t)?h.filter(e=>e!==t):[...h,t];e.onSelect(l)}},o[0]=e,o[1]=h,o[2]=a):a=o[2];let m=a;o[3]!==u||o[4]!==m||o[5]!==h||o[6]!==f?(r=[{name:f("common.all"),id:w.SEARCH_DISPLAY_ALL_ID},...u].map(e=>({title:e.name,href:"#",onClick:t=>{t.preventDefault(),m(e.id)},active:e.id===w.SEARCH_DISPLAY_ALL_ID?0===h.length:h.includes(e.id)}
2)),o[3]=u,o[4]=m,o[5]=h,o[6]=f,o[7]=r):r=o[7];let p=r;return u.length?(o[8]!==f?(s=f("search.filters.channels"),o[8]=f,o[9]=s):s=o[9],o[10]!==p?(i=(0,t.jsx)(v.default,{theme:"small",layout:"vertical",items:p}),o[10]=p,o[11]=i):i=o[11],o[12]!==d||o[13]!==s||o[14]!==i?(c=(0,t.jsx)(C.default,{title:s,defaultOpen:d,children:i}),o[12]=d,o[13]=s,o[14]=i,o[15]=c):c=o[15],c):null},D=e=>{let a,r,s,i,c,o,d,u,h=(0,l.c)(27),{defaultOpen:f,topics:m,selected:p}=e,{t:x}=(0,n.useTranslation)();h[0]!==e||h[1]!==p?(a=t=>{if(t===w.SEARCH_DISPLAY_ALL_ID)return e.onSelect([]);let l=p.includes(t)?p.filter(e=>e!==t):[...p,t];return e.onSelect(l)},h[0]=e,h[1]=p,h[2]=a):a=h[2];let y=a;h[3]!==x?(r=x("common.all"),h[3]=x,h[4]=r):r=h[4],h[5]!==y?(s=e=>{e.preventDefault(),y(w.SEARCH_DISPLAY_ALL_ID)},h[5]=y,h[6]=s):s=h[6];let g=!p.length;if(h[7]!==r||h[8]!==s||h[9]!==g?(i={title:r,onClick:s,active:g,href:"#"},h[7]=r,h[8]=s,h[9]=g,h[10]=i):i=h[10],h[11]!==y||h[12]!==p||h[13]!==i||h[14]!==m){let e;h[16]!==y||h[17]!==p?(e=e=>({title:`${e}`,onClick:t=>{t.preventDefault(),y(e)},active:p.includes(e),href:"#"}),h[16]=y,h[17]=p,h[18]=e):e=h[18],c=[i,...m.map(e)],h[11]=y,h[12]=p,h[13]=i,h[14]=m,h[15]=c}else c=h[15];let _=c;return m.length?(h[19]!==x?(o=x("search.filters.topics"),h[19]=x,h[20]=o):o=h[20],h[21]!==_?(d=(0,t.jsx)(v.default,{theme:"small",layout:"vertical",items:_}),h[21]=_,h[22]=d):d=h[22],h[23]!==f||h[24]!==o||h[25]!==d?(u=(0,t.jsx)(C.default,{title:o,defaultOpen:f,children:d}),h[23]=f,h[24]=o,h[25]=d,h[26]=u):u=h[26],u):null},E=e=>{let r,n,s,i,o,d,u,h,m=(0,l.c)(34),{defaultOpen:x,form:y,channels:_,topics:S,onTextInput:v,onChannelsSelect:b,onTopicsSelect:C,onOrderSelect:w}=e,{search:E}=(0,a.useContext)(f.SiteContext),L=E.topics||E.channels?"default":"bordered";return m[0]!==v?(r=e=>v("query",e),m[0]=v,m[1]=r):r=m[1],m[2]!==y.query||m[3]!==r?(n=(0,t.jsx)(g,{value:y.query,onChange:r}),m[2]=y.query,m[3]=r,m[4]=n):n=m[4],m[5]!==y.since||m[6]!==y.until||m[7]!==v?(s=(0,t.jsx)(j,{since:y.since,until:y.until,onSelect:v}),m[5]=y.since,m[6]=y.until,m[7]=v,m[8]=s):s=m[8],m[9]!==L||m[10]!==n||m[11]!==s?(i=(0,t.jsxs)(p.default,{layout:L,children:[n,s]}),m[9]=L,m[10]=n,m[11]=s,m[12]=i):i=m[12],m[13]!==y.order||m[14]!==w?(o=(0,t.jsx)(k,{order:y.order,onSelect:w}),m[13]=y.order,m[14]=w,m[15]=o):o=m[15],m[16]!==_||m[17]!==x||m[18]!==y.channels||m[19]!==b||m[20]!==E.channels?(d=!!E.channels&&(0,t.jsx)(N,{defaultOpen:x,channels:_,selected:y.channels||[],onSelect:b}),m[16]=_,m[17]=x,m[18]=y.channels,m[19]=b,m[20]=E.channels,m[21]=d):d=m[21],m[22]!==x||m[23]!==y.scope||m[24]!==y.topics||m[25]!==C||m[26]!==E.topics||m[27]!==S?(u=!!E.topics&&[c.SearchScope.articles].includes(y.scope)&&(0,t.jsx)(D,{defaultOpen:x,topics:S,selected:y.topics||[],onSelect:C}),m[22]=x,m[23]=y.scope,m[24]=y.topics,m[25]=C,m[26]=E.topics,m[27]=S,m[28]=u):u=m[28],m[29]!==i||m[30]!==o||m[31]!==d||m[32]!==u?(h=(0,t.jsxs)(a.Fragment,{children:[i,o,d,u]}),m[29]=i,m[30]=o,m[31]=d,m[32]=u,m[33]=h):h=m[33],h},L=e=>{let a,r=(0,l.c)(3),{keyword:n,onKeyword:s}=e;return r[0]!==n||r[1]!==s?(a=(0,t.jsx)(p.default,{layout:"bordered",children:(0,t.jsx)(g,{value:n,onChange:s})}),r[0]=n,r[1]=s,r[2]=a):a=r[2],a};var T=e.i(150694),O=e.i(682635),R=e.i(890327),F=e.i(461912),P=e.i(279433);let A=e=>{let u,p,x,y,g,_,S,j,v,b,k,C,w,N,D=(0,l.c)(40),{channels:A,topics:I,defaultOpen:q,inOverlay:z}=e,{t:H}=(0,n.useTranslation)(),{channelId:K}=(0,a.useContext)(f.SiteContext),{closeOverlay:B}=(0,O.useOverlay)(R.OverlayKey.search),U=(0,r.useSearchParams)(),X=(0,m.default)(),Y=(0,r.usePathname)();D[0]!==Y?(u=Y.startsWith(h.SitePath.search),D[0]=Y,D[1]=u):u=D[1];let $=u;D[2]!==K||D[3]!==$||D[4]!==U?(p=()=>$?d(U,K):{channels:(0,o.getDefaultFilterChannels)(K),query:"",topics:[],since:"",until:"",order:"date",scope:(0,o.getDefaultFilterScope)(K)},D[2]=K,D[3]=$,D[4]=U,D[5]=p):p=D[5];let[W,M]=(0,a.useState)(p);D[6]!==X?(x={form:M,url:X},D[6]=X,D[7]=x):x=D[7];let J=!$;D[8]!==z||D[9]!==J?(y={form:z,url:J},D[8]=z,D[9]=J,D[10]=y):y=D[10],D[11]!==W||D[12]!==x||D[13]!==y?(g={form:W,parseParams:d,update:x,skip:y},D[11]=W,D[12]=x,D[13]=y,D[14]=g):g=D[14],(0,i.default)(g),D[15]===Symbol.for("react.memo_cache_sentinel")?(_=(e,t)=>{("since"===e||"until"===e)&&(t=(0,s.formatDate)(t,"yyyy-LL-dd")||""),M(l=>({...l,[e]:t}))},D[15]=_):_=D[15];let V=_;D[16]===Symbol.for("react.memo_cache_sentinel")?(S=e=>{M(t=>({...t,channels:e}))},D[16]=S):S=D[16];let Q=S;D[17]===Symbol.for("react.memo_cache_sentinel")?(j=e=>{M(t=>({...t,topics:e}))},D[17]=j):j=D[17];let G=j;D[18]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{M(t=>({...t,order:e}))},D[18]=v):v=D[18];let Z=v;D[19]!==B||D[20]!==W||D[21]!==z||D[22]!==X?(b=()=>{z&&(B(),(0,T.afterOverlayClose)(()=>X(W)))},D[19]=B,D[20]=W,D[21]=z,D[22]=X,D[23]=b):b=D[23];let ee=b;return D[24]!==A||D[25]!==q||D[26]!==W||D[27]!==I?(k=[c.SearchScope.articles,c.SearchScope.podcasts,c.SearchScope.videos].includes(W.scope)&&(0,t.jsx)(E,{defaultOpen:q,form:W,channels:A,topics:I,onTextInput:V,onChannelsSelect:Q,onTopicsSelect:G,onOrderSelect:Z}),D[24]=A,D[25]=q,D[26]=W,D[27]=I,D[28]=k):k=D[28],D[29]!==W.query||D[30]!==W.scope?(C=[c.SearchScope.persons,c.SearchScope.companies].includes(W.scope)&&(0,t.jsx)(L,{keyword:W.query,onKeyword:e=>V("query",e)}),D[29]=W.query,D[30]=W.scope,D[31]=C):C=D[31],D[32]!==z||D[33]!==H?(w=z&&(0,t.jsx)(P.default,{layout:"centered",stickyMobile:!0,children:(0,t.jsx)(F.default,{title:H("common.search"),theme:"primary",size:"large",type:"submit"})}),D[32]=z,D[33]=H,D[34]=w):w=D[34],D[35]!==ee||D[36]!==k||D[37]!==C||D[38]!==w?(N=(0,t.jsxs)("form",{action:ee,children:[k,C,w]}),D[35]=ee,D[36]=k,D[37]=C,D[38]=w,D[39]=N):N=D[39],N};A.displayName="SearchFilters",e.s(["default",0,A],832351)},408122,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(645141);e.i(785269);var r=e.i(200071),n=e.i(402607),s=e.i(822213);let i=async e=>{let t=e.instance||(0,a.createInstance)();return t.use(n.initReactI18next),await t.init({lng:e.locale,resources:{[e.locale]:{common:e.dictionary}}
2,ns:["common"],defaultNS:"common",supportedLngs:Object.values(s.Locale)}),{i18n:t,t:t.t}};e.s(["default",0,e=>{let n,s,c=(0,l.c)(6);return c[0]!==e.dictionary||c[1]!==e.locale?(n=(0,a.createInstance)(),i({dictionary:e.dictionary,locale:e.locale,instance:n}),c[0]=e.dictionary,c[1]=e.locale,c[2]=n):n=c[2],c[3]!==n||c[4]!==e.children?(s=(0,t.jsx)(r.I18nextProvider,{i18n:n,children:e.children}),c[3]=n,c[4]=e.children,c[5]=s):s=c[5],s}],408122)},181538,e=>{"use strict";var t=e.i(616027),l=e.i(238159),a=e.i(870793);e.s(["getDefaultFilterChannels",0,e=>(0,a.isRadar)(e)?[]:[e],"getDefaultFilterScope",0,e=>e===t.Channel.radar?l.SearchScope.companies:l.SearchScope.articles])},316957,e=>{"use strict";var t=e.i(271645),l=e.i(618566),a=e.i(598389);e.s(["default",0,({form:e,update:r,parseParams:n,skip:s})=>{let{channelId:i}=(0,t.useContext)(a.SiteContext),c=(0,l.useSearchParams)(),o=(0,t.useRef)(void 0),d=()=>JSON.stringify(n(c,i))!==JSON.stringify(e);(0,t.useEffect)(()=>(!s?.form&&d()&&(o.current=setTimeout(()=>{r.url(e),o.current=void 0},500)),()=>{clearTimeout(o.current)}),[e]),(0,t.useEffect)(()=>{!o.current&&d()&&!s?.url&&r.form(n(c,i))},[c])}])},691289,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(271645),r=e.i(343794),n=e.i(201135);let s=e=>{let a,s,i,c,o=(0,l.c)(17),{checked:d,disabled:u,onFocus:h,onBlur:f,onChange:m,name:p,id:x,onClick:y,hasError:g,className:_,inputRef:S}=e;return o[0]!==_||o[1]!==g?(a=(0,r.default)("control-checkbox__overflow",{"has-error":g},_),o[0]=_,o[1]=g,o[2]=a):a=o[2],o[3]!==d||o[4]!==u||o[5]!==x||o[6]!==S||o[7]!==p||o[8]!==f||o[9]!==m||o[10]!==y||o[11]!==h?(s=(0,t.jsx)("input",{type:"checkbox",checked:d,disabled:u,onFocus:h,onBlur:f,onClick:y,onChange:m,ref:S,name:p,id:x}),o[3]=d,o[4]=u,o[5]=x,o[6]=S,o[7]=p,o[8]=f,o[9]=m,o[10]=y,o[11]=h,o[12]=s):s=o[12],o[13]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("span",{children:(0,t.jsx)(n.default,{width:16,height:16,kind:"check"})}),o[13]=i):i=o[13],o[14]!==a||o[15]!==s?(c=(0,t.jsx)("label",{className:"control-checkbox",children:(0,t.jsxs)("span",{className:a,children:[s,i]})}),o[14]=a,o[15]=s,o[16]=c):c=o[16],c};s.displayName="ControlCheckbox";let i=e=>{let n,i,c,o,d,u,h,f=(0,l.c)(20);f[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.createRef(),f[0]=n):n=f[0];let m=n;return f[1]!==e.checked||f[2]!==e.disabled||f[3]!==e.hasError||f[4]!==e.id||f[5]!==e.name||f[6]!==e.onChange?(i=(0,t.jsx)(s,{checked:e.checked,disabled:e.disabled,onChange:e.onChange,hasError:e.hasError,name:e.name,id:e.id,inputRef:m}),f[1]=e.checked,f[2]=e.disabled,f[3]=e.hasError,f[4]=e.id,f[5]=e.name,f[6]=e.onChange,f[7]=i):i=f[7],f[8]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{m.current&&(m.current.focus(),m.current.click())},f[8]=c):c=f[8],f[9]!==e.hasError?(o=(0,r.default)("checkbox-with-label__label__text",{"has-error":e.hasError}),f[9]=e.hasError,f[10]=o):o=f[10],f[11]!==e.label||f[12]!==o?(d=(0,t.jsx)("span",{className:o,children:e.label}),f[11]=e.label,f[12]=o,f[13]=d):d=f[13],f[14]!==e.addOn||f[15]!==d?(u=(0,t.jsxs)("div",{className:"checkbox-with-label__label",onClick:c,children:[d,e.addOn]}),f[14]=e.addOn,f[15]=d,f[16]=u):u=f[16],f[17]!==i||f[18]!==u?(h=(0,t.jsxs)("div",{className:"checkbox-with-label",children:[i,u]}),f[17]=i,f[18]=u,f[19]=h):h=f[19],h};i.displayName="ControlCheckboxWithLabel",e.s(["default",0,i],691289)},344497,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(271645),r=e.i(343794),n=e.i(201135),s=e.i(166340);let i=e=>{let i,c,o,d,u,h,f,m,p,x,y,g,_,S,j,v=(0,l.c)(35);v[0]!==e?({inputRef:o,hasError:c,onFocus:u,onBlur:d,className:i,...h}=e,v[0]=e,v[1]=i,v[2]=c,v[3]=o,v[4]=d,v[5]=u,v[6]=h):(i=v[1],c=v[2],o=v[3],d=v[4],u=v[5],h=v[6]);let[b,k]=a.useState(!1),C=a.useRef(null);return v[7]!==i||v[8]!==c||v[9]!==b||v[10]!==e.disabled?(f=(0,r.default)("control-date",{"has-error":c,focus:b,disabled:e.disabled},i),v[7]=i,v[8]=c,v[9]=b,v[10]=e.disabled,v[11]=f):f=v[11],v[12]!==u?(m=e=>{k(!0),u&&u(e)},v[12]=u,v[13]=m):m=v[13],v[14]!==d?(p=e=>{k(!1),d&&d(e)},v[14]=d,v[15]=p):p=v[15],v[16]!==o||v[17]!==e.autoFocus?(x=t=>{o&&o(t),t&&(C.current=t,e.autoFocus&&window.requestAnimationFrame(()=>{t.focus()}))},v[16]=o,v[17]=e.autoFocus,v[18]=x):x=v[18],v[19]!==e.loading||v[20]!==h||v[21]!==m||v[22]!==p||v[23]!==x?(y=(0,t.jsx)("input",{...h,type:"date",className:"control-date__input",onFocus:m,onBlur:p,ref:x,"aria-busy":e.loading}),v[19]=e.loading,v[20]=h,v[21]=m,v[22]=p,v[23]=x,v[24]=y):y=v[24],v[25]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)("div",{className:"control-date__icon",children:(0,t.jsx)(n.default,{width:24,height:24,kind:"calendar-month"})}),v[25]=g):g=v[25],v[26]!==y?(_=(0,t.jsxs)("div",{className:"control-date__holder",children:[y,g]}),v[26]=y,v[27]=_):_=v[27],v[28]!==e.loading?(S=e.loading&&(0,t.jsx)("span",{className:"control-date__loader",children:(0,t.jsx)(s.default,{size:"tiny"})}),v[28]=e.loading,v[29]=S):S=v[29],v[30]!==e.style||v[31]!==f||v[32]!==_||v[33]!==S?(j=(0,t.jsxs)("div",{className:f,style:e.style,children:[_,S]}),v[30]=e.style,v[31]=f,v[32]=_,v[33]=S,v[34]=j):j=v[34],j};i.displayName="ControlDate",e.s(["default",0,i])},613026,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(271645);e.i(785269);var r=e.i(322831),n=e.i(343794),s=e.i(953760),i=e.i(258950),c=e.i(543489),o=e.i(239715),d=e.i(989227),u=e.i(412333),h=e.i(166340),f=e.i(675579),m=e.i(201135),p=e.i(474950);let x=e=>{let r,n,s,i,c=(0,l.c)(12);return c[0]!==e?(r=()=>{e.onClick(),e.reset&&e.onReset()},c[0]=e,c[1]=r):r=c[1],c[2]!==e.keyword||c[3]!==e.label?(n=(0,t.jsx)("span",{children:(0,t.jsx)(o.default,{text:e.label,search:e.keyword})}
2),c[2]=e.keyword,c[3]=e.label,c[4]=n):n=c[4],c[5]!==e.icon||c[6]!==e.loading?(s=e.loading?(0,t.jsx)(h.default,{size:"small"}):(0,t.jsx)(a.Fragment,{children:e.icon&&(0,t.jsx)(m.default,{width:20,height:20,kind:e.icon})}),c[5]=e.icon,c[6]=e.loading,c[7]=s):s=c[7],c[8]!==r||c[9]!==n||c[10]!==s?(i=(0,t.jsx)("li",{children:(0,t.jsxs)("button",{onClick:r,children:[n,s]})}),c[8]=r,c[9]=n,c[10]=s,c[11]=i):i=c[11],i},y=e=>{let o,y,_,S,j,v,b,k,C,w,N,D,E,L,T,O,R,F,P=(0,l.c)(87),{t:A}=(0,r.useTranslation)(),[I,q]=a.useState(!1),[z,H]=a.useState(""),[K,B]=a.useState(!1),U=a.useRef(null);P[0]===Symbol.for("react.memo_cache_sentinel")?(o={placement:"bottom",strategy:"fixed",whileElementsMounted:s.autoUpdate,middleware:[(0,i.shift)({padding:10}),(0,i.size)({apply(e){let{rects:t,elements:l}=e;l.floating.style.width=`${t.reference.width}px`}})]},P[0]=o):o=P[0];let{refs:X,floatingStyles:Y}=(0,c.useFloating)(o);P[1]!==X?(y=e=>X.setReference(e),P[1]=X,P[2]=y):y=P[2];let $=y;P[3]!==X?(_=e=>X.setFloating(e),P[3]=X,P[4]=_):_=P[4];let W=_;P[5]!==e?(S=()=>{H(""),e.onReset?.()},P[5]=e,P[6]=S):S=P[6];let M=S;P[7]!==M?(j=()=>{(0,f.afterUiSpeed)(()=>M())},P[7]=M,P[8]=j):j=P[8];let J=j;if(P[9]!==X.floating?(v=()=>{let e=e=>{let t=e.target;t&&X.floating.current?.contains(t)?(q(!0),B(!0),setTimeout(()=>{U?.current&&U.current.focus()})):B(!1)};return globalThis.addEventListener("mousedown",e),()=>{globalThis.removeEventListener("mousedown",e)}},P[9]=X.floating,P[10]=v):v=P[10],P[11]!==K||P[12]!==X.floating?(b=[K,X.floating],P[11]=K,P[12]=X.floating,P[13]=b):b=P[13],a.useEffect(v,b),P[14]!==I||P[15]!==M?(k=()=>{I&&M()},P[14]=I,P[15]=M,P[16]=k):k=P[16],P[17]!==I?(C=[I],P[17]=I,P[18]=C):C=P[18],(0,d.useKeypress)("Escape",k,C),P[19]!==z||P[20]!==e?(w=()=>{e.onSearch(z)},P[19]=z,P[20]=e,P[21]=w):w=P[21],P[22]!==z?(N=[z],P[22]=z,P[23]=N):N=P[23],(0,u.useDebounce)(w,N,300),P[24]!==Y||P[25]!==I||P[26]!==K||P[27]!==z||P[28]!==e||P[29]!==M||P[30]!==J||P[31]!==W||P[32]!==$||P[33]!==A){let l,a,r,s,i,c,o,d,u,f,y,_,S,j=e.results.filter(g),v=z.length>=3&&j.length>0&&(I||K),b=!e.theme||"default"===e.theme,k="header"===e.theme,C="wizard"===e.theme,w="left"===e.align;P[39]!==b||P[40]!==k||P[41]!==C||P[42]!==w?(L=(0,n.default)("control-search",{"theme-default":b,"theme-header":k,"theme-wizard":C,"align-left":w}),P[39]=b,P[40]=k,P[41]=C,P[42]=w,P[43]=L):L=P[43],T=$,P[44]!==I?(l=(0,n.default)("control-search__input",{focus:I}),P[44]=I,P[45]=l):l=P[45],P[46]!==z||P[47]!==e||P[48]!==J?(a=t=>{t.preventDefault(),e.onFormSubmit&&(e.onFormSubmit?.(z),J())},P[46]=z,P[47]=e,P[48]=J,P[49]=a):a=P[49],P[50]!==e.loading?(r=e.loading?(0,t.jsx)(h.default,{size:"small"}):(0,t.jsx)(m.default,{width:24,height:24,kind:"search",wrapperClassName:"control-search__input__icon"}),P[50]=e.loading,P[51]=r):r=P[51],P[52]===Symbol.for("react.memo_cache_sentinel")?(s=e=>{H(e.target.value||"")},i=()=>{q(!0)},c=()=>{q(!1)},P[52]=s,P[53]=i,P[54]=c):(s=P[52],i=P[53],c=P[54]),P[55]!==z||P[56]!==e.placeholder?(o=(0,t.jsx)("input",{name:"keyword",type:"text",value:z,autoComplete:"off",onChange:s,onFocus:i,onBlur:c,ref:U,placeholder:e.placeholder,title:e.placeholder}),P[55]=z,P[56]=e.placeholder,P[57]=o):o=P[57];let N=!z;P[58]!==M?(d=e=>{e.preventDefault(),U?.current&&U.current.focus(),M()},P[58]=M,P[59]=d):d=P[59],P[60]!==A?(u=A("search.clear"),P[60]=A,P[61]=u):u=P[61],P[62]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(m.default,{width:24,height:24,kind:"close"}),P[62]=f):f=P[62],P[63]!==N||P[64]!==d||P[65]!==u?(y=(0,t.jsx)("button",{className:"control-search__input__clear",disabled:N,onMouseDown:d,title:u,type:"button",children:f}),P[63]=N,P[64]=d,P[65]=u,P[66]=y):y=P[66];let R=!z;P[67]!==A?(_=A("common.search"),P[67]=A,P[68]=_):_=P[68],P[69]!==R||P[70]!==_?(S=(0,t.jsx)("button",{className:"control-search__input__submit",disabled:R,type:"submit",children:_}),P[69]=R,P[70]=_,P[71]=S):S=P[71],P[72]!==l||P[73]!==a||P[74]!==r||P[75]!==o||P[76]!==y||P[77]!==S?(O=(0,t.jsxs)("form",{className:l,onSubmit:a,children:[r,o,y,S]}),P[72]=l,P[73]=a,P[74]=r,P[75]=o,P[76]=y,P[77]=S,P[78]=O):O=P[78],D=p.Portal,E=v&&(0,t.jsx)("div",{className:"control-search__results",onMouseDown:()=>{q(!0),B(!0)},ref:W,style:Y,children:j.map((e,l)=>(0,t.jsxs)("div",{className:"control-search__results__group",children:[(0,t.jsx)("p",{children:e.title}),(0,t.jsxs)("ul",{className:"control-search__results__list",children:[e.items.map((e,l)=>(0,t.jsx)(x,{keyword:z,onReset:J,...e},l)),!!e.link&&e.items.length>0&&(0,t.jsx)("li",{children:(0,t.jsx)("button",{onClick:()=>{e.link.onClick(z),e.link.reset&&J()},children:(0,t.jsx)("span",{children:e.link.label})})})]})]},l))}),P[24]=Y,P[25]=I,P[26]=K,P[27]=z,P[28]=e,P[29]=M,P[30]=J,P[31]=W,P[32]=$,P[33]=A,P[34]=D,P[35]=E,P[36]=L,P[37]=T,P[38]=O}else D=P[34],E=P[35],L=P[36],T=P[37],O=P[38];return P[79]!==D||P[80]!==E?(R=(0,t.jsx)(D,{children:E}),P[79]=D,P[80]=E,P[81]=R):R=P[81],P[82]!==L||P[83]!==T||P[84]!==O||P[85]!==R?(F=(0,t.jsxs)("div",{className:L,ref:T,children:[O,R]}),P[82]=L,P[83]=T,P[84]=O,P[85]=R,P[86]=F):F=P[86],F};function g(e){return e.items.length>0}y.displayName="ControlSearch",e.s(["default",0,y])},7927,e=>{"use strict";var t=e.i(843476),l=e.i(500932),a=e.i(271645),r=e.i(496157),n=e.i(201135);function s(e,t,l,a){return new Promise(r=>{let n=e.animate(t,l),s=()=>{n.cancel()},i=()=>{a.removeEventListener("abort",s),n.removeEventListener("finish",i),r()};a.addEventListener("abort",s),n.addEventListener("finish",i)})}let i=e=>{let a,r,n=(0,l.c)(4);return n[0]!==e.data?(a=e.data.map(o),n[0]=e.data,n[1]=a):a=n[1],n[2]!==a?(r=(0,t.jsx)("ul",{className:"ticker__list",children:a}),n[2]=a,n[3]=r):r=n[3],r},c=e=>{let n,c,o,d,u,h,f=(0,l.c)(11),m=a.useRef(null),p=a.useRef(null);f[0]===Symbol.for("react.memo_cache_sentinel")?(n={duration:1e5,easing:"linear",delay:0,iterations:1,fill:"forwards",direction:"normal"},f[0]=n):n=f[0];let x=n,{width:y}=(0,r.useElementSize)(m);return(f[1]!==y?(c=()=>
2{if(!y||!m.current||!p.current)return;let e=m.current,t=p.current,l=new AbortController;async function a(){let r=[{transform:"translateX(0px)"},{transform:`translateX(${-1*y}px)`}],n=[{transform:`translateX(${y}px)`},{transform:"translateX(0px)"}],i=[{transform:`translateX(${-1*y}px)`},{transform:`translateX(${-2*y}px)`}];return Promise.all([s(e,r,x,l.signal).then(()=>s(e,n,x,l.signal)),s(t,r,x,l.signal).then(()=>s(t,i,x,l.signal))]).then(()=>a())}return a(),()=>{l.abort()}},o=[y,x],f[1]=y,f[2]=c,f[3]=o):(c=f[2],o=f[3]),a.useEffect(c,o),0===e.data.length)?null:(f[4]!==e.data?(d=(0,t.jsx)("div",{ref:m,className:"ticker__group",children:(0,t.jsx)(i,{data:e.data})}),f[4]=e.data,f[5]=d):d=f[5],f[6]!==e.data?(u=(0,t.jsx)("div",{ref:p,className:"ticker__group",children:(0,t.jsx)(i,{data:e.data})}),f[6]=e.data,f[7]=u):u=f[7],f[8]!==d||f[9]!==u?(h=(0,t.jsxs)("div",{className:"ticker",children:[d,u]}),f[8]=d,f[9]=u,f[10]=h):h=f[10],h)};function o(e,l){let a=parseFloat((e.change??"0").replace(/\s/g,"").replace(",",".").replace("−","-"));return(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{children:e.title}),void 0!==e.change&&!isNaN(a)&&a<=0&&(0,t.jsxs)("span",{children:[(0,t.jsx)(n.default,{width:16,height:16,kind:"down-solid"}),(0,t.jsxs)("span",{className:"text-intent-danger",children:[e.change,"%"]})]}),void 0!==e.change&&!isNaN(a)&&a>0&&(0,t.jsxs)("span",{children:[(0,t.jsx)(n.default,{width:16,height:16,kind:"up-solid"}),(0,t.jsxs)("span",{className:"text-intent-success",children:[e.change,"%"]})]}),(0,t.jsx)("span",{children:e.value})]},l)}c.displayName="Ticker",e.s(["animate",0,s,"default",0,c])},469749,e=>{"use strict";var t=e.i(500932),l=e.i(271645),a=e.i(266027),r=e.i(598389),n=e.i(933818),s=e.i(794055);let i=async(e,t)=>
2e?(0,s.loadSearchData)({uri:t}):[];async function c(e){let[t,l]=await Promise.all([i(!!e.topics,"/v3/topics"),i(!!e.channels,"/channels")]);return{topics:t,channels:l}}e.s(["default",0,()=>{let e,s,i,o,d=(0,t.c)(10),{search:u}=(0,l.useContext)(r.SiteContext);if(d[0]!==u)e=(0,n.queryOptions)({queryKey:["searchFilters",u.topics,u.channels],queryFn:()=>c(u),retry:!1}),d[0]=u,d[1]=e;else e=d[1];let{data:h,isLoading:f}=(0,a.useQuery)(e);return d[2]!==h?.topics?(s=h?.topics??[],d[2]=h?.topics,d[3]=s):s=d[3],d[4]!==h?.channels?(i=h?.channels??[],d[4]=h?.channels,d[5]=i):i=d[5],d[6]!==f||d[7]!==s||d[8]!==i?(o={topics:s,channels:i,loading:f},d[6]=f,d[7]=s,d[8]=i,d[9]=o):o=d[9],o}],469749)},232189,(e,t,l)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},865156,(e,t,l)=>{"use strict";var a=e.r(232189);function r(){}function n(){}n.resetWarningCache=r,t.exports=function(){function e(e,t,l,r,n,s){if(s!==a){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var l={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:r};return l.PropTypes=l,l}},745009,(e,t,l)=>{t.exports=e.r(865156)()}]);
3
4//# debugId=75a65d04-4bc2-67ff-6aad-36bd2820d8a2

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.