Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/post/scripts/
Upload File :
Current File : /home2/wtmwscom/public_html/post/scripts/Portal_030.js

define("Portal.EP_Buttons.ButtonUnrecommended.mvc$model", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.EP_Common.Loader.mvc$model"], function (OutSystems, PortalModel, Portal_EP_Common_Loader_mvcModel) {
var OS = OutSystems.Internal;


var VariablesRecord = (function (_super) {
__extends(VariablesRecord, _super);
function VariablesRecord(defaults) {
_super.apply(this, arguments);
}
VariablesRecord.attributesToDeclare = function () {
return [
this.attr("ButtonText", "buttonTextIn", "ButtonText", true, false, OS.Types.Text, function () {
return "";
}, false), 
this.attr("_buttonTextInDataFetchStatus", "_buttonTextInDataFetchStatus", "_buttonTextInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false), 
this.attr("IsSubmitting", "isSubmittingIn", "IsSubmitting", true, false, OS.Types.Boolean, function () {
return false;
}, false), 
this.attr("_isSubmittingInDataFetchStatus", "_isSubmittingInDataFetchStatus", "_isSubmittingInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false), 
this.attr("ConfirmationMessage", "confirmationMessageIn", "ConfirmationMessage", true, false, OS.Types.Text, function () {
return "";
}, false), 
this.attr("_confirmationMessageInDataFetchStatus", "_confirmationMessageInDataFetchStatus", "_confirmationMessageInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false), 
this.attr("Visible", "visibleIn", "Visible", true, false, OS.Types.Boolean, function () {
return true;
}, false), 
this.attr("_visibleInDataFetchStatus", "_visibleInDataFetchStatus", "_visibleInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false), 
this.attr("ExtendedClass", "extendedClassIn", "ExtendedClass", true, false, OS.Types.Text, function () {
return "";
}, false), 
this.attr("_extendedClassInDataFetchStatus", "_extendedClassInDataFetchStatus", "_extendedClassInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false)
].concat(_super.attributesToDeclare.call(this));
};
VariablesRecord.init();
return VariablesRecord;
})(OS.DataTypes.GenericRecord);
var WidgetsRecord = (function (_super) {
__extends(WidgetsRecord, _super);
function WidgetsRecord() {
_super.apply(this, arguments);
}
WidgetsRecord.getWidgetsType = function () {
return {};
};

return WidgetsRecord;
})(OS.Model.BaseWidgetRecordMap);
var Model = (function (_super) {
__extends(Model, _super);
function Model() {
_super.apply(this, arguments);
}
Model.getVariablesRecordConstructor = function () {
return VariablesRecord;
};
Model.getWidgetsRecordConstructor = function () {
return WidgetsRecord;
};
Model._hasValidationWidgetsValue = undefined;
Object.defineProperty(Model, "hasValidationWidgets", {
enumerable: true,
configurable: true,
get: function () {
if((Model._hasValidationWidgetsValue === undefined)) {
Model._hasValidationWidgetsValue = Portal_EP_Common_Loader_mvcModel.hasValidationWidgets;
}

return Model._hasValidationWidgetsValue;
}
});

Model.prototype.setInputs = function (inputs) {
if("ButtonText" in inputs) {
this.variables.buttonTextIn = inputs.ButtonText;
if("_buttonTextInDataFetchStatus" in inputs) {
this.variables._buttonTextInDataFetchStatus = inputs._buttonTextInDataFetchStatus;
}

}

if("IsSubmitting" in inputs) {
this.variables.isSubmittingIn = inputs.IsSubmitting;
if("_isSubmittingInDataFetchStatus" in inputs) {
this.variables._isSubmittingInDataFetchStatus = inputs._isSubmittingInDataFetchStatus;
}

}

if("ConfirmationMessage" in inputs) {
this.variables.confirmationMessageIn = inputs.ConfirmationMessage;
if("_confirmationMessageInDataFetchStatus" in inputs) {
this.variables._confirmationMessageInDataFetchStatus = inputs._confirmationMessageInDataFetchStatus;
}

}

if("Visible" in inputs) {
this.variables.visibleIn = inputs.Visible;
if("_visibleInDataFetchStatus" in inputs) {
this.variables._visibleInDataFetchStatus = inputs._visibleInDataFetchStatus;
}

}

if("ExtendedClass" in inputs) {
this.variables.extendedClassIn = inputs.ExtendedClass;
if("_extendedClassInDataFetchStatus" in inputs) {
this.variables._extendedClassInDataFetchStatus = inputs._extendedClassInDataFetchStatus;
}

}

};
return Model;
})(OS.Model.BaseViewModel);
return new OS.Model.ModelFactory(Model);
});
define("Portal.EP_Buttons.ButtonUnrecommended.mvc$view", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "react", "OutSystems/ReactView/Main", "Portal.EP_Buttons.ButtonUnrecommended.mvc$model", "Portal.EP_Buttons.ButtonUnrecommended.mvc$controller", "Portal.clientVariables", "OutSystems/ReactWidgets/Main", "Portal.EP_Common.Loader.mvc$view"], function (OutSystems, PortalModel, PortalController, React, OSView, Portal_EP_Buttons_ButtonUnrecommended_mvc_model, Portal_EP_Buttons_ButtonUnrecommended_mvc_controller, PortalClientVariables, OSWidgets, Portal_EP_Common_Loader_mvc_view) {
    var OS = OutSystems.Internal;
var PlaceholderContent = OSView.Widget.PlaceholderContent;
var IteratorPlaceholderContent = OSView.Widget.IteratorPlaceholderContent;


    var View = (function (_super) {
        __extends(View,_super);
        function View() {
            try {
                this.initialize.apply(this, arguments);
            } catch (error) {
                View.handleError(error);
                throw error;
            }
        }
        View.prototype.initialize = function() {
            _super.apply(this, arguments);
        };
        View.displayName = "EP_Buttons.ButtonUnrecommended";
        View.getCssDependencies = function() {
            return ["css/OutSystemsReactWidgets.css"];
        };
        View.getJsDependencies = function() {
            return [];
        };
        View.getBlocks = function() {
            return [Portal_EP_Common_Loader_mvc_view];
        };
        Object.defineProperty(View.prototype, "modelFactory", {
            get: function () {
                return Portal_EP_Buttons_ButtonUnrecommended_mvc_model;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(View.prototype, "controllerFactory", {
            get: function () {
                return Portal_EP_Buttons_ButtonUnrecommended_mvc_controller;
            },
            enumerable: true,
            configurable: true
        });
        Object.defineProperty(View.prototype, "title", {
            get: function () {
                return "";
            },
            enumerable: true,
            configurable: true
        });
        View.prototype.internalRender = function() {
            var model = this.model;
            var controller = this.controller;
            var idService = this.idService;
            var validationService = controller.validationService;
            var widgetsRecordProvider = this.widgetsRecordProvider;
            var callContext = controller.callContext();
            var $if = View.ifWidget;
            var asPrimitiveValue = View.asPrimitiveValue;
            var _this = this;

            return React.createElement("div", this.getRootNodeProperties(), React.createElement(OSWidgets.Button, {
confirmationMessage: model.variables.confirmationMessageIn,
enabled: !(model.variables.isSubmittingIn),
extendedEvents: {
onBlur: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onBlurAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onChange: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onChangeAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onDoubleClick: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onDoubleclickAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onFocus: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onFocusAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onKeyDown: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onKeydownAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onKeyPress: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onKeypressAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onKeyUp: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onKeyupAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onTouchStart: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onTouchStartAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onTouchMove: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onTouchmoveAction$Action(controller.callContext(eventHandlerContext));
});
;
},
onTouchEnd: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onTouchendAction$Action(controller.callContext(eventHandlerContext));
});
;
}
},
gridProperties: {
classes: "OSFillParent"
},
isDefault: false,
onClick: function () {
_this.validateWidget("");
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onClickAction$Action(controller.callContext(eventHandlerContext));
});

;
},
style: ("btn ButtonUnrecommended " + model.variables.extendedClassIn),
visible: model.variables.visibleIn,
_idProps: {
service: idService,
name: "Primary"
},
_widgetRecordProvider: widgetsRecordProvider,
confirmationMessage_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._confirmationMessageInDataFetchStatus),
enabled_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._isSubmittingInDataFetchStatus),
style_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._extendedClassInDataFetchStatus),
visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._visibleInDataFetchStatus)
}, $if(model.variables.isSubmittingIn, false, this, function () {
return [React.createElement(Portal_EP_Common_Loader_mvc_view, {
inputs: {
IsOnInput: true
},
events: {
_handleError: function (ex) {
controller.handleError(ex);
}
},
_validationProps: {
validationService: validationService
},
_idProps: {
service: idService,
uuid: "1",
alias: "1"
},
_widgetRecordProvider: widgetsRecordProvider,
_dependencies: []
})];
}, function () {
return [React.createElement(OSWidgets.Expression, {
value: model.variables.buttonTextIn,
_idProps: {
service: idService,
uuid: "2"
},
_widgetRecordProvider: widgetsRecordProvider,
value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._buttonTextInDataFetchStatus)
})];
})));
        };
        return View;
    })(OSView.BaseView.BaseWebBlock);
	
    return View;
});
define("Portal.EP_Buttons.ButtonUnrecommended.mvc$controller", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "Portal.languageResources", "Portal.clientVariables"], function (OutSystems, PortalModel, PortalController, PortalLanguageResources, PortalClientVariables) {
var OS = OutSystems.Internal;
var Controller = (function (_super) {
__extends(Controller, _super);
function Controller() {
_super.apply(this, arguments);
var controller = this.controller;
this.clientActionProxies = {};
this.dataFetchDependenciesOriginal = {};
this.dataFetchDependentsGraph = {};
this.useImprovedDataFetch = false;
this.hasDependenciesBetweenSources = false;
this.shouldSendClientVarsToDataSources = false;
}
// Server Actions

// Aggregates and Data Actions

Controller.prototype.dataFetchActionNames = [];
// Client Actions
Controller.prototype._onKeydownAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnKeydownAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnKeyDown
return controller.onKeyDown$Action(callContext);
});
};
Controller.prototype._onDoubleclickAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnDoubleclickAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnDoubleClick
return controller.onDoubleClick$Action(callContext);
});
};
Controller.prototype._onTouchendAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnTouchendAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnTouchEnd
return controller.onTouchEnd$Action(callContext);
});
};
Controller.prototype._onFocusAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnFocusAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnFocus
return controller.onFocus$Action(callContext);
});
};
Controller.prototype._onTouchStartAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnTouchStartAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnTouchStart
return controller.onTouchStart$Action(callContext);
});
};
Controller.prototype._onTouchmoveAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnTouchmoveAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnTouchMove
return controller.onTouchMove$Action(callContext);
});
};
Controller.prototype._onClickAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnClickAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnClick
return controller.onClick$Action(callContext);
});
};
Controller.prototype._onKeypressAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnKeypressAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnKeyPress
return controller.onKeyPress$Action(callContext);
});
};
Controller.prototype._onKeyupAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnKeyupAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnKeyUp
return controller.onKeyUp$Action(callContext);
});
};
Controller.prototype._onBlurAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnBlurAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnBlur
return controller.onBlur$Action(callContext);
});
};
Controller.prototype._onChangeAction$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnChangeAction");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnChange
return controller.onChange$Action(callContext);
});
};

