"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[9611],{3547:function(t,s,l){l.r(s),l.d(s,{default:function(){return c}});var n=function(){var t=this,s=t._self._c;return s("Modal",{ref:"modal",attrs:{autoOpen:!1,fullHeight:!1,large:!1},on:{closing:t.closing}},[s("div",{staticClass:"uk-modal-body"},[t._v(t._s(t.message))]),s("div",{staticClass:"uk-modal-footer uk-text-right"},[s("button",{staticClass:"uk-button uk-button-default",staticStyle:{"margin-left":"5px",width:"80px"},attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),t.action(null)}}},[t._v("  Отмена  ")]),s("button",{staticClass:"uk-button uk-button-default",staticStyle:{"margin-left":"5px",width:"80px"},attrs:{type:"button"},on:{click:function(s){return s.preventDefault(),t.action(!1)}}},[t._v("  Нет  ")]),s("button",{staticClass:"uk-button uk-button-primary",staticStyle:{"margin-left":"5px",width:"80px"},on:{click:function(s){return s.preventDefault(),t.action(!0)}}},[t._v("  Да  ")])])])},e=[],a={name:"YesNoCancel",components:{Modal:()=>l.e(8362).then(l.bind(l,2215))},data:()=>({message:"",callbacks:null,result:null}),methods:{async show(t){return this.result=null,this.message=t,new Promise(((t,s)=>{this.callbacks=[t,s],this.$refs.modal.open()}))},action(t){this.result=t,this.$refs.modal.close()},closing(){null!==this.result?this.callbacks[0](this.result):this.callbacks[1](new Error("Cancel pressed"))}}},u=a,i=l(1656),o=(0,i.A)(u,n,e,!1,null,null,null),c=o.exports}}]);
//# sourceMappingURL=YesNoCancel.0f6044a4.js.map