"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[12],{59:(e,n,d)=>{d.d(n,{a:()=>t});var o=d(0);function t({size:e,iconClass:n}){return(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"presentation",class:n,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"})})}},91:(e,n,d)=>{d.d(n,{a:()=>a});var o=d(0),t=d(2),l=d(16),s=d(15),i=d(59);function a({isOpen:e,onClose:n,children:d}){return(0,t.useEffect)((()=>{if("undefined"==typeof document)return;const n=window.innerWidth-document.documentElement.clientWidth,d=document.body.style.paddingRight;return e?(document.body.style.overflow="hidden",document.body.style.paddingRight=`${n}px`):(document.body.style.overflow="",document.body.style.paddingRight=d),()=>{document.body.style.overflow="",document.body.style.paddingRight=d}}),[e]),e&&"undefined"!=typeof document?(0,l.createPortal)((0,o.jsxs)("div",{className:s.a.modalOverlay,children:[(0,o.jsx)("div",{className:s.a.modalBackground,onClick:n}),(0,o.jsxs)("div",{className:s.a.modal,children:[(0,o.jsx)("button",{className:s.a.closeBtn,onClick:n,children:(0,o.jsx)(i.a,{size:"14px",iconClass:s.a.closeIconSVG})}),d]})]}),document.body):null}}}]);