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