{"version":3,"file":"ng-zorro-antd-core-element-patch.mjs","names":[],"sources":["../../components/core/element-patch/element-patch.directive.ts","../../components/core/element-patch/element-patch.module.ts"],"sourcesContent":["/**\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\nimport { Directive, ElementRef, inject } from '@angular/core';\n\nimport { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * A patch directive to select the element of a component.\n */\n@Directive({\n  selector: '[nzElement], [nz-element]',\n  exportAs: 'nzElement'\n})\nexport class NzElementPatchDirective {\n  public elementRef = inject(ElementRef<HTMLElement>);\n  get nativeElement(): NzSafeAny {\n    return this.elementRef.nativeElement;\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\nimport { NgModule } from '@angular/core';\n\nimport { NzElementPatchDirective } from './element-patch.directive';\n\n/**\n * @deprecated Will be removed in v23, please use {@link NzElementPatchDirective} instead.\n */\n@NgModule({\n  imports: [NzElementPatchDirective],\n  exports: [NzElementPatchDirective]\n})\nexport class NzElementPatchModule {}\n"],"mappings":";;AAgBA,IAAa,0BAAb,MAAa,wBAAuB;CAC3B,aAAa,OAAO,UAAuB;CAClD,IAAI,gBAAa;EACf,OAAO,KAAK,WAAW;CACzB;CAJW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAuB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAvB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAuB,cAAA;EAAA,UAAA;EAAA,UAAA,CAAA,WAAA;EAAA,UAAA;CAAA,CAAA;;AAAvB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAuB,YAAA,CAA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