PageSourceSearch

https://www.earonman.com/_next/static/chunks/24224.99eb183806363cf6.js

js earonman.com collected 2026-10-02 00:32:28 UTC 3,739 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[24224],{24224:(e,t,a)=>{a.d(t,{d:()=>x,notify:()=>o,t:()=>u});var i=a(95155),n=a(12115),l=a(47650),r=a(25683),s=a(2178);let c=new Set;function o(e){c.forEach(t=>t(e))}function d(e){let{variant:t}=e,a="w-4 h-4";return"success"===t?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"})}):"error"===t?(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M12 2.25a9.75 9.75 0 1 0 9.75 9.75A9.76 9.76 0 0 0 12 2.25Zm.75 5.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0Zm-.75 9a1.125 1.125 0 1 0 1.125 1.125A1.125 1.125 0 0 0 12 16.5Z",clipRule:"evenodd"})}):"warning"===t?(0,i.jsxs)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,children:[(0,i.jsx)("path",{d:"M10.29 3.86a1.5 1.5 0 0 1 2.42 0l8.4 12.6A1.5 1.5 0 0 1 19.9 18H4.1a1.5 1.5 0 0 1-1.21-2.54l8.4-12.6Z"}),(0,i.jsx)("path",{d:"M12 8v5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,i.jsx)("circle",{cx:"12",cy:"16",r:"1",fill:"#000"})]}):(0,i.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:a,children:(0,i.jsx)("path",{d:"M12 2.25a9.75 9.75 0 1 0 9.75 9.75A9.76 9.76 0 0 0 12 2.25Zm.75 5.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0Zm-.75 9a1.125 1.125 0 1 0 1.125 1.125A1.125 1.125 0 0 0 12 16.5Z"})})}function u(e){let{children:t}=e,[a,o]=(0,n.useState)([]),u=(0,n.useRef)(new Map);(0,n.useEffect)(()=>{var e;let t=(e=e=>{var t,a,i;let n=null!==(t=e.id)&&void 0!==t?t:"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2)),l=null!==(a=e.variant)&&void 0!==a?a:"info",r=null!==(i=e.duration)&&void 0!==i?i:3500;o(t=>[...t,{...e,id:n,variant:l,duration:r}]);let s=setTimeout(()=>x(n),r);u.current.set(n,s)},c.add(e),()=>c.delete(e));return()=>{t()}},[]);let x=e=>{let t=u.current.get(e);t&&(clearTimeout(t),u.current.delete(e)),o(t=>t.filter(t=>t.id!==e))},m=document.getElementById("portal-root"),v=(0,i.jsx)("div",{className:"pointer-events-none fixed top-[calc(env(safe-area-inset-top)+16px)] right-[calc(env(safe-area-inset-right)+16px)] z-[100] flex flex-col gap-2",children:(0,i.jsx)(r.N,{children:a.map(e=>{var t,a;return(0,i.jsx)(s.P.div,{initial:{opacity:0,y:-10,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.18},className:["pointer-events-auto min-w-[280px] max-w-[380px] p-3 sm:p-3.5 rounded-xl shadow-lg ring-1","glass-chip-strong",function(e){switch(e){case"success":return"tint-emerald";case"error":return"tint-red";case"warning":return"tint-amber";default:return"tint-steel"}}(null!==(t=e.variant)&&void 0!==t?t:"info")].join(" "),children:(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)("div",{className:"mt-0.5 opacity-90",children:(0,i.jsx)(d,{variant:null!==(a=e.variant)&&void 0!==a?a:"info"})}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[e.title&&(0,i.jsx)("div",{className:"text-sm font-medium leading-none mb-1",children:e.title}),(0,i.jsx)("div",{className:"text-sm leading-snug opacity-90 whitespace-pre-line break-words",children:e.description})]}),(0,i.jsx)("button",{"aria-label":"Close notification",className:"ml-1 rounded-md px-2 py-1 text-xs bg-white/10 hover:bg-white/15",onClick:()=>x(e.id),children:"Close"})]})},e.id)})})});return(0,i.jsxs)(i.Fragment,{children:[t,m?(0,l.createPortal)(v,m):v]})}function x(){return(0,n.useMemo)(()=>({notify: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.