Controller.prototype.onKeydownAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onKeydownAction$Action, callContext);

};
Controller.prototype.onDoubleclickAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onDoubleclickAction$Action, callContext);

};
Controller.prototype.onTouchendAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onTouchendAction$Action, callContext);

};
Controller.prototype.onFocusAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onFocusAction$Action, callContext);

};
Controller.prototype.onTouchStartAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onTouchStartAction$Action, callContext);

};
Controller.prototype.onTouchmoveAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onTouchmoveAction$Action, callContext);

};
Controller.prototype.onClickAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onClickAction$Action, callContext);

};
Controller.prototype.onKeypressAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onKeypressAction$Action, callContext);

};
Controller.prototype.onKeyupAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onKeyupAction$Action, callContext);

};
Controller.prototype.onBlurAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onBlurAction$Action, callContext);

};
Controller.prototype.onChangeAction$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onChangeAction$Action, callContext);

};
Controller.prototype.onKeyUp$Action = function () {
return Promise.resolve();
};
Controller.prototype.onBlur$Action = function () {
return Promise.resolve();
};
Controller.prototype.onClick$Action = function () {
return Promise.resolve();
};
Controller.prototype.onKeyDown$Action = function () {
return Promise.resolve();
};
Controller.prototype.onFocus$Action = function () {
return Promise.resolve();
};
Controller.prototype.onTouchEnd$Action = function () {
return Promise.resolve();
};
Controller.prototype.onDoubleClick$Action = function () {
return Promise.resolve();
};
Controller.prototype.onKeyPress$Action = function () {
return Promise.resolve();
};
Controller.prototype.onTouchMove$Action = function () {
return Promise.resolve();
};
Controller.prototype.onTouchStart$Action = function () {
return Promise.resolve();
};
Controller.prototype.onChange$Action = function () {
return Promise.resolve();
};

// Event Handler Actions
Controller.prototype.onInitializeEventHandler = null;
Controller.prototype.onReadyEventHandler = null;
Controller.prototype.onRenderEventHandler = null;
Controller.prototype.onDestroyEventHandler = null;
Controller.prototype.onParametersChangedEventHandler = null;
Controller.prototype.handleError = function (ex) {
return controller.handleError(ex);
};
Controller.checkPermissions = function () {
};
Controller.prototype.getDefaultTimeout = function () {
return PortalController.default.defaultTimeout;
};
return Controller;
})(OS.Controller.BaseViewController);
return new OS.Controller.ControllerFactory(Controller, PortalLanguageResources);
});