{"map":"{\"version\":3,\"file\":\"_flattenIterables.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/operators/foundation/_flattenIterables.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,UAAU,GACX,MAAM,kBAAkB,CAAC;AAM1B,MAAM,+BAAgF,UAAa;IACjG,MAAM,CAAC,KAAM,SAAQ,UAAU;QAC7B;;;WAGG;QACH,iBAAiB;YACf,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;gBACxB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE;oBAC5C,EAAE,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;wBACvB,GAAG,CAAC,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;4BAC3B,IAAI,CAAC,KAAK,CAAC,CAAC;wBACd,CAAC;oBACH,CAAC;oBAAC,IAAI,CAAC,CAAC;wBACN,IAAI,CAAC,MAAkB,CAAC,CAAC;oBAC3B,CAAC;gBACH,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 { isIterable, } from '../../typeGuards';\r\nexport function withFlattenIterables(superclass) {\r\n    return class extends superclass {\r\n        /**\r\n         * Iterates over every value it receives from upstream and emits each\r\n         * individually.\r\n         */\r\n        _flattenIterables() {\r\n            return this._nextOperator({\r\n                operation: ({ emit }) => ({ upstream: values }) => {\r\n                    if (isIterable(values)) {\r\n                        for (const value of values) {\r\n                            emit(value);\r\n                        }\r\n                    }\r\n                    else {\r\n                        emit(values);\r\n                    }\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=_flattenIterables.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/foundation/_flattenIterables.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 interface MotionFlattenable<T> {\r\n    _flattenIterables<U>(): ObservableWithMotionOperators<U>;\r\n}\r\nexport declare function withFlattenIterables<T, S extends Constructor<MotionNextOperable<T>>>(superclass: S): S & Constructor<MotionFlattenable<T>>;\r\n"}}
