import{_ as r}from"./ButtonDefault-CzWpVlv6.js";import{e as m,l as u,D as p,o as f,c as b,a as t,b as c}from"./index-Bb2UEb_P.js";import{_ as k}from"./_plugin-vue_export-helper-DlAUqK2U.js";const C={class:"modal__body"},v={class:"modal__buttons-wrap"},y={__name:"ModalWindowAcceptCreateProfile",emits:["modalClose","buttonClicked"],setup(M,{emit:d}){const i=m(),o=d;function _(){o("modalClose")}function s(){i.push("/ProfileMake"),o("buttonClicked"),o("modalClose")}const n=a=>{a.key==="Enter"&&s()};return u(()=>{document.addEventListener("keyup",n)}),p(()=>{document.removeEventListener("keyup",n)}),(a,e)=>{const l=r;return f(),b("div",C,[e[0]||(e[0]=t("div",{class:"list-item__title"},"Создание нового профиля",-1)),e[1]||(e[1]=t("div",{class:"list-item__subtitle"},"Вы уверены, что хотите создать новый профиль?",-1)),t("div",v,[c(l,{class:"modal__button yes",label:"Да",onClick:s}),c(l,{class:"modal__button",label:"Нет",onClick:_})])])}}},x=k(y,[["__scopeId","data-v-75e9d16c"]]);export{x as default};
