Build 533169stable
Module 940798
1,854 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(313319),u=n(698380),c=n(337627),d=n(646709);e.exports=function(e){function t(e){s(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return!(e=d.current(e)||{}).transform||e.transform instanceof l||(e=r({},e,{transform:new c(e.transform)})),n._style=e,n}return o(t,e),i(t,[{key:"__getValue",value:function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof l?e[t]=n.__getValue():e[t]=n}return e}},{key:"__getAnimatedValue",value:function(){var e={};for(var t in this._style){var n=this._style[t];n instanceof l&&(e[t]=n.__getAnimatedValue())}return e}},{key:"__attach",value:function(){for(var e in this._style){var t=this._style[e];t instanceof l&&t.__addChild(this)}}},{key:"__detach",value:function(){for(var e in this._style){var t=this._style[e];t instanceof l&&t.__removeChild(this)}}}]),t}(u)}