define(["require","exports","modules/clean/em_string","modules/clean/react/breadcrumb/constants"],(function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.splitCrumbs=function(e,n){if(1===e.length)return{overflowCrumbs:[],inlineCrumbs:e};for(var i=e.map((function(e){return new r.Emstring(e.label).length})),l=1,u=i[e.length-1],s=e.length-2;s>=0;s--){var _=t.SEPARATOR_WIDTH_IN_EMS+i[s];if(u+_>n)break;l+=1,u+=_}var o=e.length-l;return{overflowCrumbs:e.slice(0,o),inlineCrumbs:e.slice(o)}},n.getMaxInlineTrailWidth=function(e){return e?t.MAX_TRAIL_WIDTH_IN_EMS-t.MENU_TARGET_WIDTH_IN_EMS:t.MAX_TRAIL_WIDTH_IN_EMS}})); //# sourceMappingURL=utils.min.js-vfl0_8F5y.map