import{_ as p}from"./ButtonDefault-CghIUDY0.js";import{d as f,ao as b,H as C,s as $,c as k,o as v,a as i,b as d}from"./index-CipWZKo_.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const I={class:"modal__body"},U={class:"modal__buttons"},h={__name:"ModalWindowUnsubscribeConfirmation",props:["data"],emits:["modalClose"],setup(r,{emit:l}){const o=r,m=l,_=f(),u=b();function t(){m("modalClose"),_.push("/Home")}function n(){u.confirmUnsubscribe(`ContactID=${o.data?.ContactID}&TypeID=${o.data?.TypeID}&Code=${o.data?.Code}&IsConfirm=1`).then(e=>{t()})}const s=e=>{e.key==="Enter"&&n()};return C(()=>{document.addEventListener("keyup",s)}),$(()=>{document.removeEventListener("keyup",s)}),(e,a)=>{const c=p;return v(),k("div",I,[a[0]||(a[0]=i("div",{class:"list-item__title"},"Вы действительно хотите отписаться от уведомлений?",-1)),i("div",U,[d(c,{class:"modal__button",label:"Да",onClick:n}),d(c,{class:"modal__button",label:"Нет",onClick:t})])])}}},M=y(h,[["__scopeId","data-v-ede853a3"]]);export{M as default};
