import{ImageEditorNodeView}from"./base.mjs";import{ImageEditorNodeOptionsFormView}from"../../forms/enfugue/image-editor.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,o,i,a,s,r){let m=new ImageEditorNodeOptionsFormView(t.config);super(t,e,m,i,a,s,r),m.onSubmit((t=>this.updateOptions(t)))}getState(t=!0){let e=super.getState(t);return e={...e,...this.content.values},e}async setState(t){await super.setState(t),await this.content.getNode(),await this.content.setValues(t)}}export{ImageEditorPromptNodeView};
