1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12592],{12592:function(e,t,r){r.d(t,{Z:function(){return q}});var n=r(14994),o=r(18349),l=r(93435),i=r(53316),u=r(41232),s=r(39167),a=r(27985),c=r(70715),d=r(79693),h=r(15731),f=r(29426),v=r(5886),y=r(37420);let p=(0,o.eW)(e=>{let t=(0,l.useContext)(y.gs);return(0,l.useEffect)(()=>{if(t)return e&&t.lockScroll(),()=>{e&&t.unlockScroll()}},[e,t]),null!==t},"useSwipesheetScrollLock"),m=(0,o.eW)((e,t)=>{let r=(0,l.useContext)(y.gs),n=null==r?void 0:r.registerSheet,o=null==r?void 0:r.isTopSheet;return null==r||r.stackVersion,(0,l.useEffect)(()=>{if(n&&e&&void 0!==t)return n(t)},[e,n,t]),!o||!e||void 0===t||o(t)},"useIsTopSwipesheet"),b="qaid-swipesheet-header",x=0,w=0,g=null,k=(0,o.eW)(()=>{if((x+=1)>1)return;let e=document.body;w=window.scrollY||document.documentElement.scrollTop||0,g={position:e.style.position,top:e.style.top,left:e.style.left,right:e.style.right,width:e.style.width,overflow:e.style.overflow,touchAction:e.style.touchAction,overscrollBehaviorY:e.style.overscrollBehaviorY},e.style.position="fixed",e.style.setProperty("top","-".concat(w,"px"),"important"),e.style.left="0",e.style.right="0",e.style.width="100%",e.style.overflow="hidden",e.style.touchAction="none",e.style.overscrollBehaviorY="none"},"acquireBodyScrollLock"),A=(0,o.eW)(()=>{if((x=Math.max(0,x-1))>0||!g)return;let e=document.body;e.style.position=g.position,e.style.removeProperty("top"),g.top&&(e.style.top=g.top),e.style.left=g.left,e.style.right=g.right,e.style.width=g.width,e.style.overflow=g.overflow,e.style.touchAction=g.touchAction,e.style.overscrollBehaviorY=g.overscrollBehaviorY,g=null,window.scrollTo({top:w,behavior:"instant"})},"releaseBodyScrollLock");var E=r(31465);let S={root:{_hover:{backgroundColor:"transparent"}}},C=(0,E.F)({slots:["content","header","headerTitle","body"],variants:{hideHeaderBorder:{true:{header:{borderBottom:"none"}}},drag:{true:{content:{paddingTop:"space.20","& > :first-child":{zIndex:"inherit"}},header:{paddingTop:0}}},dragHandleOverlay:{true:{content:{paddingTop:"[0]","& > :first-child":{zIndex:10}}}},headerSize:{default:{headerTitle:{textStyle:"subheading.large",color:"core.grey.800"}},medium:{headerTitle:{textStyle:"heading.regular",color:"semantic.text.grey.2"}}}},base:{content:{flexDirection:"column"},header:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:"space.16",borderBottom:"[1px solid token(colors.core.grey.300)]",position:"sticky",top:0,backgroundColor:"core.primary.white",zIndex:1},headerTitle:{flex:1,minWidth:0},body:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"}}}),T=(0,o.eW)(e=>{let{children:t,open:r,onOpenChange:x,variant:w="contained",drag:g=!0,dragHandleOverlay:E=!1,dragDownThreshold:T,closeOnTapOutside:q,title:B,headerSize:j="default",showCloseIcon:R=!0,closeIcon:W,header:I,hideHeaderBorder:P=!1,onClose:Y,scrollingContainerRef:N,portalContainer:D,zIndex:z,overrideStyles:O,ariaLabel:L,ariaLabelledby:M,modal:Q=!1}=e,Z=(0,l.useRef)(null),_=null!=N?N:Z,F=(0,y.pn)(r,z),H=p(r),K=m(r,F),J=g&&K,V=Q&&r&&K;(0,h.P)(_,{isActive:V}),(0,f.s)({isActive:V,targetRef:_}),(0,l.useEffect)(()=>{if(!r)return;let e=_.current;e&&(M?(e.setAttribute("aria-labelledby",M),e.removeAttribute("aria-label")):L&&(e.setAttribute("aria-label",L),e.removeAttribute("aria-labelledby")))},[r,L,M,_]);let X=(0,l.useCallback)(e=>e.stopPropagation(),[]),$=C({hideHeaderBorder:P,drag:g,dragHandleOverlay:E,headerSize:j}),G=(0,o.ih)((0,o.EZ)((0,o.ih)({},S),{root:(0,o.ih)((0,o.ih)({},S.root),null==O?void 0:O.closeButton)}),(null==O?void 0:O.closeButtonIcon)?{icon:O.closeButtonIcon}:{}),U=(0,l.useRef)(r);(0,l.useEffect)(()=>{U.current&&!r&&(null==Y||Y()),U.current=r},[r,Y]),(0,l.useEffect)(()=>{if(r&&!H)return k(),()=>A()},[r,H]);let ee=null!=D?D:"undefined"!=typeof document?document.body:null,et=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.q.Overlay,{"data-qa-marker":"qaid-swipesheet-overlay"}),(0,n.jsxs)(u.q.Content,{contentWrapperRef:_,className:(0,d.Q)($.content,null==O?void 0:O.content),"data-qa-marker":"qaid-swipesheet-content",children:[(0,n.jsx)(v.h,{if:!!I,children:(0,n.jsx)("div",{className:(0,d.Q)($.header,null==O?void 0:O.header),"data-qa-marker":b,onAnimationEnd:X,children:I})}),(0,n.jsx)(v.h,{if:!I&&!!B,children:(0,n.jsxs)("div",{className:(0,d.Q)($.header,null==O?void 0:O.header),"data-qa-marker":b,onAnimationEnd:X,children:[(0,n.jsx)(s.x,{as:"h6",className:(0,d.Q)($.headerTitle,null==O?void 0:O.headerTitle),children:B}),(0,n.jsx)(v.h,{if:R,children:(0,n.jsx)(a.Button,{as:"button",size:"small",variant:"primary",btnType:"transparent",icon:null!=W?W:(0,n.jsx)(c.J,{iconName:"Cross",height:16,width:16}),iconPosition:"leading",primaryText:"","aria-label":"Close",onClick:()=>x(!1),overrideStyles:G,"data-qa-marker":"qaid-swipesheet-close-button"})})]})}),(0,n.jsx)("div",{className:(0,d.Q)($.body,null==O?void 0:O.body),"data-qa-marker":"qaid-swipesheet-body",onAnimationEnd:X,children:(0,n.jsx)(y.Ek.Provider,{value:null!=F?F+1:void 0,children:t})})]})]});return(0,n.jsx)(u.q.Root,{variant:w,open:r,setOpen:x,container:null,drag:J,dragDownThreshold:T,closeOnTapOutside:q,scrollingContainerRef:_,zIndex:F,"data-qa-marker":"qaid-swipesheet",children:ee?(0,i.createPortal)(et,ee):null})},"Swipesheet");T.displayName="Swipesheet";var q=T},37420:function(e,t,r){r.d(t,{gs:function(){return i},E$:function(){return c},Ek:function(){return u},XM:function(){return s},pn:function(){return d}});var n=r(14994),o=r(18349),l=r(93435);let i=(0,l.createContext)(null),u=(0,l.createContext)(void 0),s=(0,o.eW)(()=>(0,l.useContext)(u),"useAncestorSwipesheetZIndex"),a=(0,o.eW)(e=>{let{children:t}=e,r=(0,l.useRef)(0),o=(0,l.useRef)(new Set),u=(0,l.useRef)(0),[s,a]=(0,l.useState)(0),c=(0,l.useRef)(null),d=(0,l.useCallback)(()=>(r.current+=2,1e6+r.current),[]),h=(0,l.useCallback)(e=>(o.current.add(e),a(e=>e+1),()=>{o.current.delete(e),a(e=>e+1)}),[]),f=(0,l.useCallback)(e=>{let t=Array.from(o.current);return 0===t.length||e===Math.max(...t)},[]),v=(0,l.useCallback)(()=>
1{if(u.current+=1,1===u.current){let e=document.body;c.current={overflow:e.style.overflow,overscrollBehaviorY:e.style.overscrollBehaviorY,touchAction:e.style.touchAction},e.style.overflow="hidden",e.style.overscrollBehaviorY="none",e.style.touchAction="none"}},[]),y=(0,l.useCallback)(()=>{if(u.current=Math.max(0,u.current-1),0===u.current&&c.current){let e=document.body;e.style.overflow=c.current.overflow,e.style.overscrollBehaviorY=c.current.overscrollBehaviorY,e.style.touchAction=c.current.touchAction,c.current=null}},[]),p=(0,l.useMemo)(()=>({acquireZIndex:d,registerSheet:h,isTopSheet:f,stackVersion:s,lockScroll:v,unlockScroll:y}),[d,h,f,s,v,y]);return(0,n.jsx)(i.Provider,{value:p,children:t})},"SwipesheetStackProviderRoot"),c=(0,o.eW)(e=>{let{children:t}=e,r=(0,l.useContext)(i);return r?(0,n.jsx)(i.Provider,{value:r,children:t}):(0,n.jsx)(a,{children:t})},"SwipesheetStackProvider"),d=(0,o.eW)((e,t)=>{let r=(0,l.useContext)(i),n=(0,l.useRef)(void 0),o=(0,l.useRef)(!1),u=null!==r&&void 0===t;return(u&&e&&!o.current&&(n.current=r.acquireZIndex()),(0,l.useEffect)(()=>{o.current=e},[e]),void 0!==t)?t:u?n.current:void 0},"useSwipesheetZIndex")},15731:function(e,t,r){r.d(t,{P:function(){return l}});var n=r(18349),o=r(93435);let l=(0,n.eW)((e,t)=>{let{isActive:r,onEscape:l,triggerRef:i,focusFirstOnActivate:u=!0,returnFocusOnDeactivate:s=!0,capturePhase:a=!1}=t,c=(0,o.useRef)(null),d=(0,o.useRef)(!1),h=(0,o.useRef)(s);h.current=s;let f=(0,o.useRef)(i);f.current=i;let v=(0,o.useRef)(l);v.current=l,(0,o.useEffect)(()=>{let t=(0,n.eW)(()=>e.current?Array.from(e.current.querySelectorAll('a[href]:not([tabindex="-1"]), button:not([disabled]):not([tabindex="-1"]), textarea:not([disabled]):not([tabindex="-1"]), input:not([disabled]):not([tabindex="-1"]), select:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])')).filter(e=>e.tabIndex>=0&&!e.hasAttribute("hidden")&&null!==e.offsetParent&&"hidden"!==getComputedStyle(e).visibility):[],"getFocusableElements"),o=(0,n.eW)(r=>{var n,o,l;if("Escape"===r.key){null==(n=v.current)||n.call(v);return}if("Tab"!==r.key)return;let i=t();if(0===i.length)return;let u=i[0],s=i[i.length-1],a=document.activeElement;if(r.shiftKey){if(a!==u&&(null==(o=e.current)?void 0:o.contains(a)))return;r.preventDefault(),s.focus()}else{if(a!==s&&(null==(l=e.current)?void 0:l.contains(a)))return;r.preventDefault(),u.focus()}},"handleKeyDown");return r&&(d.current||(c.current=document.activeElement),d.current=!0,u&&setTimeout(()=>{var e;null==(e=t()[0])||e.focus()},0),document.addEventListener("keydown",o,{capture:a})),()=>{document.removeEventListener("keydown",o,{capture:a})}},[r,u,e,a]),(0,o.useEffect)(()=>{var e,t;if(!r&&s&&d.current){let r=null!=(t=null==(e=f.current)?void 0:e.current)?t:c.current;setTimeout(()=>{null==r||r.focus()},0),d.current=!1}},[r,s]),(0,o.useEffect)(()=>()=>{var e,t;if(d.current&&h.current){let r=null!=(t=null==(e=f.current)?void 0:e.current)?t:c.current;null==r||r.focus(),d.current=!1}},[])},"useFocusTrap")},29426:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(18349),o=r(93435);let l="inert",i=(0,n.eW)(e=>{let{isActive:t,targetRef:r}=e;(0,o.useEffect)(()=>{if(!t||"undefined"==typeof document)return;let e=r.current;if(!e)return;let n=document.body,o=[];return Array.from(n.children).forEach(t=>{!(t===e||t.contains(e))&&"true"!==t.getAttribute("aria-hidden")&&(t.hasAttribute(l)||(t.setAttribute(l,""),o.push(t)))}),()=>{o.forEach(e=>e.removeAttribute(l))}},[t,r])},"useInertOthers")}}]);
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.