PageSourceSearch

https://ellenlife.netlify.app/_next/static/chunks/8528.c2ebe68a56562630.js

js ellenlife.netlify.app collected 2026-10-03 10:44:37 UTC 4,560 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8528,33035],{8528:(e,t,r)=>{r.r(t),r.d(t,{MenuItemCollapse:()=>h});var a=r(37876),n=r(69181),s=r(33035),i=r(89099),l=r(14232);let h=e=>{var t;let{link:r}=e,[h,c]=(0,l.useState)(!1),o=(null==r||null==(t=r.subMenus)?void 0:t.length)>0,[u,d]=(0,l.useState)(!1),g=(0,i.useRouter)();if(!r||!r.show)return null;let x=g.pathname===r.href||g.asPath===r.href;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(x?"bg-gray-600 text-white hover:text-white":"hover:text-gray-600")+" px-5 w-full text-left duration-200 dark:bg-hexo-black-gray dark:border-black",onClick:()=>{c(!h)},children:[!o&&(0,a.jsx)(s.A,{href:null==r?void 0:r.href,target:null==r?void 0:r.target,className:"dark:text-gray-200 py-2 w-full my-auto items-center justify-between flex  ",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]})}),o&&(0,a.jsxs)("div",{onClick:o?()=>{d(!u)}:null,className:"py-2 font-extralight flex justify-between cursor-pointer  dark:text-gray-200 no-underline tracking-widest",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]}),(0,a.jsx)("div",{className:"inline-flex items-center ",children:(0,a.jsx)("i",{className:"px-2 fas fa-chevron-right transition-all duration-200 ".concat(u?"rotate-90":"")})})]})]}),o&&(0,a.jsx)(n.A,{isOpen:u,onHeightChange:e.onHeightChange,children:r.subMenus.map((e,t)=>(0,a.jsx)("div",{className:"whitespace-nowrap dark:text-gray-200 not:last-child:border-b-0 border-b dark:border-gray-800 py-2 px-14 cursor-pointer hover:bg-gray-100 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,a.jsx)(s.A,{href:e.href,target:null==r?void 0:r.target,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(e.icon," text-center w-3 mr-3 text-xs")}),e.title]})})},t))})]})}},33035:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(37876),n=r(48230),s=r.n(n),i=r(22507);let l=e=>{let{href:t,children:r,...n}=e,l=(0,i.CQ)("LINK"),h="";"string"==typeof t?h=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(h=t.pathname);let c=h.startsWith("http")&&!h.startsWith(l),o=()=>{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(c){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:n,...s}=e;return s})(n),children:r})}let u="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=o();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=o();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,a.jsx)(s(),{href:u,...(e=>{let{placeholderSrc:t,fallbackSrc:r,src:a,alt:n,width:s,height:i,loading:l,decoding:h,onLoad:c,onError:o,...u}=e;return u})(n),children:r})}},69181:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(37876),n=r(14232);let s=e=>{let{type:t="vertical",isOpen:r=!1,children:s,onHeightChange:i,className:l,collapseRef:h}=e,c=(0,n.useRef)(null);return(0,n.useImperativeHandle)(h,()=>({updateCollapseHeight:e=>{let{height:t,increase:a}=e;r&&(c.current.style.height=c.current.scrollHeight,c.current.style.height="auto")}})),(0,n.useEffect)(()=>{r?(e=>{let r=e.scrollHeight,a=e.scrollWidth,n=0;switch(t){case"horizontal":e.style.width=a+"px",n=setTimeout(()=>{e.style.width="auto"},400);break;case"vertical":e.style.height=r+"px",n=setTimeout(()=>{e.style.height="auto"},400)}clearTimeout(n)})(c.current):(e=>{let r=e.scrollHeight,a=e.scrollWidth;requestAnimationFrame(function(){switch(t){case"horizontal":e.style.width=a+"px",requestAnimationFrame(function(){e.style.width="0px"});break;case"vertical":e.style.height=r+"px",requestAnimationFrame(function(){e.style.height="0px"})}})}
1)(c.current),i&&i({height:c.current.scrollHeight,increase:r})},[r]),(0,a.jsx)("div",{ref:c,style:"vertical"===t?{height:"0px",willChange:"height"}:{width:"0px",willChange:"width"},className:"".concat(l||""," overflow-hidden duration-300"),children:s})}}}]);

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.