{"map":"{\"version\":3,\"file\":\"_map.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/operators/foundation/_map.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,MAAM,kBAAmE,UAAa;IACpF,MAAM,CAAC,KAAM,SAAQ,UAAU;QAC7B;;;WAGG;QACH,IAAI,CAAI,EAAE,SAAS,EAAkB;YACnC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;gBACxB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE;oBACpC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;gBAC5B,CAAC;aACF,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\nexport function withMap(superclass) {\r\n    return class extends superclass {\r\n        /**\r\n         * Applies `transform` to every incoming value and synchronously passes the\r\n         * result to the observer.\r\n         */\r\n        _map({ transform }) {\r\n            return this._nextOperator({\r\n                operation: ({ emit }) => ({ upstream }) => {\r\n                    emit(transform(upstream));\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=_map.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/foundation/_map.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, MotionNextOperable, ObservableWithMotionOperators } from '../../types';\r\nexport declare type _MapArgs<T, U> = {\r\n    transform: (value: T) => U;\r\n};\r\nexport interface MotionMappable<T> {\r\n    _map<U>(kwargs: _MapArgs<T, U>): ObservableWithMotionOperators<U>;\r\n}\r\nexport declare function withMap<T, S extends Constructor<MotionNextOperable<T>>>(superclass: S): S & Constructor<MotionMappable<T>>;\r\n"}}
