{"version":3,"file":"taiga-ui-cdk-pipes-mapper.mjs","sources":["../../../projects/cdk/pipes/mapper/mapper.pipe.ts","../../../projects/cdk/pipes/mapper/taiga-ui-cdk-pipes-mapper.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiMapper} from '@taiga-ui/cdk/types';\n\n@Pipe({name: 'tuiMapper'})\nexport class TuiMapperPipe implements PipeTransform {\n    /**\n     * Maps object to an arbitrary result through a mapper function\n     *\n     * @param value an item to transform\n     * @param mapper a mapping function\n     * @param args arbitrary number of additional arguments\n     */\n    public transform<T extends unknown[], U, G>(\n        value: U,\n        mapper: TuiMapper<[U, ...T], G>,\n        ...args: T\n    ): G {\n        return mapper(value, ...args);\n    }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAIa,aAAa,CAAA;AACtB;;;;;;AAMG;AACI,IAAA,SAAS,CACZ,KAAQ,EACR,MAA+B,EAC/B,GAAG,IAAO,EAAA;AAEV,QAAA,OAAO,MAAM,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC;IACjC;+GAdS,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,IAAI;mBAAC,EAAC,IAAI,EAAE,WAAW,EAAC;;;ACHzB;;AAEG;;;;"}