"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[14],{74:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=function({size:e,iconClass:t}){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"presentation",class:t,style:e?`width:${e};height:${e}`:"",fill:"none",viewBox:"0 0 18 17",children:(0,o.jsx)("path",{d:"M.865 15.978a.5.5 0 00.707.707l7.433-7.431 7.579 7.282a.501.501 0 00.846-.37.5.5 0 00-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 10-.707-.708L8.991 7.853 1.413.573a.5.5 0 10-.693.72l7.563 7.268-7.418 7.417z",fill:"currentColor"})})};const o=n(0)},65:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PortalModal=function({isOpen:e,onClose:t,children:n}){return(0,d.useEffect)((()=>{if("undefined"==typeof document)return;const t=window.innerWidth-document.documentElement.clientWidth,n=document.body.style.paddingRight;return e?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${t}px`):(document.body.style.overflow="",document.body.style.paddingRight=n),()=>{document.body.style.overflow="",document.body.style.paddingRight=n}}),[e]),e&&"undefined"!=typeof document?(0,s.createPortal)((0,l.jsxs)("div",{className:i.default.modalOverlay,children:[(0,l.jsx)("div",{className:i.default.modalBackground,onClick:t}),(0,l.jsxs)("div",{className:i.default.modal,children:[(0,l.jsx)("button",{className:i.default.closeBtn,onClick:t,children:(0,l.jsx)(c.CloseIcon,{size:"14px",iconClass:i.default.closeIconSVG})}),n]})]}),document.body):null};const l=n(0),d=n(2),s=n(15),i=o(n(19)),c=n(74)}}]);