Liferay.Loader.define("@liferay/fragment-collection-filter-tags@1.0.2/js/SelectTags",["module","exports","require","@liferay/fragment-renderer-collection-filter-impl","asset-taglib","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function SelectTags({disabled:e,fragmentEntryLinkId:t,helpText:r,label:i,showLabel:o}){const[c,u]=(0,n.useState)(""),[f,s]=(0,n.useState)((()=>{const e=(0,a.getCollectionFilterValue)("tags",t);return Array.isArray(e)?e.map((e=>({label:e,value:e}))):e?[{label:e,value:e}]:[]})),d=(0,n.useCallback)((e=>{s(e),(0,a.setCollectionFilterValue)("tags",t,e.map((e=>e.value)))}),[t]);return n.default.createElement(l.AssetTagsSelector,{formGroupClassName:"mb-0",helpText:r,inputValue:c,label:i,onInputValueChange:e?()=>{}:u,onSelectedItemsChange:d,selectedItems:f,showLabel:o,showSelectButton:!1})};var a=r("@liferay/fragment-renderer-collection-filter-impl"),l=r("asset-taglib"),n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=SelectTags.js.map