"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33111],{54800:function(e,n,t){t.d(n,{Z:function(){return o}});var l=t(90675),i=t(97407);function o(e){(0,i.Z)(1,arguments);var n=(0,l.Z)(e);return n.setHours(23,59,59,999),n}},66045:function(e,n,t){t.d(n,{Z:function(){return o}});var l=t(90675),i=t(97407);function o(e){(0,i.Z)(1,arguments);var n=(0,l.Z)(e);return n.setHours(0,0,0,0),n}},53797:function(e,n,t){t.d(n,{Y:function(){return u}});var l=t(32039),i=t(52983),o=t(50315),d=t(96537),s=t(4199);const a=(0,o.CS)("Backdrop")();var r=t(97458);const c=["open","children","zIndex","color","transitionDuration","onClick","onDismiss","scrollable","testId","display"],u=a((e=>{let{open:n,children:t,zIndex:a,color:u="dim",transitionDuration:h=0,onClick:x,onDismiss:p,scrollable:f,testId:m="backdrop",display:k}=e,C=(0,l.gK)(e,c);const[g,b]=(0,i.useState)(n);(0,i.useEffect)((()=>{n&&b(!0)}),[n]);const v=(0,i.useCallback)((()=>{n||b(!1)}),[n]);return g?(0,r.jsx)(d.uT,{animation:{opacity:n?1:0},duration:h,onEnd:()=>{v(),null==p||p()},children:(0,r.jsx)(o.iS,{zIndex:a,top:0,right:0,bottom:0,left:0,backgroundColor:u,scrollable:f,"data-testid":m,display:k,children:(0,r.jsx)(o.av,{children:(0,r.jsxs)(o.xu,(0,l.gY)({flex:1},C,{children:[(0,r.jsx)(s.s,{as:"div",position:"absolute",cursor:"default",top:0,right:0,bottom:0,left:0,onClick:x}),t]}))})})}):null}))},24127:function(e,n,t){t.d(n,{s:function(){return y}});var l=t(32039),i=t(52983),o=t(50315),d=t(79495),s=t(96537),a=t(34058),r=t(45441),c=t(56167),u=t(53797),h=t(12149),x=t(28866),p=t(48667),f=t(14172),m=t(48391),k=t(25021),C=t(83390);const g=(0,o.CS)("ModalBottomSheet")((0,o.hu)({props:[{name:"size",default:"md"}],variants:{md:{desktopModalWidth:480},lg:{desktopModalWidth:760},full:{desktopModalWidth:"100%"}}}));var b=t(97458);const v=g((({open:e,defaultOpen:n,renderOpener:t,renderContents:g,title:v,subtitle:j,desktopModalWidth:y,primaryButtonOptions:w,secondaryButtonOptions:S,subButtonOptions:I,onClose:B,showCloseButton:$=!0,dimClosable:z=!0,testId:E="modal-bottom-sheet",scrollBoxRef:L,dangerouslyHideOverlayOnIos:D})=>{var M,V,O,W;const[R,T]=(0,a.T)({value:e,defaultValue:n,onValueChange:e=>{e||null==B||B()}}),[Y,F]=(0,i.useState)(!1),[U,Z]=(0,i.useState)(),{height:H}=(0,o.dz)(),{generateStyle:K}=(0,o.$R)(),{bottom:_}=K({edges:["bottom"],minInsets:{bottom:20}}),{breakpointIndex:A}=(0,o.Vt)({useRootBreakPoints:!0}),N=0===A,X=v||j||$?[20,24]:0,{theme:{zIndex:P}}=(0,o.Xw)(),{mode:q}=(0,o.Yo)({root:!0}),G=(0,i.useMemo)((()=>({mode:q})),[q]);(0,o.Ni)(R||Y);const J=(0,i.useCallback)((()=>(T(!1),R)),[R,T]);(0,r.K)(J);const Q=(0,i.useMemo)((()=>null==t?void 0:t({open:()=>T(!R),isOpen:R})),[R,t,T]),ee=(0,i.useCallback)((()=>{T(!1)}),[T]),ne=(0,i.useCallback)((({height:e})=>{Z(e)}),[]);return(0,i.useEffect)((()=>{R||F(!1)}),[R]),(0,i.useEffect)((()=>{R&&void 0!==U&&F(!0)}),[U,R]),(0,i.useEffect)((()=>{if("undefined"===typeof window||o.tY||!R||!z&&!$)return;const e=e=>{"Escape"===e.code&&ee()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[ee,R,z,$]),(0,b.jsxs)(b.Fragment,{children:[Q,(0,b.jsx)(o.f6,{theme:G,children:(0,b.jsx)(u.Y,{open:R,zIndex:P.modalBottomSheet,transitionDuration:200,onClick:z?ee:void 0,scrollable:!N,pt:[120,40],pb:[0,40],onDismiss:()=>{Y||Z(void 0)},display:D?"none":"flex",children:(0,b.jsx)(s.uT,{animation:(0,l.gY)({},N?{y:Y?0:U}:{opacity:R?1:0}),duration:200,style:{y:N?H:void 0},children:(0,b.jsxs)(o.xu,{role:o.tY?"none":"dialog",mx:"auto",mt:"auto",mb:[0,"auto"],pt:[20,28],pb:[null!=_?_:20,28],width:"100%",maxWidth:[446,480,y],maxHeight:[H-120,"unset"],backgroundColor:"surface2",roundedTopLeft:"xxl",roundedTopRight:"xxl",roundedBottomLeft:["none","xxl"],roundedBottomRight:["none","xxl"],onLayout:ne,"data-testid":E,children:[(0,b.jsxs)(f.U,{px:[20,32],flexShrink:0,children:[v?(0,b.jsx)(k.D,{as:"h2",level:[4,3],flexShrink:1,children:v}):null,$&&(0,b.jsx)(f.U,{ml:"auto",mt:[0,v?6:0],flexShrink:0,pl:6,children:(0,b.jsx)(m.h,{ariaLabel:"Close",onClick:ee,size:"md",IconComponent:d.F})})]}),j?(0,b.jsx)(h.u,{as:"p",level:1,mt:[14,20],px:[20,32],flexShrink:0,whiteSpace:"pre-wrap",children:j}):null,g&&(0,b.jsx)(o.De,{mt:X,scrollEnabled:[!0,!1],ref:L,children:g({close:ee})}),(0,c.$)(w)&&!(0,c.$)(S)&&!(0,c.$)(I)&&(0,b.jsx)(C.g,{px:[20,32],mt:[20,24],flexShrink:0,children:(0,b.jsx)(x.F,{kind:null!=(M=w.kind)?M:"primary",size:"xl",onClick:()=>null==w.onClick?void 0:w.onClick({close:ee}),full:!0,disabled:w.disabled,loading:w.loading,IconComponent:w.IconComponent,children:w.text})}),(0,c.$)(w)&&(0,c.$)(S)&&!(0,c.$)(I)&&(0,b.jsxs)(C.g,{px:[20,32],mt:[20,24],flexShrink:0,width:"100%",spacing:8,children:[(0,b.jsx)(x.F,{kind:null!=(V=w.kind)?V:"primary",size:"xl",onClick:()=>null==w.onClick?void 0:w.onClick({close:ee}),full:!0,disabled:w.disabled,loading:w.loading,IconComponent:w.IconComponent,children:w.text}),(0,b.jsx)(x.F,{kind:null!=(O=S.kind)?O:"tertiary",size:"xl",onClick:()=>null==S.onClick?void 0:S.onClick({close:ee}),full:!0,disabled:S.disabled,loading:S.loading,IconComponent:S.IconComponent,children:S.text})]}),(0,c.$)(w)&&!(0,c.$)(S)&&(0,c.$)(I)&&(0,b.jsxs)(C.g,{px:[20,32],mt:[20,24],flexShrink:0,width:"100%",spacing:16,children:[(0,b.jsx)(x.F,{kind:null!=(W=w.kind)?W:"primary",size:"xl",onClick:()=>null==w.onClick?void 0:w.onClick({close:ee}),full:!0,disabled:w.disabled,loading:w.loading,IconComponent:w.IconComponent,children:w.text}),(0,b.jsx)(o.xu,{alignSelf:"center",children:(0,b.jsx)(p.g,{size:"md",onClick:()=>null==I.onClick?void 0:I.onClick({close:ee}),disabled:I.disabled,IconComponent:I.IconComponent,children:I.text})})]})]})})})})]})})),j=(0,o.CS)("ModalBottomSheetMenu")((0,o.hu)({props:[{name:"disabled",default:!1}],variants:{false:{color:"onView1"},true:{color:"onView2"}}}))((({rightContents:e,IconComponent:n,onClick:t,title:l,color:i})=>(0,b.jsx)(o.Kt,{onClick:t,flexDirection:"row",alignItems:"center",py:12,children:(0,b.jsxs)(f.U,{alignVertical:"center",width:"100%",spacing:12,children:[n&&(0,b.jsx)(n,{size:20,fill:i}),(0,b.jsx)(k.D,{level:6,color:i,flex:1,weight:"regular",children:l}),null==e?void 0:e()]})}))),y=Object.assign(v,{Menu:j})},66668:function(e,n,t){t.d(n,{D:function(){return c}});var l=t(52983),i=t(50315),o=t(56167),d=t(14172),s=t(25021);const a=(0,i.CS)("TopBar")((0,i.hu)({props:[{name:"kind",default:"default"}],variants:{emphasis:{titleLevel:3,titleCentered:!1},default:{titleLevel:5,titleCentered:!0}}}));var r=t(97458);const c=a((({as:e,backgroundColor:n="background",title:t,titleAs:a="h1",titleLevel:c,titleCentered:u,testId:h="top-bar",renderLeft:x,renderRight:p})=>{const[f,m]=(0,l.useState)(void 0),[k,C]=(0,l.useState)(void 0),g=f||k?Math.max(null!=f?f:0,null!=k?k:0):"auto",{theme:{contentArea:b}}=(0,i.Xw)();return(0,r.jsx)(i.xu,{as:e,"data-testid":h,width:"100%",height:52,px:b.padding,backgroundColor:n,justifyContent:"center",children:(0,r.jsxs)(d.U,{mx:"auto",width:"100%",maxWidth:b.maxWidth,spacing:16,children:[(u||x)&&(0,r.jsx)(i.xu,{"data-testid":"top-bar-left-area",flexShrink:0,flexBasis:g,alignItems:"flex-start",children:(0,r.jsx)(d.U,{onLayout:({width:e})=>m(e),height:"100%",spacing:16,alignVertical:"center",children:null==x?void 0:x()})}),(0,l.isValidElement)(t)?(0,r.jsx)(i.xu,{"data-testid":"top-bar-element-title",width:"100%",flex:1,flexShrink:0,justifyContent:"center",visibility:!u||!x&&!p||(0,o.$)(f)||(0,o.$)(k)?"visible":"hidden",children:t}):(0,r.jsx)(s.D,{"data-testid":"top-bar-text-title",as:a,level:c,flex:1,alignSelf:"center",textAlign:u?"center":"left",lineLimit:1,visibility:!u||!x&&!p||(0,o.$)(f)||(0,o.$)(k)?"visible":"hidden",children:t}),(u||p)&&(0,r.jsx)(i.xu,{"data-testid":"top-bar-right-area",flexShrink:0,flexBasis:g,alignItems:"flex-end",children:(0,r.jsx)(d.U,{onLayout:({width:e})=>C(e),height:"100%",spacing:16,alignVertical:"center",children:null==p?void 0:p()})})]})})}))},45441:function(e,n,t){function l(e){}t.d(n,{K:function(){return l}})},34058:function(e,n,t){t.d(n,{T:function(){return d}});var l=t(52983),i=t(56167),o=t(60655);function d({value:e,defaultValue:n,onValueChange:t}){const[d,s]=(0,l.useState)(n),a=(0,i.$)(e),r=(0,o.W)(t),c=(0,l.useRef)(a?e:d),u=(0,l.useCallback)((e=>{c.current!==e&&(r(e),a||s(e))}),[r,a]);return(0,l.useEffect)((()=>{c.current=a?e:d}),[a,e,d]),[a?e:d,u]}}}]);