PageSourceSearch

https://thebrain.com/_next/static/chunks/2604-ad58de2ea99d0631.js

js thebrain.com collected 2026-09-24 08:49:14 UTC 7,595 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2604],{32489:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},70001:function(e,t,n){n.d(t,{x8:function(){return ei},VY:function(){return er},dk:function(){return el},aV:function(){return en},h_:function(){return et},fC:function(){return Q},Dx:function(){return eo},xz:function(){return ee}});var r=n(2265),o=n(6741),l=n(98575),i=n(73966),a=n(99255),s=n(80886),u=n(15278),d=n(99103),c=n(83832),f=n(71599),p=n(82912),g=n(86097),m=n(99157),v=n(5478),y=n(57437),h=Symbol("radix.slottable");function j(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var x="Dialog",[b,D]=(0,i.b)(x),[R,w]=b(x),C=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:l,onOpenChange:i,modal:u=!0}=e,d=r.useRef(null),c=r.useRef(null),[f,p]=(0,s.T)({prop:o,defaultProp:null!=l&&l,onChange:i,caller:x});return(0,y.jsx)(R,{scope:t,triggerRef:d,contentRef:c,contentId:(0,a.M)(),titleId:(0,a.M)(),descriptionId:(0,a.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};C.displayName=x;var _="DialogTrigger",E=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=w(_,n),a=(0,l.e)(t,i.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":K(i.open),...r,ref:a,onClick:(0,o.Mj)(e.onClick,i.onOpenToggle)})});E.displayName=_;var I="DialogPortal",[N,O]=b(I,{forceMount:void 0}),F=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:l}=e,i=w(I,t);return(0,y.jsx)(N,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:n||i.open,children:(0,y.jsx)(c.h,{asChild:!0,container:l,children:e})}))})};F.displayName=I;var M="DialogOverlay",W=r.forwardRef((e,t)=>{let n=O(M,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=w(M,e.__scopeDialog);return l.modal?(0,y.jsx)(f.z,{present:r||l.open,children:(0,y.jsx)(V,{...o,ref:t})}):null});W.displayName=M;var k=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,i;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,s=function(e,t){let n={...t};for(let r in t){let o=e[r],l=t[r];/^on[A-Z]/.test(r)?o&&l?n[r]=(...e)=>{let t=l(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...l}:"className"===r&&(n[r]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,l.F)(t,a):a),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,i=r.Children.toArray(o),a=i.find(j);if(a){let e=a.props.children,o=i.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,y.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,y.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}("DialogOverlay.RemoveScroll"),V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(M,n);return(0,y.jsx)(m.Z,{as:k,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":K(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),P="DialogContent",A=r.forwardRef((e,t)=>{let n=O(P,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,l=w(P,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||l.open,children:l.modal?(0,y.jsx)(S,{...o,ref:t}):(0,y.jsx)(T,{...o,ref:t})})});A.displayName=P;var S=r.forwardRef((e,t)=>{let n=w(P,e.__scopeDialog),i=r.useRef(null),a=(0,l.e)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(z,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.Mj)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.Mj)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>e.preventDefault())})}),T=r.forwardRef((e,t)=>
1{let n=w(P,e.__scopeDialog),o=r.useRef(!1),l=r.useRef(!1);return(0,y.jsx)(z,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(l.current=!0));let a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&l.current&&t.preventDefault()}})}),z=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=e,c=w(P,n),f=r.useRef(null),p=(0,l.e)(t,f);return(0,g.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,y.jsx)(u.XB,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":K(c.open),...s,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(J,{titleId:c.titleId}),(0,y.jsx)(L,{contentRef:f,descriptionId:c.descriptionId})]})]})}),Z="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(Z,n);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});B.displayName=Z;var H="DialogDescription",X=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=w(H,n);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});X.displayName=H;var $="DialogClose",q=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,l=w($,n);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.Mj)(e.onClick,()=>l.onOpenChange(!1))})});function K(e){return e?"open":"closed"}q.displayName=$;var U="DialogTitleWarning",[Y,G]=(0,i.k)(U,{contentName:P,titleName:Z,docsSlug:"dialog"}),J=e=>{let{titleId:t}=e,n=G(U),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},L=e=>{let{contentRef:t,descriptionId:n}=e,o=G("DialogDescriptionWarning"),l="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(l)},[l,t,n]),null},Q=C,ee=E,et=F,en=W,er=A,eo=B,el=X,ei=q},95098:function(e,t,n){n.d(t,{TX:function(){return a},fC:function(){return s}});var r=n(2265),o=n(82912),l=n(57437),i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=r.forwardRef((e,t)=>(0,l.jsx)(o.WV.span,{...e,ref:t,style:{...i,...e.style}}));a.displayName="VisuallyHidden";var s=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.