"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.formatAssetName=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:420,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6,i=t.split(" ");if(e>n||t.length<r||i.length<=1)return t;var o=t[0],c=i[i.length-1];return"".concat(o," ").concat(c)},exports.orDash=function(t){return Number.isFinite(t)||"string"==typeof t?t:"-"},exports.truncateInTheMiddle=function(t,e,n){if(e>=n)return t;var r=e/(n/t.length),i=Math.ceil(r/2),o=Math.max(i-3,2);return"".concat(t.slice(0,o)," ... ").concat(t.slice(t.length-o))};
//# sourceMappingURL=formatting.js.map
