class e{constructor(e,t,a,r){this._keyName=e,this._component=t,this._updateDetailState=a,this._kvClient=r}get keyName(){return this._keyName}get component(){return this._component}getType(){throw new Error("Abstract method: please implement me")}async load(){throw new Error("Abstract method: please implement me")}async create(e){throw new Error("Abstract method: please implement me")}_updateEditorState(e){if("function"==typeof e)this._updateDetailState((t=>{e(t.editor)}));else{const t=this.getType(),a={type:`edit-${t}`,key:{type:t,name:this._keyName},editor:e};this._updateDetailState(a)}}}export{e as KvKeyEditorCtrl};
//# sourceMappingURL=kv-key-editor-ctrl.js.map
