{"map":"{\"version\":3,\"file\":\"log.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/log.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EACL,aAAa,GACd,MAAM,SAAS,CAAC;AAYjB,MAAM,kBAA+D,UAAa;IAChF,MAAM,CAAC,KAAM,SAAQ,UAAU;QAmB7B,GAAG,CAAC,MAAM,GAAG,EAAE;YACb,MAAM,EACJ,KAAK,GAAG,OAAO,MAAM,KAAK,QAAQ;kBAC9B,MAAM;kBACN,EAAE,EACN,SAAS,GAAG,EAAE,GACf,GAAG,MAAiB,CAAC;YAEtB,IAAI,OAAsC,CAAC;YAE3C,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;gBACd,OAAO,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;YACrC,CAAC;YAED,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;gBACf,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE;oBAC5B,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;wBACZ,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;oBACzB,CAAC;oBAED,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,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\nimport { createPlucker, } from './pluck';\r\nexport function withLog(superclass) {\r\n    return class extends superclass {\r\n        log(kwargs = {}) {\r\n            const { label = typeof kwargs === 'string'\r\n                ? kwargs\r\n                : '', pluckPath = '', } = kwargs;\r\n            let plucker;\r\n            if (pluckPath) {\r\n                plucker = createPlucker(pluckPath);\r\n            }\r\n            return this._tap({\r\n                sideEffect({ upstream: value }) {\r\n                    if (plucker) {\r\n                        value = plucker(value);\r\n                    }\r\n                    console.log(label, value);\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=log.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/log.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, MotionTappable, ObservableWithMotionOperators } from '../types';\r\nexport declare type LogArgs = Partial<{\r\n    label: string;\r\n    pluckPath: string;\r\n}>;\r\nexport interface MotionLoggable<T> {\r\n    log(kwargs?: LogArgs): ObservableWithMotionOperators<T>;\r\n    log(label?: string): ObservableWithMotionOperators<T>;\r\n}\r\nexport declare function withLog<T, S extends Constructor<MotionTappable<T>>>(superclass: S): S & Constructor<MotionLoggable<T>>;\r\n"}}
