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
/
themes2941.wtmwebshop.com
/
..
/
post
/
scripts
/
Portal_046.js
/
/
define("Portal.EP_Common.LoginInfo.mvc$model", ["OutSystems/ClientRuntime/Main", "Portal.model", "MultiLingual.controller", "Portal.controller", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.controller$SetClientLocale", "Portal.controller$UserLogout", "Portal.controller$GetClientLocale", "Portal.model$GetNewAccessTokenRequestRec", "Portal.model$GetNewAccessTokenResponseRec", "Portal.model$SearchPageStructList", "Portal.model$Locale2RecordList"], function (OutSystems, PortalModel, MultiLingualController, PortalController) { var OS = OutSystems.Internal; var GetLocalesAggrRec = (function (_super) { __extends(GetLocalesAggrRec, _super); function GetLocalesAggrRec(defaults) { _super.apply(this, arguments); } GetLocalesAggrRec.RecordListType = PortalModel.Locale2RecordList; GetLocalesAggrRec.init(); return GetLocalesAggrRec; })(OS.Model.AggregateRecord); var FetchReadSpeakerConfigDataActRec = (function (_super) { __extends(FetchReadSpeakerConfigDataActRec, _super); function FetchReadSpeakerConfigDataActRec(defaults) { _super.apply(this, arguments); } FetchReadSpeakerConfigDataActRec.attributesToDeclare = function () { return [ this.attr("BaseURL", "baseURLOut", "BaseURL", true, false, OS.Types.Text, function () { return ""; }, true), this.attr("EN", "eNOut", "EN", true, false, OS.Types.Text, function () { return ""; }, true), this.attr("AR", "aROut", "AR", true, false, OS.Types.Text, function () { return ""; }, true) ].concat(_super.attributesToDeclare.call(this)); }; FetchReadSpeakerConfigDataActRec.init(); return FetchReadSpeakerConfigDataActRec; })(OS.Model.DataSourceRecord); var FetchRolesDataActRec = (function (_super) { __extends(FetchRolesDataActRec, _super); function FetchRolesDataActRec(defaults) { _super.apply(this, arguments); } FetchRolesDataActRec.attributesToDeclare = function () { return [ this.attr("IsUserCandidate", "isUserCandidateOut", "IsUserCandidate", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserHeadOffice", "isUserHeadOfficeOut", "IsUserHeadOffice", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserBlocked", "isUserBlockedOut", "IsUserBlocked", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserPersonal", "isUserPersonalOut", "IsUserPersonal", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserCorporateCash", "isUserCorporateCashOut", "IsUserCorporateCash", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserPostal", "isUserPostalOut", "IsUserPostal", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserCourier", "isUserCourierOut", "IsUserCourier", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserCorporateCredit", "isUserCorporateCreditOut", "IsUserCorporateCredit", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserLECourt", "isUserLECourtOut", "IsUserLECourt", true, false, OS.Types.Boolean, function () { return false; }, true), this.attr("IsUserCashOnDelivery", "isUserCashOnDeliveryOut", "IsUserCashOnDelivery", true, false, OS.Types.Boolean, function () { return false; }, true) ].concat(_super.attributesToDeclare.call(this)); }; FetchRolesDataActRec.init(); return FetchRolesDataActRec; })(OS.Model.DataSourceRecord); var FetchSearchResultsDataActRec = (function (_super) { __extends(FetchSearchResultsDataActRec, _super); function FetchSearchResultsDataActRec(defaults) { _super.apply(this, arguments); } FetchSearchResultsDataActRec.attributesToDeclare = function () { return [ this.attr("EverythingElse", "everythingElseOut", "EverythingElse", true, false, OS.Types.RecordList, function () { return OS.DataTypes.ImmutableBase.getData(new PortalModel.SearchPageStructList()); }, true, PortalModel.SearchPageStructList), this.attr("ExlusivelyNews", "exlusivelyNewsOut", "ExlusivelyNews", true, false, OS.Types.RecordList, function () { return OS.DataTypes.ImmutableBase.getData(new PortalModel.SearchPageStructList()); }, true, PortalModel.SearchPageStructList) ].concat(_super.attributesToDeclare.call(this)); }; FetchSearchResultsDataActRec.init(); return FetchSearchResultsDataActRec; })(OS.Model.DataSourceRecord); var VariablesRecord = (function (_super) { __extends(VariablesRecord, _super); function VariablesRecord(defaults) { _super.apply(this, arguments); } VariablesRecord.attributesToDeclare = function () { return [ this.attr("ShowModal", "showModalVar", "ShowModal", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("ShouldProceedToCart", "shouldProceedToCartVar", "ShouldProceedToCart", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("ShowAccessibility", "showAccessibilityVar", "ShowAccessibility", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("UserSession", "userSessionVar", "UserSession", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("IsSearch", "isSearchVar", "IsSearch", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("SearchText", "searchTextVar", "SearchText", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("PageEncodedURL", "pageEncodedURLVar", "PageEncodedURL", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("ShowSessionTimeOut", "showSessionTimeOutVar", "ShowSessionTimeOut", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("SessionExpirySeconds", "sessionExpirySecondsVar", "SessionExpirySeconds", true, false, OS.Types.Integer, function () { return 0; }, false), this.attr("SessionExpiryDT", "sessionExpiryDTVar", "SessionExpiryDT", true, false, OS.Types.DateTime, function () { return OS.DataTypes.DateTime.defaultValue; }, false), this.attr("IsSessionRenewing", "isSessionRenewingVar", "IsSessionRenewing", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("VarTimer", "varTimerVar", "VarTimer", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("SessionRenewCounter", "sessionRenewCounterVar", "SessionRenewCounter", true, false, OS.Types.Integer, function () { return 0; }, false), this.attr("VarCounter", "varCounterVar", "VarCounter", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("inputLocale", "inputLocaleIn", "inputLocale", true, false, OS.Types.Text, function () { return ""; }, false), this.attr("_inputLocaleInDataFetchStatus", "_inputLocaleInDataFetchStatus", "_inputLocaleInDataFetchStatus", true, false, OS.Types.Integer, function () { return /*Fetched*/ 1; }, false), this.attr("IsNotCareers", "isNotCareersIn", "IsNotCareers", true, false, OS.Types.Boolean, function () { return true; }, false), this.attr("_isNotCareersInDataFetchStatus", "_isNotCareersInDataFetchStatus", "_isNotCareersInDataFetchStatus", true, false, OS.Types.Integer, function () { return /*Fetched*/ 1; }, false), this.attr("IsLoginScreen", "isLoginScreenIn", "IsLoginScreen", true, false, OS.Types.Boolean, function () { return false; }, false), this.attr("_isLoginScreenInDataFetchStatus", "_isLoginScreenInDataFetchStatus", "_isLoginScreenInDataFetchStatus", true, false, OS.Types.Integer, function () { return /*Fetched*/ 1; }, false), this.attr("GetLocales", "getLocalesAggr", "getLocalesAggr", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new GetLocalesAggrRec()); }, true, GetLocalesAggrRec), this.attr("FetchReadSpeakerConfig", "fetchReadSpeakerConfigDataAct", "fetchReadSpeakerConfigDataAct", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new FetchReadSpeakerConfigDataActRec()); }, true, FetchReadSpeakerConfigDataActRec), this.attr("FetchRoles", "fetchRolesDataAct", "fetchRolesDataAct", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new FetchRolesDataActRec()); }, true, FetchRolesDataActRec), this.attr("FetchSearchResults", "fetchSearchResultsDataAct", "fetchSearchResultsDataAct", true, true, OS.Types.Record, function () { return OS.DataTypes.ImmutableBase.getData(new FetchSearchResultsDataActRec()); }, true, FetchSearchResultsDataActRec) ].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 { SearchInput2: 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("inputLocale" in inputs) { this.variables.inputLocaleIn = inputs.inputLocale; if("_inputLocaleInDataFetchStatus" in inputs) { this.variables._inputLocaleInDataFetchStatus = inputs._inputLocaleInDataFetchStatus; } } if("IsNotCareers" in inputs) { this.variables.isNotCareersIn = inputs.IsNotCareers; if("_isNotCareersInDataFetchStatus" in inputs) { this.variables._isNotCareersInDataFetchStatus = inputs._isNotCareersInDataFetchStatus; } } if("IsLoginScreen" in inputs) { this.variables.isLoginScreenIn = inputs.IsLoginScreen; if("_isLoginScreenInDataFetchStatus" in inputs) { this.variables._isLoginScreenInDataFetchStatus = inputs._isLoginScreenInDataFetchStatus; } } }; return Model; })(OS.Model.BaseViewModel); return new OS.Model.ModelFactory(Model); }); define("Portal.EP_Common.LoginInfo.mvc$view", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "react", "OutSystems/ReactView/Main", "Portal.EP_Common.LoginInfo.mvc$model", "Portal.EP_Common.LoginInfo.mvc$controller", "Portal.clientVariables", "Portal.EP_Common.Modal.mvc$view", "OutSystems/ReactWidgets/Main", "Portal.EP_Common.Section.mvc$view", "OutSystemsUI.Adaptive.ColumnsSmallRight.mvc$view", "Portal.EP_Common.Tagline.mvc$view", "OutSystemsUI.Adaptive.ColumnsMediumLeft.mvc$view", "OutSystemsUI.Utilities.AlignCenter.mvc$view", "OutSystemsUI.Utilities.Separator.mvc$view", "OutSystemsUI.Adaptive.DisplayOnDevice.mvc$view", "OutSystemsUI.Adaptive.Columns3.mvc$view", "OutSystemsUI.Numbers.IconBadge.mvc$view", "Portal.EP_Common.LoginModal.mvc$view", "Portal.Careers.CareerLoginModal.mvc$view", "Portal.EP_Common.ConfirmationDialog.mvc$view", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.controller$SetClientLocale", "Portal.controller$UserLogout", "Portal.controller$GetClientLocale", "Portal.model$GetNewAccessTokenRequestRec", "Portal.model$GetNewAccessTokenResponseRec", "Portal.model$SearchPageStructList", "Portal.model$Locale2RecordList"], function (OutSystems, PortalModel, PortalController, MultiLingualController, React, OSView, Portal_EP_Common_LoginInfo_mvc_model, Portal_EP_Common_LoginInfo_mvc_controller, PortalClientVariables, Portal_EP_Common_Modal_mvc_view, OSWidgets, Portal_EP_Common_Section_mvc_view, OutSystemsUI_Adaptive_ColumnsSmallRight_mvc_view, Portal_EP_Common_Tagline_mvc_view, OutSystemsUI_Adaptive_ColumnsMediumLeft_mvc_view, OutSystemsUI_Utilities_AlignCenter_mvc_view, OutSystemsUI_Utilities_Separator_mvc_view, OutSystemsUI_Adaptive_DisplayOnDevice_mvc_view, OutSystemsUI_Adaptive_Columns3_mvc_view, OutSystemsUI_Numbers_IconBadge_mvc_view, Portal_EP_Common_LoginModal_mvc_view, Portal_Careers_CareerLoginModal_mvc_view, Portal_EP_Common_ConfirmationDialog_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.LoginInfo"; View.getCssDependencies = function() { return ["css/OutSystemsReactWidgets.css", "css/Portal.EP_Common.LoginInfo.css"]; }; View.getJsDependencies = function() { return []; }; View.getBlocks = function() { return [Portal_EP_Common_Modal_mvc_view, Portal_EP_Common_Section_mvc_view, OutSystemsUI_Adaptive_ColumnsSmallRight_mvc_view, Portal_EP_Common_Tagline_mvc_view, OutSystemsUI_Adaptive_ColumnsMediumLeft_mvc_view, OutSystemsUI_Utilities_AlignCenter_mvc_view, OutSystemsUI_Utilities_Separator_mvc_view, OutSystemsUI_Adaptive_DisplayOnDevice_mvc_view, OutSystemsUI_Adaptive_Columns3_mvc_view, OutSystemsUI_Numbers_IconBadge_mvc_view, Portal_EP_Common_LoginModal_mvc_view, Portal_Careers_CareerLoginModal_mvc_view, Portal_EP_Common_ConfirmationDialog_mvc_view]; }; Object.defineProperty(View.prototype, "modelFactory", { get: function () { return Portal_EP_Common_LoginInfo_mvc_model; }, enumerable: true, configurable: true }); Object.defineProperty(View.prototype, "controllerFactory", { get: function () { return Portal_EP_Common_LoginInfo_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: { ShowModal: model.variables.isSearchVar, ExtendedClass: "SearchContainerSize" }, events: { _handleError: function (ex) { controller.handleError(ex); }, closeModalRequested$Action: function () { var eventHandlerContext = callContext.clone(); controller.search$Action(controller.callContext(eventHandlerContext)); ; } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, name: "SearchModal", alias: "1" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { content: new PlaceholderContent(function () { return [React.createElement(Portal_EP_Common_Section_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "1", alias: "2" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { title: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Expression, { value: model.getCachedValue(idService.getId("OoRsRAQ4hEmzLIa1GJfa4Q.Value"), function () { return MultiLingualController.default.getTranslation$Action("myoutboundshipment-general-search", "Search", callContext).translationOut; }), _idProps: { service: idService, uuid: "2" }, _widgetRecordProvider: widgetsRecordProvider })]; }), content: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "header-top", visible: true, _idProps: { service: idService, name: "ContainerSearch" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OutSystemsUI_Adaptive_ColumnsSmallRight_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "4", alias: "3" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Input, { _validationProps: { validationService: validationService }, enabled: true, gridProperties: { classes: "OSFillParent" }, inputType: /*Search*/ 8, mandatory: false, maxLength: 50, style: "form-control", variable: model.createVariable(OS.Types.Text, model.variables.searchTextVar, function (value) { model.variables.searchTextVar = value; }), _idProps: { service: idService, name: "SearchInput2" }, _widgetRecordProvider: widgetsRecordProvider })]; }), column2: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Button, { enabled: true, gridProperties: { classes: "OSFillParent" }, isDefault: false, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.performSearch$Action(controller.callContext(eventHandlerContext)); }); ; }, style: "btn btn-primary", visible: true, _idProps: { service: idService, uuid: "6" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "myoutboundshipment-general-search" }, text: ["Search"], _idProps: { service: idService, uuid: "7" }, _widgetRecordProvider: widgetsRecordProvider }))]; }) }, _dependencies: [asPrimitiveValue(model.variables.searchTextVar)] })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, visible: ((!(model.variables.fetchSearchResultsDataAct.everythingElseOut.isEmpty) || !(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.isEmpty)) && ((model.variables.searchTextVar) !== (""))), _idProps: { service: idService, uuid: "8" }, _widgetRecordProvider: widgetsRecordProvider, visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) }, React.createElement(OSWidgets.Expression, { value: model.getCachedValue(idService.getId("7PQKN_dwfEa2QXncwCNG9g.Value"), function () { return MultiLingualController.default.getTranslation$Action("general-searchresults-somepages", "Here are some pages that match your search", callContext).translationOut; }), _idProps: { service: idService, uuid: "9" }, _widgetRecordProvider: widgetsRecordProvider })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, visible: ((!(model.variables.fetchSearchResultsDataAct.everythingElseOut.isEmpty) || !(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.isEmpty)) && ((model.variables.searchTextVar) !== (""))), _idProps: { service: idService, name: "ResultsContainer" }, _widgetRecordProvider: widgetsRecordProvider, visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) }, React.createElement(OSWidgets.List, { animateItems: true, gridProperties: { classes: "OSFillParent" }, mode: /*Default*/ 0, source: model.variables.fetchSearchResultsDataAct.everythingElseOut, style: "list list-group", tag: "div", _idProps: { service: idService, uuid: "11" }, _widgetRecordProvider: widgetsRecordProvider, source_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), placeholders: { content: new IteratorPlaceholderContent(function (idService, callContext) { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "margin-bottom-s", visible: true, _idProps: { service: idService, uuid: "12" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).summaryAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).titleAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).uRLAttr)] }, React.createElement(OSWidgets.Link, { enabled: true, transition: OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Fade), url: OS.Navigation.generateScreenURL(model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).uRLAttr, {}), visible: true, _idProps: { service: idService, uuid: "13" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "border-style: solid; border-width: 0px; padding:5px; background-color: #fff" }, visible: true, _idProps: { service: idService, uuid: "14" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Expression, { style: "heading6", value: model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).titleAttr, _idProps: { service: idService, uuid: "15" }, _widgetRecordProvider: widgetsRecordProvider, value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) }), React.createElement(Portal_EP_Common_Tagline_mvc_view, { inputs: { HasBottomMargin: false }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "16", alias: "4" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { tagline: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Expression, { style: "text-neutral-6", value: model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).summaryAttr, _idProps: { service: idService, uuid: "17" }, _widgetRecordProvider: widgetsRecordProvider, value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) })]; }) }, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut.getCurrent(callContext.iterationContext).summaryAttr)] }))))]; }, callContext, idService, "1") }, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr)] }), $if(!(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.isEmpty), true, this, function () { return [React.createElement(OutSystemsUI_Adaptive_ColumnsMediumLeft_mvc_view, { inputs: { ExtendedClass: "margin-bottom-m margin-top-m" }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "18", alias: "5" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OutSystemsUI_Utilities_AlignCenter_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "19", alias: "6" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { content: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "news-sidebar-news" }, style: "heading2", text: ["News"], _idProps: { service: idService, uuid: "20" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] })]; }), column2: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Link, { enabled: true, extendedProperties: { style: "height: auto; margin-top: 0px;" }, gridProperties: { classes: "OSFillParent" }, transition: OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), url: OS.Navigation.generateScreenURL("/Portal/News", { locale: model.variables.inputLocaleIn }), visible: true, _idProps: { service: idService, uuid: "21" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "text-align: right;" }, visible: true, _idProps: { service: idService, uuid: "22" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-latestnews-gotonewspage" }, style: "NewsLink", text: ["Go to our news page"], _idProps: { service: idService, uuid: "23" }, _widgetRecordProvider: widgetsRecordProvider }), $if((model.variables.inputLocaleIn === "en-us"), false, this, function () { return [React.createElement(OSWidgets.Icon, { extendedProperties: { style: "font-size: 14px; height: auto; padding: 10px;" }, icon: "long-arrow-right", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "24" }, _widgetRecordProvider: widgetsRecordProvider })]; }, function () { return [React.createElement(OSWidgets.Icon, { extendedProperties: { style: "font-size: 14px; height: auto; padding: 10px;" }, icon: "long-arrow-left", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "25" }, _widgetRecordProvider: widgetsRecordProvider })]; })))]; }) }, _dependencies: [asPrimitiveValue(model.variables._inputLocaleInDataFetchStatus), asPrimitiveValue(model.variables.inputLocaleIn)] }), React.createElement(OSWidgets.List, { animateItems: true, gridProperties: { classes: "OSFillParent" }, mode: /*Default*/ 0, source: model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut, style: "list list-group", tag: "div", _idProps: { service: idService, uuid: "26" }, _widgetRecordProvider: widgetsRecordProvider, source_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), placeholders: { content: new IteratorPlaceholderContent(function (idService, callContext) { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, visible: true, _idProps: { service: idService, uuid: "27" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).summaryAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).titleAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).uRLAttr)] }, React.createElement(OSWidgets.Link, { enabled: true, transition: OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Fade), url: OS.Navigation.generateScreenURL(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).uRLAttr, {}), visible: true, _idProps: { service: idService, uuid: "28" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "border-style: solid; border-width: 0px; padding:5px; background-color: #fff" }, visible: true, _idProps: { service: idService, uuid: "29" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Expression, { style: "heading6", value: model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).titleAttr, _idProps: { service: idService, uuid: "30" }, _widgetRecordProvider: widgetsRecordProvider, value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) }), React.createElement(Portal_EP_Common_Tagline_mvc_view, { inputs: { HasBottomMargin: false }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "31", alias: "7" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { tagline: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Expression, { style: "text-neutral-6", value: model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).summaryAttr, _idProps: { service: idService, uuid: "32" }, _widgetRecordProvider: widgetsRecordProvider, value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) })]; }) }, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.getCurrent(callContext.iterationContext).summaryAttr)] }))), React.createElement(OutSystemsUI_Utilities_Separator_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "33", alias: "8" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] }))]; }, callContext, idService, "2") }, _dependencies: [asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr)] })]; }, function () { return []; })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: true, extendedProperties: { style: "margin-top:20px" }, visible: ((model.variables.fetchSearchResultsDataAct.isDataFetchedAttr && model.variables.fetchSearchResultsDataAct.everythingElseOut.isEmpty) && model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut.isEmpty), _idProps: { service: idService, uuid: "34" }, _widgetRecordProvider: widgetsRecordProvider, visible_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr) }, React.createElement(OSWidgets.Expression, { value: model.getCachedValue(idService.getId("ChMLK2jvZ0GVcHS4GKA_nA.Value"), function () { return MultiLingualController.default.getTranslation$Action("general-searchresults-nocontent", "No content found.", callContext).translationOut; }), _idProps: { service: idService, uuid: "35" }, _widgetRecordProvider: widgetsRecordProvider }))]; }) }, _dependencies: [asPrimitiveValue(model.variables.inputLocaleIn), asPrimitiveValue(model.variables._inputLocaleInDataFetchStatus), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.isDataFetchedAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut), asPrimitiveValue(model.variables.searchTextVar)] })]; }) }, _dependencies: [asPrimitiveValue(model.variables.inputLocaleIn), asPrimitiveValue(model.variables._inputLocaleInDataFetchStatus), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.isDataFetchedAttr), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut), asPrimitiveValue(model.variables.fetchSearchResultsDataAct.everythingElseOut), asPrimitiveValue(model.variables.searchTextVar)] }), React.createElement(OutSystemsUI_Adaptive_DisplayOnDevice_mvc_view, { inputs: {}, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "36", alias: "9" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { onDesktop: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "LoginInfo", visible: true, _idProps: { service: idService, uuid: "37" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, gridProperties: { marginLeft: "var(--space-m)" }, style: "Group Languages margin-left-s margin-right-s", visible: true, _idProps: { service: idService, name: "Languages" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.setLocale$Action(controller.callContext(eventHandlerContext)); }); ; }, visible: true, _idProps: { service: idService, uuid: "39" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Expression, { extendedProperties: { style: "color: #fff;" }, style: "heading7 margin-left-s", value: model.getCachedValue(idService.getId("dQAJw3J+4EOOhkcdPSu2Lw.Value"), function () { return (((model.variables.inputLocaleIn === model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.idAttr)) ? (model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.displayLabelAttr) : (model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.labelAttr)); }, function () { return model.variables.inputLocaleIn; }, function () { return model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.idAttr; }, function () { return model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.displayLabelAttr; }, function () { return model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.labelAttr; }), _idProps: { service: idService, uuid: "40" }, _widgetRecordProvider: widgetsRecordProvider, value_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._inputLocaleInDataFetchStatus, model.variables.getLocalesAggr.dataFetchStatusAttr) }))), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Group", visible: true, _idProps: { service: idService, name: "Search" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.search$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "42" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "search", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "43" }, _widgetRecordProvider: widgetsRecordProvider }))), React.createElement(OSWidgets.Popover, { extendedEvents: { onClick: function () { var eventHandlerContext = callContext.clone(); controller.toggleAccessibility$Action(controller.callContext(eventHandlerContext)); ; } }, popoverWidth: 360, style: "popover ", _idProps: { service: idService, uuid: "44" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { topContent: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Group", visible: true, _idProps: { service: idService, uuid: "45" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedProperties: { style: "padding: 10px;" }, icon: "gear", iconSize: /*Twotimes*/ 1, style: "icon text-white", visible: true, _idProps: { service: idService, uuid: "46" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), bottomContent: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "font-size: 18px; height: auto;" }, gridProperties: { classes: "OSInline", width: "319px" }, style: "font-semi-bold", visible: true, _idProps: { service: idService, uuid: "47" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Label, { gridProperties: { classes: "OSFillParent" }, _idProps: { service: idService, uuid: "48" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "accessibility-accessibility-title" }, style: "non-dynamic-text", text: ["Accessibility Options"], _idProps: { service: idService, uuid: "49" }, _widgetRecordProvider: widgetsRecordProvider })), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "border-color: #d5d8db; border-style: none none solid none; border-width: 0px 0px 1px 0px; padding: 0px 0px 20px 0px;" }, visible: true, _idProps: { service: idService, uuid: "50" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OutSystemsUI_Adaptive_Columns3_mvc_view, { inputs: { GutterSize: PortalModel.staticEntities.gutterSize.small }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "51", alias: "10" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Button, { enabled: true, gridProperties: { classes: "OSFillParent", marginLeft: "0px" }, isDefault: false, onClick: function () { var eventHandlerContext = callContext.clone(); controller.changeFontSize$Action(false, controller.callContext(eventHandlerContext)); ; }, style: "btn btn-muted", visible: true, _idProps: { service: idService, uuid: "52" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { style: "non-dynamic-text", text: ["A -"], _idProps: { service: idService, uuid: "53" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), column2: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Button, { enabled: true, gridProperties: { classes: "OSFillParent" }, isDefault: false, onClick: function () { var eventHandlerContext = callContext.clone(); controller.changeFontSize$Action(true, controller.callContext(eventHandlerContext)); ; }, style: "btn btn-muted", visible: true, _idProps: { service: idService, uuid: "54" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { style: "border-width: 0px;" }, style: "non-dynamic-text", text: ["A +"], _idProps: { service: idService, uuid: "55" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), column3: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Button, { enabled: true, gridProperties: { classes: "OSFillParent" }, isDefault: false, onClick: function () { var eventHandlerContext = callContext.clone(); controller.toggleContrastMode$Action(false, controller.callContext(eventHandlerContext)); ; }, style: model.getCachedValue(idService.getId("2Bc66aMZLUqqWyXQz3T7WA.Style"), function () { return ((PortalClientVariables.getUser_ContrastMode()) ? ("btn btn-primary") : ("btn btn-muted")); }, function () { return PortalClientVariables.getUser_ContrastMode(); }), visible: true, _idProps: { service: idService, uuid: "56" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedProperties: { style: "color: #d5d8db; padding: 7px; width: Fill;" }, icon: "adjust", iconSize: /*Twotimes*/ 1, style: "icon text-neutral-6 ", visible: true, _idProps: { service: idService, uuid: "57" }, _widgetRecordProvider: widgetsRecordProvider }))]; }) }, _dependencies: [asPrimitiveValue(PortalClientVariables.getUser_ContrastMode())] })), $if(true, false, this, function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "border-color: #d5d8db; border-style: none none solid none; border-width: 0px 0px 1px 0px; padding: 20px 0px 20px 0px;" }, visible: true, _idProps: { service: idService, uuid: "58" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OutSystemsUI_Adaptive_Columns3_mvc_view, { inputs: { GutterSize: PortalModel.staticEntities.gutterSize.small }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "59", alias: "11" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { column1: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Label, { extendedProperties: { style: "align-text-center: ; display: flex; font-size: 16px;" }, _idProps: { service: idService, uuid: "60" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "accessibility-accessibility-lbllisten", style: "font-size: 16px;" }, style: "non-dynamic-text", text: ["Listen to Page"], _idProps: { service: idService, uuid: "61" }, _widgetRecordProvider: widgetsRecordProvider }))]; }), column2: PlaceholderContent.Empty, column3: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Button, { enabled: true, gridProperties: { classes: "OSFillParent" }, isDefault: false, onClick: function () { var eventHandlerContext = callContext.clone(); controller.runReadpage$Action(idService.getId("ReadSpeakerDiv"), controller.callContext(eventHandlerContext)); ; }, style: "btn btn-muted", visible: true, _idProps: { service: idService, uuid: "62" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedProperties: { style: "color: #d5d8db; padding: 7px; width: Fill;" }, icon: "bullhorn", iconSize: /*Twotimes*/ 1, style: "icon text-neutral-6", visible: true, _idProps: { service: idService, uuid: "63" }, _widgetRecordProvider: widgetsRecordProvider }))]; }) }, _dependencies: [] }), React.createElement(OSWidgets.AdvancedHtml, { extendedProperties: { className: "rs_addtools rs_splitbutton rs_preserve rs_skip rs_exp" }, tag: "div", _idProps: { service: idService, name: "ReadSpeakerDiv" }, _widgetRecordProvider: widgetsRecordProvider }))]; }, function () { return []; }), React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "text-align: center;" }, visible: true, _idProps: { service: idService, uuid: "65" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.resetDefaults$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "66" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "accessibility-accessibility-actionlinkreset", style: "font-size: 16px;" }, style: "non-dynamic-text", text: ["Reset all Settings"], _idProps: { service: idService, uuid: "67" }, _widgetRecordProvider: widgetsRecordProvider }))))]; }) } }), $if((model.variables.fetchRolesDataAct.isDataFetchedAttr && !(model.variables.isLoginScreenIn)), false, this, function () { return [$if((model.variables.isNotCareersIn === true), false, this, function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "Group", visible: true, _idProps: { service: idService, name: "Cart" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, extendedProperties: { style: "padding-right: var(--space-s);" }, onClick: function () { var eventHandlerContext = callContext.clone(); controller.handleCartClick$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "69" }, _widgetRecordProvider: widgetsRecordProvider }, $if(((PortalClientVariables.getUser_CartItemQuantity()) !== (0)), false, this, function () { return [React.createElement(OutSystemsUI_Numbers_IconBadge_mvc_view, { inputs: { Number: model.getCachedValue(idService.getId("erLh0cIKRUKm9J8CngcSaw.Number"), function () { return OS.BuiltinFunctions.textToLongInteger(OS.BuiltinFunctions.integerToText(PortalClientVariables.getUser_CartItemQuantity())); }, function () { return PortalClientVariables.getUser_CartItemQuantity(); }), IsLight: true }, events: { _handleError: function (ex) { controller.handleError(ex); } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "70", alias: "12" }, _widgetRecordProvider: widgetsRecordProvider, placeholders: { icon: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Icon, { icon: "shopping-cart", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "71" }, _widgetRecordProvider: widgetsRecordProvider })]; }) }, _dependencies: [] })]; }, function () { return [React.createElement(OSWidgets.Icon, { icon: "shopping-cart", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "72" }, _widgetRecordProvider: widgetsRecordProvider })]; })))]; }, function () { return []; }), $if(((((model.variables.isNotCareersIn && ((PortalClientVariables.getUser_SessionToken()) !== (""))) && ((PortalClientVariables.getUser_Username()) !== (""))) && !(model.variables.fetchRolesDataAct.isUserCandidateOut)) || (((!(model.variables.isNotCareersIn) && ((PortalClientVariables.getUser_SessionToken()) !== (""))) && ((PortalClientVariables.getUser_Username()) !== (""))) && model.variables.fetchRolesDataAct.isUserCandidateOut)), false, this, function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "LoggedIn Group", visible: true, _idProps: { service: idService, name: "LoggedIn" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.decideLandingPage$Action(controller.callContext(eventHandlerContext)); ; }, visible: true, _idProps: { service: idService, uuid: "74" }, _widgetRecordProvider: widgetsRecordProvider }, $if(((PortalClientVariables.getUser_FirstName()) !== ("")), false, this, function () { return [React.createElement(OSWidgets.Expression, { style: "heading7 text-neutral-0", value: PortalClientVariables.getUser_FirstName(), _idProps: { service: idService, name: "LoggedInUsername" }, _widgetRecordProvider: widgetsRecordProvider })]; }, function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "display: flex;" }, visible: true, _idProps: { service: idService, uuid: "76" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "user", iconSize: /*Twotimes*/ 1, style: "icon margin-left-s margin-right-s", visible: true, _idProps: { service: idService, uuid: "77" }, _widgetRecordProvider: widgetsRecordProvider }))]; })), React.createElement(OSWidgets.Link, { enabled: true, gridProperties: { classes: "ThemeGrid_MarginGutter" }, onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.logoutUser$Action(controller.callContext(eventHandlerContext)); }); ; }, style: "LoginLink Group", visible: true, _idProps: { service: idService, uuid: "78" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "sign-out", iconSize: /*Twotimes*/ 1, style: "icon margin-right-s", visible: true, _idProps: { service: idService, uuid: "79" }, _widgetRecordProvider: widgetsRecordProvider }), React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "logininfo-logout-logout" }, style: "heading7 text-neutral-0", text: ["Logout"], _idProps: { service: idService, uuid: "80" }, _widgetRecordProvider: widgetsRecordProvider })))]; }, function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, style: "LoggedOut Group", visible: true, _idProps: { service: idService, name: "LoggedOut" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Link, { enabled: true, onClick: function () { var eventHandlerContext = callContext.clone(); controller.toggleModal$Action(controller.callContext(eventHandlerContext)); ; }, style: "LoginLink", visible: true, _idProps: { service: idService, uuid: "82" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { icon: "user", iconSize: /*Twotimes*/ 1, style: "icon margin-left-s margin-right-s", visible: true, _idProps: { service: idService, uuid: "83" }, _widgetRecordProvider: widgetsRecordProvider }), React.createElement(OSWidgets.Text, { extendedProperties: { "data-trans": "home-top-nav-login" }, style: "heading7 text-neutral-0", text: ["Login"], _idProps: { service: idService, uuid: "84" }, _widgetRecordProvider: widgetsRecordProvider })))]; })]; }, function () { return []; }))]; }), onTablet: PlaceholderContent.Empty, onPhone: new PlaceholderContent(function () { return [React.createElement(OSWidgets.Container, { align: /*Default*/ 0, animate: false, extendedProperties: { style: "display: flex;" }, visible: true, _idProps: { service: idService, uuid: "85" }, _widgetRecordProvider: widgetsRecordProvider }, React.createElement(OSWidgets.Icon, { extendedEvents: { onClick: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.sidebarOnToggle$Action(controller.callContext(eventHandlerContext)); }); ; } }, extendedProperties: { style: "color: #fff;" }, icon: "navicon", iconSize: /*Twotimes*/ 1, style: "icon", visible: true, _idProps: { service: idService, uuid: "86" }, _widgetRecordProvider: widgetsRecordProvider }))]; }) }, _dependencies: [asPrimitiveValue(PortalClientVariables.getUser_FirstName()), asPrimitiveValue(PortalClientVariables.getUser_Username()), asPrimitiveValue(PortalClientVariables.getUser_SessionToken()), asPrimitiveValue(PortalClientVariables.getUser_CartItemQuantity()), asPrimitiveValue(model.variables.isNotCareersIn), asPrimitiveValue(model.variables.isLoginScreenIn), asPrimitiveValue(model.variables.fetchRolesDataAct.isUserCandidateOut), asPrimitiveValue(model.variables.fetchRolesDataAct.isDataFetchedAttr), asPrimitiveValue(PortalClientVariables.getUser_ContrastMode()), asPrimitiveValue(model.variables.fetchRolesDataAct.dataFetchStatusAttr), asPrimitiveValue(model.variables._isNotCareersInDataFetchStatus), asPrimitiveValue(model.variables._isLoginScreenInDataFetchStatus), asPrimitiveValue(model.variables.getLocalesAggr.dataFetchStatusAttr), asPrimitiveValue(model.variables._inputLocaleInDataFetchStatus), asPrimitiveValue(model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.labelAttr), asPrimitiveValue(model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.displayLabelAttr), asPrimitiveValue(model.variables.getLocalesAggr.listOut.getCurrent(callContext.iterationContext).localeAttr.idAttr), asPrimitiveValue(model.variables.inputLocaleIn)] }), $if(model.variables.isNotCareersIn, false, this, function () { return [React.createElement(Portal_EP_Common_LoginModal_mvc_view, { inputs: { locale: model.variables.inputLocaleIn, _localeInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._inputLocaleInDataFetchStatus), ShowModal: model.variables.showModalVar }, events: { _handleError: function (ex) { controller.handleError(ex); }, requestCloseLoginModal$Action: function () { var eventHandlerContext = callContext.clone(); controller.toggleModal$Action(controller.callContext(eventHandlerContext)); ; }, userLoggedIn$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.handleUserLoggedIn$Action(controller.callContext(eventHandlerContext)); }); ; } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, name: "LoginModal", alias: "13" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })]; }, function () { return [React.createElement(Portal_Careers_CareerLoginModal_mvc_view, { inputs: { ShowModal: model.variables.showModalVar, locale: model.variables.inputLocaleIn, _localeInDataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._inputLocaleInDataFetchStatus) }, events: { _handleError: function (ex) { controller.handleError(ex); }, userLoggedIn$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.handleUserLoggedIn$Action(controller.callContext(eventHandlerContext)); }); ; }, requestCloseLoginModal$Action: function () { var eventHandlerContext = callContext.clone(); controller.toggleModal$Action(controller.callContext(eventHandlerContext)); ; } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "88", alias: "14" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })]; }), React.createElement(Portal_EP_Common_ConfirmationDialog_mvc_view, { inputs: { Title: model.getCachedValue(idService.getId("RcNvK79bZUe5uMbpvtxDVg.Title"), function () { return MultiLingualController.default.getTranslation$Action("marwan-rewrites-14-0", "Session Expiry", callContext).translationOut; }), CancelButtonLabel: model.getCachedValue(idService.getId("RcNvK79bZUe5uMbpvtxDVg.CancelButtonLabel"), function () { return MultiLingualController.default.getTranslation$Action("logininfo-logout-logout", "Logout", callContext).translationOut; }), Text: model.getCachedValue(idService.getId("RcNvK79bZUe5uMbpvtxDVg.Text"), function () { return MultiLingualController.default.getTranslation$Action("marwan-rewrites-15-0", "Your session will expire in 5 minutes. Please click \'Renew\' if you wish to continue.", callContext).translationOut; }), IsSubmitLoading: model.variables.isSessionRenewingVar, ShouldShow: model.variables.showSessionTimeOutVar, ConfirmButtonLabel: model.getCachedValue(idService.getId("RcNvK79bZUe5uMbpvtxDVg.ConfirmButtonLabel"), function () { return (((((MultiLingualController.default.getTranslation$Action("marwan-rewrites-16-0", "Renew", callContext).translationOut + " (") + (model.variables.sessionRenewCounterVar).toString()) + " ") + MultiLingualController.default.getTranslation$Action("createaccount-verify-seconds", "Seconds", callContext).translationOut) + ")"); }, function () { return model.variables.sessionRenewCounterVar; }) }, events: { _handleError: function (ex) { controller.handleError(ex); }, confirmButtonClicked$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.renewSessionClick$Action(controller.callContext(eventHandlerContext)); }); ; }, cancelButtonClicked$Action: function () { return Promise.resolve().then(function () { var eventHandlerContext = callContext.clone(); controller.cancelSessionRenewalClick$Action(controller.callContext(eventHandlerContext)); }); ; } }, _validationProps: { validationService: validationService }, _idProps: { service: idService, uuid: "89", alias: "15" }, _widgetRecordProvider: widgetsRecordProvider, _dependencies: [] })); }; return View; })(OSView.BaseView.BaseWebBlock); return View; }); define("Portal.EP_Common.LoginInfo.mvc$controller", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "MultiLingual.controller", "Portal.languageResources", "Portal.clientVariables", "Portal.EP_Common.LoginInfo.mvc$controller.OnDestroy.JavaScript1JS", "Portal.EP_Common.LoginInfo.mvc$controller.RenewSessionClick.JavaScript1JS", "Portal.EP_Common.LoginInfo.mvc$controller.RunReadpage.readpageJS", "Portal.EP_Common.LoginInfo.mvc$controller.CheckSessionValidity.JavaScript1JS", "Portal.EP_Common.LoginInfo.mvc$controller.OnInitialize.GetAndEncodeURLJS", "Portal.EP_Common.LoginInfo.mvc$controller.ChangeFontSize.SetFontSizeJS", "Portal.EP_Common.LoginInfo.mvc$controller.ToggleContrastMode.ToggleHighContrastJS", "Portal.EP_Common.LoginInfo.mvc$controller.ShowSessionTimeout.JavaScript1JS", "Portal.EP_Common.LoginInfo.mvc$controller.ResetDefaults.SetFontSizeJS", "MultiLingual.controller$GetTranslation", "Portal.referencesHealth", "Portal.referencesHealth$MultiLingual", "Portal.controller$SetClientLocale", "Portal.controller$UserLogout", "Portal.controller$GetClientLocale", "Portal.model$GetNewAccessTokenRequestRec", "Portal.model$GetNewAccessTokenResponseRec", "Portal.model$SearchPageStructList", "Portal.model$Locale2RecordList"], function (OutSystems, PortalModel, PortalController, MultiLingualController, PortalLanguageResources, PortalClientVariables, Portal_EP_Common_LoginInfo_mvc_controller_OnDestroy_JavaScript1JS, Portal_EP_Common_LoginInfo_mvc_controller_RenewSessionClick_JavaScript1JS, Portal_EP_Common_LoginInfo_mvc_controller_RunReadpage_readpageJS, Portal_EP_Common_LoginInfo_mvc_controller_CheckSessionValidity_JavaScript1JS, Portal_EP_Common_LoginInfo_mvc_controller_OnInitialize_GetAndEncodeURLJS, Portal_EP_Common_LoginInfo_mvc_controller_ChangeFontSize_SetFontSizeJS, Portal_EP_Common_LoginInfo_mvc_controller_ToggleContrastMode_ToggleHighContrastJS, Portal_EP_Common_LoginInfo_mvc_controller_ShowSessionTimeout_JavaScript1JS, Portal_EP_Common_LoginInfo_mvc_controller_ResetDefaults_SetFontSizeJS) { var OS = OutSystems.Internal; var Controller = (function (_super) { __extends(Controller, _super); function Controller() { _super.apply(this, arguments); var controller = this.controller; this.clientActionProxies = { setTimerId$Action: function (inTimerIn) { inTimerIn = (inTimerIn === undefined) ? "" : inTimerIn; return controller.executeActionInsideJSNode(controller._setTimerId$Action.bind(controller, OS.DataConversion.JSNodeParamConverter.from(inTimerIn, OS.Types.Text)), controller.callContext(), function (actionResults) { return {}; }); }, showSessionTimeout$Action: function () { return controller.executeActionInsideJSNode(controller._showSessionTimeout$Action.bind(controller), controller.callContext(), function (actionResults) { return {}; }); }, setCounterId$Action: function (inCounterIn) { inCounterIn = (inCounterIn === undefined) ? "" : inCounterIn; return controller.executeActionInsideJSNode(controller._setCounterId$Action.bind(controller, OS.DataConversion.JSNodeParamConverter.from(inCounterIn, OS.Types.Text)), controller.callContext(), function (actionResults) { return {}; }); }, setSessionCounter$Action: function (sessionCounterIn) { sessionCounterIn = (sessionCounterIn === undefined) ? 0 : sessionCounterIn; return controller.executeActionInsideJSNode(controller._setSessionCounter$Action.bind(controller, OS.DataConversion.JSNodeParamConverter.from(sessionCounterIn, OS.Types.Integer)), controller.callContext(), function (actionResults) { return {}; }); } }; this.dataFetchDependenciesOriginal = { getLocales$AggrRefresh: 0, fetchReadSpeakerConfig$DataActRefresh: 0, fetchRoles$DataActRefresh: 0, fetchSearchResults$DataActRefresh: -1 }; this.dataFetchDependentsGraph = { getLocales$AggrRefresh: [], fetchReadSpeakerConfig$DataActRefresh: [], fetchRoles$DataActRefresh: [], fetchSearchResults$DataActRefresh: [] }; this.useImprovedDataFetch = true; this.hasDependenciesBetweenSources = false; this.shouldSendClientVarsToDataSources = false; } // Server Actions Controller.prototype.checkSessionTokenValidity$ServerAction = function (sessionTokenIn, callContext) { var controller = this.controller; var inputs = { SessionToken: OS.DataConversion.ServerDataConverter.to(sessionTokenIn, OS.Types.Text) }; return controller.callServerAction("CheckSessionTokenValidity", "screenservices/Portal/EP_Common/LoginInfo/ActionCheckSessionTokenValidity", "fcNzMtlq5_33UMvapYSxwQ", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo$ActionCheckSessionTokenValidity"))(); executeServerActionResult.isValidOut = OS.DataConversion.ServerDataConverter.from(outputs.IsValid, OS.Types.Boolean); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo$ActionCheckSessionTokenValidity", [{ name: "IsValid", attrName: "isValidOut", mandatory: false, dataType: OS.Types.Boolean, defaultValue: function () { return false; } }]); Controller.prototype.getSessionTimeoutMinutes$ServerAction = function (callContext) { var controller = this.controller; return controller.callServerAction("GetSessionTimeoutMinutes", "screenservices/Portal/EP_Common/LoginInfo/ActionGetSessionTimeoutMinutes", "UZi+QRDflROISkuVECxpvg", {}, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo$ActionGetSessionTimeoutMinutes"))(); executeServerActionResult.outTimeoutMinsOut = OS.DataConversion.ServerDataConverter.from(outputs.OutTimeoutMins, OS.Types.Integer); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo$ActionGetSessionTimeoutMinutes", [{ name: "OutTimeoutMins", attrName: "outTimeoutMinsOut", mandatory: false, dataType: OS.Types.Integer, defaultValue: function () { return 0; } }]); Controller.prototype.getNewAccessToken$ServerAction = function (getNewAccessTokenRequestIn, callContext) { var controller = this.controller; var inputs = { GetNewAccessTokenRequest: OS.DataConversion.ServerDataConverter.to(getNewAccessTokenRequestIn, OS.Types.Record) }; return controller.callServerAction("GetNewAccessToken", "screenservices/Portal/EP_Common/LoginInfo/ActionGetNewAccessToken", "Py2LATsf6AGyv8OfoPlElw", inputs, controller.callContext(callContext)).then(function (outputs) { var executeServerActionResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo$ActionGetNewAccessToken"))(); executeServerActionResult.responseOut = OS.DataConversion.ServerDataConverter.from(outputs.Response, PortalModel.GetNewAccessTokenResponseRec); return executeServerActionResult; }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo$ActionGetNewAccessToken", [{ name: "Response", attrName: "responseOut", mandatory: false, dataType: OS.Types.Record, defaultValue: function () { return new PortalModel.GetNewAccessTokenResponseRec(); }, complexType: PortalModel.GetNewAccessTokenResponseRec }]); // Aggregates and Data Actions Controller.prototype.getLocales$AggrRefresh = function (maxRecords, startIndex, callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callAggregateWithStartIndexAndClientVars("ScreenDataSetGetLocales", "screenservices/Portal/EP_Common/LoginInfo/ScreenDataSetGetLocales", "ygCPplWtrPwHFyqWm6lI9Q", maxRecords, startIndex, function (b) { model.variables.getLocalesAggr.dataFetchStatusAttr = b; }, function (json) { model.variables.getLocalesAggr.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.getLocalesAggr.constructor)); }, undefined, undefined, undefined, callContext); }; Controller.prototype.fetchReadSpeakerConfig$DataActRefresh = function (callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callDataAction("DataActionFetchReadSpeakerConfig", "screenservices/Portal/EP_Common/LoginInfo/DataActionFetchReadSpeakerConfig", "nnSuFdFlHODbaUaXddyKIQ", function (b) { model.variables.fetchReadSpeakerConfigDataAct.dataFetchStatusAttr = b; }, function (json) { model.variables.fetchReadSpeakerConfigDataAct.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.fetchReadSpeakerConfigDataAct.constructor)); }, undefined, undefined, undefined, callContext); }; Controller.prototype.fetchRoles$DataActRefresh = function (callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callDataAction("DataActionFetchRoles", "screenservices/Portal/EP_Common/LoginInfo/DataActionFetchRoles", "fN3a6sETpA3p8AgOVRLGbQ", function (b) { model.variables.fetchRolesDataAct.dataFetchStatusAttr = b; }, function (json) { model.variables.fetchRolesDataAct.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.fetchRolesDataAct.constructor)); }, undefined, undefined, undefined, callContext).then(function () { return controller._onAfterRolesFetch$Action(controller.callContext(callContext)); }); }; Controller.prototype.fetchSearchResults$DataActRefresh = function (callContext) { var model = this.model; var controller = this.controller; var callContext = controller.callContext(callContext); return controller.callDataAction("DataActionFetchSearchResults", "screenservices/Portal/EP_Common/LoginInfo/DataActionFetchSearchResults", "3xtZNEfBWHsC_7IUk7v51A", function (b) { model.variables.fetchSearchResultsDataAct.dataFetchStatusAttr = b; }, function (json) { model.variables.fetchSearchResultsDataAct.replaceWith(OS.DataConversion.ServerDataConverter.from(json, model.variables.fetchSearchResultsDataAct.constructor)); }, undefined, undefined, undefined, callContext); }; Controller.prototype.dataFetchActionNames = ["getLocales$AggrRefresh", "fetchReadSpeakerConfig$DataActRefresh", "fetchRoles$DataActRefresh", "fetchSearchResults$DataActRefresh"]; // Client Actions Controller.prototype._setLocale$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SetLocale"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.SetLocale$vars"))()); return OS.Flow.executeAsyncFlow(function () { if(((model.variables.inputLocaleIn === "ar-sa"))) { // Locale = "en-us" vars.value.localeVar = "en-us"; } else { if((model.variables.inputLocaleIn === "en-us")) { // Locale = "ar-sa" vars.value.localeVar = "ar-sa"; } else { // Locale = DefaultLocale vars.value.localeVar = PortalClientVariables.getDefaultLocale(); } } // Execute Action: SetClientLocale model.flush(); return PortalController.default.setClientLocale$Action(vars.value.localeVar, callContext).then(function () { // Trigger Event: LocaleChanged return controller.localeChanged$Action(vars.value.localeVar, callContext); }); }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.SetLocale$vars", [{ name: "Locale", attrName: "localeVar", mandatory: false, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._handleCartClick$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("HandleCartClick"); callContext = controller.callContext(callContext); // User logged in if(((((PortalClientVariables.getUser_SessionToken()) !== ("")) && ((PortalClientVariables.getUser_Username()) !== (""))))) { // Destination: /Portal/Cart return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Cart", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); } else { // ShouldProceedToCart = True model.variables.shouldProceedToCartVar = true; // Execute Action: ToggleModal controller._toggleModal$Action(callContext); } }; Controller.prototype._performSearch$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("PerformSearch"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Refresh Query: FetchSearchResults var result = controller.fetchSearchResults$DataActRefresh(callContext); model.flush(); return result; }); }; Controller.prototype._toggleModal$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ToggleModal"); callContext = controller.callContext(callContext); // ShowModal = notShowModal model.variables.showModalVar = !(model.variables.showModalVar); }; Controller.prototype._onDestroy$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("OnDestroy"); callContext = controller.callContext(callContext); controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_OnDestroy_JavaScript1JS, "JavaScript1", "OnDestroy", { VarTimer: OS.DataConversion.JSNodeParamConverter.to(model.variables.varTimerVar, OS.Types.Text), VarCounter: OS.DataConversion.JSNodeParamConverter.to(model.variables.varCounterVar, OS.Types.Text) }, function ($parameters) { }, {}, {}); }; Controller.prototype._handleUserLoggedIn$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("HandleUserLoggedIn"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { return OS.Flow.executeSequence(function () { if((model.variables.shouldProceedToCartVar)) { // ShouldProceedToCart = False model.variables.shouldProceedToCartVar = false; // Destination: /Portal/Cart return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Cart", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); } else { // Trigger Event: UserLoggedIn return controller.userLoggedIn$Action(callContext); } }); }); }; Controller.prototype._cancelSessionRenewalClick$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("CancelSessionRenewalClick"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Execute Action: OnDestroy controller._onDestroy$Action(callContext); // ShowSessionTimeOut = False model.variables.showSessionTimeOutVar = false; // Execute Action: UserLogout model.flush(); return PortalController.default.userLogout$Action(callContext).then(function () { OS.FeedbackMessageService.showFeedbackMessage((((model.variables.inputLocaleIn === "en-us")) ? ("You have been logged out!") : ("لقد تم تسجيل خروجك")), /*Info*/ 0); // Destination: /Portal/Home return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Home", { locale: PortalController.default.getClientLocale$Action(callContext).localeOut }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); }); }); }; Controller.prototype._toggleSearchModal$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ToggleSearchModal"); callContext = controller.callContext(callContext); // IsSearch = notIsSearch model.variables.isSearchVar = !(model.variables.isSearchVar); }; Controller.prototype._renewSessionClick$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("RenewSessionClick"); callContext = controller.callContext(callContext); var checkSessionTokenValidityVar = new OS.DataTypes.VariableHolder(); var getSessionTimeoutMinutesVar = new OS.DataTypes.VariableHolder(); var getNewAccessTokenVar = new OS.DataTypes.VariableHolder(); return OS.Flow.executeAsyncFlow(function () { controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_RenewSessionClick_JavaScript1JS, "JavaScript1", "RenewSessionClick", { VarCounter: OS.DataConversion.JSNodeParamConverter.to(model.variables.varCounterVar, OS.Types.Text) }, function ($parameters) { }, {}, {}); // IsSessionRenewing = True model.variables.isSessionRenewingVar = true; // Execute Action: CheckSessionTokenValidity model.flush(); return controller.checkSessionTokenValidity$ServerAction(model.variables.userSessionVar, callContext).then(function (value) { checkSessionTokenValidityVar.value = value; }).then(function () { // Check Session Validity return OS.Flow.executeSequence(function () { if((checkSessionTokenValidityVar.value.isValidOut)) { // Execute Action: GetNewAccessToken model.flush(); return controller.getNewAccessToken$ServerAction(function () { var rec = new PortalModel.GetNewAccessTokenRequestRec(); rec.accessTokenAttr = PortalClientVariables.getUser_SessionToken(); rec.refreshTokenAttr = PortalClientVariables.getUser_RefreshToken(); return rec; }(), callContext).then(function (value) { getNewAccessTokenVar.value = value; }).then(function () { return OS.Flow.executeSequence(function () { if((getNewAccessTokenVar.value.responseOut.response_codeAttr.equals(OS.BuiltinFunctions.integerToLongInteger(PortalModel.staticEntities.responseCode.oK)))) { // Execute Action: GetSessionTimeoutMinutes model.flush(); return controller.getSessionTimeoutMinutes$ServerAction(callContext).then(function (value) { getSessionTimeoutMinutesVar.value = value; }).then(function () { // User_SessionToken = GetNewAccessToken.Response.payload.newAccessToken PortalClientVariables.setUser_SessionToken(getNewAccessTokenVar.value.responseOut.payloadAttr.newAccessTokenAttr); // User_SessionExpiry = AddMinutes PortalClientVariables.setUser_SessionExpiry(OS.BuiltinFunctions.addMinutes(OS.BuiltinFunctions.currDateTime(), getSessionTimeoutMinutesVar.value.outTimeoutMinsOut)); // IsSessionRenewing = False model.variables.isSessionRenewingVar = false; // ShowSessionTimeOut = False model.variables.showSessionTimeOutVar = false; return OS.Flow.returnAsync(); }); } }); }); } }); }).then(function () { OS.FeedbackMessageService.showFeedbackMessage(MultiLingualController.default.getTranslation$Action("marwan-rewrites-39-0", "Your session has expired - please login again", callContext).translationOut, /*Warning*/ 2); // Execute Action: UserLogout2 model.flush(); return PortalController.default.userLogout$Action(callContext); }); }); }; Controller.prototype._runReadpage$Action = function (idIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("RunReadpage"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.RunReadpage$vars"))()); vars.value.idInLocal = idIn; controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_RunReadpage_readpageJS, "readpage", "RunReadpage", { locale: OS.DataConversion.JSNodeParamConverter.to(model.variables.inputLocaleIn, OS.Types.Text), Id: OS.DataConversion.JSNodeParamConverter.to(vars.value.idInLocal, OS.Types.Text) }, function ($parameters) { }, {}, {}); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.RunReadpage$vars", [{ name: "Id", attrName: "idInLocal", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._decideLandingPage$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("DecideLandingPage"); callContext = controller.callContext(callContext); // NotOnCareersPage if((!(model.variables.isNotCareersIn))) { // IsACandidate if((model.variables.fetchRolesDataAct.isUserCandidateOut)) { // Destination: /Portal/CandidateDetails return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/CandidateDetails", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); } } // HeadOfficeOrBlocked if(((model.variables.fetchRolesDataAct.isUserBlockedOut || model.variables.fetchRolesDataAct.isUserHeadOfficeOut))) { // Destination: /Portal/CorporateDashboard return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/CorporateDashboard", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); } else { if((model.variables.fetchRolesDataAct.isUserLECourtOut)) { // Destination: /Portal/MyLegalEnquiries return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/MyLegalEnquiries", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); } else { // Destination: /Portal/MyPOBoxes return OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/MyPOBoxes", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true); } } }; Controller.prototype._checkSessionValidity$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("CheckSessionValidity"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { return OS.Flow.executeSequence(function () { if((((PortalClientVariables.getUser_SessionToken()) !== ("")))) { // Execute Action: RenewSessionClick return controller._renewSessionClick$Action(callContext).then(function () { // SessionExpiryDT = If model.variables.sessionExpiryDTVar = ((PortalClientVariables.getUser_SessionExpiry().equals(OS.BuiltinFunctions.nullDate())) ? (OS.BuiltinFunctions.currDateTime()) : (OS.BuiltinFunctions.addMinutes(PortalClientVariables.getUser_SessionExpiry(), -5))); // SessionExpirySeconds = If model.variables.sessionExpirySecondsVar = ((PortalClientVariables.getUser_SessionExpiry().equals(OS.BuiltinFunctions.nullDate())) ? (0) : (OS.BuiltinFunctions.diffSeconds(OS.BuiltinFunctions.currDateTime(), model.variables.sessionExpiryDTVar))); }).then(function () { if(((model.variables.sessionExpirySecondsVar > 0))) { controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_CheckSessionValidity_JavaScript1JS, "JavaScript1", "CheckSessionValidity", { VarTimer: OS.DataConversion.JSNodeParamConverter.to(model.variables.varTimerVar, OS.Types.Text), SessionExpirySeconds: OS.DataConversion.JSNodeParamConverter.to(model.variables.sessionExpirySecondsVar, OS.Types.Integer) }, function ($parameters) { }, { SetTimerId: controller.clientActionProxies.setTimerId$Action, ShowSessionTimeout: controller.clientActionProxies.showSessionTimeout$Action }, {}); } else { // Destination: /Portal/Home return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Home", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); } }); } }); }); }; Controller.prototype._onReady$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("OnReady"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Execute Action: CheckSessionValidity return controller._checkSessionValidity$Action(callContext); }); }; 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); var getAndEncodeURLJSResult = new OS.DataTypes.VariableHolder(); return OS.Flow.executeAsyncFlow(function () { // Refresh Query: FetchReadSpeakerConfig var result = controller.fetchReadSpeakerConfig$DataActRefresh(callContext); model.flush(); return result.then(function () { getAndEncodeURLJSResult.value = controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_OnInitialize_GetAndEncodeURLJS, "GetAndEncodeURL", "OnInitialize", { EncodedURL: OS.DataConversion.JSNodeParamConverter.to("", OS.Types.Text) }, function ($parameters) { var jsNodeResult = new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.OnInitialize$getAndEncodeURLJSResult"))(); jsNodeResult.encodedURLOut = OS.DataConversion.JSNodeParamConverter.from($parameters.EncodedURL, OS.Types.Text); return jsNodeResult; }, {}, {}); // UserSession = User_SessionToken model.variables.userSessionVar = PortalClientVariables.getUser_SessionToken(); // PageEncodedURL = GetAndEncodeURL.EncodedURL model.variables.pageEncodedURLVar = getAndEncodeURLJSResult.value.encodedURLOut; }).then(function () { // HasHighContrast? if((PortalClientVariables.getUser_ContrastMode())) { // Execute Action: ToggleContrastMode controller._toggleContrastMode$Action(true, callContext); } }); }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.OnInitialize$getAndEncodeURLJSResult", [{ name: "EncodedURL", attrName: "encodedURLOut", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._changeFontSize$Action = function (increaseIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ChangeFontSize"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.ChangeFontSize$vars"))()); vars.value.increaseInLocal = increaseIn; // User_FontScale = If PortalClientVariables.setUser_FontScale(((vars.value.increaseInLocal) ? (PortalClientVariables.getUser_FontScale().plus((new OS.DataTypes.Decimal("0.25")))) : (PortalClientVariables.getUser_FontScale().minus((new OS.DataTypes.Decimal("0.25")))))); controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_ChangeFontSize_SetFontSizeJS, "SetFontSize", "ChangeFontSize", { FontScaleIN: OS.DataConversion.JSNodeParamConverter.to(OS.BuiltinFunctions.decimalToText(PortalClientVariables.getUser_FontScale()), OS.Types.Text) }, function ($parameters) { }, {}, {}); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.ChangeFontSize$vars", [{ name: "Increase", attrName: "increaseInLocal", mandatory: true, dataType: OS.Types.Boolean, defaultValue: function () { return false; } }]); Controller.prototype._toggleContrastMode$Action = function (forceHighContrastIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ToggleContrastMode"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.ToggleContrastMode$vars"))()); vars.value.forceHighContrastInLocal = forceHighContrastIn; if((!(vars.value.forceHighContrastInLocal))) { // User_ContrastMode = notUser_ContrastMode PortalClientVariables.setUser_ContrastMode(!(PortalClientVariables.getUser_ContrastMode())); } controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_ToggleContrastMode_ToggleHighContrastJS, "ToggleHighContrast", "ToggleContrastMode", { ForceHighContrast: OS.DataConversion.JSNodeParamConverter.to(vars.value.forceHighContrastInLocal, OS.Types.Boolean) }, function ($parameters) { }, {}, {}); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.ToggleContrastMode$vars", [{ name: "ForceHighContrast", attrName: "forceHighContrastInLocal", mandatory: true, dataType: OS.Types.Boolean, defaultValue: function () { return false; } }]); Controller.prototype._showSessionTimeout$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ShowSessionTimeout"); callContext = controller.callContext(callContext); // ShowSessionTimeOut = True model.variables.showSessionTimeOutVar = true; controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_ShowSessionTimeout_JavaScript1JS, "JavaScript1", "ShowSessionTimeout", { VarCounter: OS.DataConversion.JSNodeParamConverter.to(model.variables.varCounterVar, OS.Types.Text) }, function ($parameters) { }, { SetCounterId: controller.clientActionProxies.setCounterId$Action, SetSessionCounter: controller.clientActionProxies.setSessionCounter$Action }, {}); }; Controller.prototype._setTimerId$Action = function (inTimerIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SetTimerId"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.SetTimerId$vars"))()); vars.value.inTimerInLocal = inTimerIn; // VarTimer // VarTimer = InTimer model.variables.varTimerVar = vars.value.inTimerInLocal; }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.SetTimerId$vars", [{ name: "InTimer", attrName: "inTimerInLocal", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._setSessionCounter$Action = function (sessionCounterIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SetSessionCounter"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.SetSessionCounter$vars"))()); vars.value.sessionCounterInLocal = sessionCounterIn; return OS.Flow.executeAsyncFlow(function () { return OS.Flow.executeSequence(function () { if((((vars.value.sessionCounterInLocal === 0) && model.variables.showSessionTimeOutVar))) { // ShowSessionTimeOut = False model.variables.showSessionTimeOutVar = false; // Execute Action: UserLogout model.flush(); return PortalController.default.userLogout$Action(callContext).then(function () { OS.FeedbackMessageService.showFeedbackMessage("Your session has expired - please login again", /*Warning*/ 2); // Destination: /Portal/Home return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Home", { locale: PortalController.default.getClientLocale$Action(callContext).localeOut }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); }); } else { // SessionRenewCounter = SessionCounter model.variables.sessionRenewCounterVar = vars.value.sessionCounterInLocal; } }); }); }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.SetSessionCounter$vars", [{ name: "SessionCounter", attrName: "sessionCounterInLocal", mandatory: false, dataType: OS.Types.Integer, defaultValue: function () { return 0; } }]); Controller.prototype._onAfterRolesFetch$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("OnAfterRolesFetch"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Trigger Event: RolesFetched return controller.rolesFetched$Action(model.variables.fetchRolesDataAct.isUserCandidateOut, (model.variables.fetchRolesDataAct.isUserCorporateCreditOut || model.variables.fetchRolesDataAct.isUserCorporateCashOut), model.variables.fetchRolesDataAct.isUserBlockedOut, model.variables.fetchRolesDataAct.isUserPersonalOut, model.variables.fetchRolesDataAct.isUserCorporateCashOut, model.variables.fetchRolesDataAct.isUserCorporateCreditOut, model.variables.fetchRolesDataAct.isUserCourierOut, model.variables.fetchRolesDataAct.isUserPostalOut, model.variables.fetchRolesDataAct.isUserHeadOfficeOut, model.variables.fetchRolesDataAct.isUserLECourtOut, model.variables.fetchRolesDataAct.isUserCashOnDeliveryOut, callContext); }); }; Controller.prototype._sidebarOnToggle$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SidebarOnToggle"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Trigger Event: ClickMenu return controller.clickMenu$Action(callContext); }); }; Controller.prototype._setCounterId$Action = function (inCounterIn, callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("SetCounterId"); callContext = controller.callContext(callContext); var vars = new OS.DataTypes.VariableHolder(new (controller.constructor.getVariableGroupType("Portal.EP_Common.LoginInfo.SetCounterId$vars"))()); vars.value.inCounterInLocal = inCounterIn; // VarTimer // VarCounter = InCounter model.variables.varCounterVar = vars.value.inCounterInLocal; }; Controller.registerVariableGroupType("Portal.EP_Common.LoginInfo.SetCounterId$vars", [{ name: "InCounter", attrName: "inCounterInLocal", mandatory: true, dataType: OS.Types.Text, defaultValue: function () { return ""; } }]); Controller.prototype._logoutUser$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("LogoutUser"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { // Execute Action: UserLogout model.flush(); return PortalController.default.userLogout$Action(callContext).then(function () { OS.FeedbackMessageService.showFeedbackMessage((((model.variables.inputLocaleIn === "en-us")) ? ("You have been logged out!") : ("لقد تم تسجيل خروجك")), /*Info*/ 0); // Destination: /Portal/Home return OS.Flow.returnAsync(OS.Navigation.navigateTo(OS.Navigation.generateScreenURL("/Portal/Home", { locale: model.variables.inputLocaleIn }), OS.Transitions.createTransition(OS.Transitions.TransitionAnimation.Default), callContext, true)); }); }); }; Controller.prototype._resetDefaults$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ResetDefaults"); callContext = controller.callContext(callContext); // FontScale // User_FontScale = 1.0 PortalClientVariables.setUser_FontScale((new OS.DataTypes.Decimal("1.0"))); // User_ContrastMode = True PortalClientVariables.setUser_ContrastMode(true); controller.safeExecuteJSNode(Portal_EP_Common_LoginInfo_mvc_controller_ResetDefaults_SetFontSizeJS, "SetFontSize", "ResetDefaults", { FontScaleIN: OS.DataConversion.JSNodeParamConverter.to(OS.BuiltinFunctions.decimalToText(PortalClientVariables.getUser_FontScale()), OS.Types.Text) }, function ($parameters) { }, {}, {}); // Execute Action: ToggleContrastMode controller._toggleContrastMode$Action(false, callContext); }; Controller.prototype._search$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("Search"); callContext = controller.callContext(callContext); // Execute Action: ToggleSearchModal controller._toggleSearchModal$Action(callContext); if((!(model.variables.isSearchVar))) { // Execute Action: ListClearEverythingElse OS.SystemActions.listClear(model.variables.fetchSearchResultsDataAct.everythingElseOut, callContext); // Execute Action: ListClearNews OS.SystemActions.listClear(model.variables.fetchSearchResultsDataAct.exlusivelyNewsOut, callContext); // SearchText = "" model.variables.searchTextVar = ""; } }; Controller.prototype._toggleAccessibility$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("ToggleAccessibility"); callContext = controller.callContext(callContext); // ShowAccessibility = notShowAccessibility model.variables.showAccessibilityVar = !(model.variables.showAccessibilityVar); }; Controller.prototype._onParametersChanged$Action = function (callContext) { var model = this.model; var controller = this.controller; var idService = this.idService; controller.ensureControllerAlive("OnParametersChanged"); callContext = controller.callContext(callContext); return OS.Flow.executeAsyncFlow(function () { return OS.Flow.executeSequence(function () { if((model.variables.isSearchVar)) { // Refresh Query: FetchSearchResults var result = controller.fetchSearchResults$DataActRefresh(callContext); model.flush(); return result; } }); }); }; Controller.prototype.setLocale$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._setLocale$Action, callContext); }; Controller.prototype.handleCartClick$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._handleCartClick$Action, callContext); }; Controller.prototype.performSearch$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._performSearch$Action, callContext); }; Controller.prototype.toggleModal$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._toggleModal$Action, callContext); }; Controller.prototype.onDestroy$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onDestroy$Action, callContext); }; Controller.prototype.handleUserLoggedIn$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._handleUserLoggedIn$Action, callContext); }; Controller.prototype.cancelSessionRenewalClick$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._cancelSessionRenewalClick$Action, callContext); }; Controller.prototype.toggleSearchModal$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._toggleSearchModal$Action, callContext); }; Controller.prototype.renewSessionClick$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._renewSessionClick$Action, callContext); }; Controller.prototype.runReadpage$Action = function (idIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._runReadpage$Action, callContext, idIn); }; Controller.prototype.decideLandingPage$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._decideLandingPage$Action, callContext); }; Controller.prototype.checkSessionValidity$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._checkSessionValidity$Action, callContext); }; Controller.prototype.onReady$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onReady$Action, callContext); }; Controller.prototype.onInitialize$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onInitialize$Action, callContext); }; Controller.prototype.changeFontSize$Action = function (increaseIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._changeFontSize$Action, callContext, increaseIn); }; Controller.prototype.toggleContrastMode$Action = function (forceHighContrastIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._toggleContrastMode$Action, callContext, forceHighContrastIn); }; Controller.prototype.showSessionTimeout$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._showSessionTimeout$Action, callContext); }; Controller.prototype.setTimerId$Action = function (inTimerIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._setTimerId$Action, callContext, inTimerIn); }; Controller.prototype.setSessionCounter$Action = function (sessionCounterIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._setSessionCounter$Action, callContext, sessionCounterIn); }; Controller.prototype.onAfterRolesFetch$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onAfterRolesFetch$Action, callContext); }; Controller.prototype.sidebarOnToggle$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._sidebarOnToggle$Action, callContext); }; Controller.prototype.setCounterId$Action = function (inCounterIn, callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._setCounterId$Action, callContext, inCounterIn); }; Controller.prototype.logoutUser$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._logoutUser$Action, callContext); }; Controller.prototype.resetDefaults$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._resetDefaults$Action, callContext); }; Controller.prototype.search$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._search$Action, callContext); }; Controller.prototype.toggleAccessibility$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._toggleAccessibility$Action, callContext); }; Controller.prototype.onParametersChanged$Action = function (callContext) { var controller = this.controller; return controller.safeExecuteClientAction(controller._onParametersChanged$Action, callContext); }; Controller.prototype.userLoggedIn$Action = function () { return Promise.resolve(); }; Controller.prototype.rolesFetched$Action = function () { return Promise.resolve(); }; Controller.prototype.localeChanged$Action = function () { return Promise.resolve(); }; Controller.prototype.clickMenu$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 = function (callContext) { var controller = this.controller; var model = this.model; var idService = this.idService; return controller.onReady$Action(callContext); }; Controller.prototype.onRenderEventHandler = null; Controller.prototype.onDestroyEventHandler = function (callContext) { var controller = this.controller; var model = this.model; var idService = this.idService; return controller.onDestroy$Action(callContext); }; Controller.prototype.onParametersChangedEventHandler = function (callContext) { var controller = this.controller; var model = this.model; var idService = this.idService; return controller.onParametersChanged$Action(callContext); }; 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.LoginInfo.mvc$controller.OnDestroy.JavaScript1JS", [], function () { return function ($parameters, $actions, $roles, $public) { clearTimeout($parameters.VarTimer); clearInterval($parameters.VarCounter) }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.RenewSessionClick.JavaScript1JS", [], function () { return function ($parameters, $actions, $roles, $public) { clearInterval($parameters.VarCounter); }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.RunReadpage.readpageJS", [], function () { return function ($parameters, $actions, $roles, $public) { var lang = ""; if ($parameters.locale == "en-us"){ lang = "en_uk" } else{ lang = "ar_ar" } readpage("//app-eu.readspeaker.com/cgi-bin/rsent?customerid=7929&readclass=PageContent&lang="+lang, $parameters.Id); return false; }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.CheckSessionValidity.JavaScript1JS", [], function () { return function ($parameters, $actions, $roles, $public) { $parameters.VarTimer= setTimeout(showPopup, 1000*$parameters.SessionExpirySeconds); $actions.SetTimerId($parameters.VarTimer); function showPopup(){ $actions.ShowSessionTimeout(); } }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.OnInitialize.GetAndEncodeURLJS", [], function () { return function ($parameters, $actions, $roles, $public) { var rawURL = window.location.href; $parameters.EncodedURL = encodeURIComponent(rawURL); }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.ChangeFontSize.SetFontSizeJS", [], function () { return function ($parameters, $actions, $roles, $public) { var root = document.documentElement; root.style.setProperty('font-size', 14*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-display', 36*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h1', 32*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h2', 28*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h3', 26*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h4', 22*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h5', 20*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h6', 18*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-base', 16*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-m', 16*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-s', 14*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-xs', 12*$parameters.FontScaleIN + "px"); }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.ToggleContrastMode.ToggleHighContrastJS", [], function () { return function ($parameters, $actions, $roles, $public) { // Inject high-contrast CSS [invert colors + filter(img+video) to grayscale] var css = 'html {-webkit-filter: invert(100%);' + '-moz-filter: invert(100%);' + '-o-filter: invert(100%);' + '-o-filter: invert(100%); }' + 'img, background-images, video {filter: grayscale();moz-filter: grayscale();-o-filter: grayscale();-o-filter:grayscale();}'+ '.CareersWrapper .CareersTop {filter: grayscale();moz-filter: grayscale();-o-filter: grayscale();-o-filter:grayscale();}', head = document.getElementsByTagName('head')[0], style = document.createElement('style'); // A hack, so you can "invert back" clicking the bookmarklet again if (!window.counter || $parameters.ForceHighContrast) { window.counter = 1; } else { window.counter++; if (window.counter % 2 === 0) { var css = 'html {-webkit-filter: invert(0%); -moz-filter: invert(0%); -o-filter: invert(0%); -ms-filter: invert(0%); } img, background-images, video {filter: grayscale(0);moz-filter: grayscale(0);-o-filter: grayscale(0);-o-filter:grayscale(0);}'; } } // Check if CSS has already been injected style.type = 'text/css'; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } // Inject the CSS to the head head.appendChild(style); }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.ShowSessionTimeout.JavaScript1JS", [], function () { return function ($parameters, $actions, $roles, $public) { $parameters.VarCounter = setInterval(renewCounter, 1000); $actions.SetCounterId($parameters.VarCounter); var i=300; function renewCounter(){ i=i-1; $actions.SetSessionCounter(i); if(i===0) { clearInterval($parameters.VarCounter); } } }; }); define("Portal.EP_Common.LoginInfo.mvc$controller.ResetDefaults.SetFontSizeJS", [], function () { return function ($parameters, $actions, $roles, $public) { var root = document.documentElement; root.style.setProperty('font-size', 14*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-display', 36*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h1', 32*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h2', 28*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h3', 26*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h4', 22*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h5', 20*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-h6', 18*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-base', 16*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-m', 16*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-s', 14*$parameters.FontScaleIN + "px"); root.style.setProperty('--font-size-xs', 12*$parameters.FontScaleIN + "px"); }; });
/home2/wtmwscom/public_html/themes2941.wtmwebshop.com/../post/scripts/Portal_046.js