"use strict";const o=require("vue"),C=require("./Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js"),a=require("./base-iCmnU-fv.js"),D=o.defineComponent({name:"ClDropdownlayerPopup",__name:"Popup",props:{classParent:String,classText:String,classDropDown:String,isDisabled:{type:Boolean,default:!1},dropdownArrowPos:{type:String,default:"left"},dropDownPos:{type:String,default:"down"},isUseDropdownArrow:{type:Boolean,default:!1},isCloseDestroy:{type:Boolean,default:!1},isInitDelayComplete:{type:Boolean,default:!1},transitionEnter:String,transitionLeave:String,appendContainer:{type:String,default:""},onOpenBeforeCallback:Function,triggers:{type:String,default:"click"}},emits:["onChangeOpen","onChangePosition","onOpenComplete"],setup(n,{expose:i,emit:l}){const t=n,r=l,s=o.ref(),p=o.computed(()=>{let e=" dropdownLayer-theme-popup ";return t.classParent&&!a.CommonBase.isEmpty(t.classParent)&&(e+=t.classParent),e}),c=o.computed(()=>{let e=" dropdownLayer-dropdown-theme-popup ";return t.classDropDown&&!a.CommonBase.isEmpty(t.classDropDown)&&(e+=t.classDropDown),e}),d=e=>{r("onChangeOpen",e)},u=e=>{r("onChangePosition",e)},w=()=>{r("onOpenComplete")};return i({setOpen:e=>{s.value.setOpen(e)},calculationPosition:()=>s.value.calculationPosition(),initCompleteOpen:()=>{s.value.initCompleteOpen()},checkCurrentIsOpen:()=>s.value.getIsShowOpen()}),(e,O)=>(o.openBlock(),o.createBlock(C._sfc_main,{ref_key:"refElDropdownLayer",ref:s,classParent:p.value,classText:n.classText,classDropDown:c.value,isDisabled:n.isDisabled,dropdownArrowPos:n.dropdownArrowPos,dropDownPos:n.dropDownPos,isUseDropdownArrow:n.isUseDropdownArrow,isCloseDestroy:n.isCloseDestroy,isInitDelayComplete:n.isInitDelayComplete,appendContainer:n.appendContainer,transitionEnter:n.transitionEnter,transitionLeave:n.transitionLeave,triggers:n.triggers,onOpenBeforeCallback:n.onOpenBeforeCallback,onOnChangeOpen:d,onOnChangePosition:u,onOnOpenComplete:w},{labelText:o.withCtx(()=>[o.renderSlot(e.$slots,"label")]),dropdown:o.withCtx(()=>[o.renderSlot(e.$slots,"dropdown")]),_:3},8,["classParent","classText","classDropDown","isDisabled","dropdownArrowPos","dropDownPos","isUseDropdownArrow","isCloseDestroy","isInitDelayComplete","appendContainer","transitionEnter","transitionLeave","triggers","onOpenBeforeCallback"]))}});exports._sfc_main=D;
//# sourceMappingURL=Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map
