// Module ID: 18439 // Function ID: 18440 // Name: RoleConnectionRequirementUtils // Dependencies: [6877, 2] // Exports: displayedValueFor, minDisplayedValueFor, realizedOperatorFor, storedValueFor // Module 18439 (RoleConnectionRequirementUtils) import Constants from "Constants" /* 6877 */; import size from "module_2" /* 2 */; const OperatorTypes = Constants.OperatorTypes; const result = size.fileFinishedImporting("modules/connections/RoleConnectionRequirementUtils.tsx"); export const realizedOperatorFor = function realizedOperatorFor(operator) { let GREATER_THAN = operator; if (operator == null) { GREATER_THAN = OperatorTypes.GREATER_THAN; } return GREATER_THAN; }; export const displayedValueFor = function displayedValueFor(value, realizedOperatorForResult) { let num = value; const _Math = Math; const _Number = Number; if (value == null) { num = 0; } const roundResult = round(_Number(num)); if (OperatorTypes.GREATER_THAN === realizedOperatorForResult) { const _Math3 = Math; return Math.max(1, roundResult + 1); } else if (tmp2.LESS_THAN === realizedOperatorForResult) { const _Math2 = Math; return Math.max(0, roundResult - 1); } else { return roundResult; } }; export const storedValueFor = function storedValueFor(TableSwitchRow, c7) { let num = TableSwitchRow; const _Math = Math; const _Number = Number; if (TableSwitchRow == null) { num = 0; } const str = round(_Number(num)); if (OperatorTypes.GREATER_THAN === c7) { const _Math3 = Math; const str3 = Math.max(0, str - 1); return str3.toString(); } else if (tmp.LESS_THAN === c7) { const _Math2 = Math; const str2 = Math.max(1, str + 1); return str2.toString(); } else { return str.toString(); } }; export const minDisplayedValueFor = function minDisplayedValueFor(arg0) { if (OperatorTypes.GREATER_THAN === arg0) { return 1; } else if (tmp.LESS_THAN === arg0) { return 0; } };