PageSourceSearch

https://www.xiaoiluo.com/_next/static/chunks/12455.afa1ba649cc0f46c.js

js xiaoiluo.com collected 2026-09-28 07:15:56 UTC 5,469 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12455,24614,33035,60806,87964],{12455:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var a=r(37876),s=r(60806),n=r(24614),l=r(87964),i=r(33035),c=r(14232),o=r(95498);function u(e){let t=(0,c.useRef)(null),{locale:r}=(0,o.PC)(),{tagOptions:u,categoryOptions:d}=e;return(0,c.useEffect)(()=>{setTimeout(()=>{var e;null==t||null==(e=t.current)||e.focus()},100)}),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"my-6 px-2 mt-12 w-full",children:[(0,a.jsx)(s.default,{cRef:t,...e}),(0,a.jsxs)(l.default,{className:"w-full mt-4",children:[(0,a.jsxs)("div",{className:"dark:text-gray-200 mb-5 mx-3",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-th"}),r.COMMON.CATEGORY,":"]}),(0,a.jsx)("div",{id:"category-list",className:"duration-200 flex flex-wrap mx-8",children:null==d?void 0:d.map(e=>(0,a.jsx)(i.A,{href:"/category/".concat(e.name),passHref:!0,legacyBehavior:!0,children:(0,a.jsxs)("div",{className:" duration-300 dark:hover:text-white rounded-lg px-5 cursor-pointer py-2 hover:bg-indigo-400 hover:text-white",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-folder"})," ",e.name,"(",e.count,")"]})},e.name))})]}),(0,a.jsxs)(l.default,{className:"w-full mt-4",children:[(0,a.jsxs)("div",{className:"dark:text-gray-200 mb-5 ml-4",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-tag"})," ",r.COMMON.TAGS,":"]}),(0,a.jsx)("div",{id:"tags-list",className:"duration-200 flex flex-wrap ml-8",children:null==u?void 0:u.map(e=>(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)(n.default,{tag:e},e.name)},e.name))})]})]})})}},24614:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var a=r(37876),s=r(33035);let n=e=>{let{tag:t,selected:r=!1}=e;return(0,a.jsx)(s.A,{href:r?"/":"/tag/".concat(encodeURIComponent(t.name)),passHref:!0,className:"cursor-pointer inline-block rounded-xl  hover:text-white duration-200\n        mr-2 py-0.5 px-2 text-xs whitespace-nowrap text-white bg-indigo-700",children:(0,a.jsxs)("div",{className:"font-light",children:[r&&(0,a.jsx)("i",{className:"mr-1 fa-tag"})," ",t.name+(t.count?"(".concat(t.count,")"):"")," "]})},t)}},33035:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(37876),s=r(48230),n=r.n(s),l=r(22507);let i=e=>{let{href:t,children:r,...s}=e,i=(0,l.CQ)("LINK"),c="";"string"==typeof t?c=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(c=t.pathname);let o=c.startsWith("http")&&!c.startsWith(i),u=()=>{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(o){let e="string"==typeof t?t:new URL(t.pathname,i).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})}let d="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=u();if(0===Object.keys(t).length)return e;let r=e.startsWith("http://")||e.startsWith("https://"),a=new URL(e,i);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=u();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,a.jsx)(n(),{href:d,...(e=>{let{placeholderSrc:t,fallbackSrc:r,src:a,alt:s,width:n,height:l,loading:i,decoding:c,onLoad:o,onError:u,...d}=e;return d})(s),children:r})}},60806:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var a=r(37876),s=r(89099),n=r(14232),l=r(95498);let i=!1,c=e=>{let{currentSearch:t,cRef:r,className:c}
1=e,[o,u]=(0,n.useState)(!1),d=(0,s.useRouter)(),h=(0,n.useRef)(),{locale:f}=(0,l.PC)();(0,n.useImperativeHandle)(r,()=>({focus:()=>{var e;null==h||null==(e=h.current)||e.focus()}}));let m=()=>{let e=h.current.value;e&&""!==e?(u(!0),d.push({pathname:"/search/"+e}).then(e=>{u(!1)})):d.push({pathname:"/"}).then(e=>{})},x=()=>{h.current.value=""},[p,g]=(0,n.useState)(!1);function j(){i=!0}return(0,a.jsxs)("div",{className:"flex w-full rounded-lg "+c,children:[(0,a.jsx)("input",{ref:h,type:"text",className:"outline-none w-full text-sm pl-5 rounded-lg transition focus:shadow-lg dark:text-gray-300 font-light leading-10 text-black bg-gray-100 dark:bg-gray-500",onKeyUp:e=>{13===e.keyCode?m(h.current.value):27===e.keyCode&&x()},onCompositionStart:j,onCompositionUpdate:j,onCompositionEnd:function(){i=!1},placeholder:f.SEARCH.ARTICLES,onChange:e=>(e=>{i||(h.current.value=e,e?g(!0):g(!1))})(e.target.value),defaultValue:t||""}),(0,a.jsx)("div",{className:"-ml-8 cursor-pointer  float-right items-center justify-center py-2",onClick:m,children:(0,a.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-500 dark:text-gray-200 cursor-pointer fas ".concat(o?"fa-spinner animate-spin":"fa-search")})}),p&&(0,a.jsx)("div",{className:"-ml-12 cursor-pointer float-right items-center justify-center py-2",children:(0,a.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-400 dark:text-gray-300 cursor-pointer fas fa-times",onClick:x})})]})}},87964:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var a=r(37876);let s=e=>{let{children:t,headerSlot:r,className:s}=e;return(0,a.jsxs)("div",{className:s,children:[(0,a.jsx)(a.Fragment,{children:r}),(0,a.jsx)("section",{className:"drop-shadow-xl dark:text-gray-300 border dark:border-black rounded-xl px-2 py-4 bg-white dark:bg-hexo-black-gray lg:duration-100",children:t})]})}}}]);

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.