Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
wpforms-lite
/
assets
/
js
/
admin
/
builder
/
modules
/
undo-redo
/
Editing: input-command-base.min.js
export default function(e,t,n){class a{constructor(e,t,n){this.$input=e,this.inputId=e.attr("id"),this.inputName=e.attr("name"),this.inputType=e.attr("type"),this.oldValue=t,this.newValue=n,this.actionName=this.getActionName()}execute(){i.UndoRedoHelpers.areValuesEqual(this.oldValue,this.newValue)||i.UndoRedo.executeTriggerEvents&&this.applyValue(this.newValue)}undo(){i.UndoRedoHelpers.areValuesEqual(this.oldValue,this.newValue)||i.UndoRedo.executeTriggerEvents&&this.applyValue(this.oldValue)}applyValue(e){}canMerge(e){return e instanceof this.constructor&&(this.inputName&&this.inputName===e.inputName||+(this.inputId&&this.inputId===e.inputId))}merge(e){this.newValue=e.newValue}getElement(e=this.$input){return i.UndoRedoHelpers.getElement(e)}getInputLabel(){return i.UndoRedoHelpers.getInputLabel(this.$input)}getActionName(){var e,t;return this.actionName||(e=i.UndoRedoHelpers.getSectionTitle(this.$input),t=this.getInputLabel(),[wp.i18n.__("Change","wpforms"),e,i.actionNameSeparator,t].filter(Boolean).join(" "))}}let i={init(){try{i.UndoRedo=WPForms.Admin.Builder.UndoRedo,i.UndoRedoHelpers=WPForms.Admin.Builder.UndoRedoHelpers,i.undoManager=i.UndoRedo.undoManager,i.actionNameSeparator=i.UndoRedo.config.actionNameSeparator}catch(e){wpf.debug("UndoRedoInputCommandBase: Dependency modules are not available.")}},get(){return a}};return i}
Save
Cancel