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