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