Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/sxp_blueprint_admin/js/shared/sxp_element/SliderInput",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/slider","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/button")),l=a("@frontend-taglib-clay$clayui/form"),n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),i=_interopRequireDefault(a("@frontend-taglib-clay$clayui/slider")),u=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 a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=r?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(a,l,n):a[l]=e[l]}a.default=e,t&&t.set(e,a);return a}(a("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}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var o=function SliderInput({disabled:e,id:t,label:a,max:o,min:d,name:c,onBlur:f,onChange:s,setFieldTouched:p,setFieldValue:y,step:m,value:b}){const[g,_]=(0,u.useState)(!1);return u.default.createElement(u.default.Fragment,null,u.default.createElement(l.ClayInput.Group,{small:!0},u.default.createElement(l.ClayInput.GroupItem,{className:"arrowless-input"},u.default.createElement(l.ClayInput,{"aria-label":a,disabled:e,id:t,insetAfter:!0,max:o,min:d,name:c,onBlur:f,onChange:s,onKeyDown:e=>{"Enter"===e.key&&e.preventDefault()},step:m,type:"number",value:b}),u.default.createElement(l.ClayInput.GroupInsetItem,{after:!0},u.default.createElement(r.default,{"aria-label":Liferay.Language.get("slider"),disabled:e,displayType:"unstyled",onClick:()=>_(!g)},u.default.createElement(n.default,{symbol:"control-panel"}))))),g&&u.default.createElement("div",{className:"slider-configuration"},u.default.createElement(i.default,{max:o,min:d,onBlur:()=>p(c),onChange:e=>{y(c,e)},step:m,value:b})))};t.default=o}}));
//# sourceMappingURL=SliderInput.js.map