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