{"map":"{\"version\":3,\"file\":\"_tap.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/operators/foundation/_tap.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,MAAM,kBAAmE,UAAa;IACpF,MAAM,CAAC,KAAM,SAAQ,UAAU;QAC7B;;;;WAIG;QACH,IAAI,CAAC,EAAE,UAAU,EAAe;YAC9B,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;gBACxB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE;oBACpC,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;oBACzB,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACjB,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 withTap(superclass) {\r\n    return class extends superclass {\r\n        /**\r\n         * Calls `sideEffect` for each value in the stream.  The result of\r\n         * `sideEffect` is ignored - values received from upstream are passed-\r\n         * through to the observer.\r\n         */\r\n        _tap({ sideEffect }) {\r\n            return this._nextOperator({\r\n                operation: ({ emit }) => ({ upstream }) => {\r\n                    sideEffect({ upstream });\r\n                    emit(upstream);\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=_tap.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/foundation/_tap.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, Operation } from '../../types';\r\nexport declare type _TapArgs<T> = {\r\n    sideEffect: Operation<T, {}>;\r\n};\r\nexport interface MotionTappable<T> {\r\n    _tap(kwargs: _TapArgs<T>): ObservableWithMotionOperators<T>;\r\n}\r\nexport declare function withTap<T, S extends Constructor<MotionNextOperable<T>>>(superclass: S): S & Constructor<MotionTappable<T>>;\r\n"}}
