1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9361],{98382:(e,t,l)=>{l.d(t,{a:()=>f});var n=l(95155),r=l(12115),s=l(18460),a=l(69065),u=l(6307),i=l(40370);let c='a[href], button:not(:disabled), textarea:not(:disabled), input:not(:disabled), select:not(:disabled), [tabindex]:not([tabindex="-1"])',o=(0,s.F)("fixed inset-0 z-modal",{variants:{mobileFullscreen:{true:"bg-white sm:flex sm:min-h-full sm:items-center sm:justify-center sm:bg-pebble-600/50 sm:p-5",false:"flex min-h-full items-center justify-center bg-pebble-600/50 p-5"}},defaultVariants:{mobileFullscreen:!0}}),d=(0,s.F)("box-border flex flex-col gap-3 w-full max-w-modal mx-auto p-6 bg-white text-pebble-900",{variants:{mobileFullscreen:{true:"max-sm:h-full sm:rounded-lg sm:shadow-large",false:"rounded-lg shadow-large"}},defaultVariants:{mobileFullscreen:!0}}),m=(0,s.F)("box-border overflow-y-auto max-h-[50vh]",{variants:{mobileFullscreen:{true:"max-sm:max-h-none max-sm:flex-1",false:""}},defaultVariants:{mobileFullscreen:!0}}),f=e=>{var t;let l,{children:s,primaryCtaText:f,primaryCtaOnClick:h,intent:b,secondaryCtaText:x,secondaryCtaOnClick:v,title:p,isOpen:y=!1,isDialog:g=!1,onClose:E}=e,w=!!E,j=x&&v,k=(0,r.useId)(),[C,F]=(0,r.useState)(y),[L,N]=(0,r.useState)(!1);(0,r.useEffect)(()=>{y?(F(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{N(!0)})})):N(!1)},[y]);let S=(0,r.useRef)(null),q=(0,r.useRef)(null),R=(0,r.useRef)(null),T=(0,r.useRef)(null),A=(0,r.useRef)(null);(0,r.useEffect)(()=>{y&&C&&(w&&q.current?A.current=q.current.querySelector("button"):j&&R.current?A.current=R.current.querySelector("button"):T.current&&(A.current=T.current.querySelector("button")))},[y,C,w,j]),t=y&&C,l=(0,r.useRef)(null),(0,r.useEffect)(()=>{if(!t||!S.current)return;l.current=document.activeElement;let e=null==A?void 0:A.current;if(e)e.focus();else{let e=S.current.querySelector(c);null==e||e.focus()}let n=e=>{if("Tab"!==e.key||!S.current)return;let t=S.current.querySelectorAll(c);if(0===t.length)return;let l=t[0],n=t[t.length-1];e.shiftKey?document.activeElement===l&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),l.focus())};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n),l.current instanceof HTMLElement&&l.current.focus()}},[t,S,A]);let _=(0,r.useCallback)(e=>{"Escape"===e.key&&w&&(null==E||E())},[E,w]);(0,r.useEffect)(()=>y?(document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}):()=>{},[_,y]);let O=(0,r.useCallback)(e=>{w&&e.target===e.currentTarget&&(null==E||E())},[w,E]);return C?(0,n.jsx)("div",{className:(0,i.cn)(o({mobileFullscreen:!g}),"transition-opacity duration-300 ease-in-out",L?"opacity-100":"opacity-0"),onClick:O,onTransitionEnd:e=>{e.target!==e.currentTarget||y||F(!1)},children:(0,n.jsxs)("div",{ref:S,role:"dialog","aria-modal":"true","aria-labelledby":k,className:(0,i.cn)(d({mobileFullscreen:!g}),"transition-opacity duration-300 ease-in-out",L?"opacity-100":"opacity-0"),children:[(0,n.jsxs)("div",{className:"flex justify-between gap-6",children:[(0,n.jsx)(u.A,{titleLevel:2,size:"md",className:"mb-0 pt-1 text-left",id:k,children:p}),w?(0,n.jsx)("div",{ref:q,children:(0,n.jsx)(a.$n,{theme:"monochrome",iconOnly:!0,icon:"close",onClick:E,children:"Close"})}):null]}),(0,n.jsx)("div",{className:m({mobileFullscreen:!g}),children:s}),(0,n.jsxs)("div",{className:"flex gap-3 justify-end pt-3",children:[j?(0,n.jsx)("div",{ref:R,children:(0,n.jsx)(a.$n,{theme:"tertiary-padded",onClick:v,children:x})}):null,(0,n.jsx)("div",{ref:T,children:(0,n.jsx)(a.$n,{theme:"primary",intent:b,onClick:h,children:f})})]})]})}):null}},99361:(e,t,l)=>{l.r(t),l.d(t,{Modal:()=>u,default:()=>i});var n=l(95155),r=l(12115),s=l(73321),a=l(98382);let u=e=>{let{onClose:t,hashPath:l,children:u,showModal:i,title:c}=e,o=(0,s.useRouter)(),d=(0,s.usePathname)(),[m,f]=(0,r.useState)(!!i);(0,r.useEffect)(()=>{let e=()=>{location.hash===l&&f(!0)};return window.addEventListener("hashchange",e),e(),()=>window.removeEventListener("hashchange",e)},[l]);let h=()=>{f(!1),d&&o.push(d,{scroll:!1}),null==t||t()};return(0,n.jsx)(a.a,{isOpen:m,onClose:h,primaryCtaOnClick:h,primaryCtaText:"Close",title:c,children:u})},i=u}}]);
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.