import{r as t,j as e}from"./index-DAC_nvu_.js";const i="_modal_1irkt_1",m="_modal__content_1irkt_14",C="_errorIcon_1irkt_23",d="_modal__title_1irkt_33",h="_modal__text_1irkt_39",l={modal:i,modal__content:m,errorIcon:C,modal__title:d,modal__text:h},E=o=>t.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},t.createElement("g",{clipPath:"url(#clip0_15329_122026)"},t.createElement("path",{d:"M10 0C8.02219 0 6.08879 0.58649 4.4443 1.6853C2.79981 2.78412 1.51809 4.3459 0.761209 6.17316C0.00433283 8.00042 -0.1937 10.0111 0.192152 11.9509C0.578004 13.8907 1.53041 15.6725 2.92894 17.0711C4.32746 18.4696 6.10929 19.422 8.0491 19.8078C9.98891 20.1937 11.9996 19.9957 13.8268 19.2388C15.6541 18.4819 17.2159 17.2002 18.3147 15.5557C19.4135 13.9112 20 11.9778 20 10C19.9971 7.34871 18.9426 4.80684 17.0679 2.9321C15.1932 1.05736 12.6513 0.00286757 10 0ZM10 18.3333C8.35183 18.3333 6.74066 17.8446 5.37025 16.9289C3.99984 16.0132 2.93174 14.7117 2.30101 13.189C1.67028 11.6663 1.50525 9.99075 1.82679 8.37425C2.14834 6.75774 2.94201 5.27288 4.10745 4.10744C5.27288 2.94201 6.75774 2.14833 8.37425 1.82679C9.99076 1.50525 11.6663 1.67027 13.189 2.301C14.7117 2.93173 16.0132 3.99984 16.9289 5.37025C17.8446 6.74066 18.3333 8.35182 18.3333 10C18.3309 12.2094 17.4522 14.3276 15.8899 15.8899C14.3276 17.4522 12.2094 18.3309 10 18.3333Z",fill:"#C65C4A"}),t.createElement("path",{d:"M10 15.7143C10.3945 15.7143 10.7143 15.3945 10.7143 15V14.8175C10.7143 14.423 10.3945 14.1032 10 14.1032C9.60551 14.1032 9.28571 14.423 9.28571 14.8175V15C9.28571 15.3945 9.60551 15.7143 10 15.7143ZM10 12.8571C10.3945 12.8571 10.7143 12.5373 10.7143 12.1429V5C10.7143 4.60551 10.3945 4.28571 10 4.28571C9.60551 4.28571 9.28571 4.60551 9.28571 5V12.1429C9.28571 12.5373 9.60551 12.8571 10 12.8571Z",fill:"#C65C4A"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_15329_122026"},t.createElement("rect",{width:20,height:20,fill:"white"})))),x="Возникла ошибка",p="Попробуйте ещё раз.",g=o=>{const{title:s=x,message:r=p,showTitle:a=!0,className:_="",...c}=o,n=[l.modal,_].filter(Boolean).join(" ");return e.jsxs("div",{className:n,...c,children:[e.jsx(E,{className:l.errorIcon}),e.jsxs("div",{className:l.modal__content,children:[a&&e.jsx("h2",{className:`${l.modal__title} h3`,children:s}),e.jsx("p",{className:`${l.modal__text} body-3`,children:r})]})]})};export{g as E,E as S};