1 |
- {"ast":null,"code":"var _NzAggregatePipe, _NzBytesPipe, _NzToCssUnitPipe, _NzEllipsisPipe, _NzSafeNullPipe, _NzSanitizerPipe, _NzTrimPipe, _NzPipesModule;\nimport * as i0 from '@angular/core';\nimport { Pipe, NgModule } from '@angular/core';\nimport { sum, isNumberFinite, toDecimal, isNil } from 'ng-zorro-antd/core/util';\nimport * as i1 from '@angular/platform-browser';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzAggregatePipe {\n transform(value, method) {\n if (!Array.isArray(value)) {\n return value;\n }\n if (value.length === 0) {\n return undefined;\n }\n switch (method) {\n case 'sum':\n return sum(value);\n case 'avg':\n return sum(value) / value.length;\n case 'max':\n return Math.max(...value);\n case 'min':\n return Math.min(...value);\n default:\n throw Error(`Invalid Pipe Arguments: Aggregate pipe doesn't support this type`);\n }\n }\n}\n_NzAggregatePipe = NzAggregatePipe;\n_NzAggregatePipe.ɵfac = function _NzAggregatePipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzAggregatePipe)();\n};\n_NzAggregatePipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzAggregate\",\n type: _NzAggregatePipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzAggregatePipe, [{\n type: Pipe,\n args: [{\n name: 'nzAggregate',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzBytesPipe {\n transform(input, decimal = 0, from = 'B', to) {\n if (!(isNumberFinite(input) && isNumberFinite(decimal) && decimal % 1 === 0 && decimal >= 0)) {\n return input;\n }\n let bytes = input;\n let unit = from;\n while (unit !== 'B') {\n bytes *= 1024;\n unit = NzBytesPipe.formats[unit].prev;\n }\n if (to) {\n const format = NzBytesPipe.formats[to];\n const result = toDecimal(NzBytesPipe.calculateResult(format, bytes), decimal);\n return NzBytesPipe.formatResult(result, to);\n }\n for (const key in NzBytesPipe.formats) {\n if (NzBytesPipe.formats.hasOwnProperty(key)) {\n const format = NzBytesPipe.formats[key];\n if (bytes < format.max) {\n const result = toDecimal(NzBytesPipe.calculateResult(format, bytes), decimal);\n return NzBytesPipe.formatResult(result, key);\n }\n }\n }\n }\n static formatResult(result, unit) {\n return `${result} ${unit}`;\n }\n static calculateResult(format, bytes) {\n const prev = format.prev ? NzBytesPipe.formats[format.prev] : undefined;\n return prev ? bytes / prev.max : bytes;\n }\n}\n_NzBytesPipe = NzBytesPipe;\n_NzBytesPipe.formats = {\n B: {\n max: 1024\n },\n kB: {\n max: Math.pow(1024, 2),\n prev: 'B'\n },\n KB: {\n max: Math.pow(1024, 2),\n prev: 'B'\n },\n MB: {\n max: Math.pow(1024, 3),\n prev: 'kB'\n },\n GB: {\n max: Math.pow(1024, 4),\n prev: 'MB'\n },\n TB: {\n max: Number.MAX_SAFE_INTEGER,\n prev: 'GB'\n }\n};\n_NzBytesPipe.ɵfac = function _NzBytesPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzBytesPipe)();\n};\n_NzBytesPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzBytes\",\n type: _NzBytesPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzBytesPipe, [{\n type: Pipe,\n args: [{\n name: 'nzBytes',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzToCssUnitPipe {\n transform(value, defaultUnit = 'px') {\n return typeof value === 'number' ? `${value}${defaultUnit}` : value;\n }\n}\n_NzToCssUnitPipe = NzToCssUnitPipe;\n_NzToCssUnitPipe.ɵfac = function _NzToCssUnitPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzToCssUnitPipe)();\n};\n_NzToCssUnitPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzToCssUnit\",\n type: _NzToCssUnitPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzToCssUnitPipe, [{\n type: Pipe,\n args: [{\n name: 'nzToCssUnit',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzEllipsisPipe {\n transform(value, length, suffix = '') {\n if (typeof value !== 'string') {\n return value;\n }\n const len = typeof length === 'undefined' ? value.length : length;\n if (value.length <= len) {\n return value;\n }\n return value.substring(0, len) + suffix;\n }\n}\n_NzEllipsisPipe = NzEllipsisPipe;\n_NzEllipsisPipe.ɵfac = function _NzEllipsisPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzEllipsisPipe)();\n};\n_NzEllipsisPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzEllipsis\",\n type: _NzEllipsisPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzEllipsisPipe, [{\n type: Pipe,\n args: [{\n name: 'nzEllipsis',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n/**\n * @deprecated v17.0.0 - Use Nullish coalescing operator (??) instead of `NzSafeNullPipe`.\n */\nclass NzSafeNullPipe {\n transform(value, replace = '') {\n if (isNil(value)) {\n return replace;\n }\n return value;\n }\n}\n_NzSafeNullPipe = NzSafeNullPipe;\n_NzSafeNullPipe.ɵfac = function _NzSafeNullPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzSafeNullPipe)();\n};\n_NzSafeNullPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzSafeNull\",\n type: _NzSafeNullPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzSafeNullPipe, [{\n type: Pipe,\n args: [{\n name: 'nzSafeNull',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzSanitizerPipe {\n constructor(sanitizer) {\n this.sanitizer = sanitizer;\n }\n transform(value, type = 'html') {\n switch (type) {\n case 'html':\n return this.sanitizer.bypassSecurityTrustHtml(value);\n case 'style':\n return this.sanitizer.bypassSecurityTrustStyle(value);\n case 'url':\n return this.sanitizer.bypassSecurityTrustUrl(value);\n case 'resourceUrl':\n return this.sanitizer.bypassSecurityTrustResourceUrl(value);\n default:\n throw new Error(`Invalid safe type specified`);\n }\n }\n}\n_NzSanitizerPipe = NzSanitizerPipe;\n_NzSanitizerPipe.ɵfac = function _NzSanitizerPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzSanitizerPipe)(i0.ɵɵdirectiveInject(i1.DomSanitizer, 16));\n};\n_NzSanitizerPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzSanitizer\",\n type: _NzSanitizerPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzSanitizerPipe, [{\n type: Pipe,\n args: [{\n name: 'nzSanitizer',\n standalone: true\n }]\n }], () => [{\n type: i1.DomSanitizer\n }], null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzTrimPipe {\n // TODO(chensimeng) trimEnd, trimStart\n transform(text) {\n return text.trim();\n }\n}\n_NzTrimPipe = NzTrimPipe;\n_NzTrimPipe.ɵfac = function _NzTrimPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzTrimPipe)();\n};\n_NzTrimPipe.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"nzTrim\",\n type: _NzTrimPipe,\n pure: true,\n standalone: true\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzTrimPipe, [{\n type: Pipe,\n args: [{\n name: 'nzTrim',\n standalone: true\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst pipes = [NzToCssUnitPipe, NzSafeNullPipe, NzSanitizerPipe, NzTrimPipe, NzBytesPipe, NzAggregatePipe, NzEllipsisPipe];\nclass NzPipesModule {}\n_NzPipesModule = NzPipesModule;\n_NzPipesModule.ɵfac = function _NzPipesModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzPipesModule)();\n};\n_NzPipesModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: _NzPipesModule\n});\n_NzPipesModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzPipesModule, [{\n type: NgModule,\n args: [{\n imports: [pipes],\n exports: [pipes]\n }]\n }], null, null);\n})();\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzAggregatePipe, NzBytesPipe, NzEllipsisPipe, NzPipesModule, NzSafeNullPipe, NzSanitizerPipe, NzToCssUnitPipe, NzTrimPipe };","map":{"version":3,"names":["i0","Pipe","NgModule","sum","isNumberFinite","toDecimal","isNil","i1","NzAggregatePipe","transform","value","method","Array","isArray","length","undefined","Math","max","min","Error","_NzAggregatePipe","ɵfac","_NzAggregatePipe_Factory","__ngFactoryType__","ɵpipe","ɵɵdefinePipe","name","type","pure","standalone","ngDevMode","ɵsetClassMetadata","args","NzBytesPipe","input","decimal","from","to","bytes","unit","formats","prev","format","result","calculateResult","formatResult","key","hasOwnProperty","_NzBytesPipe","B","kB","pow","KB","MB","GB","TB","Number","MAX_SAFE_INTEGER","_NzBytesPipe_Factory","NzToCssUnitPipe","defaultUnit","_NzToCssUnitPipe","_NzToCssUnitPipe_Factory","NzEllipsisPipe","suffix","len","substring","_NzEllipsisPipe","_NzEllipsisPipe_Factory","NzSafeNullPipe","replace","_NzSafeNullPipe","_NzSafeNullPipe_Factory","NzSanitizerPipe","constructor","sanitizer","bypassSecurityTrustHtml","bypassSecurityTrustStyle","bypassSecurityTrustUrl","bypassSecurityTrustResourceUrl","_NzSanitizerPipe","_NzSanitizerPipe_Factory","ɵɵdirectiveInject","DomSanitizer","NzTrimPipe","text","trim","_NzTrimPipe","_NzTrimPipe_Factory","pipes","NzPipesModule","_NzPipesModule","_NzPipesModule_Factory","ɵmod","ɵɵdefineNgModule","ɵinj","ɵɵdefineInjector","imports","exports"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-pipes.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { Pipe, NgModule } from '@angular/core';\nimport { sum, isNumberFinite, toDecimal, isNil } from 'ng-zorro-antd/core/util';\nimport * as i1 from '@angular/platform-browser';\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzAggregatePipe {\n transform(value, method) {\n if (!Array.isArray(value)) {\n return value;\n }\n if (value.length === 0) {\n return undefined;\n }\n switch (method) {\n case 'sum':\n return sum(value);\n case 'avg':\n return sum(value) / value.length;\n case 'max':\n return Math.max(...value);\n case 'min':\n return Math.min(...value);\n default:\n throw Error(`Invalid Pipe Arguments: Aggregate pipe doesn't support this type`);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzAggregatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzAggregatePipe, isStandalone: true, name: \"nzAggregate\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzAggregatePipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzAggregate',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzBytesPipe {\n static { this.formats = {\n B: { max: 1024 },\n kB: { max: Math.pow(1024, 2), prev: 'B' },\n KB: { max: Math.pow(1024, 2), prev: 'B' },\n MB: { max: Math.pow(1024, 3), prev: 'kB' },\n GB: { max: Math.pow(1024, 4), prev: 'MB' },\n TB: { max: Number.MAX_SAFE_INTEGER, prev: 'GB' }\n }; }\n transform(input, decimal = 0, from = 'B', to) {\n if (!(isNumberFinite(input) && isNumberFinite(decimal) && decimal % 1 === 0 && decimal >= 0)) {\n return input;\n }\n let bytes = input;\n let unit = from;\n while (unit !== 'B') {\n bytes *= 1024;\n unit = NzBytesPipe.formats[unit].prev;\n }\n if (to) {\n const format = NzBytesPipe.formats[to];\n const result = toDecimal(NzBytesPipe.calculateResult(format, bytes), decimal);\n return NzBytesPipe.formatResult(result, to);\n }\n for (const key in NzBytesPipe.formats) {\n if (NzBytesPipe.formats.hasOwnProperty(key)) {\n const format = NzBytesPipe.formats[key];\n if (bytes < format.max) {\n const result = toDecimal(NzBytesPipe.calculateResult(format, bytes), decimal);\n return NzBytesPipe.formatResult(result, key);\n }\n }\n }\n }\n static formatResult(result, unit) {\n return `${result} ${unit}`;\n }\n static calculateResult(format, bytes) {\n const prev = format.prev ? NzBytesPipe.formats[format.prev] : undefined;\n return prev ? bytes / prev.max : bytes;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzBytesPipe, isStandalone: true, name: \"nzBytes\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzBytesPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzBytes',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzToCssUnitPipe {\n transform(value, defaultUnit = 'px') {\n return typeof value === 'number' ? `${value}${defaultUnit}` : value;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzToCssUnitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzToCssUnitPipe, isStandalone: true, name: \"nzToCssUnit\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzToCssUnitPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzToCssUnit',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzEllipsisPipe {\n transform(value, length, suffix = '') {\n if (typeof value !== 'string') {\n return value;\n }\n const len = typeof length === 'undefined' ? value.length : length;\n if (value.length <= len) {\n return value;\n }\n return value.substring(0, len) + suffix;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzEllipsisPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzEllipsisPipe, isStandalone: true, name: \"nzEllipsis\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzEllipsisPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzEllipsis',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n/**\n * @deprecated v17.0.0 - Use Nullish coalescing operator (??) instead of `NzSafeNullPipe`.\n */\nclass NzSafeNullPipe {\n transform(value, replace = '') {\n if (isNil(value)) {\n return replace;\n }\n return value;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSafeNullPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSafeNullPipe, isStandalone: true, name: \"nzSafeNull\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSafeNullPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzSafeNull',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzSanitizerPipe {\n constructor(sanitizer) {\n this.sanitizer = sanitizer;\n }\n transform(value, type = 'html') {\n switch (type) {\n case 'html':\n return this.sanitizer.bypassSecurityTrustHtml(value);\n case 'style':\n return this.sanitizer.bypassSecurityTrustStyle(value);\n case 'url':\n return this.sanitizer.bypassSecurityTrustUrl(value);\n case 'resourceUrl':\n return this.sanitizer.bypassSecurityTrustResourceUrl(value);\n default:\n throw new Error(`Invalid safe type specified`);\n }\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSanitizerPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSanitizerPipe, isStandalone: true, name: \"nzSanitizer\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzSanitizerPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzSanitizer',\n standalone: true\n }]\n }], ctorParameters: () => [{ type: i1.DomSanitizer }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nclass NzTrimPipe {\n // TODO(chensimeng) trimEnd, trimStart\n transform(text) {\n return text.trim();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzTrimPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }\n static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzTrimPipe, isStandalone: true, name: \"nzTrim\" }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzTrimPipe, decorators: [{\n type: Pipe,\n args: [{\n name: 'nzTrim',\n standalone: true\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\nconst pipes = [\n NzToCssUnitPipe,\n NzSafeNullPipe,\n NzSanitizerPipe,\n NzTrimPipe,\n NzBytesPipe,\n NzAggregatePipe,\n NzEllipsisPipe\n];\nclass NzPipesModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzPipesModule, imports: [NzToCssUnitPipe,\n NzSafeNullPipe,\n NzSanitizerPipe,\n NzTrimPipe,\n NzBytesPipe,\n NzAggregatePipe,\n NzEllipsisPipe], exports: [NzToCssUnitPipe,\n NzSafeNullPipe,\n NzSanitizerPipe,\n NzTrimPipe,\n NzBytesPipe,\n NzAggregatePipe,\n NzEllipsisPipe] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzPipesModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzPipesModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [pipes],\n exports: [pipes]\n }]\n }] });\n\n/**\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { NzA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