PageSourceSearch

https://carnegieindia.org/_next/static/chunks/02v_v5e958o_1.js

js carnegieindia.org collected 2026-09-24 07:54:49 UTC 21,744 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,921041,e=>{"use strict";var t=e.i(216887),r=e.i(606088),n=e.i(573378),o="horizontal",a=["horizontal","vertical"],i=t.forwardRef((e,t)=>{var i;let{decorative:s,orientation:l=o,...u}=e,d=(i=l,a.includes(i))?l:o;return(0,n.jsx)(r.Primitive.div,{"data-orientation":d,...s?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...u,ref:t})});i.displayName="Separator",e.s(["Root",0,i,"Separator",0,i])},170734,737709,e=>{"use strict";var t=e.i(573378),r=e.i(565319);let n=(0,e.i(294237).cva)(["mx-auto w-full"],{defaultVariants:{mode:"default"},variants:{mode:{default:["max-w-[144rem] px-[2.4rem] desktop:px-[6rem]"],defaultWithoutPadding:["max-w-[144rem]"],narrow:["flex max-w-2xl px-3 sm:px-xl lg:px-3xl"]}}});e.s(["Constrainer",0,({children:e,className:o,mode:a,...i})=>{let s;return(0,t.jsx)("div",{className:(0,r.cn)((s={mode:a},(0,r.cn)(n(s))),o),...i,children:e})}],737709),e.s([],170734)},814647,592421,e=>{"use strict";var t=e.i(547437),r=e.i(216887);e.s(["useCenterSlug",0,()=>{let e=(0,r.use)(t.CenterSlugContext);if(!e)throw Error("useCenterSlug must be used within a CenterSlugProvider");return e}],592421),e.s([],814647)},333991,e=>{"use strict";var t=e.i(573378),r=e.i(216887),n=e.i(527139);let o=(0,r.createContext)(null);e.s(["CenterProvider",0,({children:e})=>{let[a,i]=(0,r.useState)(null),[s,l]=(0,r.useState)(),[u,d]=(0,r.useState)(),[c,f]=(0,r.useState)(),{setMarketingControls:v}=(0,n.useAnalytics)();return(0,r.useEffect)(()=>{s&&v({centerAffiliationAll:s,englishNewsletterAll:u,nonEnglishNewsletterAll:c})},[s,a,u,c,v]),(0,t.jsx)(o.Provider,{value:{centerAffiliationAll:s,englishNewsletterAll:u,id:a,nonEnglishNewsletterAll:c,setCenterAffiliationValue:l,setEnglishNewsletterValue:d,setId:i,setNonEnglishNewsletterValue:f},children:e})},"useCenter",0,()=>{let e=(0,r.useContext)(o);if(!e)throw Error("useCenterId must be used within a CenterProvider");return{centerAffiliationAll:e.centerAffiliationAll,englishNewsletterAll:e.englishNewsletterAll,id:e.id,nonEnglishNewsletterAll:e.nonEnglishNewsletterAll,setCenterAffiliationValue:e.setCenterAffiliationValue,setEnglishNewsletterValue:e.setEnglishNewsletterValue,setId:e.setId,setNonEnglishNewsletterValue:e.setNonEnglishNewsletterValue}}])},365461,e=>{"use strict";e.i(333991),e.s([])},921261,368847,e=>{"use strict";var t=e.i(573378),r=e.i(216887),n=e.i(514423);let o=(0,e.i(187857).tv)({base:"font-sans text-textParagraph",defaultVariants:{size:"base"},variants:{size:{base:["text-body"],extraLarge:["text-bodyExtraLarge"],extraSmall:["text-bodyExtraSmall"],large:["text-bodyLarge"],small:["text-bodySmall"],tableHeader:["text-tableHeader"]}}}),a=(0,r.forwardRef)(({asChild:e,children:r,className:a,size:i,...s},l)=>{let u=e?n.Slot:"p";return(0,t.jsx)(u,{...s,className:o({className:a,size:i}),ref:l,children:r})});a.displayName="Text",e.s(["Text",0,a],368847),e.s([],921261)},482884,756482,e=>{"use strict";var t=e.i(216887);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}],482884);var r=e.i(606088),n=e.i(573378),o=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=t.forwardRef((e,t)=>(0,n.jsx)(r.Primitive.span,{...e,ref:t,style:{...o,...e.style}}));a.displayName="VisuallyHidden",e.s(["Root",0,a,"VISUALLY_HIDDEN_STYLES",0,o],756482)},8711,e=>{"use strict";var t=e.i(216887),r=e.i(372400),n=e.i(395672),o=e.i(291967),a=e.i(606088),i=e.i(830252),s=e.i(639249),l=e.i(592364),u=e.i(152136),d=e.i(516164),c=e.i(439746),f=e.i(720486),v=e.i(482884),m=e.i(263877),p=e.i(86289),h=e.i(756482),g=e.i(573378),w="NavigationMenu",[x,b,C]=(0,c.createCollection)(w),[E,R,y]=(0,c.createCollection)(w),[j,P]=(0,n.createContextScope)(w,[C,y]),[N,T]=j(w),[S,L]=j(w),I=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:u,defaultValue:d,delayDuration:c=200,skipDelayDuration:f=300,orientation:v="horizontal",dir:m,...p}=e,[h,x]=t.useState(null),b=(0,s.useComposedRefs)(r,e=>x(e)),C=(0,l.useDirection)(m),E=t.useRef(0),R=t.useRef(0),y=t.useRef(0),[j,P]=t.useState(!0),[N,T]=(0,i.useControllableState)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(y.current),t&&P(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>P(!0),f)),u?.(e)},defaultProp:d??"",caller:w}),S=t.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>T(""),150)},[T]),L=t.useCallback(e=>{window.clearTimeout(R.current),T(e)},[T]),I=t.useCallback(e=>{N===e?window.clearTimeout(R.current):E.current=window.setTimeout(()=>{window.clearTimeout(R.current),T(e)},c)},[N,T,c]);return t.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(R.current),window.clearTimeout(y.current)},[]),(0,g.jsx)(k,{scope:n,isRootMenu:!0,value:N,dir:C,orientation:v,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(E.current),j?I(e):L(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),S()},onContentEnter:()=>window.clearTimeout(R.current),onContentLeave:S,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,g.jsx)(a.Primitive.nav,{"aria-label":"Main","data-orientation":v,dir:C,...p,ref:b})})});I.displayName=w;var M="NavigationMenuSub";t.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:r,value:n,onValueChange:o,defaultValue:s,orientation:l="horizontal",...u}=e,d=T(M,r),[c,f]=(0,i.useControllableState)({prop:n,onChange:o,defaultProp:s??"",caller:M});return(0,g.jsx)(k,{scope:r,isRootMenu:!1,value:c,dir:d.dir,orientation:l,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,g.jsx)(a.Primitive.div,{"data-orientation":l,...u,ref:t})})}).displayName=M;var k=e=>{let{scope:r,isRootMenu:n,rootNavigationMenu:o,dir:a,orientation:i,children:s,value:l,onItemSelect:u,onItemDismiss:c,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:w}=e,[b,C]=t.useState(null),[E,R]=t.useState(new Map),[y,j]=t.useState(null);return(0,g.jsx)(N,{scope:r,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:(0,v.usePrevious)(l),baseId:(0,d.useId)(),dir:a,orientation:i,viewport:b,onViewportChange:C,indicatorTrack:y,onIndicatorTrackChange:j,onTriggerEnter:(0,p.useCallbackRef)(f),onTriggerLeave:(0,p.useCallbackRef)(m),onContentEnter:(0,p.useCallbackRef)(h),onContentLeave:(0,p.useCallbackRef)(w),onItemSelect:(0,p.useCallbackRef)(u),onItemDismiss:(0,p.useCallbackRef)(c),onViewportContentChange:t.useCallback((e,t)=>{R(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:t.useCallback(e=>{R(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,g.jsx)(x.Provider,{scope:r,children:(0,g.jsx)(S,{scope:r,items:E,children:s})})})},A="NavigationMenuList",D=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=T(A,r),i=(0,g.jsx)(a.Primitive.ul,{"data-orientation":o.orientation,...n,ref:t});return(0,g.jsx)(a.Primitive.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,g.jsx)(x.Slot,{scope:r,children:o.isRootMenu?(0,g.jsx)(ee,{asChild:!0,children:i}):i})})});D.displayName=A;var F="NavigationMenuItem",[_,H]=j(F),V=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,s=(0,d.useId)(),l=t.useRef(null),u=t.useRef(null),c=t.useRef(null),f=t.useRef(()=>{}),v=t.useRef(!1),m=t.useCallback((e="start")=>{if(l.current){f.current();let t=en(l.current);t.length&&eo("start"===e?t:t.reverse())}},[]),p=t.useCallback(()=>{if(l.current){var e;let t=en(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),f.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,g.jsx)(_,{scope:n,value:o||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:v,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:p,onContentFocusOutside:p,children:(0,g.jsx)(a.Primitive.li,{...i,ref:r})})});V.displayName=F;var O="NavigationMenuTrigger",K=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:i,...l}=e,u=T(O,e.__scopeNavigationMenu),d=H(O,e.__scopeNavigationMenu),c=t.useRef(null),f=(0,s.useComposedRefs)(c,d.triggerRef,r),v=es(u.baseId,d.value),m=el(u.baseId,d.value),p=t.useRef(!1),w=t.useRef(!1),b=d.value===u.value;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(x.ItemSlot,{scope:n,value:d.value,children:(0,g.jsx)(er,{asChild:!0,children:(0,g.jsx)(a.Primitive.button,{id:v,disabled:i,"data-disabled":i?"":void 0,"data-state":ei(b),"aria-expanded":b,"aria-controls":m,...l,ref:f,onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,()=>{w.current=!1,d.wasEscapeCloseRef.current=!1}),onPointerMove:(0,o.composeEventHandlers)(e.onPointerMove,eu(()=>{i||w.current||d.wasEscapeCloseRef.current||p.current||(u.onTriggerEnter(d.value),p.current=!0)})),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eu(()=>{i||(u.onTriggerLeave(),p.current=!1)})),onClick:(0,o.composeEventHandlers)(e.onClick,()=>{u.onItemSelect(d.value),w.current=b}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];b&&e.key===t&&(d.onEntryKeyDown(),e.preventDefault())})})})}),b&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h.Root,{"aria-hidden":!0,tabIndex:0,ref:d.focusProxyRef,onFocus:e=>{let t=d.contentRef.current,r=e.relatedTarget,n=r===c.current,o=t?.contains(r);(n||!o)&&d.onFocusProxyEnter(n?"start":"end")}}),u.viewport&&(0,g.jsx)("span",{"aria-owns":m})]})]})});K.displayName=O;var z="navigationMenu.linkSelect",U=t.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:r,active:n,onSelect:i,...s}=e;return(0,g.jsx)(er,{asChild:!0,children:(0,g.jsx)(a.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(z,{bubbles:!0,cancelable:!0});if(t.addEventListener(z,e=>i?.(e),{once:!0}),(0,a.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(q,{bubbles:!0,cancelable:!0});(0,a.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});U.displayName="NavigationMenuLink";var W="NavigationMenuIndicator";t.forwardRef((e,t)=>{let{forceMount:n,...o}=e,a=T(W,e.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?r.default.createPortal((0,g.jsx)(u.Presence,{present:n||i,children:(0,g.jsx)($,{...o,ref:t})}),a.indicatorTrack):null}).displayName=W;var $=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...o}=e,i=T(W,n),s=b(n),[l,u]=t.useState(null),[d,c]=t.useState(null),f="horizontal"===i.orientation,v=!!i.value;t.useEffect(()=>{let e=s(),t=e.find(e=>e.value===i.value)?.ref.current;t&&u(t)},[s,i.value]);let m=()=>{l&&c({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return ea(l,m),ea(i.indicatorTrack,m),d?(0,g.jsx)(a.Primitive.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":i.orientation,...o,ref:r,style:{position:"absolute",...f?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...o.style}}):null}),B="NavigationMenuContent",Y=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=T(B,e.__scopeNavigationMenu),i=H(B,e.__scopeNavigationMenu),l=(0,s.useComposedRefs)(i.contentRef,t),d=i.value===a.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...n};return a.viewport?(0,g.jsx)(G,{forceMount:r,...c,ref:l}):(0,g.jsx)(u.Presence,{present:r||d,children:(0,g.jsx)(X,{"data-state":ei(d),...c,ref:l,onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eu(a.onContentLeave)),style:{pointerEvents:!d&&a.isRootMenu?"none":void 0,...c.style}})})});Y.displayName=B;var G=t.forwardRef((e,t)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=T(B,e.__scopeNavigationMenu);return(0,m.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,m.useLayoutEffect)(()=>()=>n(e.value),[e.value,n]),null}),q="navigationMenu.rootContentDismiss",X=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,triggerRef:i,focusProxyRef:l,wasEscapeCloseRef:u,onRootContentClose:d,onContentFocusOutside:c,...v}=e,m=T(B,n),p=t.useRef(null),h=(0,s.useComposedRefs)(p,r),w=es(m.baseId,a),x=el(m.baseId,a),C=b(n),E=t.useRef(null),{onItemDismiss:R}=m;t.useEffect(()=>{let e=p.current;if(m.isRootMenu&&e){let t=()=>{R(),d(),e.contains(document.activeElement)&&i.current?.focus()};return e.addEventListener(q,t),()=>e.removeEventListener(q,t)}},[m.isRootMenu,e.value,i,R,d]);let y=t.useMemo(()=>{let e=C().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),n=a===m.value,o=r===e.indexOf(a);if(!n&&!o)return E.current;let i=(()=>{if(t!==r){if(n&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return E.current=i,i}
1,[m.previousValue,m.value,m.dir,C,a]);return(0,g.jsx)(ee,{asChild:!0,children:(0,g.jsx)(f.DismissableLayer,{id:x,"aria-labelledby":w,"data-motion":y,"data-orientation":m.orientation,...v,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(q,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>{c();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=C().some(e=>e.ref.current?.contains(t)),n=m.isRootMenu&&m.viewport?.contains(t);(r||n||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=en(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);eo(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():l.current?.focus()}}),onEscapeKeyDown:(0,o.composeEventHandlers)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),J="NavigationMenuViewport",Q=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=!!T(J,e.__scopeNavigationMenu).value;return(0,g.jsx)(u.Presence,{present:r||o,children:(0,g.jsx)(Z,{...n,ref:t})})});Q.displayName=J;var Z=t.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:i,...l}=e,d=T(J,n),c=(0,s.useComposedRefs)(r,d.onViewportChange),f=L(B,e.__scopeNavigationMenu),[v,m]=t.useState(null),[p,h]=t.useState(null),w=v?v?.width+"px":void 0,x=v?v?.height+"px":void 0,b=!!d.value,C=b?d.value:d.previousValue;return ea(p,()=>{p&&m({width:p.offsetWidth,height:p.offsetHeight})}),(0,g.jsx)(a.Primitive.div,{"data-state":ei(b),"data-orientation":d.orientation,...l,ref:c,style:{pointerEvents:!b&&d.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":x,...l.style},onPointerEnter:(0,o.composeEventHandlers)(e.onPointerEnter,d.onContentEnter),onPointerLeave:(0,o.composeEventHandlers)(e.onPointerLeave,eu(d.onContentLeave)),children:Array.from(f.items).map(([e,{ref:t,forceMount:r,...n}])=>{let o=C===e;return(0,g.jsx)(u.Presence,{present:r||o,children:(0,g.jsx)(X,{...n,ref:(0,s.composeRefs)(t,e=>{o&&e&&h(e)})})},e)})})}),ee=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,o=T("FocusGroup",r);return(0,g.jsx)(E.Provider,{scope:r,children:(0,g.jsx)(E.Slot,{scope:r,children:(0,g.jsx)(a.Primitive.div,{dir:o.dir,...n,ref:t})})})}),et=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],er=t.forwardRef((e,t)=>{let{__scopeNavigationMenu:r,...n}=e,i=R(r),s=T("FocusGroupItem",r);return(0,g.jsx)(E.ItemSlot,{scope:r,children:(0,g.jsx)(a.Primitive.button,{...n,ref:t,onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...et].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),et.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>eo(t)),e.preventDefault()}})})})});function en(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eo(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let r=(0,p.useCallbackRef)(t);(0,m.useLayoutEffect)(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function ei(e){return e?"open":"closed"}function es(e,t){return`${e}-trigger-${t}`}function el(e,t){return`${e}-content-${t}`}function eu(e){return t=>"mouse"===t.pointerType?e(t):void 0}e.s(["Content",0,Y,"Item",0,V,"Link",0,U,"List",0,D,"Root",0,I,"Trigger",0,K,"Viewport",0,Q])},765237,e=>{"use strict";var t=e.i(573378),r=e.i(216887),n=e.i(36193),o=e.i(856794),a=e.i(554295),i=e.i(637531),s=e.i(565319);e.s(["ContentLanguageSelector",0,({href:e,languages:l=[]})=>{let[u,d]=(0,r.useState)(!1),c=(0,o.useLocale)(),f=(0,a.usePathname)(),v=(0,r.useMemo)(()=>l.find(e=>e.code===c),[l,c]),m=v?.name??"";return l.length<2?null:(0,t.jsxs)(n.Root,{onOpenChange:d,children:[(0,t.jsx)(n.Trigger,{asChild:!0,children:(0,t.jsxs)("button",{"aria-label":"Select language",className:"flex items-center gap-[0.3rem] rounded py-[1.8rem] text-body focus:outline-none focus-visible:ring-2 focus-visible:ring-tealActive",children:[(0,t.jsx)(i.Icon,{className:"shrink-0 text-offNoir/50",name:"Language"}),(0,t.jsx)("span",{children:m}),(0,t.jsx)(i.Icon,{className:(0,s.cn)("size-6 shrink-0 text-offNoir/50 transition-transform duration-300",u&&"rotate-180 duration-300"),name:"ChevronDown"})]})}),(0,t.jsx)(n.Portal,{children:(0,t.jsx)(n.Content,{className:"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-32 overflow-y-auto overflow-x-hidden border-[0.05rem] border-divider bg-blanc text-body shadow-[0_0.4rem_1.5rem_#0000001a] data-[state=closed]:animate-scaleOut data-[state=open]:animate-scaleIn",children:l.map((r,o)=>(0,t.jsx)(n.Item,{asChild:!0,className:(0,s.cn)("flex w-full cursor-pointer justify-center px-[2.4rem] py-[1.6rem] text-start outline-none transition-colors duration-300 hover:bg-gray-100 focus:bg-gray-100",o>0&&"border-t border-divider"),children:(0,t.jsx)(a.Link,{href:e??f,locale:r.code,children:r.name})},r.code))})})]})}])},890134,e=>{"use strict";e.i(438298),e.s([])},389055,e=>{"use strict";e.i(765237),e.s([])},348602,e=>{"use strict";
1var t=e.i(573378),r=e.i(216887),n=e.i(65909),o=e.i(73125),a=e.i(474221),i=e.i(832356);e.i(161148);var s=e.i(877957),l=e.i(565319);e.i(380642);var u=e.i(338401),d=e.i(483182),c=e.i(261254),f=e.i(361266);e.i(81636);var v=e.i(573391);e.i(569797);var m=e.i(622983);let p=i.z.object({password:i.z.string().min(1,{message:"Password is required"})}),h=()=>{let e=(0,o.useTranslations)("EmbargoModal"),[i,h]=(0,r.useState)(!0),g=(0,a.useForm)({defaultValues:{password:""},resolver:(0,n.zodResolver)(p)});return(0,t.jsx)(u.Dialog,{onOpenChange:e=>{e&&h(e)},open:i,children:(0,t.jsxs)(d.DialogContent,{classNames:{content:"bg-blanc w-[90vw] tablet:max-w-fit",overlay:"backdrop-blur-lg"},hideCloseButton:!0,children:[(0,t.jsx)(f.DialogTitle,{asChild:!0,children:(0,t.jsxs)("h3",{className:"text-headlineH3DisplayPhone text-offNoir/60 tablet:text-nowrap tablet:text-headlineH3Display",children:[e("heading"),":"]})}),(0,t.jsx)(c.DialogDescription,{className:"hidden",children:"This is embargoed content. Please enter a password to continue."}),(0,t.jsx)(a.FormProvider,{...g,children:(0,t.jsxs)("form",{className:"flex w-full flex-col gap-[1rem]",onSubmit:g.handleSubmit(e=>{"carnegie"===e.password?(sessionStorage.setItem("embargo-authenticated","true"),h(!1),g.reset()):(g.resetField("password"),g.setFocus("password"),g.setError("password",{message:"Incorrect password. Please try again."}))}),children:[(0,t.jsx)(v.FormField,{control:g.control,name:"password",render:({field:r,fieldState:n})=>(0,t.jsx)(m.FormItem,{error:n.error?.message,children:(0,t.jsx)("input",{...r,"aria-describedby":n.error?"error":void 0,"aria-invalid":!!n.error,className:(0,l.cn)("flex w-full rounded-[0.3rem] border-noir bg-greyLight/30 p-[1.6rem] text-noir","placeholder:font-serif placeholder:italic",n.error?"border-red-500":"border-noir/10"),id:r.name,placeholder:e("enterPassword"),type:"password"})})}),(0,t.jsx)(s.Button,{type:"submit",children:e("submit")})]})})]})})};h.displayName="EmbargoModal";let g=(0,r.createContext)(void 0);e.s(["EmbargoProvider",0,({children:e})=>{let[n,o]=(0,r.useState)(!1),[a,i]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=()=>{i("true"===sessionStorage.getItem("embargo-authenticated"))};e();let t=t=>{"embargo-authenticated"===t.key&&e()};return globalThis.addEventListener("storage",t),()=>{globalThis.removeEventListener("storage",t)}},[]);let s=n&&!a;return(0,t.jsxs)(g.Provider,{value:{hasEmbargoedContent:n,setPageData:e=>{o(e)}},children:[e,s&&(0,t.jsx)(h,{})]})},"useEmbargo",0,()=>{let e=(0,r.useContext)(g);if(!e)throw Error("useEmbargo must be used within an EmbargoProvider");return e}],348602)},59337,e=>{e.v(t=>Promise.all(["static/chunks/046.~hh4faa-m.js"].map(t=>e.l(t))).then(()=>t(446779)))},346216,e=>{e.v(t=>Promise.all(["static/chunks/0_bil1s1vm0~d.js"].map(t=>e.l(t))).then(()=>t(956257)))}]);

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.