import{_ as r}from"./ButtonDefault-BIBStZbJ.js";import{d as m,H as u,s as p,c as f,o as b,a as t,b as d}from"./index-CmCGXBst.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:c}){const i=m(),o=c;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 b(),f("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,[d(l,{class:"modal__button yes",label:"Да",onClick:s}),d(l,{class:"modal__button",label:"Нет",onClick:_})])])}}},x=k(y,[["__scopeId","data-v-a4dded69"]]);export{x as default};
