wp.customize.controlConstructor["kirki-dimension"]=wp.customize.kirkiDynamicControl.extend({initKirkiControl:function(i){var t=(i=i||this).container[0]||i.container;i.kirkiNotifications();var e=function(t){t.target&&"INPUT"===t.target.tagName&&i.setting.set(t.target.value)};t.addEventListener("change",e),t.addEventListener("keyup",e),t.addEventListener("paste",e)},kirkiNotifications:function(){var i=this,t=void 0!==i.params.choices&&void 0!==i.params.choices.accept_unitless&&!0===i.params.choices.accept_unitless;wp.customize(i.id,function(e){e.bind(function(n){var a="long_title";!1===i.validateCssValue(n)&&(!t||isNaN(n))?e.notifications.add(a,new wp.customize.Notification(a,{type:"warning",message:dimensionkirkiL10n["invalid-value"]})):e.notifications.remove(a)})})},validateCssValue:function(i){var t,e,n,a=this,o=!0;return!!(!i||""===i||0===i||"0"===i||"auto"===i||"inherit"===i||"initial"===i||0<=i.indexOf("calc(")&&0<=i.indexOf(")"))||(t=parseFloat(i),!(e=i.replace(t,""))||(2<=(n=i.split(" ")).length?(n.forEach(function(i){i&&!a.validateCssValue(i)&&(o=!1)}),o):!isNaN(t)&&-1!==["fr","rem","em","ex","%","px","cm","mm","in","pt","pc","ch","vh","vw","vmin","vmax"].indexOf(e)))}});