Liferay.Loader.define("commerce-frontend-js@4.0.75/components/account_selector/util/index",["module","exports","require","frontend-js-web"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=function getInitials(e){return e.split(" ").map((e=>e.charAt(0).toUpperCase())).join("")},t.selectAccount=function selectAccount(e,t){const n=new URL(t,Liferay.ThemeDisplay.getPortalURL());n.searchParams.append("groupId",Liferay.ThemeDisplay.getScopeGroupId()),n.searchParams.append("p_auth",Liferay.authToken);const a=new FormData;return a.append("accountId",e),(0,o.fetch)(n,{body:a,method:"POST"})};var o=n("frontend-js-web")}));
//# sourceMappingURL=index.js.map