1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5d45bb83-34af-559e-b692-1342fea35e54")}catch(e){}}(); 3import{r as f,j as t,N as b}from"./vendor-react-D7BZ9ZKA.js";import{e as g,d as w}from"./index-p6KOfqs7.js";import{F as m}from"./index.es-Duu2oIUt.js";import{c as p}from"./clsx-Bni0NcdX.js";import{u as y}from"./index-CMhsEtVR.js";import{R as k}from"./index-BqVEyqMg.js";import{u as z}from"./useTranslation-CMI_qxNb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"e34a2f9468e4617a77893c27d98e903c140fca28"}}catch{}})();function j(){if(typeof navigator>"u")return!1;const e=navigator.userAgentData,n=(e==null?void 0:e.platform)||navigator.platform||navigator.userAgent||"";return/mac|iphone|ipad|ipod/i.test(n)}function v(){return y()?j()?"âK":"Ctrl K":null}function N(e,n,r){const s=n.trim().toLowerCase();if(!s)return e;const c=[];for(const o of e){const l=(o.label??r(o.title)).toLowerCase();let i=-1;l.startsWith(s)?i=0:l.includes(s)?i=1:o.subSettings.some(d=>d.toLowerCase().includes(s))?i=2:o.keywords.some(d=>d.toLowerCase().includes(s))&&(i=3),i>=0&&c.push({link:o,score:i})}return c.sort((o,l)=>o.score-l.score).map(o=>o.link)}function S({text:e,needle:n}){if(!n)return e;const r=e.toLowerCase().indexOf(n.toLowerCase());return r<0?e:t.jsxs(t.Fragment,{children:[e.slice(0,r),t.jsx("mark",{className:"rounded bg-yellow-200 px-0.5 text-zinc-900 dark:bg-amber-400/40 dark:text-amber-50",children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}function C({to:e,label:n,needle:r}){return t.jsx(b,{to:e,children:({isActive:s})=>t.jsx("div",{className:p("my-0.5 w-full px-2 transition-all duration-300 ease-out",s?"border-s-4 border-zinc-950 dark:border-white":"border-s-3 border-zinc-300/0"),children:t.jsx("span",{className:p("group flex w-full items-center rounded-md px-2 py-2 transition-all duration-300 ease-in-out hover:bg-zinc-950/5 dark:hover:bg-white/10",s?"font-medium text-zinc-950 dark:text-white":"text-zinc-600/85 hover:font-medium dark:text-zinc-400"),children:t.jsx("p",{className:"line-clamp-1 hyphens-auto lg:text-sm",children:t.jsx(S,{text:n,needle:r})})})})})}function _({to:e,label:n,needle:r,mobile:s}){const c=t.jsx(C,{to:e,label:n,needle:r});return s?t.jsx(k,{className:"w-full",children:t.jsx("div",{className:"w-full",children:c})}):t.jsx("div",{className:"w-full",children:c})}function F({index:e,mobile:n=!1}){const{t:r}=z("author"),[s,c]=f.useState(""),o=f.useRef(null),l=s.trim(),i=l.length>0,d=v(),u=f.useMemo(()=>N(e,l,a=>r(a)),[e,l,r]),h=()=>{var a;c(""),(a=o.current)==null||a.focus()},x=u.map(a=>t.jsx(_,{to:a.to,label:r(a.title),needle:i?l:"",mobile:n},a.key));return t.jsxs("div",{children:[t.jsx("search",{className:"block px-2 pt-1 pb-2",children:t.jsxs("div",{className:"relative",children:[t.jsx(m,{icon:g,className:"pointer-events-none absolute top-1/2 left-2.5 -translate-y-1/2 text-xs text-zinc-400"}),t.jsx("input",{ref:o,type:"search",value:s,onChange:a=>c(a.target.value),onKeyDown:a=>{a.key==="Escape"&&s&&(a.preventDefault(),h())},placeholder:r("account_search_placeholder",{defaultValue:"Search account settings"}),"aria-label":r("account_search_placeholder",{defaultValue:"Search account settings"}),className:"w-full rounded-md border border-zinc-300 bg-white py-1.5 pr-7 pl-7 text-sm text-zinc-900 placeholder:text-zinc-400 focus:border-zinc-500 focus:outline-none dark:border-zinc-600 dark:bg-zinc-900 dark:text-zinc-100 dark:placeholder:text-zinc-500"}),s&&t.jsx("button",{type:"button",onClick:h,"aria-label":r("account_search_clear",{defaultValue:"Clear search"}),className:"absolute top-1/2 right-1.5 -translate-y-1/2 rounded p-1 text-zinc-400 hover:text-zinc-700 dark:hover:text-zinc-200",children:t.jsx(m,{icon:w,className:"text-xs"})}),!n&&!s&&d&&t.jsx("kbd",{"aria-hidden":!0,className:"pointer-events-none absolute top-1/2 right-2 hidden -translate-y-1/2 roun
3ded-sm border border-zinc-300 px-1 py-px font-mono text-[10px] text-zinc-400 lg:block dark:border-zinc-600 dark:text-zinc-500",children:d})]})}),t.jsx("div",{"aria-live":"polite",className:"sr-only",children:i&&u.length===0?r("account_search_no_results",{defaultValue:"No settings found"}):""}),i&&u.length===0?t.jsx("p",{className:"px-5 py-2 text-sm text-zinc-500 dark:text-zinc-400",children:r("account_search_no_results",{defaultValue:"No settings found"})}):x]})}export{F as S,N as f}; 4 5//# debugId=5d45bb83-34af-559e-b692-1342fea35e54
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.