"use strict";Liferay.Loader.define("change-tracking-web$dom-helpers@5.2.0/cjs/animate",["module","exports","require","@change-tracking-web$babel/runtime/helpers/interopRequireDefault","./css","./hyphenate","./isTransform","./transitionEnd"],(function(n,e,t){window;{var i=t("@change-tracking-web$babel/runtime/helpers/interopRequireDefault");e.__esModule=!0,e.default=void 0;var r=i(t("./css")),a=i(t("./hyphenate")),o=i(t("./isTransform")),s=i(t("./transitionEnd")),u={transition:"","transition-duration":"","transition-delay":"","transition-timing-function":""};function c(n){var e=n.node,t=n.properties,i=n.duration,c=void 0===i?200:i,f=n.easing,l=n.callback,d=[],p={},h="";Object.keys(t).forEach((function(n){var e=t[n];(0,o.default)(n)?h+=n+"("+e+") ":(p[n]=e,d.push((0,a.default)(n)))})),h&&(p.transform=h,d.push("transform")),c>0&&(p.transition=d.join(", "),p["transition-duration"]=c/1e3+"s",p["transition-delay"]="0s",p["transition-timing-function"]=f||"linear");var m=(0,s.default)(e,(function(n){n.target===n.currentTarget&&((0,r.default)(e,u),l&&l.call(this,n))}),c);return e.clientLeft,(0,r.default)(e,p),{cancel:function(){m(),(0,r.default)(e,u)}}}e.default=function(n,e,t,i,r){if(!("nodeType"in n))return c(n);if(!e)throw new Error("must include properties to animate");return"function"==typeof i&&(r=i,i=""),c({node:n,properties:e,duration:t,easing:i,callback:r})},n.exports=e.default}}));
//# sourceMappingURL=animate.js.map