Liferay.Loader.define("@liferay/fragment-collection-filter-keyword@1.0.12/js/FragmentCollectionFilterKeyword",["module","exports","require","@liferay/fragment-renderer-collection-filter-impl","../css/main.scss"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function FragmentCollectionFilterKeyword({fragmentEntryLinkId:t,fragmentEntryLinkNamespace:i,isDisabled:l}){const o=document.getElementById("".concat(i,"keywordsInput"));o&&(o.value=(0,n.getCollectionFilterValue)("keywords",t),l&&(o.disabled=!0,o.parentElement&&Liferay.Browser.isFirefox()&&(Promise.resolve().then((()=>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={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}r.default=e,t&&t.set(e,r);return r}(r("../css/main.scss")))),o.parentElement.classList.add("input-group-item--disabled"))));const a=document.getElementById("".concat(i,"keywordsButton")),handleSearch=()=>{(0,n.setCollectionFilterValue)("keywords",t,o.value)},handleKeyDown=t=>{t.key===e&&handleSearch()};return null==a||a.addEventListener("click",handleSearch),null==o||o.addEventListener("keydown",handleKeyDown),{dispose(){null==a||a.removeEventListener("click",handleSearch),null==o||o.removeEventListener("keydown",handleKeyDown)}}};var n=r("@liferay/fragment-renderer-collection-filter-impl");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e="Enter"}}));
//# sourceMappingURL=FragmentCollectionFilterKeyword.js.map