1import{w as e,a as o}from"./chunk-55d843dd.js";import{_ as l}from"./chunk-34c19c5c.js";import{u as s}from"./chunk-c3764b25.js";import{d as a,L as t,p as c,N as p,X as r,Q as n,o as u,c as d,e as i,Y as m,a0 as y,_ as f,r as k,ac as v}from"./chunk-c66576e6.js";import{_ as h}from"./chunk-1b428a4d.js";const C={key:0},_=["onClick","onKeyup"],b={key:0,class:"popup-close"},g={class:"max-h-[inherit]"},V=h(a({__name:"CPopup",props:{modelValue:{type:Boolean},closeOnClickOutside:{type:Boolean,default:!0},preventCloseIcon:{type:Boolean,default:!1},teleport:{type:Boolean,default:!1},confirmClose:{type:Boolean,default:!1}},emits:["update:modelValue","click:close","close:forManager"],setup(a,{emit:h}){const V=a,j=t(),B=s(),O=()=>{V.closeOnClickOutside&&(V.confirmClose?h("click:close"):I())},w=()=>{h("click:close"),I()},I=()=>{h("update:modelValue",!1),h("close:forManager"),K()},K=()=>{const e=document.querySelector("body");e.style.removeProperty("overflow"),e.style.removeProperty("height")};return c(()=>{p(()=>{V.modelValue?(()=>{const e=document.querySelector("body");e.style.overflow="hidden",e.style.height="100vh"})():K()})}),r(()=>{K()}),(s,a)=>s.modelValue&&n(B)?(u(),d("div",C,[(u(),i(v,{to:"#teleport-popup",disabled:!s.teleport||!s.modelValue},[m("div",{class:"popup-wrapper",onClick:e(O,["self"]),onKeyup:o(O,["esc"])},[m("div",{ref_key:"popupEl",ref:j,class:"popup-dialog",role:"document"},[s.preventCloseIcon?f("",!0):(u(),d("div",b,[m("button",{onClick:w,onKeyup:w},[y(l,{name:"Close","aria-label":"Close",class:"close-icon"})],32)])),m("div",g,[k(s.$slots,"default",{close:I},void 0,!0)])],512)],40,_)],8,["disabled"]))])):f("",!0)}}),[["__scopeId","data-v-b25a02be"]]);export{V 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.