Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.173/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:s,optionsMenuItems:p=e}){var d,m,y;const g="".concat(a.config.portletNamespace,"selectInfoList"),C=(0,i.useCustomCollectionSelectorURL)(),_=null!==(d=null==t?void 0:t.config)&&void 0!==d?d:{},b=!!Object.keys(_).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:s,optionsMenuItems:p,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}),b&&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-filtered"))))};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