f5ff7c298345453fe5db618efe6c08ca527799c2154939568d113f2f7d9342fd.json 49 KB

1
  1. {"ast":null,"code":"var _NzIconService, _NzIconPatchService, _NzIconDirective, _NzIconModule;\nimport * as i0 from '@angular/core';\nimport { InjectionToken, inject, Injectable, booleanAttribute, numberAttribute, Directive, Input, makeEnvironmentProviders, NgModule } from '@angular/core';\nimport { Subject, from } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { IconService, IconDirective } from '@ant-design/icons-angular';\nimport { warn } from 'ng-zorro-antd/core/logger';\nimport { DOCUMENT } from '@angular/common';\nimport { HttpBackend } from '@angular/common/http';\nimport { BarsOutline, CalendarOutline, CaretUpFill, CaretUpOutline, CaretDownFill, CaretDownOutline, CheckCircleFill, CheckCircleOutline, CheckOutline, ClockCircleOutline, CloseCircleOutline, CloseCircleFill, CloseOutline, CopyOutline, DeleteOutline, DoubleLeftOutline, DoubleRightOutline, DownOutline, EditOutline, EllipsisOutline, ExclamationCircleFill, ExclamationCircleOutline, EyeOutline, FileFill, FileOutline, FilterFill, InfoCircleFill, InfoCircleOutline, LeftOutline, LoadingOutline, PaperClipOutline, QuestionCircleOutline, RightOutline, RotateRightOutline, RotateLeftOutline, StarFill, SearchOutline, UploadOutline, VerticalAlignTopOutline, UpOutline, SwapOutline, SwapRightOutline, ZoomInOutline, ZoomOutOutline } from '@ant-design/icons-angular/icons';\nimport * as i1 from '@angular/platform-browser';\nimport * as i2 from 'ng-zorro-antd/core/config';\nimport * as i3 from '@angular/cdk/platform';\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 NZ_ICONS_USED_BY_ZORRO = [BarsOutline, CalendarOutline, CaretUpFill, CaretUpOutline, CaretDownFill, CaretDownOutline, CheckCircleFill, CheckCircleOutline, CheckOutline, ClockCircleOutline, CloseCircleOutline, CloseCircleFill, CloseOutline, CopyOutline, DeleteOutline, DoubleLeftOutline, DoubleRightOutline, DownOutline, EditOutline, EllipsisOutline, ExclamationCircleFill, ExclamationCircleOutline, EyeOutline, FileFill, FileOutline, FilterFill, InfoCircleFill, InfoCircleOutline, LeftOutline, LoadingOutline, PaperClipOutline, QuestionCircleOutline, RightOutline, RotateRightOutline, RotateLeftOutline, StarFill, SearchOutline, StarFill, UploadOutline, VerticalAlignTopOutline, UpOutline, SwapOutline, SwapRightOutline, ZoomInOutline, ZoomOutOutline];\nconst NZ_ICONS = new InjectionToken('nz_icons');\nconst NZ_ICON_DEFAULT_TWOTONE_COLOR = new InjectionToken('nz_icon_default_twotone_color');\nconst DEFAULT_TWOTONE_COLOR = '#1890ff';\n/**\n * It should be a global singleton, otherwise registered icons could not be found.\n */\nclass NzIconService extends IconService {\n get _disableDynamicLoading() {\n return !this.platform.isBrowser;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n this.subscription = null;\n }\n }\n normalizeSvgElement(svg) {\n if (!svg.getAttribute('viewBox')) {\n this._renderer.setAttribute(svg, 'viewBox', '0 0 1024 1024');\n }\n if (!svg.getAttribute('width') || !svg.getAttribute('height')) {\n this._renderer.setAttribute(svg, 'width', '1em');\n this._renderer.setAttribute(svg, 'height', '1em');\n }\n if (!svg.getAttribute('fill')) {\n this._renderer.setAttribute(svg, 'fill', 'currentColor');\n }\n }\n fetchFromIconfont(opt) {\n const {\n scriptUrl\n } = opt;\n if (this._document && !this.iconfontCache.has(scriptUrl)) {\n const script = this._renderer.createElement('script');\n this._renderer.setAttribute(script, 'src', scriptUrl);\n this._renderer.setAttribute(script, 'data-namespace', scriptUrl.replace(/^(https?|http):/g, ''));\n this._renderer.appendChild(this._document.body, script);\n this.iconfontCache.add(scriptUrl);\n }\n }\n createIconfontIcon(type) {\n return this._createSVGElementFromString(`<svg><use xlink:href=\"${type}\"></svg>`);\n }\n constructor(rendererFactory, sanitizer, nzConfigService, platform) {\n super(rendererFactory, inject(HttpBackend, {\n optional: true\n }),\n // TODO: fix the type\n inject(DOCUMENT), sanitizer, [...NZ_ICONS_USED_BY_ZORRO, ...(inject(NZ_ICONS, {\n optional: true\n }) || [])]);\n this.nzConfigService = nzConfigService;\n this.platform = platform;\n this.configUpdated$ = new Subject();\n this.iconfontCache = new Set();\n this.subscription = null;\n this.onConfigChange();\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n }\n onConfigChange() {\n this.subscription = this.nzConfigService.getConfigChangeEventForComponent('icon').subscribe(() => {\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n this.configUpdated$.next();\n });\n }\n configDefaultTheme() {\n const iconConfig = this.getConfig();\n this.defaultTheme = iconConfig.nzTheme || 'outline';\n }\n configDefaultTwotoneColor() {\n const iconConfig = this.getConfig();\n const defaultTwotoneColor = iconConfig.nzTwotoneColor || DEFAULT_TWOTONE_COLOR;\n let primaryColor = DEFAULT_TWOTONE_COLOR;\n if (defaultTwotoneColor) {\n if (defaultTwotoneColor.startsWith('#')) {\n primaryColor = defaultTwotoneColor;\n } else {\n warn('Twotone color must be a hex color!');\n }\n }\n this.twoToneColor = {\n primaryColor\n };\n }\n getConfig() {\n return this.nzConfigService.getConfigForComponent('icon') || {};\n }\n}\n_NzIconService = NzIconService;\n_NzIconService.ɵfac = function _NzIconService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzIconService)(i0.ɵɵinject(i0.RendererFactory2), i0.ɵɵinject(i1.DomSanitizer), i0.ɵɵinject(i2.NzConfigService), i0.ɵɵinject(i3.Platform));\n};\n_NzIconService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: _NzIconService,\n factory: _NzIconService.ɵfac,\n providedIn: 'root'\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzIconService, [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], () => [{\n type: i0.RendererFactory2\n }, {\n type: i1.DomSanitizer\n }, {\n type: i2.NzConfigService\n }, {\n type: i3.Platform\n }], null);\n})();\nconst NZ_ICONS_PATCH = new InjectionToken('nz_icons_patch');\nclass NzIconPatchService {\n constructor(rootIconService) {\n this.rootIconService = rootIconService;\n this.patched = false;\n this.extraIcons = inject(NZ_ICONS_PATCH, {\n self: true\n });\n }\n doPatch() {\n if (this.patched) {\n return;\n }\n this.extraIcons.forEach(iconDefinition => this.rootIconService.addIcon(iconDefinition));\n this.patched = true;\n }\n}\n_NzIconPatchService = NzIconPatchService;\n_NzIconPatchService.ɵfac = function _NzIconPatchService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzIconPatchService)(i0.ɵɵinject(NzIconService));\n};\n_NzIconPatchService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: _NzIconPatchService,\n factory: _NzIconPatchService.ɵfac\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzIconPatchService, [{\n type: Injectable\n }], () => [{\n type: NzIconService\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 NzIconDirective extends IconDirective {\n set nzSpin(value) {\n this.spin = value;\n }\n set nzType(value) {\n this.type = value;\n }\n set nzTheme(value) {\n this.theme = value;\n }\n set nzTwotoneColor(value) {\n this.twoToneColor = value;\n }\n set nzIconfont(value) {\n this.iconfont = value;\n }\n constructor(ngZone, changeDetectorRef, elementRef, iconService, renderer) {\n super(iconService, elementRef, renderer);\n this.ngZone = ngZone;\n this.changeDetectorRef = changeDetectorRef;\n this.iconService = iconService;\n this.renderer = renderer;\n this.cacheClassName = null;\n this.nzRotate = 0;\n this.spin = false;\n this.destroy$ = new Subject();\n const iconPatch = inject(NzIconPatchService, {\n optional: true\n });\n if (iconPatch) {\n iconPatch.doPatch();\n }\n this.el = elementRef.nativeElement;\n }\n ngOnChanges(changes) {\n const {\n nzType,\n nzTwotoneColor,\n nzSpin,\n nzTheme,\n nzRotate\n } = changes;\n if (nzType || nzTwotoneColor || nzSpin || nzTheme) {\n this.changeIcon2();\n } else if (nzRotate) {\n this.handleRotate(this.el.firstChild);\n } else {\n this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`));\n }\n }\n ngOnInit() {\n this.renderer.setAttribute(this.el, 'class', `anticon ${this.el.className}`.trim());\n }\n /**\n * If custom content is provided, try to normalize SVG elements.\n */\n ngAfterContentChecked() {\n if (!this.type) {\n const children = this.el.children;\n let length = children.length;\n if (!this.type && children.length) {\n while (length--) {\n const child = children[length];\n if (child.tagName.toLowerCase() === 'svg') {\n this.iconService.normalizeSvgElement(child);\n }\n }\n }\n }\n }\n ngOnDestroy() {\n this.destroy$.next();\n }\n /**\n * Replacement of `changeIcon` for more modifications.\n */\n changeIcon2() {\n this.setClassName();\n // The Angular zone is left deliberately before the SVG is set\n // since `_changeIcon` spawns asynchronous tasks as promise and\n // HTTP calls. This is used to reduce the number of change detections\n // while the icon is being loaded dynamically.\n this.ngZone.runOutsideAngular(() => {\n from(this._changeIcon()).pipe(takeUntil(this.destroy$)).subscribe({\n next: svgOrRemove => {\n // Get back into the Angular zone after completing all the tasks.\n // Since we manually run change detection locally, we have to re-enter\n // the zone because the change detection might also be run on other local\n // components, leading them to handle template functions outside of the Angular zone.\n this.ngZone.run(() => {\n // The _changeIcon method would call Renderer to remove the element of the old icon,\n // which would call `markElementAsRemoved` eventually,\n // so we should call `detectChanges` to tell Angular remove the DOM node.\n // #7186\n this.changeDetectorRef.detectChanges();\n if (svgOrRemove) {\n this.setSVGData(svgOrRemove);\n this.handleSpin(svgOrRemove);\n this.handleRotate(svgOrRemove);\n }\n });\n },\n error: warn\n });\n });\n }\n handleSpin(svg) {\n if (this.spin || this.type === 'loading') {\n this.renderer.addClass(svg, 'anticon-spin');\n } else {\n this.renderer.removeClass(svg, 'anticon-spin');\n }\n }\n handleRotate(svg) {\n if (this.nzRotate) {\n this.renderer.setAttribute(svg, 'style', `transform: rotate(${this.nzRotate}deg)`);\n } else {\n this.renderer.removeAttribute(svg, 'style');\n }\n }\n setClassName() {\n if (this.cacheClassName) {\n this.renderer.removeClass(this.el, this.cacheClassName);\n }\n this.cacheClassName = `anticon-${this.type}`;\n this.renderer.addClass(this.el, this.cacheClassName);\n }\n setSVGData(svg) {\n this.renderer.setAttribute(svg, 'data-icon', this.type);\n this.renderer.setAttribute(svg, 'aria-hidden', 'true');\n }\n}\n_NzIconDirective = NzIconDirective;\n_NzIconDirective.ɵfac = function _NzIconDirective_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzIconDirective)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(NzIconService), i0.ɵɵdirectiveInject(i0.Renderer2));\n};\n_NzIconDirective.ɵdir = /* @__PURE__ */i0.ɵɵdefineDirective({\n type: _NzIconDirective,\n selectors: [[\"\", \"nz-icon\", \"\"]],\n hostVars: 2,\n hostBindings: function _NzIconDirective_HostBindings(rf, ctx) {\n if (rf & 2) {\n i0.ɵɵclassProp(\"anticon\", true);\n }\n },\n inputs: {\n nzSpin: [2, \"nzSpin\", \"nzSpin\", booleanAttribute],\n nzRotate: [2, \"nzRotate\", \"nzRotate\", numberAttribute],\n nzType: \"nzType\",\n nzTheme: \"nzTheme\",\n nzTwotoneColor: \"nzTwotoneColor\",\n nzIconfont: \"nzIconfont\"\n },\n exportAs: [\"nzIcon\"],\n standalone: true,\n features: [i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature]\n});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzIconDirective, [{\n type: Directive,\n args: [{\n selector: '[nz-icon]',\n exportAs: 'nzIcon',\n host: {\n '[class.anticon]': 'true'\n },\n standalone: true\n }]\n }], () => [{\n type: i0.NgZone\n }, {\n type: i0.ChangeDetectorRef\n }, {\n type: i0.ElementRef\n }, {\n type: NzIconService\n }, {\n type: i0.Renderer2\n }], {\n nzSpin: [{\n type: Input,\n args: [{\n transform: booleanAttribute\n }]\n }],\n nzRotate: [{\n type: Input,\n args: [{\n transform: numberAttribute\n }]\n }],\n nzType: [{\n type: Input\n }],\n nzTheme: [{\n type: Input\n }],\n nzTwotoneColor: [{\n type: Input\n }],\n nzIconfont: [{\n type: Input\n }]\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 * Provide icon definitions for NzIcon in root\n *\n * @param icons Icon definitions\n */\nconst provideNzIcons = icons => {\n return makeEnvironmentProviders([{\n provide: NZ_ICONS,\n useValue: icons\n }]);\n};\n/**\n * Provide icon definitions for NzIcon in feature module or standalone component\n *\n * @param icons Icon definitions\n */\nconst provideNzIconsPatch = icons => {\n return [NzIconPatchService, {\n provide: NZ_ICONS_PATCH,\n useValue: icons\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 NzIconModule {\n static forRoot(icons) {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIcons(icons)]\n };\n }\n static forChild(icons) {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIconsPatch(icons)]\n };\n }\n}\n_NzIconModule = NzIconModule;\n_NzIconModule.ɵfac = function _NzIconModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || _NzIconModule)();\n};\n_NzIconModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: _NzIconModule\n});\n_NzIconModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({});\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && i0.ɵsetClassMetadata(NzIconModule, [{\n type: NgModule,\n args: [{\n imports: [NzIconDirective],\n exports: [NzIconDirective]\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 { DEFAULT_TWOTONE_COLOR, NZ_ICONS, NZ_ICONS_PATCH, NZ_ICONS_USED_BY_ZORRO, NZ_ICON_DEFAULT_TWOTONE_COLOR, NzIconDirective, NzIconModule, NzIconPatchService, NzIconService, provideNzIcons, provideNzIconsPatch };","map":{"version":3,"names":["i0","InjectionToken","inject","Injectable","booleanAttribute","numberAttribute","Directive","Input","makeEnvironmentProviders","NgModule","Subject","from","takeUntil","IconService","IconDirective","warn","DOCUMENT","HttpBackend","BarsOutline","CalendarOutline","CaretUpFill","CaretUpOutline","CaretDownFill","CaretDownOutline","CheckCircleFill","CheckCircleOutline","CheckOutline","ClockCircleOutline","CloseCircleOutline","CloseCircleFill","CloseOutline","CopyOutline","DeleteOutline","DoubleLeftOutline","DoubleRightOutline","DownOutline","EditOutline","EllipsisOutline","ExclamationCircleFill","ExclamationCircleOutline","EyeOutline","FileFill","FileOutline","FilterFill","InfoCircleFill","InfoCircleOutline","LeftOutline","LoadingOutline","PaperClipOutline","QuestionCircleOutline","RightOutline","RotateRightOutline","RotateLeftOutline","StarFill","SearchOutline","UploadOutline","VerticalAlignTopOutline","UpOutline","SwapOutline","SwapRightOutline","ZoomInOutline","ZoomOutOutline","i1","i2","i3","NZ_ICONS_USED_BY_ZORRO","NZ_ICONS","NZ_ICON_DEFAULT_TWOTONE_COLOR","DEFAULT_TWOTONE_COLOR","NzIconService","_disableDynamicLoading","platform","isBrowser","ngOnDestroy","subscription","unsubscribe","normalizeSvgElement","svg","getAttribute","_renderer","setAttribute","fetchFromIconfont","opt","scriptUrl","_document","iconfontCache","has","script","createElement","replace","appendChild","body","add","createIconfontIcon","type","_createSVGElementFromString","constructor","rendererFactory","sanitizer","nzConfigService","optional","configUpdated$","Set","onConfigChange","configDefaultTwotoneColor","configDefaultTheme","getConfigChangeEventForComponent","subscribe","next","iconConfig","getConfig","defaultTheme","nzTheme","defaultTwotoneColor","nzTwotoneColor","primaryColor","startsWith","twoToneColor","getConfigForComponent","_NzIconService","ɵfac","_NzIconService_Factory","__ngFactoryType__","ɵɵinject","RendererFactory2","DomSanitizer","NzConfigService","Platform","ɵprov","ɵɵdefineInjectable","token","factory","providedIn","ngDevMode","ɵsetClassMetadata","args","NZ_ICONS_PATCH","NzIconPatchService","rootIconService","patched","extraIcons","self","doPatch","forEach","iconDefinition","addIcon","_NzIconPatchService","_NzIconPatchService_Factory","NzIconDirective","nzSpin","value","spin","nzType","theme","nzIconfont","iconfont","ngZone","changeDetectorRef","elementRef","iconService","renderer","cacheClassName","nzRotate","destroy$","iconPatch","el","nativeElement","ngOnChanges","changes","changeIcon2","handleRotate","firstChild","_setSVGElement","ngOnInit","className","trim","ngAfterContentChecked","children","length","child","tagName","toLowerCase","setClassName","runOutsideAngular","_changeIcon","pipe","svgOrRemove","run","detectChanges","setSVGData","handleSpin","error","addClass","removeClass","removeAttribute","_NzIconDirective","_NzIconDirective_Factory","ɵɵdirectiveInject","NgZone","ChangeDetectorRef","ElementRef","Renderer2","ɵdir","ɵɵdefineDirective","selectors","hostVars","hostBindings","_NzIconDirective_HostBindings","rf","ctx","ɵɵclassProp","inputs","exportAs","standalone","features","ɵɵInputTransformsFeature","ɵɵInheritDefinitionFeature","ɵɵNgOnChangesFeature","selector","host","transform","provideNzIcons","icons","provide","useValue","provideNzIconsPatch","NzIconModule","forRoot","ngModule","providers","forChild","_NzIconModule","_NzIconModule_Factory","ɵmod","ɵɵdefineNgModule","ɵinj","ɵɵdefineInjector","imports","exports"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/ng-zorro-antd/fesm2022/ng-zorro-antd-icon.mjs"],"sourcesContent":["import * as i0 from '@angular/core';\nimport { InjectionToken, inject, Injectable, booleanAttribute, numberAttribute, Directive, Input, makeEnvironmentProviders, NgModule } from '@angular/core';\nimport { Subject, from } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { IconService, IconDirective } from '@ant-design/icons-angular';\nimport { warn } from 'ng-zorro-antd/core/logger';\nimport { DOCUMENT } from '@angular/common';\nimport { HttpBackend } from '@angular/common/http';\nimport { BarsOutline, CalendarOutline, CaretUpFill, CaretUpOutline, CaretDownFill, CaretDownOutline, CheckCircleFill, CheckCircleOutline, CheckOutline, ClockCircleOutline, CloseCircleOutline, CloseCircleFill, CloseOutline, CopyOutline, DeleteOutline, DoubleLeftOutline, DoubleRightOutline, DownOutline, EditOutline, EllipsisOutline, ExclamationCircleFill, ExclamationCircleOutline, EyeOutline, FileFill, FileOutline, FilterFill, InfoCircleFill, InfoCircleOutline, LeftOutline, LoadingOutline, PaperClipOutline, QuestionCircleOutline, RightOutline, RotateRightOutline, RotateLeftOutline, StarFill, SearchOutline, UploadOutline, VerticalAlignTopOutline, UpOutline, SwapOutline, SwapRightOutline, ZoomInOutline, ZoomOutOutline } from '@ant-design/icons-angular/icons';\nimport * as i1 from '@angular/platform-browser';\nimport * as i2 from 'ng-zorro-antd/core/config';\nimport * as i3 from '@angular/cdk/platform';\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 NZ_ICONS_USED_BY_ZORRO = [\n BarsOutline,\n CalendarOutline,\n CaretUpFill,\n CaretUpOutline,\n CaretDownFill,\n CaretDownOutline,\n CheckCircleFill,\n CheckCircleOutline,\n CheckOutline,\n ClockCircleOutline,\n CloseCircleOutline,\n CloseCircleFill,\n CloseOutline,\n CopyOutline,\n DeleteOutline,\n DoubleLeftOutline,\n DoubleRightOutline,\n DownOutline,\n EditOutline,\n EllipsisOutline,\n ExclamationCircleFill,\n ExclamationCircleOutline,\n EyeOutline,\n FileFill,\n FileOutline,\n FilterFill,\n InfoCircleFill,\n InfoCircleOutline,\n LeftOutline,\n LoadingOutline,\n PaperClipOutline,\n QuestionCircleOutline,\n RightOutline,\n RotateRightOutline,\n RotateLeftOutline,\n StarFill,\n SearchOutline,\n StarFill,\n UploadOutline,\n VerticalAlignTopOutline,\n UpOutline,\n SwapOutline,\n SwapRightOutline,\n ZoomInOutline,\n ZoomOutOutline\n];\n\nconst NZ_ICONS = new InjectionToken('nz_icons');\nconst NZ_ICON_DEFAULT_TWOTONE_COLOR = new InjectionToken('nz_icon_default_twotone_color');\nconst DEFAULT_TWOTONE_COLOR = '#1890ff';\n/**\n * It should be a global singleton, otherwise registered icons could not be found.\n */\nclass NzIconService extends IconService {\n get _disableDynamicLoading() {\n return !this.platform.isBrowser;\n }\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n this.subscription = null;\n }\n }\n normalizeSvgElement(svg) {\n if (!svg.getAttribute('viewBox')) {\n this._renderer.setAttribute(svg, 'viewBox', '0 0 1024 1024');\n }\n if (!svg.getAttribute('width') || !svg.getAttribute('height')) {\n this._renderer.setAttribute(svg, 'width', '1em');\n this._renderer.setAttribute(svg, 'height', '1em');\n }\n if (!svg.getAttribute('fill')) {\n this._renderer.setAttribute(svg, 'fill', 'currentColor');\n }\n }\n fetchFromIconfont(opt) {\n const { scriptUrl } = opt;\n if (this._document && !this.iconfontCache.has(scriptUrl)) {\n const script = this._renderer.createElement('script');\n this._renderer.setAttribute(script, 'src', scriptUrl);\n this._renderer.setAttribute(script, 'data-namespace', scriptUrl.replace(/^(https?|http):/g, ''));\n this._renderer.appendChild(this._document.body, script);\n this.iconfontCache.add(scriptUrl);\n }\n }\n createIconfontIcon(type) {\n return this._createSVGElementFromString(`<svg><use xlink:href=\"${type}\"></svg>`);\n }\n constructor(rendererFactory, sanitizer, nzConfigService, platform) {\n super(rendererFactory, inject(HttpBackend, { optional: true }), // TODO: fix the type\n inject(DOCUMENT), sanitizer, [...NZ_ICONS_USED_BY_ZORRO, ...(inject(NZ_ICONS, { optional: true }) || [])]);\n this.nzConfigService = nzConfigService;\n this.platform = platform;\n this.configUpdated$ = new Subject();\n this.iconfontCache = new Set();\n this.subscription = null;\n this.onConfigChange();\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n }\n onConfigChange() {\n this.subscription = this.nzConfigService.getConfigChangeEventForComponent('icon').subscribe(() => {\n this.configDefaultTwotoneColor();\n this.configDefaultTheme();\n this.configUpdated$.next();\n });\n }\n configDefaultTheme() {\n const iconConfig = this.getConfig();\n this.defaultTheme = iconConfig.nzTheme || 'outline';\n }\n configDefaultTwotoneColor() {\n const iconConfig = this.getConfig();\n const defaultTwotoneColor = iconConfig.nzTwotoneColor || DEFAULT_TWOTONE_COLOR;\n let primaryColor = DEFAULT_TWOTONE_COLOR;\n if (defaultTwotoneColor) {\n if (defaultTwotoneColor.startsWith('#')) {\n primaryColor = defaultTwotoneColor;\n }\n else {\n warn('Twotone color must be a hex color!');\n }\n }\n this.twoToneColor = { primaryColor };\n }\n getConfig() {\n return this.nzConfigService.getConfigForComponent('icon') || {};\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconService, deps: [{ token: i0.RendererFactory2 }, { token: i1.DomSanitizer }, { token: i2.NzConfigService }, { token: i3.Platform }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root'\n }]\n }], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: i1.DomSanitizer }, { type: i2.NzConfigService }, { type: i3.Platform }] });\nconst NZ_ICONS_PATCH = new InjectionToken('nz_icons_patch');\nclass NzIconPatchService {\n constructor(rootIconService) {\n this.rootIconService = rootIconService;\n this.patched = false;\n this.extraIcons = inject(NZ_ICONS_PATCH, { self: true });\n }\n doPatch() {\n if (this.patched) {\n return;\n }\n this.extraIcons.forEach(iconDefinition => this.rootIconService.addIcon(iconDefinition));\n this.patched = true;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconPatchService, deps: [{ token: NzIconService }], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconPatchService }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconPatchService, decorators: [{\n type: Injectable\n }], ctorParameters: () => [{ type: NzIconService }] });\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 NzIconDirective extends IconDirective {\n set nzSpin(value) {\n this.spin = value;\n }\n set nzType(value) {\n this.type = value;\n }\n set nzTheme(value) {\n this.theme = value;\n }\n set nzTwotoneColor(value) {\n this.twoToneColor = value;\n }\n set nzIconfont(value) {\n this.iconfont = value;\n }\n constructor(ngZone, changeDetectorRef, elementRef, iconService, renderer) {\n super(iconService, elementRef, renderer);\n this.ngZone = ngZone;\n this.changeDetectorRef = changeDetectorRef;\n this.iconService = iconService;\n this.renderer = renderer;\n this.cacheClassName = null;\n this.nzRotate = 0;\n this.spin = false;\n this.destroy$ = new Subject();\n const iconPatch = inject(NzIconPatchService, { optional: true });\n if (iconPatch) {\n iconPatch.doPatch();\n }\n this.el = elementRef.nativeElement;\n }\n ngOnChanges(changes) {\n const { nzType, nzTwotoneColor, nzSpin, nzTheme, nzRotate } = changes;\n if (nzType || nzTwotoneColor || nzSpin || nzTheme) {\n this.changeIcon2();\n }\n else if (nzRotate) {\n this.handleRotate(this.el.firstChild);\n }\n else {\n this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`));\n }\n }\n ngOnInit() {\n this.renderer.setAttribute(this.el, 'class', `anticon ${this.el.className}`.trim());\n }\n /**\n * If custom content is provided, try to normalize SVG elements.\n */\n ngAfterContentChecked() {\n if (!this.type) {\n const children = this.el.children;\n let length = children.length;\n if (!this.type && children.length) {\n while (length--) {\n const child = children[length];\n if (child.tagName.toLowerCase() === 'svg') {\n this.iconService.normalizeSvgElement(child);\n }\n }\n }\n }\n }\n ngOnDestroy() {\n this.destroy$.next();\n }\n /**\n * Replacement of `changeIcon` for more modifications.\n */\n changeIcon2() {\n this.setClassName();\n // The Angular zone is left deliberately before the SVG is set\n // since `_changeIcon` spawns asynchronous tasks as promise and\n // HTTP calls. This is used to reduce the number of change detections\n // while the icon is being loaded dynamically.\n this.ngZone.runOutsideAngular(() => {\n from(this._changeIcon())\n .pipe(takeUntil(this.destroy$))\n .subscribe({\n next: svgOrRemove => {\n // Get back into the Angular zone after completing all the tasks.\n // Since we manually run change detection locally, we have to re-enter\n // the zone because the change detection might also be run on other local\n // components, leading them to handle template functions outside of the Angular zone.\n this.ngZone.run(() => {\n // The _changeIcon method would call Renderer to remove the element of the old icon,\n // which would call `markElementAsRemoved` eventually,\n // so we should call `detectChanges` to tell Angular remove the DOM node.\n // #7186\n this.changeDetectorRef.detectChanges();\n if (svgOrRemove) {\n this.setSVGData(svgOrRemove);\n this.handleSpin(svgOrRemove);\n this.handleRotate(svgOrRemove);\n }\n });\n },\n error: warn\n });\n });\n }\n handleSpin(svg) {\n if (this.spin || this.type === 'loading') {\n this.renderer.addClass(svg, 'anticon-spin');\n }\n else {\n this.renderer.removeClass(svg, 'anticon-spin');\n }\n }\n handleRotate(svg) {\n if (this.nzRotate) {\n this.renderer.setAttribute(svg, 'style', `transform: rotate(${this.nzRotate}deg)`);\n }\n else {\n this.renderer.removeAttribute(svg, 'style');\n }\n }\n setClassName() {\n if (this.cacheClassName) {\n this.renderer.removeClass(this.el, this.cacheClassName);\n }\n this.cacheClassName = `anticon-${this.type}`;\n this.renderer.addClass(this.el, this.cacheClassName);\n }\n setSVGData(svg) {\n this.renderer.setAttribute(svg, 'data-icon', this.type);\n this.renderer.setAttribute(svg, 'aria-hidden', 'true');\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconDirective, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: NzIconService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"16.1.0\", version: \"18.2.1\", type: NzIconDirective, isStandalone: true, selector: \"[nz-icon]\", inputs: { nzSpin: [\"nzSpin\", \"nzSpin\", booleanAttribute], nzRotate: [\"nzRotate\", \"nzRotate\", numberAttribute], nzType: \"nzType\", nzTheme: \"nzTheme\", nzTwotoneColor: \"nzTwotoneColor\", nzIconfont: \"nzIconfont\" }, host: { properties: { \"class.anticon\": \"true\" } }, exportAs: [\"nzIcon\"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[nz-icon]',\n exportAs: 'nzIcon',\n host: {\n '[class.anticon]': 'true'\n },\n standalone: true\n }]\n }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: NzIconService }, { type: i0.Renderer2 }], propDecorators: { nzSpin: [{\n type: Input,\n args: [{ transform: booleanAttribute }]\n }], nzRotate: [{\n type: Input,\n args: [{ transform: numberAttribute }]\n }], nzType: [{\n type: Input\n }], nzTheme: [{\n type: Input\n }], nzTwotoneColor: [{\n type: Input\n }], nzIconfont: [{\n type: Input\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 * Provide icon definitions for NzIcon in root\n *\n * @param icons Icon definitions\n */\nconst provideNzIcons = (icons) => {\n return makeEnvironmentProviders([\n {\n provide: NZ_ICONS,\n useValue: icons\n }\n ]);\n};\n/**\n * Provide icon definitions for NzIcon in feature module or standalone component\n *\n * @param icons Icon definitions\n */\nconst provideNzIconsPatch = (icons) => {\n return [\n NzIconPatchService,\n {\n provide: NZ_ICONS_PATCH,\n useValue: icons\n }\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 NzIconModule {\n static forRoot(icons) {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIcons(icons)]\n };\n }\n static forChild(icons) {\n return {\n ngModule: NzIconModule,\n providers: [provideNzIconsPatch(icons)]\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconModule, imports: [NzIconDirective], exports: [NzIconDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconModule }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"18.2.1\", ngImport: i0, type: NzIconModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [NzIconDirective],\n exports: [NzIconDirective]\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 { DEFAULT_TWOTONE_COLOR, NZ_ICONS, NZ_ICONS_PATCH, NZ_ICONS_USED_B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