Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/core/openItemSelector",["module","exports","require","frontend-js-web"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.openItemSelector=function({callback:e,eventName:t,itemSelectorURL:r,destroyedCallback:n=null,modalProps:c={},transformValueCallback:a}){(0,o.openSelectionModal)(l({onClose:n,onSelect:t=>{let r,o=l({},t);if("string"==typeof t.value)try{r=JSON.parse(t.value)}catch(e){}else t.value&&"object"==typeof t.value&&(r=t.value);r&&(delete o.value,o=l(l({},o),r)),o=a(o),o=e(o)},selectEventName:t,title:Liferay.Language.get("select"),url:r},c))};var o=r("frontend-js-web");function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=openItemSelector.js.map