"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8138],{67221:function(e,t,i){i.d(t,{J:function(){return l}});var n=i(35944),o=i(5460);i(67294);let l=e=>{let{type:t,width:i,height:l,dataTestId:r,className:a,onClick:d,alt:s}=e;return(0,n.tZ)(o.E,{display:"inline-flex","data-testid":r,maxWidth:"100%",maxHeight:"100%",width:i,src:`/images/icons/${t}.svg`,alt:s??`svg-inline-icon:/images/icons/${t}.svg`,className:a,height:l,onClick:d})}},84676:function(e,t,i){i.d(t,{P:function(){return g}});var n=i(35944),o=i(17953);i(67294);var l=i(36114),r=i(72066),a=i(18618),d=i(16829),s=i(28609);let u=(0,d.Z)("div",{target:"eyoz4tk0"})("	text-align:center;width:48.8rem;"),c=(0,d.Z)("div",{target:"eyoz4tk1"})("	padding:4rem 4.8rem;"),h=e=>{let{id:t,children:i}=e,[o]=(0,a.a)(`(max-width: ${s.r.breakpoint.down.SMALL})`);return o?null:(0,n.tZ)(u,{"data-testid":`general.modal.${t}`,children:(0,n.tZ)(c,{children:i})})},m=e=>{let{id:t,size:i,children:o}=e;return"large"===i?(0,n.tZ)(r.n,{id:t,children:o}):"medium"===i?(0,n.tZ)(l.GP,{id:t,children:o}):(0,n.tZ)(h,{id:"alert",children:o})},g=e=>{let{id:t,label:i,desktopSize:l,children:r}=e;return(0,n.BX)(n.HY,{children:[(0,n.BX)(m,{id:t,size:l??"medium",children:[i,r]}),(0,n.tZ)(o.o,{id:t,label:i??"",children:r})]})}},72066:function(e,t,i){i.d(t,{i:function(){return a},n:function(){return d}});var n=i(35944),o=i(18618),l=i(16829);i(67294);var r=i(28609);let a=(0,l.Z)("div",{target:"e1tz1ohl0"})("	text-align:center;width:80rem;"),d=e=>{let{id:t,children:i}=e,[l]=(0,o.a)(`(max-width: ${r.r.breakpoint.down.SMALL})`);return l?null:(0,n.tZ)(a,{"data-testid":`general.modal.${t}`,children:i})}},36114:function(e,t,i){i.d(t,{GP:function(){return s},VY:function(){return d},oT:function(){return a}});var n=i(35944),o=i(18618),l=i(16829);i(67294);var r=i(28609);let a=(0,l.Z)("div",{target:"er3a38f0"})("	text-align:center;width:48.8rem;"),d=(0,l.Z)("div",{target:"er3a38f1"})("	padding:4.8rem;"),s=e=>{let{id:t,children:i}=e,[l]=(0,o.a)(`(max-width: ${r.r.breakpoint.down.SMALL})`);return l?null:(0,n.tZ)(a,{"data-testid":`general.modal.${t}`,children:(0,n.tZ)(d,{children:i})})}},17953:function(e,t,i){i.d(t,{V:function(){return d},o:function(){return c}});var n=i(35944),o=i(18618),l=i(16829);i(67294);var r=i(28609);let a=(0,l.Z)("div",{target:"espoj190"})("	text-align:center;"),d=(0,l.Z)("div",{target:"espoj191"})("	padding:6rem 3.2rem 6rem 3.2rem;@media (max-width:340px){padding:4.8rem 3.2rem 4.8rem 3.2rem;}"),s=(0,l.Z)("div",{target:"espoj192"})("	padding-right:3.2rem;margin-bottom:2.4rem;text-align:left;"),u=(0,l.Z)("div",{target:"espoj193"})("	margin-bottom:4.5rem;"),c=e=>{let{id:t,label:i,children:l}=e,[c]=(0,o.a)(`(max-width: ${r.r.breakpoint.down.SMALL})`);return c?(0,n.tZ)(a,{"data-testid":`general.modal.${t}`,children:(0,n.BX)(d,{children:[i?(0,n.tZ)(s,{children:i}):(0,n.tZ)(u,{}),l]})}):null}},88497:function(e,t,i){i.d(t,{d:function(){return A}});var n=i(35944),o=i(18618),l=i(57747),r=i(70917),a=i(16829),d=i(23901),s=i(67294);let u=e=>e.stopPropagation();var c=i(89993),h=i(26892),m=i(28609),g=i(68182);let p=(0,a.Z)("div",{target:"eqhzazq0"})("	position:absolute;width:4.8rem;height:4.8rem;right:",e=>{let{type:t}=e;return"desktopLargeOnly"===t?"0":"-2.4rem"},";top:-2.4rem;z-index:",g.we.modal.closeButton,";@media (min-width:",m.r.breakpoint.up.SMALL,"){right:-2.4rem;}"),f=e=>{let{onClick:t,type:i}=e;return(0,n.tZ)(p,{type:i,children:(0,n.tZ)(c.h,{"data-testid":"general.modal.close_button",width:12,height:12,onClick:t,"aria-label":"modal-close-button",icon:(0,n.tZ)(h.Ew,{})})})},b=(0,a.Z)("div",{target:"evu7pls0"})("	position:absolute;width:4rem;height:4rem;right:",e=>{let{type:t}=e;return"desktopMediumOnly"===t?"0":"-2rem"},";top:-2rem;z-index:",g.we.modal.closeButton,";@media (min-width:",m.r.breakpoint.up.SMALL,"){right:-2rem;}"),v=e=>{let{onClick:t,type:i}=e;return(0,n.tZ)(b,{type:i,children:(0,n.tZ)(c.h,{"data-testid":"general.modal.close_button",width:10,height:10,minWidth:10,onClick:t,"aria-label":"modal-close-button",icon:(0,n.tZ)(h.Ew,{boxSize:3})})})};var w=i(67221);let Z=(0,a.Z)("div",{target:"e1og1pbl0"})("	",e=>{let{position:t}=e;return"absolute"===t&&(0,r.iv)`
			position: absolute;
			right: 0;
		`},"	z-index:",g.we.modal.closeButton,";"),x=(0,a.Z)("div",{target:"e1og1pbl1"})("	display:flex;justify-content:center;align-items:center;cursor:pointer;margin:1.6rem 2.5rem;width:3.2rem;height:3.2rem;float:right;"),k=(0,a.Z)(w.J,{target:"e1og1pbl2"})("	width:1.2rem;height:1.2rem;",e=>{let{buttonType:t}=e;return("large"===t||"desktopLargeOnly"===t)&&(0,r.iv)("			width:1.6rem;height:1.6rem;")}),y=e=>{let{onClick:t,type:i,position:o}=e;return(0,n.tZ)(Z,{onClick:t,position:o,children:(0,n.tZ)(x,{children:(0,n.tZ)(k,{type:"close-blue",buttonType:i})})})},B=e=>{let{type:t,onClick:i,position:l}=e,[r]=(0,o.a)(`(max-width: ${m.r.breakpoint.down.SMALL})`);return"desktopMediumOnly"===t?(0,n.tZ)(v,{onClick:i,type:t}):"desktopLargeOnly"===t?(0,n.tZ)(f,{onClick:i,type:t}):r&&"none"!==t?(0,n.tZ)(y,{type:t,onClick:i,position:l}):"medium"===t?(0,n.tZ)(v,{onClick:i,type:t}):"large"===t?(0,n.tZ)(f,{onClick:i,type:t}):null},C=(0,a.Z)("div",{target:"elzqt4n0"})("	display:flex;justify-content:center;align-items:center;overflow:auto;height:100dvh;width:100%;padding-top:",e=>{let{isPreviewMode:t}=e;return t?"8rem":"3rem"},";padding-bottom:3rem;"),L=(0,a.Z)("div",{target:"elzqt4n1"})("	display:flex;flex-direction:column;align-items:center;align-self:flex-start;position:relative;background:",e=>{let{theme:t}=e;return t.color.WHITE},";box-shadow:",e=>{let{theme:t}=e;return t.color.shadow.box.HOVER},";border-radius:0.8rem;",e=>{let{fullHeight:t}=e;return t&&(0,r.iv)`
			height: 100%;
		`},"	@media (min-height:900px){align-self:auto;}"),M=e=>{let{closeButton:t,close:i,children:o,fullHeight:l}=e,{isPreviewMode:r}=(0,d.A)();return(0,n.tZ)(C,{isPreviewMode:r,children:(0,n.BX)(L,{onMouseDown:u,onTouchStart:u,fullHeight:l,children:[(0,n.tZ)(B,{type:t,onClick:i}),o]})})},E=e=>{let{closeButton:t,close:i,closeButtonPosition:o,children:r,fullHeight:a,modalVerticalPosition:d="none"}=e,[c,h]=s.useState("100vh"),g=s.useCallback(()=>{let e=`${window.innerHeight}px`;c!==e&&h(e)},[c]);s.useEffect(()=>(g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}),[g]);let p=(0,n.BX)(l.xu,{onMouseDown:u,onTouchStart:u,height:a?"100%":"auto",position:"relative",width:"100vw",background:m.r.color.WHITE,boxShadow:m.r.color.shadow.box.HOVER,borderRadius:"0.8rem 0.8rem 0 0",children:[(0,n.tZ)(B,{type:t,onClick:i,position:o}),r]});return(0,n.tZ)(l.xu,{height:c,display:"flex",flexDirection:"column",overflowY:"auto",overflowX:"hidden",width:"100vw",alignSelf:"flex-end",justifyContent:d,children:a?p:(0,n.tZ)(l.xu,{alignSelf:"flex-end",marginTop:"none"===d?"auto":"none",children:p})})},H=(0,r.iv)("	body{position:relative;max-height:100vh;overflow:hidden;}"),P=e=>{let{close:t,children:i,closeButton:o,closeButtonPosition:a,isMobile:d,fullHeight:s,mobileModalPosition:u}=e;return(0,n.BX)(n.HY,{children:[(0,n.tZ)(l.xu,{onMouseDown:()=>t(void 0,!0),onTouchStart:()=>t(void 0,!0),display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"0",left:"0",width:"100%",maxWidth:"100vw",minHeight:"100%",zIndex:g.we.modal.content.topLevel,children:(0,n.tZ)(S,{closeButton:o,close:t,isMobile:d,closeButtonPosition:a,fullHeight:s,mobileModalPosition:u,children:i})}),(0,n.tZ)(r.xB,{styles:[H]})]})},S=e=>{let{close:t,children:i,closeButton:o,closeButtonPosition:l,isMobile:r,fullHeight:a,mobileModalPosition:d}=e;return r?(0,n.tZ)(E,{closeButton:o,close:t,closeButtonPosition:l,fullHeight:a,modalVerticalPosition:d,children:i}):(0,n.tZ)(M,{closeButton:o,close:t,fullHeight:a,children:i})},z=(0,a.Z)("div",{target:"ef2sr4t0"})("	position:fixed;top:0;left:0;width:100%;height:100%;min-height:100vh;z-index:",g.we.modal.overlay,";background-color:rgba(0,0,0,0.15);");var $=i(50779),V=i(56365);let j={isVisible:!1,isClosable:!0,closeButton:"none",closeButtonPosition:"normal",fullHeight:!1,mobileVerticalPosition:"none",isClosableByBackDropInMobile:!0},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l={...j,...t},[r,a]=(0,s.useState)(l.isVisible),[d]=(0,o.a)(`(max-width: ${m.r.breakpoint.down.SMALL})`),u=(0,s.useCallback)(()=>a(!0),[]),c=(0,s.useRef)(null),h=(0,s.useCallback)((e,t)=>{c.current?.focus(),l.isClosable&&(!d||!t||l.isClosableByBackDropInMobile)&&(a(!1),i&&i())},[i,d,l.isClosable,l.isClosableByBackDropInMobile]),g=(0,s.useCallback)(()=>{r?h():u()},[h,r,u]);(0,s.useEffect)(()=>{let e=e=>{"Escape"===e.code&&h()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[h]);let p=(0,s.useMemo)(()=>()=>r&&V.j?(0,n.BX)($.Z,{node:document.getElementById("modals"),children:[(0,n.tZ)(P,{close:h,closeButton:l.closeButton,isMobile:d,closeButtonPosition:l.closeButtonPosition,fullHeight:l.fullHeight,mobileModalPosition:l.mobileVerticalPosition,children:"function"==typeof e?e({close:h,isMobile:d}):e}),(0,n.tZ)(z,{ref:c,tabIndex:-1,onClick:h})]}):null,[h,e,d,r,l.closeButton,l.closeButtonPosition,l.fullHeight,l.mobileVerticalPosition]);return{open:u,close:h,toggle:g,Modal:p,isVisible:r}}}}]);