1import{d as x,ba as k,s as v,o,y as i,z as B,e as c,a as r,g as a,k as f,t as $,u as d,_ as u,D as b,bb as z,j as h}from"./BYWp9Dip.js";const T={class:"m-dialog__header"},_={key:0,class:"m-dialog__header-drag-indicator"},S={key:0,class:"m-dialog__title"},p={class:"m-dialog__content"},F={key:0,class:"m-dialog__footer"},W={class:"m-dialog__footer-actions"},I=x({__name:"m-dialog",props:{title:{default:""},size:{default:"md"},width:{default:null},maxWidth:{default:null},position:{default:"center"},showClose:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!1},showConfirm:{type:Boolean,default:!1},cancelText:{default:"ÐÑмена"},confirmText:{default:"ÐодÑвеÑдиÑÑ"},swipeToClose:{default:"none"},showSwipeBanner:{type:Boolean,default:!1},zIndexFn:{}},emits:["confirm","cancel","close"],setup(e,{emit:w}){const s=e,l=w,y=k();v(()=>y.fullPath,()=>{l("close")});const C=h(()=>`m-dialog__container m-dialog__container--${s.size} m-dialog__container--${s.position}`),g=h(()=>{const t={};return s.width&&(t.width=s.width),s.maxWidth&&(t.maxWidth=s.maxWidth),t});return(t,n)=>(o(),i(d(z),b({class:"m-dialog","content-class":C.value,"content-style":g.value,"swipe-to-close":e.swipeToClose,"overlay-transition":"vfm-fade","content-transition":"vfm-fade","show-swipe-banner":e.showSwipeBanner,"z-index-fn":e.zIndexFn},t.$attrs),{default:B(()=>[c("div",T,[e.swipeToClose!=="none"?(o(),r("div",_)):a("",!0),f(t.$slots,"header",{},()=>[e.title?(o(),r("h2",S,$(e.title),1)):a("",!0),e.showClose?(o(),i(d(u),{key:1,color:"white",icon:"lib:close","aria-label":"Close",onClick:n[0]||(n[0]=m=>l("close"))})):a("",!0)])]),c("div",p,[f(t.$slots,"default")]),t.$slots.footer||e.showFooter?(o(),r("div",F,[f(t.$slots,"footer",{},()=>[c("div",W,[e.showCancel?(o(),i(d(u),{key:0,color:"gray",text:e.cancelText,onClick:n[1]||(n[1]=m=>l("cancel"))},null,8,["text"])):a("",!0),e.showConfirm?(o(),i(d(u),{key:1,color:"blue",text:e.confirmText,onClick:n[2]||(n[2]=m=>l("confirm"))},null,8,["text"])):a("",!0)])])])):a("",!0)]),_:3},16,["content-class","content-style","swipe-to-close","show-swipe-banner","z-index-fn"]))}});export{I as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.