wp.customize.controlConstructor["kirki-generic"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(e){let t=e??this,i=t.params,a=t.container[0]||t.container,c=function(e){if(e.target&&("INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName)){let a=e.target.value;if("kirki-generic"===i.type&&i.choices&&"number"===i.choices.type){i.choices.min=parseFloat(i.choices.min),i.choices.max=parseFloat(i.choices.max);let t=parseFloat(a);!isNaN(t)&&(t<i.choices.min?(a=i.choices.min,e.target.value=a):t>i.choices.max&&(a=i.choices.max,e.target.value=a))}t.setting.set(a)}};a.addEventListener("change",c),a.addEventListener("input",c)}});