PageSourceSearch

https://www.earonman.com/_next/static/chunks/30042-dc922798c1ff0bf2.js?dpl=dpl_5XHRgkQEcCCQtd2fVPET9D8YF9Lb

js earonman.com collected 2026-10-02 00:29:55 UTC 9,035 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30042],{30042:(e,n,t)=>{t.d(n,{bm:()=>ei,UC:()=>er,VY:()=>el,hJ:()=>et,ZL:()=>en,bL:()=>X,hE:()=>eo,l9:()=>ee});var r=t(12115),o=t(93610),l=t(88068),i=t(18166),a=t(67668),s=t(1488),u=t(59674),d=t(20196),c=t(17323),f=t(17028),p=t(59997),m=t(62292),g=t(2431),v=t(15587),y=t(95155),N=Symbol("radix.slottable");function h(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===N}var D="Dialog",[O,R]=(0,i.A)(D),[C,w]=O(D),E=e=>{let{__scopeDialog:n,children:t,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f,p]=(0,s.i)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:D});return(0,y.jsx)(C,{scope:n,triggerRef:d,contentRef:c,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:t})};E.displayName=D;var b="DialogTrigger",j=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,i=w(b,t),a=(0,l.s)(n,i.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":H(i.open),...r,ref:a,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});j.displayName=b;var x="DialogPortal",[I,_]=O(x,{forceMount:void 0}),A=e=>{let{__scopeDialog:n,forceMount:t,children:o,container:l}=e,i=w(x,n);return(0,y.jsx)(I,{scope:n,forceMount:t,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:t||i.open,children:(0,y.jsx)(c.Z,{asChild:!0,container:l,children:e})}))})};A.displayName=x;var M="DialogOverlay",T=r.forwardRef((e,n)=>{let t=_(M,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,l=w(M,e.__scopeDialog);return l.modal?(0,y.jsx)(f.C,{present:r||l.open,children:(0,y.jsx)(P,{...o,ref:n})}):null});T.displayName=M;var F=function(e){let n=function(e){let n=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref,s=function(e,n){let t={...n};for(let r in n){let o=e[r],l=n[r];/^on[A-Z]/.test(r)?o&&l?t[r]=(...e)=>{l(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...l}:"className"===r&&(t[r]=[o,l].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(s.ref=n?(0,l.t)(n,a):a),r.cloneElement(t,s)}return r.Children.count(t)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}(e),t=r.forwardRef((e,t)=>{let{children:o,...l}=e,i=r.Children.toArray(o),a=i.find(h);if(a){let e=a.props.children,o=i.map(n=>n!==a?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,y.jsx)(n,{...l,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,y.jsx)(n,{...l,ref:t,children:o})});return t.displayName=`${e}.Slot`,t}("DialogOverlay.RemoveScroll"),P=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(M,t);return(0,y.jsx)(g.A,{as:F,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":H(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),U="DialogContent",W=r.forwardRef((e,n)=>{let t=_(U,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,l=w(U,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||l.open,children:l.modal?(0,y.jsx)(S,{...o,ref:n}):(0,y.jsx)(k,{...o,ref:n})})});W.displayName=U;var S=r.forwardRef((e,n)=>{let t=w(U,e.__scopeDialog),i=r.useRef(null),a=(0,l.s)(n,t.contentRef,i);return r.useEffect(()=>{let e=i.current;
1if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(L,{...e,ref:a,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,n)=>{let t=w(U,e.__scopeDialog),o=r.useRef(!1),l=r.useRef(!1);return(0,y.jsx)(L,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(i=t.triggerRef.current)||void 0===i||i.focus(),n.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:n=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(l.current=!0));let a=n.target;(null===(i=t.triggerRef.current)||void 0===i?void 0:i.contains(a))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&l.current&&n.preventDefault()}})}),L=r.forwardRef((e,n)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=w(U,t),f=r.useRef(null),p=(0,l.s)(n,f);return(0,m.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":H(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(z,{titleId:c.titleId}),(0,y.jsx)(Q,{contentRef:f,descriptionId:c.descriptionId})]})]})}),V="DialogTitle",B=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(V,t);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:n})});B.displayName=V;var G="DialogDescription",q=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=w(G,t);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:n})});q.displayName=G;var Z="DialogClose",$=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,l=w(Z,t);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:n,onClick:(0,o.m)(e.onClick,()=>l.onOpenChange(!1))})});function H(e){return e?"open":"closed"}$.displayName=Z;var J="DialogTitleWarning",[K,Y]=(0,i.q)(J,{contentName:U,titleName:V,docsSlug:"dialog"}),z=e=>{let{titleId:n}=e,t=Y(J),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return r.useEffect(()=>{n&&!document.getElementById(n)&&console.error(o)},[o,n]),null},Q=e=>{let{contentRef:n,descriptionId:t}=e,o=Y("DialogDescriptionWarning"),l="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(l)},[l,n,t]),null},X=E,ee=j,en=A,et=T,er=W,eo=B,el=q,ei=$},17028:(e,n,t)=>{t.d(n,{C:()=>i});var r=t(12115),o=t(88068),l=t(46611),i=e=>{let{present:n,children:t}=e,i=function(e){var n,t;let[o,i]=r.useState(),s=r.useRef(null),u=r.useRef(e),d=r.useRef("none"),[c,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=a(s.current);d.current="mounted"===c?e:"none"},[c]),(0,l.N)(()=>{let n=s.current,t=u.current;if(t!==e){let r=d.current,o=a(n);e?f("MOUNT"):"none"===o||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,l.N)(()=>{if(o){var e;let n;let t=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},l=e=>{e.target===o&&(d.current=a(s.current))};return o.addEventListener("animationstart",l),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(n),o.removeEventListener("animationstart",l),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,i(e)},[])}}(n),s="function"==typeof t?t({present:i.isPresent}):r.Children.only(t),u=(0,o.s)(i.ref,function(e){var n,t;let r=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof t||i.isPresent?r.cloneElement(s,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"}}]);

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.