PageSourceSearch

https://www.honglu.me/_next/static/chunks/15541.7ee03ef4986e79a4.js

js honglu.me collected 2026-09-26 17:18:29 UTC 8,763 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15541,12308,46427,44216,18509,42936],{22468:function(e,t,r){var l=r(85893),a=r(67294);t.Z=e=>{let{type:t="vertical",isOpen:r=!1,children:n,onHeightChange:i,className:s,collapseRef:o}=e,c=(0,a.useRef)(null);(0,a.useImperativeHandle)(o,()=>({updateCollapseHeight:e=>{let{height:t,increase:l}=e;r&&(c.current.style.height=c.current.scrollHeight,c.current.style.height="auto")}}));let d=e=>{let r=e.scrollHeight,l=e.scrollWidth;requestAnimationFrame(function(){switch(t){case"horizontal":e.style.width=l+"px",requestAnimationFrame(function(){e.style.width="0px"});break;case"vertical":e.style.height=r+"px",requestAnimationFrame(function(){e.style.height="0px"})}})},h=e=>{let r=e.scrollHeight,l=e.scrollWidth,a=0;switch(t){case"horizontal":e.style.width=l+"px",a=setTimeout(()=>{e.style.width="auto"},400);break;case"vertical":e.style.height=r+"px",a=setTimeout(()=>{e.style.height="auto"},400)}clearTimeout(a)};return(0,a.useEffect)(()=>{r?h(c.current):d(c.current),i&&i({height:c.current.scrollHeight,increase:r})},[r]),(0,l.jsx)("div",{ref:c,style:"vertical"===t?{height:"0px",willChange:"height"}:{width:"0px",willChange:"width"},className:"".concat(s||""," overflow-hidden duration-300"),children:n})}},12308:function(e,t,r){r.r(t),r.d(t,{default:function(){return s}});var l=r(85893),a=r(69325),n=r(41664),i=r.n(n);function s(e){return(0,l.jsx)("div",{id:"top-wrapper",className:"w-full flex items-center ",children:(0,l.jsx)(i(),{href:"/",className:"logo text-md md:text-xl dark:text-gray-200",children:(0,a.JA)("TITLE")})})}},46427:function(e,t,r){r.r(t),r.d(t,{MenuBarMobile:function(){return o}});var l=r(85893),a=r(69325),n=r(93348),i=r(42936),s=r(44216);let o=e=>{let{customMenu:t,customNav:r}=e,{locale:o}=(0,n.O)(),c=[{name:o.COMMON.CATEGORY,href:"/category",show:(0,a.JA)("MEDIUM_MENU_CATEGORY",null,i.default)},{name:o.COMMON.TAGS,href:"/tag",show:(0,a.JA)("MEDIUM_MENU_TAG",null,i.default)},{name:o.NAV.ARCHIVE,href:"/archive",show:(0,a.JA)("MEDIUM_MENU_ARCHIVE",null,i.default)}];return(r&&(c=c.concat(r)),(0,a.JA)("CUSTOM_MENU")&&(c=t),c&&0!==c.length)?(0,l.jsx)("nav",{id:"nav",className:" text-md",children:null==c?void 0:c.map((t,r)=>(0,l.jsx)(s.MenuItemCollapse,{onHeightChange:e.onHeightChange,link:t},r))}):null}},44216:function(e,t,r){r.r(t),r.d(t,{MenuItemCollapse:function(){return c}});var l=r(85893),a=r(22468),n=r(41664),i=r.n(n),s=r(11163),o=r(67294);let c=e=>{var t,r;let{link:n}=e,[c,d]=(0,o.useState)(!1),h=(null==n?void 0:null===(t=n.subMenus)||void 0===t?void 0:t.length)>0,[u,x]=(0,o.useState)(!1),f=(0,s.useRouter)();if(!n||!n.show)return null;let g=f.pathname===n.href||f.asPath===n.href;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(g?"bg-green-600 text-white hover:text-white":"hover:text-green-600")+" px-5 w-full text-left duration-200 dark:bg-hexo-black-gray dark:border-black",onClick:()=>{d(!c)},children:[!h&&(0,l.jsx)(i(),{href:null==n?void 0:n.href,target:null==n?void 0:n.target,className:"py-2 w-full my-auto items-center justify-between flex  ",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"".concat(n.icon," text-center w-4 mr-4")}),n.name]})}),h&&(0,l.jsxs)("div",{onClick:h?()=>{x(!u)}:null,className:"py-2 font-extralight flex justify-between cursor-pointer  dark:text-gray-200 no-underline tracking-widest",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"".concat(n.icon," text-center w-4 mr-4")}),n.name]}),(0,l.jsx)("div",{className:"inline-flex items-center ",children:(0,l.jsx)("i",{className:"px-2 fas fa-chevron-right transition-all duration-200 ".concat(u?"rotate-90":"")})})]})]}),h&&(0,l.jsx)(a.Z,{isOpen:u,onHeightChange:e.onHeightChange,children:null==n?void 0:null===(r=n.subMenus)||void 0===r?void 0:r.map(e=>(0,l.jsx)("div",{className:" not:last-child:border-b-0 border-b dark:border-gray-800 py-2 px-14 cursor-pointer hover:bg-gray-100 dark:text-gray-200 font-extralight dark:bg-black text-left justify-start text-gray-600 bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200",children:(0,l.jsx)(i(),{href:e.href,target:null==n?void 0:n.target,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"".concat(e.icon," text-center w-3 mr-3 text-xs")}),e.title]})})},e.id))})]})}},18509:function(e,t,r){r.r(t),r.d(t,{MenuItemDrop:function(){return o}});var l=r(85893),a=r(41664),n=r.n(a),i=r(11163),s=r(67294);let o=e=>{var t,r;let{link:a}
1=e,[o,c]=(0,s.useState)(!1),d=(0,i.useRouter)();if(!a||!a.show)return null;let h=(null==a?void 0:null===(t=a.subMenus)||void 0===t?void 0:t.length)>0,u=d.pathname===a.href||d.asPath===a.href;return(0,l.jsxs)("li",{className:"cursor-pointer list-none items-center flex mx-2",onMouseOver:()=>c(!0),onMouseOut:()=>c(!1),children:[h&&(0,l.jsx)("div",{className:"px-3 h-full whitespace-nowrap duration-300 text-sm justify-between dark:text-gray-300 cursor-pointer flex flex-nowrap items-center "+(u?"bg-green-600 text-white hover:text-white":"hover:text-green-600"),children:(0,l.jsxs)("div",{children:[(null==a?void 0:a.icon)&&(0,l.jsx)("i",{className:null==a?void 0:a.icon})," ",null==a?void 0:a.name,h&&(0,l.jsx)("i",{className:"px-2 fas fa-chevron-down duration-500 transition-all ".concat(o?" rotate-180":"")})]})}),!h&&(0,l.jsx)("div",{className:"px-3 h-full whitespace-nowrap duration-300 text-sm justify-between dark:text-gray-300 cursor-pointer flex flex-nowrap items-center "+(u?"bg-green-600 text-white hover:text-white":"hover:text-green-600"),children:(0,l.jsxs)(n(),{href:null==a?void 0:a.href,target:null==a?void 0:a.target,children:[(null==a?void 0:a.icon)&&(0,l.jsx)("i",{className:null==a?void 0:a.icon})," ",null==a?void 0:a.name]})}),h&&(0,l.jsx)("ul",{className:"".concat(o?"visible opacity-100 top-12 ":"invisible opacity-0 top-10 "," border-gray-100  bg-white  dark:bg-black dark:border-gray-800 transition-all duration-300 z-20 absolute block drop-shadow-lg "),children:null==a?void 0:null===(r=a.subMenus)||void 0===r?void 0:r.map(e=>(0,l.jsx)("li",{className:"not:last-child:border-b-0 border-b text-gray-700 dark:text-gray-200  hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200  dark:border-gray-800 py-3 pr-6 pl-3",children:(0,l.jsx)(n(),{href:e.href,target:null==a?void 0:a.target,children:(0,l.jsxs)("span",{className:"text-xs font-extralight",children:[(null==a?void 0:a.icon)&&(0,l.jsx)("i",{className:null==e?void 0:e.icon,children:" \xa0 "}),e.title]})})},e.id))})]})}},15541:function(e,t,r){r.r(t),r.d(t,{default:function(){return u}});var l=r(85893),a=r(22468),n=r(69325),i=r(93348),s=r(67294),o=r(42936),c=r(12308),d=r(46427),h=r(18509);function u(e){let{className:t,customNav:r,customMenu:u}=e,[x,f]=(0,s.useState)(!1),g=(0,s.useRef)(null),{locale:v}=(0,i.O)(),m=[{icon:"fas fa-th",name:v.COMMON.CATEGORY,href:"/category",show:(0,n.JA)("MEDIUM_MENU_CATEGORY",null,o.default)},{icon:"fas fa-tag",name:v.COMMON.TAGS,href:"/tag",show:(0,n.JA)("MEDIUM_MENU_TAG",null,o.default)},{icon:"fas fa-archive",name:v.NAV.ARCHIVE,href:"/archive",show:(0,n.JA)("MEDIUM_MENU_ARCHIVE",null,o.default)},{icon:"fas fa-search",name:v.NAV.SEARCH,href:"/search",show:(0,n.JA)("MEDIUM_MENU_SEARCH",null,o.default)}].concat(r);return((0,n.JA)("CUSTOM_MENU")&&(m=u),m&&0!==m.length)?(0,l.jsxs)("div",{id:"top-nav",className:"sticky top-0 lg:relative w-full z-40 "+t,children:[(0,l.jsx)(a.Z,{type:"vertical",collapseRef:g,isOpen:x,className:"md:hidden",children:(0,l.jsx)("div",{className:"bg-white dark:bg-hexo-black-gray pt-1 py-2 lg:hidden ",children:(0,l.jsx)(d.MenuBarMobile,{...e,onHeightChange:e=>{var t;return null===(t=g.current)||void 0===t?void 0:t.updateCollapseHeight(e)}})})}),(0,l.jsxs)("div",{className:"flex w-full h-12 shadow bg-white dark:bg-hexo-black-gray px-7 items-between",children:[(0,l.jsx)(c.default,{...e}),(0,l.jsx)("div",{className:"mr-1 flex md:hidden justify-end items-center text-sm space-x-4 font-serif dark:text-gray-200",children:(0,l.jsx)("div",{onClick:()=>{f(!x)},className:"cursor-pointer",children:x?(0,l.jsx)("i",{className:"fas fa-times"}):(0,l.jsx)("i",{className:"fas fa-bars"})})}),(0,l.jsx)("div",{className:"hidden md:flex",children:m&&(null==m?void 0:m.map((e,t)=>(0,l.jsx)(h.MenuItemDrop,{link:e},t)))})]})]}):null}},42936:function(e,t,r){r.r(t);var l=r(83454);let a={MEDIUM_RIGHT_PANEL_DARK:l.env.NEXT_PUBLIC_MEDIUM_RIGHT_DARK||!1,MEDIUM_POST_LIST_COVER:!0,MEDIUM_POST_LIST_PREVIEW:!0,MEDIUM_POST_LIST_CATEGORY:!0,MEDIUM_POST_LIST_TAG:!0,MEDIUM_POST_DETAIL_CATEGORY:!0,MEDIUM_POST_DETAIL_TAG:!0,MEDIUM_MENU_CATEGORY:!0,MEDIUM_MENU_TAG:!0,MEDIUM_MENU_ARCHIVE:!0,MEDIUM_MENU_SEARCH:!0,MEDIUM_WIDGET_REVOLVER_MAPS:l.env.NEXT_PUBLIC_WIDGET_REVOLVER_MAPS||"false",MEDIUM_WIDGET_TO_TOP:!0};t.default=a}}]);

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.