1import{h as w,S as T,G as k,Y as B}from"./4sE3S1kw.js";import{s as F}from"./DgVEBCYQ.js";import{_ as V,p as A,q as D,r as y}from"./6Dfpj7S-.js";import{l as H,F as n,N as g,O as v,P as t,Q as p,M as d,Z as O,X as f,_ as r,W as j,t as h,m as C,aj as P}from"./UKu7nQo7.js";import"./BdiCisqy.js";const $={wrapper:"relative z-50",inner:"fixed inset-0 overflow-y-auto",container:"flex min-h-full items-end sm:items-center justify-center text-center",padding:"p-4 sm:p-0",margin:"sm:my-8",base:"relative text-left rtl:text-right flex flex-col",overlay:{base:"fixed inset-0 transition-opacity",background:"bg-gray-200/75 dark:bg-gray-800/75",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0"}},background:"bg-white dark:bg-gray-900",ring:"",rounded:"rounded-lg",shadow:"shadow-xl",width:"w-full sm:max-w-lg",height:"",fullscreen:"w-screen h-screen",transition:{enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},L=D(y.ui.strategy,y.ui.modal,$),N=H({components:{HDialog:B,HDialogPanel:k,TransitionRoot:T,TransitionChild:w},inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},transition:{type:Boolean,default:!0},preventClose:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},emits:["update:modelValue","close","close-prevented","after-leave"],setup(e,{emit:a}){const{ui:l,attrs:m}=A("modal",h(e,"ui"),L,h(e,"class")),i=C({get(){return e.modelValue},set(o){a("update:modelValue",o)}}),c=C(()=>e.transition?{...l.value.transition}:{});function s(o){if(e.preventClose){a("close-prevented");return}i.value=o,a("close")}const u=()=>{a("after-leave")};return F(()=>P()),{ui:l,attrs:m,isOpen:i,transitionClass:c,onAfterLeave:u,close:s}}});function R(e,a,l,m,i,c){const s=n("TransitionChild"),u=n("HDialogPanel"),o=n("HDialog"),b=n("TransitionRoot");return v(),g(b,{appear:e.appear,show:e.isOpen,as:"template",onAfterLeave:e.onAfterLeave},{default:t(()=>[p(o,d({class:e.ui.wrapper},e.attrs,{onClose:e.close}),{default:t(()=>[e.overlay?(v(),g(s,d({key:0,as:"template",appear:e.appear},e.ui.overlay.transition,{class:e.ui.overlay.transition.enterFrom}),{default:t(()=>[f("div",{class:r([e.ui.overlay.base,e.ui.overlay.background])},null,2)]),_:1},16,["appear","class"])):O("",!0),f("div",{class:r(e.ui.inner)},[f("div",{class:r([e.ui.container,!e.fullscreen&&e.ui.padding])},[p(s,d({as:"template",appear:e.appear},e.transitionClass,{class:e.transitionClass.enterFrom}),{default:t(()=>[p(u,{class:r([e.ui.base,e.ui.background,e.ui.ring,e.ui.shadow,e.fullscreen?e.ui.fullscreen:[e.ui.width,e.ui.height,e.ui.rounded,e.ui.margin]])},{default:t(()=>[j(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["appear","class"])],2)],2)]),_:3},16,["class","onClose"])]),_:3},8,["appear","show","onAfterLeave"])}const U=Object.assign(V(N,[["render",R]]),{__name:"UModal"});export{U as default};
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.