1import{v as p,T as w,u as g,_ as v}from"./_plugin-vue_export-helper-523774f3.js";import{d as y,w as b,o as a,a as _,b as i,l as x,g as o,h as B,e as n,ad as l,i as d,n as r,q as k,s as C}from"./runtime-core.esm-bundler-b21888a6.js";const c=t=>(k("data-v-bee814af"),t=t(),C(),t),D={class:"tw-fixed tw-top-0 tw-left-0 tw-w-full tw-h-full tw-flex tw-flex-col tw-items-center tw-justify-center tw-z-[1000] tw-transition-all tw-duration-300 tw-ease-in-out"},S=c(()=>o("div",{class:"tw-bg-gray-800 tw-bg-opacity-75 tw-fixed tw-inset-0"},null,-1)),j={class:"tw-text-gray-800 tw-flex tw-justify-between tw-items-center tw-mb-3 md:tw-text-xl tw-font-bold tw-pt-3 tw-px-3"},z=c(()=>o("svg",{class:"tw-w-6 tw-h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)),q=[z],I={class:"tw-flex tw-justify-end tw-items-center tw-gap-4 tw-pb-3 tw-px-3"},L=y({__name:"BaseDialog",props:{showDialog:{type:Boolean,required:!0},disableClose:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)}},emits:["close"],setup(t,{emit:u}){const f=t,m=g();b(()=>f.showDialog,e=>{const s=document.querySelector("body");s&&s.classList.toggle("tw-overflow-hidden",e)});const h=()=>{u("close")};return m.beforeEach(()=>{const e=document.querySelector("body");e&&e.classList.remove("tw-overflow-hidden")}),(e,s)=>(a(),_(w,{name:"fade"},{default:i(()=>[x(o("div",D,[S,B(w,{name:"dialog"},{default:i(()=>[t.showDialog?(a(),n("div",{key:0,class:r(["tw-bg-white tw-rounded-lg tw-shadow-md tw-p-3",t.size==="small"?"tw-w-72 sm:tw-w-96":"tw-w-11/12 sm:tw-w-[512px] md:tw-h-fit tw-p-0 md:tw-p-3"])},[o("div",j,[l(e.$slots,"title",{},void 0,!0),t.disableClose?d("",!0):(a(),n("button",{key:0,type:"button",class:"tw-text-gray-400 hover:tw-text-gray-500 tw-transition tw-duration-150 tw-ease-in-out",onClick:h},q))]),o("div",{class:r(["tw-flex tw-flex-col tw-justify-between tw-p-3 tw-gap-4 tw-mb-3 tw-overflow-y-auto scrollbar-y",t.size==="small"?"":"tw-h-96"])},[l(e.$slots,"content",{},void 0,!0)],2),o("div",I,[l(e.$slots,"actions",{},void 0,!0)])],2)):d("",!0)]),_:3})],512),[[p,t.showDialog]])]),_:3}))}});const $=v(L,[["__scopeId","data-v-bee814af"]]);export{$ as B};
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.