uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
..
/
public_html
/
post
/
scripts
/
Portal_034.js
/
/
define("Portal.EP_Common.LoginModal.mvc$model", ["OutSystems/ClientRuntime/Main", "Portal.model", "MultiLingual.controller", "Portal.controller", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$ItemFromCartRec", "Portal.controller$CacheUserSession", "Portal.model$PostVerifyRequestRec", "Portal.model$PostVerifyResponseRec", "Portal.controller$UserLogout", "Portal.model$OSLoginRequestRec", "Portal.model$OSLoginRec", "Portal.controller$RequireCaptcha", "Portal.controller$ClickSubmit", "Portal.model$EmailRequestRec", "Portal.controller$GetClientLocale"], function (OutSystems, PortalModel, MultiLingualController, PortalController) { var OS = OutSystems.Internal; var CheckUAEPassEnabledDataActRec = (function (_super) { __extends(CheckUAEPassEnabledDataActRec, _super); function CheckUAEPassEnabledDataActRec(defaults) { _super.apply(this, arguments); } CheckUAEPassEnabledDataActRec.attributesToDeclare = function () { return [ this.attr("IsEnabled", "isEnabledOut", "IsEnabled", true, false, OS.Types.Boolean, function () { return false; }, true) ].concat(_super.attributesToDeclare.call(this)); }; CheckUAEPassEnabledDataActRec.fromStructure = function (str) { return new CheckUAEPassEnabledDataActRec(new CheckUAEPassEnabledDataActRec.RecordClass({ isEnabledOut: OS.DataTypes.ImmutableBase.getData(str) })); }; CheckUAEPassEnabledDataActRec.init(); return CheckUAEPassEnabledDataActRec; })(OS.Model.DataSourceRecord); var CaptchaConfigDataActRec = (function (_super) { __extends(CaptchaConfigDataActRec, _super); function CaptchaConfigDataActRec(defaults) { _super.apply(this, arguments); } CaptchaConfigDataActRec.attributesToDeclare = function () { return [ this.attr("Result", "resultOut", "Result", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("ScoreThreshold", "scoreThresholdOut", "ScoreThreshold", true, false, OS.Types.Decimal, function () { return OS.DataTypes.Decimal.defaultValue; }, true) ].concat(_super.attributesToDeclare.call(this)); }; CaptchaConfigDataActRec.init(); return CaptchaConfigDataActRec; })(OS.Model.DataSourceRecord); var VariablesRecord = (function (_super) { __extends(VariablesRecord, _super); function VariablesRecord(defaults) { _super.apply(this, arguments); } VariablesRecord.attributesToDeclare = function () { return [ this.attr("Username", "usernameVar", "Username", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("Password", "passwordVar", "Password", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("ErrorMessage", "errorMessageVar", "ErrorMessage", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("DisplayErrorMessage", "displayErrorMessageVar", "DisplayErrorMessage", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("IsLoggingUserIn", "isLoggingUserInVar", "IsLoggingUserIn", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("IsRedirectingToRegistration", "isRedirectingToRegistrationVar", "IsRedirectingToRegistration", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("ShowForgotPassword", "showForgotPasswordVar", "ShowForgotPassword", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("ForgotPasswordEmail", "forgotPasswordEmailVar", "ForgotPasswordEmail", true, false, OS.Types.Email, function () { return ""; }, false), this.attr("EmailRequest", "emailRequestVar", "EmailRequest", true, false, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new PortalModel.EmailRequestRec()); }, false, PortalModel.EmailRequestRec), this.attr("CaptchaToken", "captchaTokenVar", "CaptchaToken", true, false, OS.Types.Text, function () { return ""; }, 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), this.attr("ShowModal", "showModalIn", "ShowModal", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("_showModalInDataFetchStatus", "_showModalInDataFetchStatus", "_showModalInDataFetchStatus", true, false, OS.Types.Integer, function () { return /*Fetched*/ 1; }, false), this.attr("locale", "localeIn", "locale", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("_localeInDataFetchStatus", "_localeInDataFetchStatus", "_localeInDataFetchStatus", true, false, OS.Types.Integer, function () { return /*Fetched*/ 1; }, false), this.attr("CheckUAEPassEnabled", "checkUAEPassEnabledDataAct", "checkUAEPassEnabledDataAct", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new CheckUAEPassEnabledDataActRec()); }, true, CheckUAEPassEnabledDataActRec), this.attr("CaptchaConfig", "captchaConfigDataAct", "captchaConfigDataAct", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new CaptchaConfigDataActRec()); }, true, CaptchaConfigDataActRec) ].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 { Form1: OS.Model.ValidationWidgetRecord, Input_Username: OS.Model.ValidationWidgetRecord, Input_Password: OS.Model.ValidationWidgetRecord, Form2: OS.Model.ValidationWidgetRecord, Input_ForgotPasswordEmail: OS.Model.ValidationWidgetRecord, Input_Password2: OS.Model.ValidationWidgetRecord }; }; 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; }; Object.defineProperty(Model, "hasValidationWidgets", { enumerable: true, configurable: true, get: function () { return true; } }); Model.prototype.setInputs = function (inputs) { if("ExtendedClass" in inputs) { this.variables.extendedClassIn = inputs.ExtendedClass; if("_extendedClassInDataFetchStatus" in inputs) { this.variables._extendedClassInDataFetchStatus = inputs._extendedClassInDataFetchStatus; } } if("ShowModal" in inputs) { this.variables.showModalIn = inputs.ShowModal; if("_showModalInDataFetchStatus" in inputs) { this.variables._showModalInDataFetchStatus = inputs._showModalInDataFetchStatus; } } if("locale" in inputs) { this.variables.localeIn = inputs.locale; if("_localeInDataFetchStatus" in inputs) { this.variables._localeInDataFetchStatus = inputs._localeInDataFetchStatus; } } }; return Model; })(OS.Model.BaseViewModel); return new OS.Model.ModelFactory(Model); }); define("Portal.EP_Common.LoginModal.mvc$view", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "react", "OutSystems/ReactView/Main", "Portal.EP_Common.LoginModal.mvc$model", "Portal.EP_Common.LoginModal.mvc$controller", "Portal.clientVariables", "Portal.EP_Common.Modal.mvc$view", "OutSystems/ReactWidgets/Main", "OutSystemsUI.Adaptive.Columns2.mvc$view", "Portal.EP_Common.Title.mvc$view", "Portal.EP_Common.Tagline.mvc$view", "Portal.EP_Inputs.Input.mvc$view", "OutSystemsUI.Interaction.InputWithIcon.mvc$view", "Portal.EP_Common.CaptchaBrandingMessage.mvc$view", "Portal.EP_Common.ErrorMessage.mvc$view", "Portal.EP_FormComponents.TwoButtonContainer.mvc$view", "Portal.EP_Buttons.ButtonTransparent.mvc$view", "Portal.EP_Buttons.ButtonPrimary.mvc$view", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$ItemFromCartRec", "Portal.controller$CacheUserSession", "Portal.model$PostVerifyRequestRec", "Portal.model$PostVerifyResponseRec", "Portal.controller$UserLogout", "Portal.model$OSLoginRequestRec", "Portal.model$OSLoginRec", "Portal.controller$RequireCaptcha", "Portal.controller$ClickSubmit", "Portal.model$EmailRequestRec", "Portal.controller$GetClientLocale"], function (OutSystems, PortalModel, PortalController, MultiLingualController, React, OSView, Portal_EP_Common_LoginModal_mvc_model, Portal_EP_Common_LoginModal_mvc_controller, PortalClientVariables, Portal_EP_Common_Modal_mvc_view, OSWidgets, OutSystemsUI_Adaptive_Columns2_mvc_view, Portal_EP_Common_Title_mvc_view, Portal_EP_Common_Tagline_mvc_view, Portal_EP_Inputs_Input_mvc_view, OutSystemsUI_Interaction_InputWithIcon_mvc_view, Portal_EP_Common_CaptchaBrandingMessage_mvc_view, Portal_EP_Common_ErrorMessage_mvc_view, Portal_EP_FormComponents_TwoButtonContainer_mvc_view, Portal_EP_Buttons_ButtonTransparent_mvc_view, Portal_EP_Buttons_ButtonPrimary_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_Common.LoginModal"; View.getCssDependencies = function() { return ["css/OutSystemsReactWidgets.css"]; }; View.getJsDependencies = function() { return []; }; View.getBlocks = function() { return [Portal_EP_Common_Modal_mvc_view, OutSystemsUI_Adaptive_Columns2_mvc_view, Portal_EP_Common_Title_mvc_view, Portal_EP_Common_Tagline_mvc_view, Portal_EP_Inputs_Input_mvc_view, OutSystemsUI_Interaction_InputWithIcon_mvc_view, Portal_EP_Common_CaptchaBrandingMessage_mvc_view, Portal_EP_Common_ErrorMessage_mvc_view, Portal_EP_FormComponents_TwoButtonContainer_mvc_view, Portal_EP_Buttons_ButtonTransparent_mvc_view, Portal_EP_Buttons_ButtonPrimary_mvc_view]; }; Object.defineProperty(View.prototype, "modelFactory", { get: function () { return Portal_EP_Common_LoginModal_mvc_model; }, enumerable: true, configurable: true }); Object.defineProperty(View.prototype, "controllerFactory", { get: function () { return Portal_EP_Common_LoginModal_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_Modal_mvc_view, { inputs: { HasSpecialTopBorder: false, ExtendedClass: (("LoginModal " + " ") + model.variables.extendedClassIn), _extendedClassInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._extendedClassInDataFetchStatus), ShouldDisplayCloseButton: false, ShowModal: model.variables.showModalIn, _showModalInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._showModalInDataFetchStatus) }, events: { _handleError: function (ex) { controller.handleError(ex); }, closeModalRequested$Action: function () { var eventHandlerContext = callContext.clone(); controller.requestCloseLoginModal$Action(controller.callContext(eventHandlerContext)); ; } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, name: "Modal", alias: "1" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { content: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, visible: !(model.variables.showForgotPasswordVar), _idProps: { service: idService, name: "Normal" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OutSystemsUI_Adaptive_Columns2_mvc_view, { inputs: { ExtendedClass: model.getCachedValue(idService.getId("pYfBeVyNjEyUkogH18dohg.ExtendedClass"), function () { return ((!(model.variables.checkUAEPassEnabledDataAct.isEnabledOut)) ? ("HideSecondLogin") : ("")); }, function () { return model.variables.checkUAEPassEnabledDataAct.isEnabledOut; }), _extendedClassInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr), GutterSize: PortalModel.staticEntities.gutterSize.none, PhoneBehavior: PortalModel.staticEntities.breakColumns.all, TabletBehavior: PortalModel.staticEntities.breakColumns.all }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "2", alias: "2" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, style: "CloseModal", visible: !(model.variables.checkUAEPassEnabledDataAct.isEnabledOut), _idProps: { service: idService, name: "CloseModal3" }, _widgetRecordProvider: widgetsRecordProvider, visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr) }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.closeOnClick$Action(controller.callContext(eventHandlerContext)); }); ; }, visible: true, _idProps: { service: idService, uuid: "4" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "remove", iconSize: /*Twotimes*/ 1, style: "icon text-primary", visible: true, _idProps: { service: idService, uuid: "5" }, _widgetRecordProvider: widgetsRecordProvider }))), React.createElement(OSWidgets.Form, { _validationProps: { validationService: validationService }, gridProperties: { classes: "OSFillParent" }, style: "form card LoginForm ", _idProps: { service: idService, name: "Form1" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-top", visible: true, _idProps: { service: idService, uuid: "7" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Header", visible: true, _idProps: { service: idService, name: "Header" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Common_Title_mvc_view, { inputs: { HasBottomMargin: false, TitleColor: "var(--color-neutral-10)" }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, name: "Title", alias: "3" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { icon: PlaceholderContent.Empty, text: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-title" }, text: ["Login"], _idProps: { service: idService, uuid: "10" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] }), React.createElement(Portal_EP_Common_Tagline_mvc_view, { inputs: { TextColor: "var(--color-neutral-6)", HasBottomMargin: false }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, name: "Tagline", alias: "4" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { tagline: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-tagline" }, text: ["Have an account? Login to make navigating the website a smoother experience"], _idProps: { service: idService, uuid: "12" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-content", visible: true, _idProps: { service: idService, uuid: "13" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Inputs_Input_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, name: "UsernameTextInput", alias: "5" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { label: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-user-title" }, text: ["Email"], _idProps: { service: idService, uuid: "15" }, _widgetRecordProvider: widgetsRecordProvider })]; }), input: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Input, { _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, enabled: true, gridProperties: { classes: "OSFillParent" }, inputType: /*Text*/ 0, mandatory: true, maxLength: 50, prompt: "example@example.com", style: "form-control", variable: model.createVariable(OS.Types.Text, model.variables.usernameVar, function (value) { model.variables.usernameVar = value; }), _idProps: { service: idService, name: "Input_Username" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [asPrimitiveValue(model.variables.usernameVar)] }), React.createElement(Portal_EP_Inputs_Input_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, name: "PasswordTextInput", alias: "6" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { label: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-pass-title" }, text: ["Password"], _idProps: { service: idService, uuid: "18" }, _widgetRecordProvider: widgetsRecordProvider })]; }), input: new PlaceholderContent(function () { return [React.createElement(OutSystemsUI_Interaction_InputWithIcon_mvc_view, { inputs: { AlignIconRight: (model.variables.localeIn === "en-us"), _alignIconRightInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._localeInDataFetchStatus) }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "19", alias: "7" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { icon: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Link, { enabled: true, extendedProperties: { tabIndex: "-1" }, onClick: function () { var eventHandlerContext = callContext.clone(); controller.passwordViewOnClick$Action(idService.getId("Input_Password"), controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "20" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedProperties: { style: "color: #000;" }, icon: "eye", iconSize: /*FontSize*/ 0, style: "icon", visible: true, _idProps: { service: idService, uuid: "21" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), input: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Input, { _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, enabled: true, gridProperties: { classes: "OSFillParent" }, inputType: /*Password*/ 1, mandatory: true, maxLength: 30, style: " form-control", variable: model.createVariable(OS.Types.Text, model.variables.passwordVar, function (value) { model.variables.passwordVar = value; }), _idProps: { service: idService, name: "Input_Password" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [asPrimitiveValue(model.variables.passwordVar)] })]; }) }, _dependencies: [asPrimitiveValue(model.variables.passwordVar), asPrimitiveValue(model.variables._localeInDataFetchStatus), asPrimitiveValue(model.variables.localeIn)] }), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "RememberUserAndResetPassword", visible: true, _idProps: { service: idService, name: "RememberUserAndResetPassword" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "ResetPassword", visible: true, _idProps: { service: idService, name: "ResetPassword" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.forgotPassword$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "25" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-forgot-label" }, text: ["Forgot Credentials"], _idProps: { service: idService, uuid: "26" }, _widgetRecordProvider: widgetsRecordProvider })))), React.createElement(Portal_EP_Common_CaptchaBrandingMessage_mvc_view, { inputs: { ShouldShow: model.variables.captchaConfigDataAct.resultOut, _shouldShowInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.captchaConfigDataAct.dataFetchStatusAttr) }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "27", alias: "8" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] }), React.createElement(Portal_EP_Common_ErrorMessage_mvc_view, { inputs: { Text: model.variables.errorMessageVar, ShouldShow: model.variables.displayErrorMessageVar }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "28", alias: "9" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-footer", visible: true, _idProps: { service: idService, uuid: "29" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Actions", visible: true, _idProps: { service: idService, name: "Actions" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_FormComponents_TwoButtonContainer_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "31", alias: "10" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { buttonLeft: new PlaceholderContent(function () { return [React.createElement(Portal_EP_Buttons_ButtonTransparent_mvc_view, { inputs: { ButtonText: model.getCachedValue(idService.getId("QXH6byTlske6rrudPDI4EA.ButtonText"), function () { return MultiLingualController.default.getTranslation$Action("home-login-action-btnlabel1", "New Account", callContext).translationOut; }), IsSubmitting: model.variables.isRedirectingToRegistrationVar }, events: { _handleError: function (ex) { controller.handleError(ex); }, onClick$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.newAccount$Action(controller.callContext(eventHandlerContext)); }); ; } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "32", alias: "11" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })]; }), buttonRight: new PlaceholderContent(function () { return [React.createElement(Portal_EP_Buttons_ButtonPrimary_mvc_view, { inputs: { ButtonText: model.getCachedValue(idService.getId("7Nlh8RJ0A0GlbxIMRM4kGg.ButtonText"), function () { return MultiLingualController.default.getTranslation$Action("home-login-action-btnlabel2", "Login", callContext).translationOut; }), IsSubmitting: model.variables.isLoggingUserInVar }, events: { _handleError: function (ex) { controller.handleError(ex); }, onClick$Action: function () { var eventHandlerContext = callContext.clone(); controller.submit$Action(controller.callContext(eventHandlerContext)); ; } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form1") }, _idProps: { service: idService, uuid: "33", alias: "12" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })]; }) }, _dependencies: [asPrimitiveValue(model.variables.isLoggingUserInVar), asPrimitiveValue(model.variables.isRedirectingToRegistrationVar)] }), React.createElement(OSWidgets.Link, { enabled: true, gridProperties: { classes: "ThemeGrid_MarginGutter" }, onClick: function () { _this.validateWidget(idService.getId("Form1")); return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.login$Action(controller.callContext(eventHandlerContext)); }); ; }, style: "SubmitLink", visible: true, _idProps: { service: idService, name: "Submit2" }, _widgetRecordProvider: widgetsRecordProvider }))))]; }), column2: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "ExternalLogin", visible: true, _idProps: { service: idService, name: "ExternalLogin" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "CloseModal", visible: true, _idProps: { service: idService, name: "CloseModal" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.closeOnClick$Action(controller.callContext(eventHandlerContext)); }); ; }, visible: true, _idProps: { service: idService, uuid: "37" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "remove", iconSize: /*Twotimes*/ 1, style: "icon text-neutral-0", visible: true, _idProps: { service: idService, uuid: "38" }, _widgetRecordProvider: widgetsRecordProvider }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Body", visible: true, _idProps: { service: idService, name: "Body" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "heading7 text-neutral-0 margin-bottom-m Message", visible: true, _idProps: { service: idService, name: "Message" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-uaepass-tagline" }, text: ["Or choose to login using UAE Pass"], _idProps: { service: idService, uuid: "41" }, _widgetRecordProvider: widgetsRecordProvider })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, visible: true, _idProps: { service: idService, uuid: "42" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.uAEPassLogin$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, name: "UAEPassLoginWrapper" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "margin-bottom-m UAEPassLogin", visible: true, _idProps: { service: idService, name: "UAEPassLogin" }, _widgetRecordProvider: widgetsRecordProvider })))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "margin-bottom: 20px;" }, visible: true, _idProps: { service: idService, uuid: "45" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, extendedProperties: { style: "color: #fff;" }, transition: OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), url: OS.Navigation.generateScreenURL("https://selfcare.uaepass.ae/", {}), visible: true, _idProps: { service: idService, uuid: "46" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "na-na-na2" }, text: ["Learn more about UAE Pass here."], _idProps: { service: idService, uuid: "47" }, _widgetRecordProvider: widgetsRecordProvider }))))]; }) }, _dependencies: [asPrimitiveValue(model.variables.isLoggingUserInVar), asPrimitiveValue(model.variables.isRedirectingToRegistrationVar), asPrimitiveValue(model.variables.displayErrorMessageVar), asPrimitiveValue(model.variables.errorMessageVar), asPrimitiveValue(model.variables.captchaConfigDataAct.resultOut), asPrimitiveValue(model.variables.passwordVar), asPrimitiveValue(model.variables.localeIn), asPrimitiveValue(model.variables.usernameVar), asPrimitiveValue(model.variables.captchaConfigDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables._localeInDataFetchStatus), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.isEnabledOut)] })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, visible: model.variables.showForgotPasswordVar, _idProps: { service: idService, name: "ForgotPassword" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OutSystemsUI_Adaptive_Columns2_mvc_view, { inputs: { ExtendedClass: model.getCachedValue(idService.getId("47cQvTsqBE2ClpfwEz42NA.ExtendedClass"), function () { return ((!(model.variables.checkUAEPassEnabledDataAct.isEnabledOut)) ? ("HideSecondLogin") : ("")); }, function () { return model.variables.checkUAEPassEnabledDataAct.isEnabledOut; }), _extendedClassInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr), PhoneBehavior: PortalModel.staticEntities.breakColumns.all, TabletBehavior: PortalModel.staticEntities.breakColumns.all, GutterSize: PortalModel.staticEntities.gutterSize.none }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "49", alias: "13" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, style: "CloseModal", visible: !(model.variables.checkUAEPassEnabledDataAct.isEnabledOut), _idProps: { service: idService, name: "CloseModal4" }, _widgetRecordProvider: widgetsRecordProvider, visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr) }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.closeOnClick$Action(controller.callContext(eventHandlerContext)); }); ; }, visible: true, _idProps: { service: idService, uuid: "51" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "remove", iconSize: /*Twotimes*/ 1, style: "icon text-primary", visible: true, _idProps: { service: idService, uuid: "52" }, _widgetRecordProvider: widgetsRecordProvider }))), React.createElement(OSWidgets.Form, { _validationProps: { validationService: validationService }, gridProperties: { classes: "OSFillParent" }, style: "form card", _idProps: { service: idService, name: "Form2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-top", visible: true, _idProps: { service: idService, uuid: "54" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Header", visible: true, _idProps: { service: idService, name: "Header2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Common_Title_mvc_view, { inputs: { TitleColor: "var(--color-neutral-10)", HasBottomMargin: false }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, name: "Title2", alias: "14" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { icon: PlaceholderContent.Empty, text: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "loginmodal-forgotpassword-forgotpassword" }, text: ["Forgot Password"], _idProps: { service: idService, uuid: "57" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] }), React.createElement(Portal_EP_Common_Tagline_mvc_view, { inputs: { TextColor: "var(--color-neutral-6)", HasBottomMargin: false }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, name: "Tagline2", alias: "15" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { tagline: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "forgotpasspord-forgotpasspord-title" }, text: ["Please insert the email associated with your account to reset the password."], _idProps: { service: idService, uuid: "59" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-content", visible: true, _idProps: { service: idService, uuid: "60" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Inputs_Input_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, name: "EmailTextInput2", alias: "16" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { label: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-user-title" }, text: ["Email"], _idProps: { service: idService, uuid: "62" }, _widgetRecordProvider: widgetsRecordProvider })]; }), input: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Input, { _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, enabled: true, gridProperties: { classes: "OSFillParent" }, inputType: /*Email*/ 7, mandatory: true, maxLength: 50, prompt: "Email address", style: "form-control", variable: model.createVariable(OS.Types.Email, model.variables.forgotPasswordEmailVar, function (value) { model.variables.forgotPasswordEmailVar = value; }), _idProps: { service: idService, name: "Input_ForgotPasswordEmail" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [asPrimitiveValue(model.variables.forgotPasswordEmailVar)] }), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "Visibility:hidden;" }, visible: true, _idProps: { service: idService, uuid: "64" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Inputs_Input_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, name: "PasswordTextInput2", alias: "17" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { label: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-pass-title" }, text: ["Password"], _idProps: { service: idService, uuid: "66" }, _widgetRecordProvider: widgetsRecordProvider })]; }), input: new PlaceholderContent(function () { return [React.createElement(OutSystemsUI_Interaction_InputWithIcon_mvc_view, { inputs: { AlignIconRight: (model.variables.localeIn === "en-us"), _alignIconRightInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._localeInDataFetchStatus) }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, uuid: "67", alias: "18" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { icon: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Link, { enabled: true, extendedProperties: { tabIndex: "-1" }, onClick: function () { var eventHandlerContext = callContext.clone(); controller.passwordViewOnClick$Action(idService.getId("Input_Password2"), controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "68" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedProperties: { style: "color: #000;" }, icon: "eye", iconSize: /*FontSize*/ 0, style: "icon", visible: true, _idProps: { service: idService, uuid: "69" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), input: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Input, { _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, enabled: true, gridProperties: { classes: "OSFillParent" }, inputType: /*Password*/ 1, mandatory: true, maxLength: 30, style: " form-control", variable: model.createVariable(OS.Types.Text, model.variables.passwordVar, function (value) { model.variables.passwordVar = value; }), _idProps: { service: idService, name: "Input_Password2" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [asPrimitiveValue(model.variables.passwordVar)] })]; }) }, _dependencies: [asPrimitiveValue(model.variables.passwordVar), asPrimitiveValue(model.variables._localeInDataFetchStatus), asPrimitiveValue(model.variables.localeIn)] })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "Visibility:hidden;" }, style: "RememberUserAndResetPassword", visible: true, _idProps: { service: idService, name: "RememberUserAndResetPassword2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "ResetPassword", visible: true, _idProps: { service: idService, name: "ResetPassword2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.forgotPassword$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "73" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-forgot-label" }, text: ["Forgot Credentials"], _idProps: { service: idService, uuid: "74" }, _widgetRecordProvider: widgetsRecordProvider })))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "Visibility:hidden;" }, visible: true, _idProps: { service: idService, uuid: "75" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Common_ErrorMessage_mvc_view, { inputs: { Text: model.variables.errorMessageVar, ShouldShow: model.variables.displayErrorMessageVar }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, uuid: "76", alias: "19" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "modal-footer", visible: true, _idProps: { service: idService, uuid: "77" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "text-align: right;" }, style: model.widgets.get(idService.getId("Actions")), visible: true, _idProps: { service: idService, name: "actions2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(Portal_EP_Buttons_ButtonPrimary_mvc_view, { inputs: { IsSubmitting: false, ButtonText: model.getCachedValue(idService.getId("tNJSn+6Rt0mNfe8R+ctsNg.ButtonText"), function () { return MultiLingualController.default.getTranslation$Action("forgotpasspord-forgotpasspord-btnsend", "Send", callContext).translationOut; }) }, events: { _handleError: function (ex) { controller.handleError(ex); }, onClick$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.sendOnClick$Action(controller.callContext(eventHandlerContext)); }); ; } }, _validationProps: { validationService: validationService, validationParentId: idService.getId("Form2") }, _idProps: { service: idService, uuid: "79", alias: "20" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] }))))]; }), column2: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "ExternalLogin", visible: true, _idProps: { service: idService, name: "ExternalLogin2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "CloseModal", visible: true, _idProps: { service: idService, name: "CloseModal2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.closeOnClick$Action(controller.callContext(eventHandlerContext)); }); ; }, visible: true, _idProps: { service: idService, uuid: "82" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "remove", iconSize: /*Twotimes*/ 1, style: "icon text-neutral-0", visible: true, _idProps: { service: idService, uuid: "83" }, _widgetRecordProvider: widgetsRecordProvider }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "Visibility:hidden;" }, style: "Body", visible: true, _idProps: { service: idService, name: "Body2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "heading7 text-neutral-0 margin-bottom-m Message", visible: true, _idProps: { service: idService, name: "Message2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-login-uaepass-tagline" }, text: ["Or choose to login using UAE Pass"], _idProps: { service: idService, uuid: "86" }, _widgetRecordProvider: widgetsRecordProvider })), React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.uAEPassLogin$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, name: "UAEPassLoginWrapper2" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "margin-bottom-m UAEPassLogin", visible: true, _idProps: { service: idService, name: "UAEPassLogin2" }, _widgetRecordProvider: widgetsRecordProvider }))))]; }) }, _dependencies: [asPrimitiveValue(model.widgets.get(idService.getId("Actions"))), asPrimitiveValue(model.variables.displayErrorMessageVar), asPrimitiveValue(model.variables.errorMessageVar), asPrimitiveValue(model.variables.passwordVar), asPrimitiveValue(model.variables.localeIn), asPrimitiveValue(model.variables.forgotPasswordEmailVar), asPrimitiveValue(model.variables._localeInDataFetchStatus), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.isEnabledOut)] }))]; }) }, _dependencies: [asPrimitiveValue(model.widgets.get(idService.getId("Actions"))), asPrimitiveValue(model.variables.forgotPasswordEmailVar), asPrimitiveValue(model.variables.isLoggingUserInVar), asPrimitiveValue(model.variables.isRedirectingToRegistrationVar), asPrimitiveValue(model.variables.displayErrorMessageVar), asPrimitiveValue(model.variables.errorMessageVar), asPrimitiveValue(model.variables.captchaConfigDataAct.resultOut), asPrimitiveValue(model.variables.passwordVar), asPrimitiveValue(model.variables.localeIn), asPrimitiveValue(model.variables.usernameVar), asPrimitiveValue(model.variables.captchaConfigDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables._localeInDataFetchStatus), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.checkUAEPassEnabledDataAct.isEnabledOut), asPrimitiveValue(model.variables.showForgotPasswordVar)] })); }; return View; })(OSView.BaseView.BaseWebBlock); return View; }); define("Portal.EP_Common.LoginModal.mvc$controller", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "Portal.languageResources", "Portal.clientVariables", "Portal.EP_Common.LoginModal.mvc$controller.Login.CheckCaptchaJS", "Portal.EP_Common.LoginModal.mvc$controller.PasswordViewOnClick.JavaScript1JS", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.model$ItemFromCartRec", "Portal.controller$CacheUserSession", "Portal.model$PostVerifyRequestRec", "Portal.model$PostVerifyResponseRec", "Portal.controller$UserLogout", "Portal.model$OSLoginRequestRec", "Portal.model$OSLoginRec", "Portal.controller$RequireCaptcha", "Portal.controller$ClickSubmit", "Portal.model$EmailRequestRec", "Portal.controller$GetClientLocale"], function (OutSystems, PortalModel, PortalController, MultiLingualController, PortalLanguageResources, PortalClientVariables, Portal_EP_Common_LoginModal_mvc_controller_Login_CheckCaptchaJS, Portal_EP_Common_LoginModal_mvc_controller_PasswordViewOnClick_JavaScript1JS) { var OS = OutSystems.Internal; var Controller = (function (_super) { __extends(Controller, _super); function Controller() { _super.apply(this, arguments); var controller = this.controller; this.clientActionProxies = { assignToken$Action: function (valueIn) { valueIn = (valueIn === undefined) ? "" : valueIn; return controller.executeActionInsideJSNode(controller._assignToken$Action.bind(controller, OS.DataConversion.JSNodeParamConverter.from(valueIn, OS.Types.Text)), controller.callContext(), function (actionResults) { return {}; }); } }; this.dataFetchDependenciesOriginal = { checkUAEPassEnabled$DataActRefresh: 0, captchaConfig$DataActRefresh: 0 }; this.dataFetchDependentsGraph = { checkUAEPassEnabled$DataActRefresh: [], captchaConfig$DataActRefresh: [] }; this.useImprovedDataFetch = false; this.hasDependenciesBetweenSources = false; this.shouldSendClientVarsToDataSources = false; } // Server Actions Controller.prototype.getOrderIdQuantity$ServerAction = function (authenticationIn, callContext) { var controller = this.controller; var inputs = { Authentication: OS.DataConversion.ServerDataConverter.to(authenticationIn, OS.Types.Text) }; return controller.callServerAction("GetOrderIdQuantity", "screenservices/Portal/EP_Common/LoginModal/ActionGetOrderIdQuantity", "LgsNgNNkuGGeRT_lAGFpsQ", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$ActionGetOrderIdQuantity"))(); executeServerActionResult.responseOut = OS.DataConversion.ServerDataConverter.from(outputs.Response, PortalModel.ItemFromCartRec); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$ActionGetOrderIdQuantity", [{ name: "Response", attrName: "responseOut", mandatory: false, dataType: OS.Types.Record, defaultValue: function () { return new PortalModel.ItemFromCartRec(); }, complexType: PortalModel.ItemFromCartRec }]); Controller.prototype.getIP$ServerAction = function (callContext) { var controller = this.controller; return controller.callServerAction("GetIP", "screenservices/Portal/EP_Common/LoginModal/ActionGetIP", "xR0wDPFB6cNvgt9fpRUo9Q", {}, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$rssextensionhttprequesthandler_ActionGetIP"))(); executeServerActionResult.userIPOut = OS.DataConversion.ServerDataConverter.from(outputs.UserIP, OS.Types.Text); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$rssextensionhttprequesthandler_ActionGetIP", [{ name: "UserIP", attrName: "userIPOut", mandatory: false, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype.sleep$ServerAction = function (sleepInMsIn, callContext) { var controller = this.controller; var inputs = { SleepInMs: OS.DataConversion.ServerDataConverter.to(sleepInMsIn, OS.Types.Integer) }; return controller.callServerAction("Sleep", "screenservices/Portal/EP_Common/LoginModal/ActionSleep", "DSNaCUbnddE6e_EeAGS6Bw", inputs, controller.callContext(callContext)).then(function (outputs) { }); }; Controller.prototype.user_Login$ServerAction = function (usernameIn, passwordIn, rememberLoginIn, callContext) { var controller = this.controller; var inputs = { Username: OS.DataConversion.ServerDataConverter.to(usernameIn, OS.Types.Text), Password: OS.DataConversion.ServerDataConverter.to(passwordIn, OS.Types.Text), RememberLogin: OS.DataConversion.ServerDataConverter.to(rememberLoginIn, OS.Types.Boolean) }; return controller.callServerAction("User_Login", "screenservices/Portal/EP_Common/LoginModal/ActionUser_Login", "XiZVCpoj9OuZBE5Pd15rZw", inputs, controller.callContext(callContext)).then(function (outputs) { }); }; Controller.prototype.postVerify$ServerAction = function (requestIn, callContext) { var controller = this.controller; var inputs = { Request: OS.DataConversion.ServerDataConverter.to(requestIn, OS.Types.Record) }; return controller.callServerAction("PostVerify", "screenservices/Portal/EP_Common/LoginModal/ActionPostVerify", "fnsnsnF+Q09ehrys8AUjDg", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$ActionPostVerify"))(); executeServerActionResult.responseOut = OS.DataConversion.ServerDataConverter.from(outputs.Response, PortalModel.PostVerifyResponseRec); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$ActionPostVerify", [{ name: "Response", attrName: "responseOut", mandatory: false, dataType: OS.Types.Record, defaultValue: function () { return new PortalModel.PostVerifyResponseRec(); }, complexType: PortalModel.PostVerifyResponseRec }]); Controller.prototype.oSLogin$ServerAction = function (oSLoginRequestIn, callContext) { var controller = this.controller; var inputs = { OSLoginRequest: OS.DataConversion.ServerDataConverter.to(oSLoginRequestIn, OS.Types.Record) }; return controller.callServerAction("OSLogin", "screenservices/Portal/EP_Common/LoginModal/ActionOSLogin", "oMWXgD8lzWx60bH__2xZSA", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$ActionOSLogin"))(); executeServerActionResult.responseOut = OS.DataConversion.ServerDataConverter.from(outputs.Response, PortalModel.OSLoginRec); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$ActionOSLogin", [{ name: "Response", attrName: "responseOut", mandatory: false, dataType: OS.Types.Record, defaultValue: function () { return new PortalModel.OSLoginRec(); }, complexType: PortalModel.OSLoginRec }]); Controller.prototype.getSessionTimeoutMinutes$ServerAction = function (callContext) { var controller = this.controller; return controller.callServerAction("GetSessionTimeoutMinutes", "screenservices/Portal/EP_Common/LoginModal/ActionGetSessionTimeoutMinutes", "UZi+QRDflROISkuVECxpvg", {}, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$ActionGetSessionTimeoutMinutes"))(); executeServerActionResult.outTimeoutMinsOut = OS.DataConversion.ServerDataConverter.from(outputs.OutTimeoutMins, OS.Types.Integer); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$ActionGetSessionTimeoutMinutes", [{ name: "OutTimeoutMins", attrName: "outTimeoutMinsOut", mandatory: false, dataType: OS.Types.Integer, defaultValue: function () { return 0; } }]); Controller.prototype.sendEmailPassword$ServerAction = function (forgotPasswordEmailIn, localeIn, emailRequestIn, callContext) { var controller = this.controller; var inputs = { ForgotPasswordEmail: OS.DataConversion.ServerDataConverter.to(forgotPasswordEmailIn, OS.Types.Email), locale: OS.DataConversion.ServerDataConverter.to(localeIn, OS.Types.Text), EmailRequest: OS.DataConversion.ServerDataConverter.to(emailRequestIn, OS.Types.Record) }; return controller.callServerAction("SendEmailPassword", "screenservices/Portal/EP_Common/LoginModal/ActionSendEmailPassword", "Y01XYSKgkpLEJxmPQ5taUQ", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal$ActionSendEmailPassword"))(); executeServerActionResult.out_EmailRequestOut = OS.DataConversion.ServerDataConverter.from(outputs.Out_EmailRequest, PortalModel.EmailRequestRec); executeServerActionResult.hasErrorOut = OS.DataConversion.ServerDataConverter.from(outputs.HasError, OS.Types.Boolean); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal$ActionSendEmailPassword", [{ name: "Out_EmailRequest", attrName: "out_EmailRequestOut", mandatory: false, dataType: OS.Types.Record, defaultValue: function () { return new PortalModel.EmailRequestRec(); }, complexType: PortalModel.EmailRequestRec }, { name: "HasError", attrName: "hasErrorOut", mandatory: false, dataType: OS.Types.Boolean, defaultValue: function () { return false; } }]); // Aggregates and Data Actions Controller.prototype.checkUAEPassEnabled$DataActRefresh = function (callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callDataAction("DataActionCheckUAEPassEnabled", "screenservices/Portal/EP_Common/LoginModal/DataActionCheckUAEPassEnabled", "QWmzLA7A1wFtb8dLM5RjpA", function (b) { model.variables.checkUAEPassEnabledDataAct.dataFetchStatusAttr = b; }, function (json) { model.variables.checkUAEPassEnabledDataAct.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.checkUAEPassEnabledDataAct.constructor)); }, undefined, undefined, undefined, callContext); }; Controller.prototype.captchaConfig$DataActRefresh = function (callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callDataAction("DataActionCaptchaConfig", "screenservices/Portal/EP_Common/LoginModal/DataActionCaptchaConfig", "eHfoyeYMZyCB6QDWbUDQJA", function (b) { model.variables.captchaConfigDataAct.dataFetchStatusAttr = b; }, function (json) { model.variables.captchaConfigDataAct.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.captchaConfigDataAct.constructor)); }, undefined, undefined, undefined, callContext); }; Controller.prototype.dataFetchActionNames = ["checkUAEPassEnabled$DataActRefresh", "captchaConfig$DataActRefresh"]; // Client Actions Controller.prototype._login$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("Login"); callContext = controller.callContext(callContext); var allExceptionsVar = new OS.DataTypes.VariableHolder(new OS.DataTypes.ErrorHandlerOutputType()); var getOrderIdQuantityVar = new OS.DataTypes.VariableHolder(); var getIPVar = new OS.DataTypes.VariableHolder(); var postVerifyVar = new OS.DataTypes.VariableHolder(); var oSLoginVar = new OS.DataTypes.VariableHolder(); var getSessionTimeoutMinutesVar = new OS.DataTypes.VariableHolder(); return OS.Flow.executeAsyncFlow(function () { // IsLoading // IsLoggingUserIn = True model.variables.isLoggingUserInVar = true; // DisplayErrorMessage = False model.variables.displayErrorMessageVar = false; // ErrorMessage = "" model.variables.errorMessageVar = ""; // IsCaptchaConfigFetched? return OS.Flow.executeSequence(function () { if((model.variables.captchaConfigDataAct.isDataFetchedAttr)) { // IsCaptchaEnabled? return OS.Flow.executeSequence(function () { if((model.variables.captchaConfigDataAct.resultOut)) { controller.safeExecuteJSNode(Portal_EP_Common_LoginModal_mvc_controller_Login_CheckCaptchaJS, "CheckCaptcha", "Login", { SiteKey: OS.DataConversion.JSNodeParamConverter.to(PortalClientVariables.getreCAPTCHA_SiteKey(), OS.Types.Text), Action: OS.DataConversion.JSNodeParamConverter.to("loginModal", OS.Types.Text) }, function ($parameters) { }, { AssignToken: controller.clientActionProxies.assignToken$Action }, {}); // Execute Action: GetIP model.flush(); return controller.getIP$ServerAction(callContext).then(function (value) { getIPVar.value = value; }).then(function () { // Execute Action: Sleep model.flush(); return controller.sleep$ServerAction(300, callContext); }).then(function () { // Execute Action: PostVerify model.flush(); return controller.postVerify$ServerAction(function () { var rec = new PortalModel.PostVerifyRequestRec(); rec.clientIPAttr = getIPVar.value.userIPOut; rec.tokenAttr = model.variables.captchaTokenVar; return rec; }(), callContext).then(function (value) { postVerifyVar.value = value; }); }); } }).then(function () { // InValid? return OS.Flow.executeSequence(function () { if((!(!(model.widgets.get(idService.getId("Form1")).validAttr)))) { // Execute Action: UserLogout model.flush(); return PortalController.default.userLogout$Action(callContext).then(function () { // Execute Action: OSLogin model.flush(); return controller.oSLogin$ServerAction(function () { var rec = new PortalModel.OSLoginRequestRec(); rec.passwordAttr = model.variables.passwordVar; rec.userNameAttr = model.variables.usernameVar; return rec; }(), callContext).then(function (value) { oSLoginVar.value = value; }); }).then(function () { // IsSucc? return OS.Flow.executeSequence(function () { if(((oSLoginVar.value.responseOut.response_codeAttr === (PortalModel.staticEntities.responseCode.oK).toString()))) { // IsUserVerificationRequired? return OS.Flow.executeSequence(function () { if((oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.isUserVerificationRequiredAttr)) { // Destination: /Portal/CreateAccount return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/CreateAccount", { mguser: oSLoginVar.value.responseOut.payloadAttr.sessionTokenAttr, locale: model.variables.localeIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); } else { // Execute Action: User_Login model.flush(); return controller.user_Login$ServerAction(model.variables.usernameVar, model.variables.passwordVar, false, callContext).then(function () { // Execute Action: GetOrderIdQuantity model.flush(); return controller.getOrderIdQuantity$ServerAction(oSLoginVar.value.responseOut.payloadAttr.sessionTokenAttr, callContext).then(function (value) { getOrderIdQuantityVar.value = value; }); }).then(function () { // ResetLocals // DisplayErrorMessage = False model.variables.displayErrorMessageVar = false; // ErrorMessage = "" model.variables.errorMessageVar = ""; // IsLoggingUserIn = False model.variables.isLoggingUserInVar = false; // ShowModal = False model.variables.showModalIn = false; // Execute Action: GetSessionTimeoutMinutes model.flush(); return controller.getSessionTimeoutMinutes$ServerAction(callContext).then(function (value) { getSessionTimeoutMinutesVar.value = value; }); }).then(function () { // Execute Action: CacheUserSession PortalController.default.cacheUserSession$Action(model.variables.usernameVar, oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.nameAttr, oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.firstNameAttr, oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.lastNameAttr, oSLoginVar.value.responseOut.payloadAttr.sessionTokenAttr, oSLoginVar.value.responseOut.payloadAttr.refreshTokenAttr, oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.emailAddressAttr, OS.BuiltinFunctions.longIntegerToInteger(OS.BuiltinFunctions.longIntegerToIdentifier(oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.userIdAttr)), oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.mobileNumberAttr, false, getOrderIdQuantityVar.value.responseOut.payloadAttr.orderIdAttr, OS.BuiltinFunctions.longIntegerToInteger(getOrderIdQuantityVar.value.responseOut.payloadAttr.quantityAttr), oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.isdCodeAttr, oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.isdLabelAttr, OS.BuiltinFunctions.addMinutes(OS.BuiltinFunctions.currDateTime(), getSessionTimeoutMinutesVar.value.outTimeoutMinsOut), callContext); }).then(function () { return OS.Flow.executeSequence(function () { if(((oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.userTypeIdAttr === PortalModel.staticEntities.userType.candidate))) { // Destination: /Portal/Vacancies return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Vacancies", { locale: model.variables.localeIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); } else { // FirstLogin? return OS.Flow.executeSequence(function () { if((oSLoginVar.value.responseOut.payloadAttr.userInfoAttr.isFirstLoginAttr)) { // Destination: /Portal/AddressBook return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/AddressBook", { IsFirstLogin: true, locale: model.variables.localeIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); } else { // Trigger Event: UserLoggedIn return controller.userLoggedIn$Action(callContext).then(function () { return OS.Flow.returnAsync(); }); } }); } }); }); } }); } else { // DispError // DisplayErrorMessage = True model.variables.displayErrorMessageVar = true; // ErrorMessage = OSLogin.Response.message model.variables.errorMessageVar = oSLoginVar.value.responseOut.messageAttr; } }); }); } }); }).then(function () { // LoaderOff // IsLoggingUserIn = False model.variables.isLoggingUserInVar = false; }); } else { // IsLoggingUserIn = False model.variables.isLoggingUserInVar = false; } }); }).catch(function (ex) { OS.Logger.trace("LoginModal.Login", OS.Exceptions.getMessage(ex), ex.name); // Handle Error: AllExceptions if(!(OS.Exceptions.isSystem(ex))) { OS.Logger.error(null, ex); allExceptionsVar.value.exceptionMessageAttr = OS.Exceptions.getMessage(ex); return OS.Flow.executeAsyncFlow(function () { OS.FeedbackMessageService.showFeedbackMessage(allExceptionsVar.value.exceptionMessageAttr, /*Info*/ 0); return OS.Flow.returnAsync(); }); } throw ex; }); }; Controller.prototype._passwordViewOnClick$Action = function (inPasswordFieldIDIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("PasswordViewOnClick"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal.PasswordViewOnClick$vars"))()); vars.value.inPasswordFieldIDInLocal = inPasswordFieldIDIn; controller.safeExecuteJSNode(Portal_EP_Common_LoginModal_mvc_controller_PasswordViewOnClick_JavaScript1JS, "JavaScript1", "PasswordViewOnClick", { InPasswordFieldID: OS.DataConversion.JSNodeParamConverter.to(vars.value.inPasswordFieldIDInLocal, OS.Types.Text) }, function ($parameters) { }, {}, {}); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal.PasswordViewOnClick$vars", [{ name: "InPasswordFieldID", attrName: "inPasswordFieldIDInLocal", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._newAccount$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("NewAccount"); callContext = controller.callContext(callContext); var allExceptionsVar = new OS.DataTypes.VariableHolder(new OS.DataTypes.ErrorHandlerOutputType()); return OS.Flow.executeAsyncFlow(function () { // IsRedirectingToRegistration = True model.variables.isRedirectingToRegistrationVar = true; // Trigger Event: RequestCloseLoginModal return controller.requestCloseLoginModal$Action(callContext).then(function () { // IsRedirectingToRegistration = False model.variables.isRedirectingToRegistrationVar = false; // Destination: /Portal/CreateAccount return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/CreateAccount", { locale: model.variables.localeIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); }); }).catch(function (ex) { OS.Logger.trace("LoginModal.NewAccount", OS.Exceptions.getMessage(ex), ex.name); // Handle Error: AllExceptions if(!(OS.Exceptions.isSystem(ex))) { OS.Logger.error(null, ex); allExceptionsVar.value.exceptionMessageAttr = OS.Exceptions.getMessage(ex); return OS.Flow.executeAsyncFlow(function () { OS.FeedbackMessageService.showFeedbackMessage(allExceptionsVar.value.exceptionMessageAttr, /*Info*/ 0); return OS.Flow.returnAsync(); }); } throw ex; }); }; 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); return OS.Flow.executeAsyncFlow(function () { // Execute Action: RequireCaptcha model.flush(); return PortalController.default.requireCaptcha$Action(callContext); }); }; Controller.prototype._submit$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("Submit"); callContext = controller.callContext(callContext); // Execute Action: Submit PortalController.default.clickSubmit$Action(idService.getId("Submit2"), callContext); }; Controller.prototype._sendOnClick$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SendOnClick"); callContext = controller.callContext(callContext); var sendEmailPasswordVar = new OS.DataTypes.VariableHolder(); return OS.Flow.executeAsyncFlow(function () { // Execute Action: SendEmailPassword model.flush(); return controller.sendEmailPassword$ServerAction(model.variables.forgotPasswordEmailVar, model.variables.localeIn, model.variables.emailRequestVar, callContext).then(function (value) { sendEmailPasswordVar.value = value; }).then(function () { if((sendEmailPasswordVar.value.hasErrorOut)) { OS.FeedbackMessageService.showFeedbackMessage("No user associated with this email", /*Warning*/ 2); } else { // Action Output // EmailRequest = SendEmailPassword.Out_EmailRequest model.variables.emailRequestVar = sendEmailPasswordVar.value.out_EmailRequestOut; OS.FeedbackMessageService.showFeedbackMessage(MultiLingualController.default.getTranslation$Action("login-resetpassword-message", "If this email ID is registered with us, you will get an email shortly with a password reset link", callContext).translationOut, /*Info*/ 0); } // ShowForgotPassword = False model.variables.showForgotPasswordVar = false; // Trigger Event: RequestCloseLoginModal return controller.requestCloseLoginModal$Action(callContext); }); }); }; Controller.prototype._closeOnClick$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("CloseOnClick"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // ShowForgotPassword = False model.variables.showForgotPasswordVar = false; // Trigger Event: RequestCloseLoginModal return controller.requestCloseLoginModal$Action(callContext); }); }; Controller.prototype._assignToken$Action = function (valueIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("AssignToken"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginModal.AssignToken$vars"))()); vars.value.valueInLocal = valueIn; // Token // CaptchaToken = Value model.variables.captchaTokenVar = vars.value.valueInLocal; }; Controller.registerVariableGroupType("Portal.EP_Common.LoginModal.AssignToken$vars", [{ name: "Value", attrName: "valueInLocal", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._forgotPassword$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ForgotPassword"); callContext = controller.callContext(callContext); var allExceptionsVar = new OS.DataTypes.VariableHolder(new OS.DataTypes.ErrorHandlerOutputType()); try {// ShowForgotPassword = True model.variables.showForgotPasswordVar = true; } catch (ex) { (function () { OS.Logger.trace("LoginModal.ForgotPassword", OS.Exceptions.getMessage(ex), ex.name); // Handle Error: AllExceptions if(!(OS.Exceptions.isSystem(ex))) { OS.Logger.error(null, ex); allExceptionsVar.value.exceptionMessageAttr = OS.Exceptions.getMessage(ex); OS.FeedbackMessageService.showFeedbackMessage(allExceptionsVar.value.exceptionMessageAttr, /*Info*/ 0); return ; } throw ex; })(); } }; Controller.prototype._uAEPassLogin$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("UAEPassLogin"); callContext = controller.callContext(callContext); // Destination: /Portal/ return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL((("https://qa-id.uaepass.ae/trustedx-authserver/oauth/main-as?redirect_uri=https://beta.epg.gov.ae/portal/uaepass_response_url&client_id=epg_web_stage&response_type=code&state=" + PortalController.default.getClientLocale$Action(callContext).localeOut) + "&scope=urn:uae:digitalid:profile&acr_values=urn:safelayer:tws:policies:authentication:level:low&ui_locales=en"), {}), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); }; Controller.prototype.login$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._login$Action, callContext); }; Controller.prototype.passwordViewOnClick$Action = function (inPasswordFieldIDIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._passwordViewOnClick$Action, callContext, inPasswordFieldIDIn); }; Controller.prototype.newAccount$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._newAccount$Action, callContext); }; Controller.prototype.onInitialize$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onInitialize$Action, callContext); }; Controller.prototype.submit$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._submit$Action, callContext); }; Controller.prototype.sendOnClick$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._sendOnClick$Action, callContext); }; Controller.prototype.closeOnClick$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._closeOnClick$Action, callContext); }; Controller.prototype.assignToken$Action = function (valueIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._assignToken$Action, callContext, valueIn); }; Controller.prototype.forgotPassword$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._forgotPassword$Action, callContext); }; Controller.prototype.uAEPassLogin$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._uAEPassLogin$Action, callContext); }; Controller.prototype.requestCloseLoginModal$Action = function () { return Promise.resolve(); }; Controller.prototype.userLoggedIn$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); }); define("Portal.EP_Common.LoginModal.mvc$controller.Login.CheckCaptchaJS", [], function () { return function ($parameters, $actions, $roles, $public) { grecaptcha.ready(function () { grecaptcha.execute($parameters.SiteKey, { action: $parameters.Action }).then(function (token) { $actions.AssignToken(token); }); }); }; }); define("Portal.EP_Common.LoginModal.mvc$controller.PasswordViewOnClick.JavaScript1JS", [], function () { return function ($parameters, $actions, $roles, $public) { var x = document.getElementById($parameters.InPasswordFieldID); if (x.type === "password") { x.type = "text"; } else { x.type = "password"; } }; });
/home2/wtmwscom/public_html/../public_html/post/scripts/Portal_034.js