Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.145/page_editor/common/components/CollectionSelector",["module","exports","require","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../app/config/index","../../app/contexts/CollectionItemContext","../../app/utils/item-selector-value/itemSelectorValueToCollection","./ItemSelector"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CollectionSelector({collectionItem:t,itemSelectorURL:l,label:u,onBeforeCollectionSelect:f,onCollectionSelect:p,optionsMenuItems:s=e}){var d,m,y;const g="".concat(a.config.portletNamespace,"selectInfoList"),C=(0,i.useCustomCollectionSelectorURL)(),b=null!==(d=null==t?void 0:t.config)&&void 0!==d?d:{},I=!!Object.keys(b).length;return n.default.createElement(n.default.Fragment,null,n.default.createElement(r.default,{className:"mb-0",eventName:g,itemSelectorURL:C||l||a.config.infoListSelectorURL,label:u,onBeforeItemSelect:f,onItemSelect:p,optionsMenuItems:s,quickMappedInfoItems:null===(m=a.config.selectedMappingTypes)||void 0===m?void 0:m.linkedCollection,selectedItem:t,showMappedItems:!!(null===(y=a.config.selectedMappingTypes)||void 0===y?void 0:y.linkedCollection),transformValueCallback:c.default}),I&&n.default.createElement("p",{className:"text-info"},n.default.createElement(o.default,{className:"mr-2 mt-0",symbol:"info-panel-open"}),n.default.createElement("span",{className:"text-2"},Liferay.Language.get("collection-prefiltered"))))};var o=_interopRequireDefault(l("@frontend-taglib-clay$clayui/icon")),n=(_interopRequireDefault(l("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(l("liferay!frontend-js-react-web$react"))),a=l("../../app/config/index"),i=l("../../app/contexts/CollectionItemContext"),c=_interopRequireDefault(l("../../app/utils/item-selector-value/itemSelectorValueToCollection")),r=_interopRequireDefault(l("./ItemSelector"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=[]}}));
//# sourceMappingURL=CollectionSelector.js.map