Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/common/openImageSelector",["module","exports","require","frontend-js-web","../app/config/index"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.openImageSelector=function openImageSelector(e,t=null){(0,o.openSelectionModal)({onClose:t,onSelect:t=>{const{returnType:n,value:o}=t,l={};if("URL"===n)l.title="",l.url=o;else{const e=JSON.parse(o);l.classNameId=e.classNameId,l.classPK=e.fileEntryId,l.fileEntryId=e.fileEntryId,l.title=e.title,l.url=e.url}e(l)},selectEventName:"".concat(l.config.portletNamespace,"selectImage"),title:Liferay.Language.get("select"),url:l.config.imageSelectorURL})};var o=n("frontend-js-web"),l=n("../app/config/index")}));
//# sourceMappingURL=openImageSelector.js.map