text: /*!
   * SAPUI5
  
  (c) Copyright 2009-2020 SAP SE. All rights reserved
   */
  jQuery.sap.declare("sap.uiext.inbox.SubstitutionRulesManagerUtils");
  sap.uiext.inbox.SubstitutionRulesManagerUtils=function(){throw new Error();};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getText=function(v,i,a,I,b,e){var c=this._isOutDated(e);var d=(!this._isFutureDate(b)&&!c);var _=sap.ui.getCore().getLibraryResourceBundle("sap.uiext.inbox");if(c){return"";}else{if(i){if(a){if(d){return v+" "+_.getText("SUBSTIUTION_RULE_CURRENTLY_RECEIVING_TASKS");}else{return v+" "+_.getText("SUBSTIUTION_RULE_WILL_RECEIVE_TASKS_FROM")+" "+this._getFormattedDate(b);}}else{if(I){if(d){return _.getText("SUBSTITUTION_RULE_ENABLE_FOR")+" "+v+" "+_.getText("SUBSTITUTION_RULE_TO_RECIEVE_TASKS");}else{return _.getText("SUBSTITUTION_RULE_ENABLE_FOR")+" "+v+" "+_.getText("SUBSTITUTION_RULE_TO_RECIEVE_TASKS")+" "+_.getText("SUBSTITUTION_RULE_FROM_TXT")+" "+this._getFormattedDate(b);}}else{return v+" "+_.getText("SUBSTIUTION_RULE_HAS_NOT_ACTIVATED_YOUR");}}}else{if(a){if(d){return _.getText("SUBSTIUTION_RULE_CURRENTLY_RECEIVING_TASKS_FROM")+" "+v;}else{return _.getText("SUBSTIUTION_RULE_YOU_WILL_RECEIVE_TASKS_FROM")+" "+v+" "+_.getText("SUBSTITUTION_RULE_FROM_TXT")+" "+this._getFormattedDate(b);}}else{if(I){if(d){return _.getText("SUBSTIUTION_RULE_TURN_ON_TO_RECEIVE_TASKS_FROM")+" "+v;}else{return _.getText("SUBSTIUTION_RULE_TURN_ON_TO_RECEIVE_TASKS_FROM")+" "+v+" "+_.getText("SUBSTITUTION_RULE_FROM_TXT")+" "+this._getFormattedDate(b);}}else{if(d){return _.getText("SUBSTIUTION_RULE_IS_CURRENTLY_DISABLED_BY")+" "+v;}else{return _.getText("SUBSTIUTION_RULE_YOU_WILL_RECEIVE_TASKS_FROM")+" "+v+" "+_.getText("SUBSTITUTION_RULE_FROM_TXT")+" "+this._getFormattedDate(b);}}}}}};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._isOutDated=function(d){if(d!==null&&d!==''){if(this._getTimeDiff(d)<0){return true;}}return false;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._isFutureDate=function(d){if(d!==null&&d!==''){if(this._getTimeDiff(d)>0&&!this._isCurrentDate(d)){return true;}}return false;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._isCurrentDate=function(d){if(d!==null&&d!==''){var c=new Date();if((c.getDate()==d.getDate())&&(c.getMonth()==d.getMonth())&&(c.getYear()==d.getYear())){return true;}}return false;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getStatus=function(i,a,b,e){var I=this._isOutDated(e);var c=(!this._isFutureDate(b)&&!I);var _=sap.ui.getCore().getLibraryResourceBundle("sap.uiext.inbox");if(e=="")return"";if(I)return _.getText("SUBSTITUTION_OUT_OF_DATE_RANGE");else{if(a){var t=c?"SUBSTITUTION_RULE_ACTIVE_FOR_LABEL":"SUBSTITUTION_RULE_ACTIVE_IN_LABEL";return _.getText(t)+" "+this._getNoOfDays(c,b,e);}else return _.getText("SUBSTITUTION_DISABLED_STATUS");}};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getNoOfDays=function(i,s,e){var _=sap.ui.getCore().getLibraryResourceBundle("sap.uiext.inbox");var t='';if(e!==null&&e!==''){var a=this._getTimeDiff(i?e:s)/(1000*60*60*24);if(a>1){var n=Math.floor(a);if(n===1){return n+" "+_.getText("SUBSTIUTION_RULE_IN_DAY");}else{return n+" "+_.getText("SUBSTIUTION_RULE_IN_MORE_DAYS");}}else if(a>0){return Math.ceil(a)+" "+_.getText("SUBSTIUTION_RULE_IN_DAY");}}return"";};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getFormattedDate=function(d){var i=sap.ui.core.format.DateFormat.getDateInstance({style:"medium"});if(d!=undefined&&d!=""){return i.format(d);}};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getTodaysDateinYYYYMMDD=function(){var d=new Date();var t=String(d.getFullYear());if(d.getMonth()<9){t=t+"0";}t=t+String(d.getMonth()+1);if(d.getDate()<9){t=t+"0";}t=t+String(d.getDate());return t;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getTodaysDate=function(){var d=new Date();return d;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getTimeDiff=function(e){var t=new Date();var o=t.getTimezoneOffset()*60*1000;var d=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24,00,00);var a=d.getTime()-(t.getTime());return a;};
  sap.uiext.inbox.SubstitutionRulesManagerUtils._getTimeZoneOffset=function(){return undefined;};
  