PageSourceSearch

https://mioz.life/_next/static/chunks/9777.1ed0095fc5ee60ed.js

js mioz.life collected 2026-10-04 01:43:35 UTC 6,199 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9777,33035,86807],{9777:(e,t,r)=>{r.r(t),r.d(t,{SearchInput:()=>c,default:()=>i});var a=r(37876),s=r(14232),n=r(89099),o=r(62326),l=r(33035);let c=e=>{var t;let{keyword:r="",locale:c,compact:i=!1,titleMeta:d="",allNavPages:p=[]}=e,u=(0,n.useRouter)(),[h,x]=(0,s.useState)(r||""),[m,b]=(0,s.useState)(!1),v=h.trim().toLowerCase(),f=v?p.filter(e=>[null==e?void 0:e.title,null==e?void 0:e.summary,null==e?void 0:e.category,...Array.isArray(null==e?void 0:e.tags)?e.tags:[]].filter(Boolean).join(" ").toLowerCase().includes(v)):[];return(0,s.useEffect)(()=>{x(r||"")},[r]),(0,a.jsx)("div",{className:"".concat(i?"":"endspace-frame p-6"," transition-colors ").concat(m&&!i?"border-[var(--endspace-accent-yellow)]":""),children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),h.trim()&&u.push("/search/".concat(encodeURIComponent(h)))},className:"space-y-4",children:[(0,a.jsxs)("div",{className:"endspace-section-title flex items-center tech-text tracking-wider",children:[(0,a.jsx)("span",{className:"text-5xl font-black",children:"SEARCH"}),d&&(0,a.jsxs)("span",{className:"endspace-section-meta",children:["// ",d]})]}),(0,a.jsxs)("div",{className:"relative group",children:[(0,a.jsx)("input",{type:"text",value:h,onChange:e=>x(e.target.value),onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:(null==c||null==(t=c.SEARCH)?void 0:t.ARTICLES)||"Input query...",className:"w-full px-4 py-3 bg-[var(--endspace-bg-secondary)] border border-[var(--endspace-border-base)] text-[var(--endspace-text-primary)] ".concat(i?"focus:bg-[var(--endspace-bg-secondary)] focus:text-[var(--endspace-text-primary)] focus:border-[var(--endspace-border-base)]":"focus:bg-black focus:text-[#FBFB46] focus:border-[var(--endspace-accent-yellow)]"," focus:outline-none transition-colors pr-24 tech-text text-sm placeholder-[var(--endspace-text-muted)]")}),m&&f.length>0&&(0,a.jsx)("div",{className:"absolute left-0 right-0 top-full z-30 mt-2 max-h-80 overflow-y-auto border border-[var(--endspace-border-base)] bg-[var(--endspace-bg-primary)] shadow-lg",onMouseDown:e=>e.preventDefault(),children:f.map((e,t)=>(0,a.jsx)(l.A,{href:"/".concat(e.slug),children:(0,a.jsxs)("div",{className:"group/item flex cursor-pointer items-start gap-3 border-b border-[var(--endspace-border-base)] px-3 py-2.5 last:border-b-0 hover:bg-[#FBFB46]",children:[(0,a.jsx)("span",{className:"mt-0.5 w-5 flex-shrink-0 text-[10px] font-mono text-[var(--endspace-text-muted)] group-hover/item:text-black",children:String(t+1).padStart(2,"0")}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("div",{className:"truncate text-sm font-bold text-[var(--endspace-text-primary)] group-hover/item:text-black",children:e.title||e.slug}),(0,a.jsx)("div",{className:"mt-1 truncate text-[10px] text-[var(--endspace-text-muted)] group-hover/item:text-black",children:[e.category,...Array.isArray(e.tags)?e.tags.slice(0,3).map(e=>"#".concat(e)):[]].filter(Boolean).join(" / ")||"NO_METADATA"})]})]})},e.id||e.slug))}),h&&(0,a.jsx)("button",{type:"button",onClick:()=>{x("")},className:"absolute right-16 top-1/2 -translate-y-1/2 text-[var(--endspace-text-muted)] hover:text-red-500 transition-colors px-2",children:(0,a.jsx)(o.A,{size:14,stroke:1.5})}),(0,a.jsx)("button",{type:"submit",className:"absolute right-1 top-1 bottom-1 px-3 bg-[var(--endspace-bg-tertiary)] text-black hover:bg-[#FBFB46] hover:text-black transition-colors font-bold text-xs border-l border-[var(--endspace-border-base)]",children:"GO"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between text-[10px] text-[var(--endspace-text-muted)] font-mono",children:[(0,a.jsxs)("div",{children:["SYSTEM_STATUS: ",(0,a.jsx)("span",{className:"text-green-500",children:"ONLINE"})]}),(0,a.jsx)("div",{children:"Index_v4.2.0"})]})]})})},i=c},33035:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(37876),s=r(48230),n=r.n(s),o=r(22507);let l=e=>{let{href:t,children:r,...s}=e,l=(0,o.CQ)("LINK"),c="";"string"==typeof t?c=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(c=t.pathname);let i=c.startsWith("http")&&!c.startsWith(l),d=()=>{var e;let t=new URLSearchParams((null==(e=window.location.search)?void 0:e.slice(1))||""),r={};for(let[e,a]of t.entries())""!==a&&(r[e]=a);return r};if(i){let e="string"==typeof t?t:new URL(t.pathname,l).toString();return(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",...(e=>{let{passHref:t,legacyBehavior:r,placeholderSrc:a,fallbackSrc:s,...n}=e;return n})(s),children:r})}
1let p="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=d();if(0===Object.keys(t).length)return e;let r=e.startsWith("http://")||e.startsWith("https://"),a=new URL(e,l);return(Object.entries(t).forEach(e=>{let[t,r]=e;a.searchParams.has(t)||a.searchParams.set(t,r)}),r)?a.toString():"".concat(a.pathname).concat(a.search).concat(a.hash)})(t):(e=>{if(!e||"object"!=typeof e)return e;let t=d();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,a.jsx)(n(),{href:p,...(e=>{let{placeholderSrc:t,fallbackSrc:r,src:a,alt:s,width:n,height:o,loading:l,decoding:c,onLoad:i,onError:d,...p}=e;return p})(s),children:r})}},62326:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(92921).A)("outline","x","X",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]])},92921:(e,t,r)=>{r.d(t,{A:()=>n});var a=r(14232),s={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let n=(e,t,r,n)=>{let o=(0,a.forwardRef)((r,o)=>{let{color:l="currentColor",size:c=24,stroke:i=2,title:d,className:p,children:u,...h}=r;return(0,a.createElement)("svg",{ref:o,...s[e],width:c,height:c,className:["tabler-icon","tabler-icon-".concat(t),p].join(" "),..."filled"===e?{fill:l}:{strokeWidth:i,stroke:l},...h},[d&&(0,a.createElement)("title",{key:"svg-title"},d),...n.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(u)?u:[u]])});return o.displayName="".concat(r),o}}}]);

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.