1import{q as e,R as o,r as s,c as a,U as l,p as n,x as c,b as t,T as d,f as i,I as r,h as m,a as u,d as v,l as p,i as b,e as y,z as f}from"./index-CBidmUkf.js";const h={class:"modal-content"},x={class:"modal-card"},k={class:"modal-card-head"},B={key:0},L={class:"inner-content"},z=e({__name:"VModal",props:{title:{default:void 0},size:{default:void 0},actions:{default:void 0},open:{type:Boolean},rounded:{type:Boolean},noscroll:{type:Boolean},noclose:{type:Boolean},tabs:{type:Boolean},cancelLabel:{default:void 0},hideFooter:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:z}){const $=z,w=e,{t:C}=o(),E=s(!1),K=a(()=>w.cancelLabel||C("cancel-label"));return l(()=>{w.noscroll&&w.open?(document.documentElement.classList.add("no-scroll"),E.value=!0):E.value&&w.noscroll&&!w.open&&(document.documentElement.classList.remove("no-scroll"),E.value=!1)}),n(()=>{document.documentElement.classList.remove("no-scroll")}),(o,s)=>(t(),c(d,{to:"body"},[i("div",{class:b([[e.open&&"is-active",e.size&&`is-${e.size}`],"modal v-modal"])},[i("div",{class:"modal-background v-modal-close",tabindex:"0",onKeydown:s[0]||(s[0]=r(m(()=>!1===e.noclose&&$("close"),["prevent"]),["space"])),onClick:s[1]||(s[1]=()=>!1===e.noclose&&$("close"))},null,32),i("div",h,[i("div",x,[i("header",k,[w.title?(t(),u("h3",B,p(e.title),1)):v("",!0),i("button",{class:"v-modal-close ml-auto","aria-label":"close",tabindex:"0",onKeydown:s[2]||(s[2]=r(m(e=>$("close"),["prevent"]),["space"])),onClick:s[3]||(s[3]=e=>$("close"))},[...s[6]||(s[6]=[i("i",{"aria-hidden":"true",class:"iconify","data-icon":"feather:x"},null,-1)])],32)]),i("div",{class:b(["modal-card-body",[w.tabs&&"has-tabs"]])},[i("div",L,[y(o.$slots,"content")])],2),e.hideFooter?v("",!0):(t(),u("div",{key:0,class:b(["modal-card-foot",["center"===e.actions&&"is-centered","right"===e.actions&&"is-end"]])},[y(o.$slots,"cancel",{close:()=>$("close")},()=>[i("a",{tabindex:"0",class:b(["button v-button v-modal-close",[e.rounded&&"is-rounded"]]),onKeydown:s[4]||(s[4]=r(m(e=>$("close"),["prevent"]),["space"])),onClick:s[5]||(s[5]=e=>$("close"))},p(f(K)),35)]),y(o.$slots,"action",{close:()=>$("close")})],2))])])],2)]))}});export{z 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.