!function(){"use strict";var e=window.wp.blocks,o=window.wp.element,t=window.wp.i18n,r=window.wp.blockEditor,l=window.wp.components,n=JSON.parse('{"u2":"wcvendors-pro/store-price-filter"}');(0,e.registerBlockType)(n.u2,{edit:function(e){var n=e.attributes,a=e.setAttributes,c=n.title,i=n.showApplyButton,p=n.railColor,w=n.trackColor;return(0,o.createElement)("div",(0,r.useBlockProps)(),(0,o.createElement)(l.TextControl,{label:(0,t.__)("Title","wcvendors-pro"),value:c,onChange:function(e){return a({title:e})}}),(0,o.createElement)(l.TextControl,{label:(0,t.__)("Rail Color","wcvendors-pro"),value:p,onChange:function(e){return a({railColor:e})},type:"color",style:{width:"100px",display:"block"}}),(0,o.createElement)(l.TextControl,{label:(0,t.__)("Track Color","wcvendors-pro"),value:w,onChange:function(e){return a({trackColor:e})},type:"color",style:{width:"100px",display:"block"}}),(0,o.createElement)(l.CheckboxControl,{label:(0,t.__)("Show Apply Button","wcvendors-pro"),checked:i,onChange:function(e){return a({showApplyButton:e})}}),(0,o.createElement)(l.RangeControl,{label:(0,t.__)("Preview","wcvendors-pro"),min:0,max:100,railColor:p,allowReset:!1,handleColor:w,trackColor:w,withInputField:!1}),i&&(0,o.createElement)(l.Button,{isPrimary:!0},(0,t.__)("Apply","wcvendors-pro")))}})}();