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