import{isEmpty}from"../../../base/helpers.mjs";import{FormView}from"../../../forms/base.mjs";import{PromptInputView,FloatInputView,NumberInputView,CheckboxInputView}from"../../../forms/input.mjs";class ImageEditorPromptNodeOptionsFormView extends FormView{static fieldSets={Prompts:{prompt:{label:"Prompt",class:PromptInputView,config:{tooltip:"This prompt will control what is in the region prompt node. The global prompt will <strong>not</strong> be used."}},negativePrompt:{label:"Negative Prompt",class:PromptInputView,config:{tooltip:"This prompt will control what is in the region prompt node. The global prompt will <strong>not</strong> be used."}}},Node:{scaleToModelSize:{label:"Scale to Model Size",class:CheckboxInputView,config:{tooltip:"When this node has any dimension smaller than the size of the configured model, scale it up so it's smallest dimension is the same size as the model, then scale it down after diffusion.<br />This generally improves image quality in slightly rectangular shapes or square shapes smaller than the engine size, but can also result in ghosting and increased processing time.<br />This will have no effect if your node is larger than the model size in all dimensions.<br />If unchecked and your node is smaller than the model size, TensorRT will be disabled for this node."}},removeBackground:{label:"Remove Background",class:CheckboxInputView,config:{tooltip:"After diffusion, run the resulting image though an AI background removal algorithm. This can improve image consistency when using multiple nodes."}}},"Global Tweaks Overrides":{guidanceScale:{label:"Guidance Scale",class:FloatInputView,config:{min:0,max:100,step:.1,value:null,tooltip:"How closely to follow the text prompt; high values result in high-contrast images closely adhering to your text, low values result in low-contrast images with more randomness. When left blank, the global guidance scale will be used."}},inferenceSteps:{label:"Inference Steps",class:NumberInputView,config:{min:5,max:250,step:1,value:null,tooltip:"How many steps to take during primary inference, larger values take longer to process. When left blank, the global inference steps will be used."}}}};static collapseFieldSets=["Global Tweaks Overrides"];static autoSubmit=!0;static className="options-form-view"}export{ImageEditorPromptNodeOptionsFormView};
