{"version":3,"file":"ng-zorro-antd-core-form.mjs","names":[],"sources":["../../components/core/form/nz-form-item-feedback-icon.component.ts","../../components/core/form/nz-form-size.token.ts","../../components/core/form/nz-form-status.service.ts","../../components/core/form/nz-form-variant.token.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 { Component, computed, input, ViewEncapsulation } from '@angular/core';\n\nimport { NzValidateStatus } from 'ng-zorro-antd/core/types';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nconst iconTypeMap = {\n  error: 'close-circle-fill',\n  validating: 'loading',\n  success: 'check-circle-fill',\n  warning: 'exclamation-circle-fill'\n} as const;\nconst CLASS_NAME = 'ant-form-item-feedback-icon';\n\n@Component({\n  selector: 'nz-form-item-feedback-icon',\n  exportAs: 'nzFormFeedbackIcon',\n  imports: [NzIconModule],\n  encapsulation: ViewEncapsulation.None,\n  template: `\n    @if (iconType(); as type) {\n      <nz-icon [nzType]=\"type\" />\n    }\n  `,\n  host: {\n    '[class]': 'class()'\n  }\n})\nexport class NzFormItemFeedbackIconComponent {\n  readonly status = input<NzValidateStatus>('');\n  protected readonly iconType = computed(() => {\n    const status = this.status();\n    return status ? iconTypeMap[status] : null;\n  });\n  protected readonly class = computed(() => {\n    const status = this.status();\n    return {\n      [CLASS_NAME]: true,\n      [`${CLASS_NAME}-error`]: status === 'error',\n      [`${CLASS_NAME}-warning`]: status === 'warning',\n      [`${CLASS_NAME}-success`]: status === 'success',\n      [`${CLASS_NAME}-validating`]: status === 'validating'\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\nimport { InjectionToken, type Signal } from '@angular/core';\n\nimport type { NzSizeLDSType } from 'ng-zorro-antd/core/types';\n\nexport const NZ_FORM_SIZE = new InjectionToken<Signal<NzSizeLDSType | undefined>>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-form-size' : ''\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 { Injectable } from '@angular/core';\nimport { ReplaySubject } from 'rxjs';\n\nimport { NzValidateStatus } from 'ng-zorro-antd/core/types';\n\n@Injectable()\nexport class NzFormStatusService {\n  formStatusChanges = new ReplaySubject<{ status: NzValidateStatus; hasFeedback: boolean }>(1);\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 { InjectionToken, type Signal } from '@angular/core';\n\nimport type { NzVariant } from 'ng-zorro-antd/core/types';\n\nexport const NZ_FORM_VARIANT = new InjectionToken<Signal<NzVariant>>(\n  typeof ngDevMode !== 'undefined' && ngDevMode ? 'nz-form-variant' : ''\n);\n"],"mappings":";;;;;AAUA,MAAM,cAAc;CAClB,OAAO;CACP,YAAY;CACZ,SAAS;CACT,SAAS;AACD;AACV,MAAM,aAAa;AAgBnB,IAAa,kCAAb,MAAa,gCAA+B;CACjC,SAAS,MAAwB,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAC1B,WAAW,eAAc;EAC1C,MAAM,SAAS,KAAK,OAAM;EAC1B,OAAO,SAAS,YAAY,UAAU;CACxC,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CACiB,QAAQ,eAAc;EACvC,MAAM,SAAS,KAAK,OAAM;EAC1B,OAAO;IACJ,aAAa;IACb,GAAG,WAAU,UAAW,WAAW;IACnC,GAAG,WAAU,YAAa,WAAW;IACrC,GAAG,WAAU,YAAa,WAAW;IACrC,GAAG,WAAU,eAAgB,WAAW;EAC1C;CACH,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,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