1import{C as a,D as e,E as t,Gt as s,Lt as i,N as n,T as l,Tt as r,fn as o,hn as c,it as h,w as u}from"./B8XHxhss.js";import{Et as E,O as f,_,nt as p}from"#entry";import{t as S}from"./DXNx4Ry-.js";function R(a,e){return"]"===e&&(e="\\]"),"^"===e&&(e="\\^"),"\\"===e&&(e="\\\\"),a.replace(new RegExp("^["+e+"]+|["+e+"]+$","g"),"")}var b={key:0,class:"<656:sr-only flex-shrink-0"},T={class:"inline-block flex-shrink-0"},g=["aria-label"],w={key:0,class:"<656:sr-only flex-shrink-0"},y={class:"inline-block flex-shrink-0"},m={__name:"SiteHeaderSearchButton",props:{name:String,url:String},setup(m){const z=m,d=i(z.url),k=window.history.length,H=a(()=>function(a){const{path:e}=E();return R(e,"/")===R(a,"/")}(z.url));async function A(){const a=location.hash?.substring?.(2);a&&new URLSearchParams(a).get("cludorefurl")?history.go(-(2+window.history.length-k)):history.go(-(1+window.history.length-k))}return(a,i)=>{const E=S,R=f;return s(H)?(h(),e("button",{key:1,class:o(["c-site-header-search-button",{"c-site-header-search-button--with-label":("feature"in a?a.feature:s(p))("SITE_HEADER_WRITE_OUT_SEARCH")}]),"aria-label":("localize"in a?a.localize:s(_))("CLOSE",{capitalize:!0}),onClick:A},[("feature"in a?a.feature:s(p))("SITE_HEADER_WRITE_OUT_SEARCH")?(h(),e("span",w,c(("localize"in a?a.localize:s(_))("CLOSE",{capitalize:!0})),1)):t("",!0),u("span",y,[n(E,{name:"close",weight:"400"})])],10,g)):(h(),l(R,{key:0,class:o(["c-site-header-search-button",{"c-site-header-search-button--with-label":("feature"in a?a.feature:s(p))("SITE_HEADER_WRITE_OUT_SEARCH")}]),to:s(d),"aria-label":("localize"in a?a.localize:s(_))("SEARCH",{capitalize:!0})},{default:r(()=>[("feature"in a?a.feature:s(p))("SITE_HEADER_WRITE_OUT_SEARCH")?(h(),e("span",b,c(m.name||("localize"in a?a.localize:s(_))("SEARCH",{capitalize:!0})),1)):t("",!0),u("span",T,[n(E,{name:"search",weight:"400"})])]),_:1},8,["class","to","aria-label"]))}}};export{m as default};
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.