Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/utils/saveViewSettings",["module","exports","require","frontend-js-web","./logError"],(function(e,t,a){window;Object.defineProperty(t,"__esModule",{value:!0}),t.saveViewSettings=function({appURL:e,id:t,portletId:a,settings:o}){const s=new URL("".concat(e,"/data-set/").concat(t,"/save-active-view-settings"));return s.searchParams.append("groupId",themeDisplay.getScopeGroupId()),s.searchParams.append("plid",themeDisplay.getPlid()),s.searchParams.append("portletId",a),(0,r.fetch)(s,{body:JSON.stringify(o),headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"}).catch((e=>{(0,n.logError)(e),(0,r.openToast)({message:Liferay.Language.get("unexpected-error"),type:"danger"})}))};var r=a("frontend-js-web"),n=a("./logError")}));
//# sourceMappingURL=saveViewSettings.js.map