Liferay.Loader.define("@liferay/content-dashboard-web@2.0.69/js/components/SidebarPanelInfoView/ManageCollaborators",["module","exports","require","frontend-js-web","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("frontend-js-web"),a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c=n?Object.getOwnPropertyDescriptor(e,a):null;c&&(c.get||c.set)?Object.defineProperty(r,a,c):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var c=({fetchSharingCollaboratorsURL:e,onError:t})=>{const r=(0,a.useRef)(document.createElement("div"));return(0,a.useEffect)((()=>{(async()=>{try{const t=await(0,n.fetch)(e);if(!t.ok)throw new Error("Failed to fetch ".concat(e));r.current.innerHTML=await t.text(),(0,n.runScriptsInElement)(r.current)}catch(e){t()}})()}),[e,t]),a.default.createElement("div",{className:"manage-collaborators mt-4",ref:r})};t.default=c}}));
//# sourceMappingURL=ManageCollaborators.js.map