{"map":"{\"version\":3,\"file\":\"isAnyOf.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/isAnyOf.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,aAAa,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,SAAS,GACV,MAAM,eAAe,CAAC;AAsBvB,MAAM,sBAA2E,UAAa;IAC5F,MAAM,CAAC,KAAM,SAAQ,UAAU;QAO7B,OAAO,CAAC,EAAE,UAAU,EAAyC;YAC3D,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;gBAC3B,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YAC5B,CAAC;YAED,MAAM,CAAC,aAAa,CAAC,CAAE,IAAI,EAAE,GAAG,UAAU,CAAE,CAAC,CAAC,IAAI,CAAC;gBACjD,SAAS,EAAE,CAAC,CAAE,QAAQ,EAAE,GAAG,iBAAiB,CAAY,KAAK,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC;aAClG,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 { combineLatest, } from '../combineLatest';\r\nimport { isDefined, } from '../typeGuards';\r\nexport function withIsAnyOf(superclass) {\r\n    return class extends superclass {\r\n        isAnyOf({ candidates }) {\r\n            if (!isDefined(candidates)) {\r\n                candidates = arguments[0];\r\n            }\r\n            return combineLatest([this, ...candidates])._map({\r\n                transform: ([upstream, ...currentCandidates]) => currentCandidates.includes(upstream)\r\n            });\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=isAnyOf.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/isAnyOf.d.ts","text":"import { Constructor, MotionReactiveMappable, Observable, ObservableWithMotionOperators } from '../types';\r\nexport declare type IsAnyOfCandidates<T> = Array<T | Observable<T>>;\r\nexport declare type IsAnyOfArgs<T> = {\r\n    candidates: IsAnyOfCandidates<T>;\r\n};\r\nexport interface MotionIsAnyOfable<T> {\r\n    isAnyOf(kwargs: IsAnyOfArgs<T>): ObservableWithMotionOperators<boolean>;\r\n    isAnyOf(candidates: IsAnyOfCandidates<T>): ObservableWithMotionOperators<boolean>;\r\n}\r\nexport declare function withIsAnyOf<T, S extends Constructor<MotionReactiveMappable<T>>>(superclass: S): S & Constructor<MotionIsAnyOfable<T>>;\r\n"}}
