Liferay.Loader.define("data-engine-js-components-web@1.0.112/js/utils/strings",["module","exports","require"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.sub=function sub(t,n){const i=t.split(e).filter((e=>0!==e.length));for(let e=0;e<n.length;e++){const t=n[e],o="{".concat(e,"}");let s=i.indexOf(o);for(;s>=0;)i.splice(s,1,t),s=i.indexOf(o)}return i.join("")},t.subWords=function subWords(e,t){const i=e.split(n).filter((e=>0!==e.length));return Object.keys(t).forEach((e=>{const n="{".concat(e,"}");let o=i.indexOf(n);for(;o>=0;)i.splice(o,1,t[e]),o=i.indexOf(n)})),i.join("")};const e=/({\d+})/g,n=/({\w+})/g}}));
//# sourceMappingURL=strings.js.map