"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./constants.js");exports.getHoverAreaSize=function(t){var e=t.inititalSize,i=t.distance;return i<0?e-Math.abs(i/2):e},exports.getIsInputValueValid=function(e){return t.INPUT_VALUE_REGEX.test(e)&&!Number.isNaN(Number(e))},exports.getSizedControls=function(t){var e=t.isHorizontalOrientation,i=t.size,a=t.max,r=t.min,n=t.head,h=t.tail;return{headMaxWidth:e?i.width/(a-r)*(h-r):i.width,tailMaxWidth:e?i.width/(a-r)*(a-n):i.width,headMaxHeight:e?i.height:i.height/(a-r)*(h-r),tailMaxHeight:e?i.height:i.height/(a-r)*(a-n)}},exports.getValidatedValue=function(t,e,i){return Math.min(Math.max(t,e),i)};
