{"map":"{\"version\":3,\"file\":\"startWith.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/operators/startWith.ts\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAShC,OAAO,EACL,SAAS,GACV,MAAM,eAAe,CAAC;AAWvB,MAAM,wBAAgG,UAAa;IACjH,MAAM,CAAC,KAAM,SAAQ,UAAU;QAS7B,SAAS,CAAC,EAAE,KAAK,EAAwB;YACvC,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;YAClC,sEAAsE;YACtE,WAAW;YACX,EAAE,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBACpE,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;YAED,MAAM,CAAC,IAAI,gBAAgB,CACzB,CAAC,QAAqB;gBACpB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACrB,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;gBAE9C,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC;YAClC,CAAC,CACF,CAAC,SAAS,EAAE,CAAC;QAChB,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 { MotionObservable, } from '../observables/proxies';\r\nimport { isDefined, } from '../typeGuards';\r\nexport function withStartWith(superclass) {\r\n    return class extends superclass {\r\n        startWith({ value }) {\r\n            const hasValue = isDefined(value);\r\n            // Only destructure if the supplied argument has the correct number of\r\n            // members.\r\n            if (!hasValue || (hasValue && Object.keys(arguments[0]).length > 1)) {\r\n                value = arguments[0];\r\n            }\r\n            return new MotionObservable((observer) => {\r\n                observer.next(value);\r\n                const subscription = this.subscribe(observer);\r\n                return subscription.unsubscribe;\r\n            })._remember();\r\n        }\r\n    };\r\n}\r\n//# sourceMappingURL=startWith.js.map","dts":{"name":"/Users/brentons/Projects/material-motion-js/packages/core/operators/startWith.d.ts","text":"import { Constructor, ObservableWithFoundationalMotionOperators, ObservableWithMotionOperators } from '../types';\r\nexport declare type StartWithArgs<T> = {\r\n    value: T;\r\n};\r\nexport interface MotionSeedable<T> {\r\n    startWith(value: T): ObservableWithMotionOperators<T>;\r\n    startWith(kwargs: StartWithArgs<T>): ObservableWithMotionOperators<T>;\r\n}\r\nexport declare function withStartWith<T, S extends Constructor<ObservableWithFoundationalMotionOperators<T>>>(superclass: S): S & Constructor<MotionSeedable<T>>;\r\n"}}
