import{ImageEditorNodeView,ImageEditorBaseOptionsFormView}from"./base.mjs";class ImageEditorPromptNodeView extends ImageEditorNodeView{static hideHeader=!1;static canFlipHeader=!1;static nodeName="Prompt";static nodeButtons={};static className="image-editor-prompt-node-view";constructor(t,e,a,i,o,s,r){let n=new ImageEditorBaseOptionsFormView(t.config);super(t,e,n,i,o,s,r),n.onSubmit((t=>this.updateOptions(t)))}getState(){let t=super.getState();return t={...t,...this.content.values},t}async setState(t){await super.setState(t),await this.content.getNode(),await this.content.setValues(t)}}export{ImageEditorPromptNodeView};
