import{registerTemplate as s,freezeTemplate as e,registerDecorators as o,registerComponent as i}from"@kdcloudjs/kwc";import t from"./overlay.js";import{parent as l,instanceName as r,secure as a}from"./overlayUtils.js";import d from"./modalBase.js";import"../observable-tloG64m6.js";import"../i18n-B98kiI7M.js";import{b as n}from"../normalize-C0Pp7GJL.js";import"./features.js";import"../empty_html-CjXB8rB4.js";import"./utilsPrivate.js";import"../client-Ddi3i8XR.js";import"../ssr-C2pjZzfv.js";import"./iso8601Utils.js";import"../colorValid-qIPgkqGp.js";import"./shadowBaseClassPrivate.js";import"./overlayContainer.js";import"./overlayManager.js";import"../kddsCommon-CucK_w70.js";import"./focusTrap.js";import"../focus-93ksTIEs.js";import"./tooltipLibrary.js";import"./positionLibrary.js";import"./primitiveBubble.js";import"../classSet-DY6Qvt6E.js";import"./ariaObserver.js";import"./modalUtils.js";const p=[];function m(s,e,o,i){return p}var c=s(m);m.stylesheets=[],m.stylesheetToken="kwc-4hf42gkiolb",m.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\privateModal-undefined_privateModal",e(m);class b extends t{constructor(...s){super(...s),this._disableClose=!1,this.size="medium",this.label="",this.description=""}get disableClose(){return this._disableClose}set disableClose(s){const e=this._disableClose;this._disableClose=n(s),e!==this._disableClose&&this.dispatchEvent(new CustomEvent("privatedisableclosebutton",{detail:{disableClose:this._disableClose,[a]:!0},bubbles:!0}))}close(s){if(this.disableClose){let s="KingdeeModal - Any interactions (buttons, processes, etc) that call modal.close() should be ";s+="(a) disabled, while disableClose api set true, and ",s+="(b) re-enabled, when disableClose set false"}else{const e=new Promise(s=>{this.dispatchEvent(new CustomEvent("privateclose",{detail:{resolve:s,[a]:!0},bubbles:!0}))});super.close(s,e)}}connectedCallback(){}}b[l]=d,b[r]="kingdee-modal",o(b,{publicProps:{size:{config:0},label:{config:0},description:{config:0},disableClose:{config:3}},publicMethods:["close"],fields:["_disableClose"]});const u=i(b,{tmpl:c,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\privateModal-",apiVersion:63});export{u as default};
