Liferay.Loader.define("@liferay/frontend-data-set-web@1.0.31/management_bar/components/filters/TestFilter",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/drop-down","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../FrontendDataSetContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(a("@frontend-taglib-clay$clayui/button")),n=f(a("@frontend-taglib-clay$clayui/drop-down")),l=f(a("liferay!frontend-js-react-web$classnames")),u=(f(a("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"))),o=f(a("../../../FrontendDataSetContext"));function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}var d=function({id:e,inputText:t,selectedData:a}){const{setFilter:i}=(0,u.useContext)(o.default),[f,d]=(0,u.useState)(a);return u.default.createElement(n.default.Caption,null,u.default.createElement("div",{className:"form-group"},u.default.createElement("div",{className:"input-group"},u.default.createElement("div",{className:(0,l.default)("input-group-item",{"input-group-prepend":t})},u.default.createElement("input",{className:"form-control",onChange:e=>d(e.target.value),type:"text",value:f||""})),u.default.createElement("div",{className:"input-group-append input-group-item input-group-item-shrink"},u.default.createElement("span",{className:"input-group-text"},Liferay.Language.get("test")))),u.default.createElement("div",{className:"mt-3"},u.default.createElement(r.default,{disabled:f===a,onClick:()=>i(e,f,f,"test ne 4"),small:!0},a?Liferay.Language.get("edit-filter"):Liferay.Language.get("add-filter")))))};t.default=d}}));
//# sourceMappingURL=TestFilter.js.map