{"version":3,"file":"ngx-num-to-words.mjs","sources":["../../../projects/ngx-num-to-words/src/lib/ngx-num-to-words.service.ts","../../../projects/ngx-num-to-words/src/lib/in-words.pipe.ts","../../../projects/ngx-num-to-words/src/lib/ngx-num-to-words.module.ts","../../../projects/ngx-num-to-words/src/public-api.ts","../../../projects/ngx-num-to-words/src/ngx-num-to-words.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n// @ts-ignore\nimport n2words from 'n2words';\nimport { SUPPORTED_LANGUAGE } from './i18n';\n\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class NgxNumToWordsService {\n\n\n  inWords(value: number, lang?: SUPPORTED_LANGUAGE): string {\n    return n2words(value, { lang });\n  }\n\n}\n","import {Pipe, PipeTransform} from '@angular/core';\n// @ts-ignore\nimport n2words from 'n2words';\nimport {SUPPORTED_LANGUAGE} from './i18n';\n\n@Pipe({\n  name: 'inWords'\n})\nexport class InWordsPipe implements PipeTransform {\n\n  transform(value: number, lang?: SUPPORTED_LANGUAGE): unknown {\n    return n2words(value, {lang});\n  }\n\n}\n","import { NgModule } from '@angular/core';\nimport { InWordsPipe } from './in-words.pipe';\n\n\n@NgModule({\n  declarations: [InWordsPipe],\n  imports: [],\n  exports: [InWordsPipe]\n})\nexport class NgxNumToWordsModule {\n}\n","/*\n * Public API Surface of ngx-num-to-words\n */\n\nexport * from './lib/ngx-num-to-words.service';\nexport * from './lib/in-words.pipe';\nexport * from './lib/ngx-num-to-words.module';\nexport * from './lib/i18n';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MASa,oBAAoB,CAAA;IAG/B,OAAO,CAAC,KAAa,EAAE,IAAyB,EAAA;QAC9C,OAAO,OAAO,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;KACjC;;kHALU,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA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