| Current Path : /home2/wtmwscom/public_html/post/scripts/ |
| Current File : /home2/wtmwscom/public_html/post/scripts/Portal_032.js |
define("Portal.EP_Common.BorderCard.mvc$model", ["OutSystems/ClientRuntime/Main", "Portal.model"], function (OutSystems, PortalModel) {
var OS = OutSystems.Internal;
var VariablesRecord = (function (_super) {
__extends(VariablesRecord, _super);
function VariablesRecord(defaults) {
_super.apply(this, arguments);
}
VariablesRecord.attributesToDeclare = function () {
return [
this.attr("ExtendedClass", "extendedClassIn", "ExtendedClass", true, false, OS.Types.Text, function () {
return "";
}, false),
this.attr("_extendedClassInDataFetchStatus", "_extendedClassInDataFetchStatus", "_extendedClassInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false),
this.attr("ExtendedStyle", "extendedStyleIn", "ExtendedStyle", true, false, OS.Types.Text, function () {
return "";
}, false),
this.attr("_extendedStyleInDataFetchStatus", "_extendedStyleInDataFetchStatus", "_extendedStyleInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false),
this.attr("BorderLeftColor", "borderLeftColorIn", "BorderLeftColor", true, false, OS.Types.Text, function () {
return "";
}, false),
this.attr("_borderLeftColorInDataFetchStatus", "_borderLeftColorInDataFetchStatus", "_borderLeftColorInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false),
this.attr("HasBottomMargin", "hasBottomMarginIn", "HasBottomMargin", true, false, OS.Types.Boolean, function () {
return false;
}, false),
this.attr("_hasBottomMarginInDataFetchStatus", "_hasBottomMarginInDataFetchStatus", "_hasBottomMarginInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false),
this.attr("IsRtl", "isRtlIn", "IsRtl", true, false, OS.Types.Boolean, function () {
return false;
}, false),
this.attr("_isRtlInDataFetchStatus", "_isRtlInDataFetchStatus", "_isRtlInDataFetchStatus", true, false, OS.Types.Integer, function () {
return /*Fetched*/ 1;
}, false)
].concat(_super.attributesToDeclare.call(this));
};
VariablesRecord.init();
return VariablesRecord;
})(OS.DataTypes.GenericRecord);
var WidgetsRecord = (function (_super) {
__extends(WidgetsRecord, _super);
function WidgetsRecord() {
_super.apply(this, arguments);
}
WidgetsRecord.getWidgetsType = function () {
return {};
};
return WidgetsRecord;
})(OS.Model.BaseWidgetRecordMap);
var Model = (function (_super) {
__extends(Model, _super);
function Model() {
_super.apply(this, arguments);
}
Model.getVariablesRecordConstructor = function () {
return VariablesRecord;
};
Model.getWidgetsRecordConstructor = function () {
return WidgetsRecord;
};
Object.defineProperty(Model, "hasValidationWidgets", {
enumerable: true,
configurable: true,
get: function () {
return false;
}
});
Model.prototype.setInputs = function (inputs) {
if("ExtendedClass" in inputs) {
this.variables.extendedClassIn = inputs.ExtendedClass;
if("_extendedClassInDataFetchStatus" in inputs) {
this.variables._extendedClassInDataFetchStatus = inputs._extendedClassInDataFetchStatus;
}
}
if("ExtendedStyle" in inputs) {
this.variables.extendedStyleIn = inputs.ExtendedStyle;
if("_extendedStyleInDataFetchStatus" in inputs) {
this.variables._extendedStyleInDataFetchStatus = inputs._extendedStyleInDataFetchStatus;
}
}
if("BorderLeftColor" in inputs) {
this.variables.borderLeftColorIn = inputs.BorderLeftColor;
if("_borderLeftColorInDataFetchStatus" in inputs) {
this.variables._borderLeftColorInDataFetchStatus = inputs._borderLeftColorInDataFetchStatus;
}
}
if("HasBottomMargin" in inputs) {
this.variables.hasBottomMarginIn = inputs.HasBottomMargin;
if("_hasBottomMarginInDataFetchStatus" in inputs) {
this.variables._hasBottomMarginInDataFetchStatus = inputs._hasBottomMarginInDataFetchStatus;
}
}
if("IsRtl" in inputs) {
this.variables.isRtlIn = inputs.IsRtl;
if("_isRtlInDataFetchStatus" in inputs) {
this.variables._isRtlInDataFetchStatus = inputs._isRtlInDataFetchStatus;
}
}
};
return Model;
})(OS.Model.BaseViewModel);
return new OS.Model.ModelFactory(Model);
});
define("Portal.EP_Common.BorderCard.mvc$view", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "react", "OutSystems/ReactView/Main", "Portal.EP_Common.BorderCard.mvc$model", "Portal.EP_Common.BorderCard.mvc$controller", "Portal.clientVariables", "OutSystems/ReactWidgets/Main"], function (OutSystems, PortalModel, PortalController, React, OSView, Portal_EP_Common_BorderCard_mvc_model, Portal_EP_Common_BorderCard_mvc_controller, PortalClientVariables, OSWidgets) {
var OS = OutSystems.Internal;
var PlaceholderContent = OSView.Widget.PlaceholderContent;
var IteratorPlaceholderContent = OSView.Widget.IteratorPlaceholderContent;
var View = (function (_super) {
__extends(View,_super);
function View() {
try {
this.initialize.apply(this, arguments);
} catch (error) {
View.handleError(error);
throw error;
}
}
View.prototype.initialize = function() {
_super.apply(this, arguments);
};
View.displayName = "EP_Common.BorderCard";
View.getCssDependencies = function() {
return ["css/OutSystemsReactWidgets.css"];
};
View.getJsDependencies = function() {
return [];
};
View.getBlocks = function() {
return [];
};
Object.defineProperty(View.prototype, "modelFactory", {
get: function () {
return Portal_EP_Common_BorderCard_mvc_model;
},
enumerable: true,
configurable: true
});
Object.defineProperty(View.prototype, "controllerFactory", {
get: function () {
return Portal_EP_Common_BorderCard_mvc_controller;
},
enumerable: true,
configurable: true
});
Object.defineProperty(View.prototype, "title", {
get: function () {
return "";
},
enumerable: true,
configurable: true
});
View.prototype.internalRender = function() {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
var validationService = controller.validationService;
var widgetsRecordProvider = this.widgetsRecordProvider;
var callContext = controller.callContext();
var $if = View.ifWidget;
var asPrimitiveValue = View.asPrimitiveValue;
var _this = this;
return React.createElement("div", this.getRootNodeProperties(), React.createElement(OSWidgets.Container, {
align: /*Default*/ 0,
animate: false,
extendedEvents: {
onClick: function () {
return Promise.resolve().then(function () {
var eventHandlerContext = callContext.clone();
controller.onClickRaised$Action(controller.callContext(eventHandlerContext));
});
;
}
},
extendedProperties: {
style: model.getCachedValue(idService.getId("QfodR_OXIkizcqEivRtM9A.style"), function () {
return (((((model.variables.borderLeftColorIn) !== (""))) ? (((model.variables.isRtlIn) ? ((("border-right: 5px solid " + model.variables.borderLeftColorIn) + ";")) : ((("border-left: 5px solid " + model.variables.borderLeftColorIn) + ";")))) : ("")) + model.variables.extendedStyleIn);
}, function () {
return model.variables.borderLeftColorIn;
}, function () {
return model.variables.isRtlIn;
}, function () {
return model.variables.extendedStyleIn;
})
},
style: model.getCachedValue(idService.getId("QfodR_OXIkizcqEivRtM9A.Style"), function () {
return (("BorderCardContent " + ((model.variables.hasBottomMarginIn) ? ("margin-bottom-m ") : (""))) + model.variables.extendedClassIn);
}, function () {
return model.variables.hasBottomMarginIn;
}, function () {
return model.variables.extendedClassIn;
}),
visible: true,
_idProps: {
service: idService,
uuid: "0"
},
_widgetRecordProvider: widgetsRecordProvider,
style_dataFetchStatus: OS.Model.calculateDataFetchStatus(model.variables._hasBottomMarginInDataFetchStatus, model.variables._extendedClassInDataFetchStatus)
}, React.createElement(OSWidgets.Placeholder, {
align: /*Default*/ 0,
content: _this.props.placeholders.content,
_idProps: {
service: idService,
name: "Content"
},
_widgetRecordProvider: widgetsRecordProvider
})));
};
return View;
})(OSView.BaseView.BaseWebBlock);
return View;
});
define("Portal.EP_Common.BorderCard.mvc$controller", ["OutSystems/ClientRuntime/Main", "Portal.model", "Portal.controller", "Portal.languageResources", "Portal.clientVariables"], function (OutSystems, PortalModel, PortalController, PortalLanguageResources, PortalClientVariables) {
var OS = OutSystems.Internal;
var Controller = (function (_super) {
__extends(Controller, _super);
function Controller() {
_super.apply(this, arguments);
var controller = this.controller;
this.clientActionProxies = {};
this.dataFetchDependenciesOriginal = {};
this.dataFetchDependentsGraph = {};
this.useImprovedDataFetch = false;
this.hasDependenciesBetweenSources = false;
this.shouldSendClientVarsToDataSources = false;
}
// Server Actions
// Aggregates and Data Actions
Controller.prototype.dataFetchActionNames = [];
// Client Actions
Controller.prototype._onClickRaised$Action = function (callContext) {
var model = this.model;
var controller = this.controller;
var idService = this.idService;
controller.ensureControllerAlive("OnClickRaised");
callContext = controller.callContext(callContext);
return OS.Flow.executeAsyncFlow(function () {
// Trigger Event: OnClick
return controller.onClick$Action(callContext);
});
};
Controller.prototype.onClickRaised$Action = function (callContext) {
var controller = this.controller;
return controller.safeExecuteClientAction(controller._onClickRaised$Action, callContext);
};
Controller.prototype.onClick$Action = function () {
return Promise.resolve();
};
// Event Handler Actions
Controller.prototype.onInitializeEventHandler = null;
Controller.prototype.onReadyEventHandler = null;
Controller.prototype.onRenderEventHandler = null;
Controller.prototype.onDestroyEventHandler = null;
Controller.prototype.onParametersChangedEventHandler = null;
Controller.prototype.handleError = function (ex) {
return controller.handleError(ex);
};
Controller.checkPermissions = function () {
};
Controller.prototype.getDefaultTimeout = function () {
return PortalController.default.defaultTimeout;
};
return Controller;
})(OS.Controller.BaseViewController);
return new OS.Controller.ControllerFactory(Controller, PortalLanguageResources);
});