{"map":"{\"version\":3,\"file\":\"appendUnit.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/appendUnit.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,SAAS,GACV,MAAM,eAAe,CAAC;AAWvB,MAAM,yBAAsE,UAAa;IACvF,MAAM,CAAC,KAAM,SAAQ,UAAU;QAO7B,UAAU,CAAC,EAAE,IAAI,EAA2B;YAC1C,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACrB,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACtB,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACf,SAAS,EAAE,CAAC,KAAQ,KAAK,KAAK,GAAG,IAAI;aACtC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC\"}","code":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nimport { isDefined, } from '../typeGuards';\r\nexport function withAppendUnit(superclass) {\r\n    return class extends superclass {\r\n        appendUnit({ unit }) {\r\n            if (!isDefined(unit)) {\r\n                unit = arguments[0];\r\n            }\r\n            return this._map({\r\n                transform: (value) => value + unit\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=appendUnit.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/appendUnit.d.ts","text":"/** @license\r\n *  Copyright 2016 - present The Material Motion Authors. All Rights Reserved.\r\n *\r\n *  Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\r\n *  use this file except in compliance with the License. You may obtain a copy\r\n *  of the License at\r\n *\r\n *      http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n *  Unless required by applicable law or agreed to in writing, software\r\n *  distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\r\n *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\r\n *  License for the specific language governing permissions and limitations\r\n *  under the License.\r\n */\r\nimport { Constructor, MotionMappable, ObservableWithMotionOperators } from '../types';\r\nexport declare type AppendUnitArgs = {\r\n    unit: string;\r\n};\r\nexport interface MotionAppendUnitable {\r\n    appendUnit(kwargs: AppendUnitArgs): ObservableWithMotionOperators<string>;\r\n    appendUnit(unit: string): ObservableWithMotionOperators<string>;\r\n}\r\nexport declare function withAppendUnit<T, S extends Constructor<MotionMappable<T>>>(superclass: S): S & Constructor<MotionAppendUnitable>;\r\n"}}
