| Current Path : /home2/wtmwscom/public_html/post/scripts/ |
| Current File : /home2/wtmwscom/public_html/post/scripts/Portal_015.js |
define("Portal.ContactUs.ConfirmationDialog.mvc$model", ["OutSystems/ClientRuntime/Main", "Portal.model", "MultiLingual.controller", "Portal.EP_Common.ConfirmationDialog.mvc$model", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$DialogParametersRec"], function (OutSystems, PortalModel, MultiLingualController, Portal_EP_Common_ConfirmationDialog_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("DialogParameters", "dialogParametersVar", "DialogParameters", true, false, OS.Types.Record, function () {
return OS.DataTypes.ImmutableBase.getData(new PortalModel.DialogParametersRec());
}, false, PortalModel.DialogParametersRec),
this.attr("ShouldShow", "shouldShowIn", "ShouldShow", true, false, OS.Types.Boolean, function () {
return false;
}, false),
this.attr("_shouldShowInDataFetchStatus", "_shouldShowInDataFetchStatus", "_shouldShowInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false),
this.attr("IsSubmitLoading", "isSubmitLoadingIn", "IsSubmitLoading", true, false, OS.Types.Boolean, function () {
return false;
}, false),
this.attr("_isSubmitLoadingInDataFetchStatus", "_isSubmitLoadingInDataFetchStatus", "_isSubmitLoadingInDataFetchStatus", 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_ConfirmationDialog_mvcModel.hasValidationWidgets;
}
return Model._hasValidationWidgetsValue;
}
});
Model.prototype.setInputs = function (inputs) {
if("ShouldShow" in inputs) {
this.variables.shouldShowIn = inputs.ShouldShow;
if("_shouldShowInDataFetchStatus" in inputs) {
this.variables._shouldShowInDataFetchStatus = inputs._shouldShowInDataFetchStatus;
}
}
if("IsSubmitLoading" in inputs) {
this.variables.isSubmitLoadingIn = inputs.IsSubmitLoading;
if("_isSubmitLoadingInDataFetchStatus" in inputs) {
this.variables._isSubmitLoadingInDataFetchStatus = inputs._isSubmitLoadingInDataFetchStatus;
}
}
};
return Model;
})(OS.Model.BaseViewModel);
return new OS.Model.ModelFactory(Model);
});
define("Portal.ContactUs.ConfirmationDialog.mvc$view", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "react", "OutSystems/ReactView/Main", "Portal.ContactUs.ConfirmationDialog.mvc$model", "Portal.ContactUs.ConfirmationDialog.mvc$controller", "Portal.clientVariables", "Portal.EP_Common.ConfirmationDialog.mvc$view", "OutSystems/ReactWidgets/Main", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$DialogParametersRec"], function (OutSystems, PortalModel, PortalController, MultiLingualController, React, OSView, Portal_ContactUs_ConfirmationDialog_mvc_model, Portal_ContactUs_ConfirmationDialog_mvc_controller, PortalClientVariables, Portal_EP_Common_ConfirmationDialog_mvc_view, OSWidgets) {
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 = "ContactUs.ConfirmationDialog";
View.getCssDependencies = function() {
return ["css/OutSystemsReactWidgets.css"];
};
View.getJsDependencies = function() {
return [];
};
View.getBlocks = function() {
return [Portal_EP_Common_ConfirmationDialog_mvc_view];
};
Object.defineProperty(View.prototype, "modelFactory", {
get: function () {
return Portal_ContactUs_ConfirmationDialog_mvc_model;
},
enumerable: true,
configurable: true
});
Object.defineProperty(View.prototype, "controllerFactory", {
get: function () {
return Portal_ContactUs_ConfirmationDialog_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(Portal_EP_Common_ConfirmationDialog_mvc_view, {
inputs: {
IsSubmitLoading: model.variables.isSubmitLoadingIn,
_isSubmitLoadingInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._isSubmitLoadingInDataFetchStatus),
ConfirmButtonLabel: model.variables.dialogParametersVar.confirmButtonTextAttr,
CancelButtonLabel: model.variables.dialogParametersVar.cancelButtonTextAttr,
Text: model.variables.dialogParametersVar.textAttr,
Title: model.variables.dialogParametersVar.titleAttr,
ShouldShow: model.variables.shouldShowIn,
_shouldShowInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._shouldShowInDataFetchStatus)
},
events: {
_handleError: function (ex) {
controller.handleError(ex);
},
cancelButtonClicked$Action: function () {
var eventHandlerContext = callContext.clone();
controller.cancelButtonClicked$Action(controller.callContext(eventHandlerContext));
;
},
confirmButtonClicked$Action: function () {
var eventHandlerContext = callContext.clone();
controller.confirmButtonClicked$Action(controller.callContext(eventHandlerContext));
;
}
},
_validationProps: {
validationService: validationService
},
_idProps: {
service: idService,
uuid: "0",
alias: "1"
},
_widgetRecordProvider: widgetsRecordProvider,
_dependencies: []
}));
};
return View;
})(OSView.BaseView.BaseWebBlock);
return View;
});
define("Portal.ContactUs.ConfirmationDialog.mvc$controller", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "Portal.languageResources", "Portal.clientVariables", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$DialogParametersRec"], function (OutSystems, PortalModel, PortalController, MultiLingualController, 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._onInitialize$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnInitialize");
callContext = controller.callContext(callContext);
// DialogParameters.Text = GetTranslation("createcareeraccountstep2-confirmationmodal-title", "Are you sure you want to submit this enquiry?")
model.variables.dialogParametersVar.textAttr = MultiLingualController.default.getTranslation$Action("createcareeraccountstep2-confirmationmodal-title", "Are you sure you want to submit this enquiry?", callContext).translationOut;
// DialogParameters.Title = GetTranslation("downgrade-a-p-o--box-confirmmodal-title", "Confirm")
model.variables.dialogParametersVar.titleAttr = MultiLingualController.default.getTranslation$Action("downgrade-a-p-o--box-confirmmodal-title", "Confirm", callContext).translationOut;
// DialogParameters.ShouldShow = True
model.variables.dialogParametersVar.shouldShowAttr = true;
// DialogParameters.ConfirmButtonText = GetTranslation("downgrade-a-p-o--box-confirmmodal-title", "Confirm")
model.variables.dialogParametersVar.confirmButtonTextAttr = MultiLingualController.default.getTranslation$Action("downgrade-a-p-o--box-confirmmodal-title", "Confirm", callContext).translationOut;
// DialogParameters.CancelButtonText = GetTranslation("rent-a-p-o--box-add-an-agent-btncancel", "Cancel")
model.variables.dialogParametersVar.cancelButtonTextAttr = MultiLingualController.default.getTranslation$Action("rent-a-p-o--box-add-an-agent-btncancel", "Cancel", callContext).translationOut;
};
Controller.prototype.onInitialize$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onInitialize$Action, callContext);
};
Controller.prototype.cancelButtonClicked$Action = function () {
return Promise.resolve();
};
Controller.prototype.confirmButtonClicked$Action = function () {
return Promise.resolve();
};
// Event Handler Actions
Controller.prototype.onInitializeEventHandler = function (callContext) {
var controller = this.controller;
var model = this.model;
var idService = this.idService;
return controller.onInitialize$Action(callContext);
};
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);
});