import * as i0 from '@angular/core';
import { inject, ChangeDetectorRef, input, booleanAttribute, model, output, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
import * as i1 from '@angular/forms';
import { NgForm, FormGroup, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { MatFormFieldModule } from '@angular/material/form-field';
import * as i2 from '@angular/material/slide-toggle';
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import { SdLabel } from '@sdcorejs/angular/forms/label';
import { TranslatePipe } from '@sdcorejs/angular/i18n';
import { SdFormControl, sdViewedTransform, sdViewedInline, sdFormControlState } from '@sdcorejs/angular/forms/models';
import { sdIsEmpty, sdSerializeDataValue } from '@sdcorejs/angular/utilities/data-state';
import { Subscription } from 'rxjs';
import * as uuid from 'uuid';

/* eslint-disable @typescript-eslint/no-explicit-any */
class SdSwitch {
    #ref = inject(ChangeDetectorRef);
    id = `I${uuid.v4()}`;
    #name = uuid.v4();
    #model = false;
    formControl = new SdFormControl();
    #subscription = new Subscription();
    // Inputs — accept null|undefined at boundary, transform to canonical
    autoIdInput = input(undefined, { ...(ngDevMode ? { debugName: "autoIdInput" } : /* istanbul ignore next */ {}), alias: 'autoId',
        transform: (v) => v ?? undefined });
    name = input(undefined, { ...(ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {}), transform: (v) => v ?? undefined });
    form = input(undefined, { ...(ngDevMode ? { debugName: "form" } : /* istanbul ignore next */ {}), transform: (val) => {
            if (!val)
                return undefined;
            if (val instanceof NgForm)
                return val.form;
            if (val instanceof FormGroup)
                return val;
            if (val?.form instanceof FormGroup)
                return val.form;
            return undefined;
        } });
    label = input(undefined, { ...(ngDevMode ? { debugName: "label" } : /* istanbul ignore next */ {}), transform: (v) => v ?? undefined });
    // why: legacy callers pass `null` to mean "fallback to primary" — keep that contract
    color = input('primary', { ...(ngDevMode ? { debugName: "color" } : /* istanbul ignore next */ {}), transform: (v) => v || 'primary' });
    disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
    /** Display mode: `false` edit · `true` static view · `'inline'` interactive (disabled `'inline'` → static). */
    viewed = input(false, { ...(ngDevMode ? { debugName: "viewed" } : /* istanbul ignore next */ {}), transform: sdViewedTransform });
    // why: tri-state viewed — `'inline'` keeps the switch interactive; disabled `'inline'` → static.
    #viewedState = sdViewedInline(this.viewed, undefined, this.disabled);
    /** `true` when the static read-only view should render. */
    isViewed = this.#viewedState.isViewed;
    hideInlineError = input(false, { ...(ngDevMode ? { debugName: "hideInlineError" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
    required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
    // Two-way model
    model = model(false, ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
    // Outputs
    sdChange = output();
    // Computed (template bindings)
    autoId = computed(() => (this.autoIdInput() ? `forms-switch-${this.autoIdInput()}` : undefined), ...(ngDevMode ? [{ debugName: "autoId" }] : /* istanbul ignore next */ []));
    #state = sdFormControlState(computed(() => this.formControl));
    dataDisabled = computed(() => (this.#state().disabled ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataDisabled" }] : /* istanbul ignore next */ []));
    dataEmpty = computed(() => (sdIsEmpty(this.#state().value) ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataEmpty" }] : /* istanbul ignore next */ []));
    dataValue = computed(() => sdSerializeDataValue(this.#state().value), ...(ngDevMode ? [{ debugName: "dataValue" }] : /* istanbul ignore next */ []));
    dataRequired = computed(() => (this.required() ? 'true' : 'false'), ...(ngDevMode ? [{ debugName: "dataRequired" }] : /* istanbul ignore next */ []));
    constructor() {
        effect(() => {
            const val = this.name();
            if (val)
                this.#name = val;
        });
        effect(() => {
            if (this.disabled())
                this.formControl.disable();
            else
                this.formControl.enable();
        });
        effect(() => {
            const value = this.model();
            if (this.#model !== value) {
                this.#model = value;
                this.formControl.setValue(value, { emitEvent: false });
            }
        });
        effect(() => {
            this.required();
            this.#updateValidator();
        });
    }
    ngOnInit() {
        this.#subscription.add(this.formControl.sdChanges.subscribe(() => {
            this.#ref.markForCheck();
        }));
    }
    ngAfterViewInit() {
        this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));
        this.form()?.addControl(this.#name, this.formControl);
        this.#ref.detectChanges();
    }
    ngOnDestroy() {
        this.form()?.removeControl(this.#name);
        this.#subscription.unsubscribe();
    }
    #onChange = (value) => {
        this.#model = value;
        this.model.set(value);
        this.sdChange.emit(value);
    };
    #updateValidator = () => {
        this.formControl.clearValidators();
        this.formControl.clearAsyncValidators();
        const validators = [];
        const asyncValidators = [];
        if (this.required()) {
            validators.push(Validators.required);
        }
        this.formControl.setValidators(validators);
        this.formControl.setAsyncValidators(asyncValidators);
        this.formControl.updateValueAndValidity();
    };
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: SdSwitch, isStandalone: true, selector: "sd-switch", inputs: { autoIdInput: { classPropertyName: "autoIdInput", publicName: "autoId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, viewed: { classPropertyName: "viewed", publicName: "viewed", isSignal: true, isRequired: false, transformFunction: null }, hideInlineError: { classPropertyName: "hideInlineError", publicName: "hideInlineError", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { model: "modelChange", sdChange: "sdChange" }, host: { properties: { "class.sd-c-primary": "color() === 'primary'", "class.sd-c-secondary": "color() === 'secondary'", "class.sd-c-info": "color() === 'info'", "class.sd-c-success": "color() === 'success'", "class.sd-c-warning": "color() === 'warning'", "class.sd-c-error": "color() === 'error'" } }, ngImport: i0, template: "@if (isViewed()) {\n  @if (label()) {\n    <div class=\"T14R text-black400\">{{ label() }}</div>\n  }\n  <div class=\"T14M\">{{ (model() ? 'core.form.switch.on' : 'core.form.switch.off') | translate }}</div>\n} @else {\n  <mat-slide-toggle\n    [formControl]=\"formControl\"\n    [attr.data-autoId]=\"autoId()\"\n    [attr.data-disabled]=\"dataDisabled()\"\n    [attr.data-empty]=\"dataEmpty()\"\n    [attr.data-value]=\"dataValue()\"\n    [attr.data-required]=\"dataRequired()\">\n    <sd-label [label]=\"label()\" [required]=\"required()\"></sd-label>\n  </mat-slide-toggle>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host ::ng-deep label{margin-bottom:0!important}:host{--sd-c: var(--sd-primary);--sd-c-light: var(--sd-primary-light)}:host(.sd-c-secondary){--sd-c: var(--sd-secondary);--sd-c-light: var(--sd-secondary-light)}:host(.sd-c-info){--sd-c: var(--sd-info);--sd-c-light: var(--sd-info-light)}:host(.sd-c-success){--sd-c: var(--sd-success);--sd-c-light: var(--sd-success-light)}:host(.sd-c-warning){--sd-c: var(--sd-warning);--sd-c-light: var(--sd-warning-light)}:host(.sd-c-error){--sd-c: var(--sd-error);--sd-c-light: var(--sd-error-light)}:host ::ng-deep .mat-mdc-slide-toggle,:host ::ng-deep .mdc-switch{--mdc-switch-selected-handle-color: var(--sd-c) !important;--mdc-switch-selected-focus-handle-color: var(--sd-c) !important;--mdc-switch-selected-hover-handle-color: var(--sd-c) !important;--mdc-switch-selected-pressed-handle-color: var(--sd-c) !important;--mdc-switch-selected-track-color: var(--sd-c-light) !important;--mdc-switch-selected-focus-track-color: var(--sd-c-light) !important;--mdc-switch-selected-hover-track-color: var(--sd-c-light) !important;--mdc-switch-selected-pressed-track-color: var(--sd-c-light) !important;--mdc-switch-selected-focus-state-layer-color: var(--sd-c-light) !important;--mdc-switch-selected-hover-state-layer-color: var(--sd-c-light) !important;--mdc-switch-selected-pressed-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-focus-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-hover-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-pressed-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-focus-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-hover-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-pressed-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-focus-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-hover-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-pressed-state-layer-color: var(--sd-c-light) !important}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: SdLabel, selector: "sd-label", inputs: ["label", "description", "required", "helperText"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SdSwitch, decorators: [{
            type: Component,
            args: [{ selector: 'sd-switch', changeDetection: ChangeDetectionStrategy.OnPush, host: {
                        // why: dùng host class .sd-c-<x> (thay vì data-attr) để reactivity host-binding với
                        // signal chắc chắn áp dụng + có default fallback `sd-c-primary` khi color() là 'primary'.
                        // Test cũ assert data-sd-color đã được thay bằng class assert tương ứng.
                        '[class.sd-c-primary]': "color() === 'primary'",
                        '[class.sd-c-secondary]': "color() === 'secondary'",
                        '[class.sd-c-info]': "color() === 'info'",
                        '[class.sd-c-success]': "color() === 'success'",
                        '[class.sd-c-warning]': "color() === 'warning'",
                        '[class.sd-c-error]': "color() === 'error'",
                    }, imports: [FormsModule, ReactiveFormsModule, MatSlideToggleModule, MatFormFieldModule, SdLabel, TranslatePipe], template: "@if (isViewed()) {\n  @if (label()) {\n    <div class=\"T14R text-black400\">{{ label() }}</div>\n  }\n  <div class=\"T14M\">{{ (model() ? 'core.form.switch.on' : 'core.form.switch.off') | translate }}</div>\n} @else {\n  <mat-slide-toggle\n    [formControl]=\"formControl\"\n    [attr.data-autoId]=\"autoId()\"\n    [attr.data-disabled]=\"dataDisabled()\"\n    [attr.data-empty]=\"dataEmpty()\"\n    [attr.data-value]=\"dataValue()\"\n    [attr.data-required]=\"dataRequired()\">\n    <sd-label [label]=\"label()\" [required]=\"required()\"></sd-label>\n  </mat-slide-toggle>\n}\n", styles: [".text-primary{color:var(--sd-primary)!important}.bg-primary{background:var(--sd-primary)!important}.border-primary{border-color:var(--sd-primary)!important}.text-primary-light{color:var(--sd-primary-light)!important}.bg-primary-light{background:var(--sd-primary-light)!important}.border-primary-light{border-color:var(--sd-primary-light)!important}.text-primary-dark{color:var(--sd-primary-dark)!important}.bg-primary-dark{background:var(--sd-primary-dark)!important}.border-primary-dark{border-color:var(--sd-primary-dark)!important}.text-info{color:var(--sd-info)!important}.bg-info{background:var(--sd-info)!important}.border-info{border-color:var(--sd-info)!important}.text-info-light{color:var(--sd-info-light)!important}.bg-info-light{background:var(--sd-info-light)!important}.border-info-light{border-color:var(--sd-info-light)!important}.text-info-dark{color:var(--sd-info-dark)!important}.bg-info-dark{background:var(--sd-info-dark)!important}.border-info-dark{border-color:var(--sd-info-dark)!important}.text-success{color:var(--sd-success)!important}.bg-success{background:var(--sd-success)!important}.border-success{border-color:var(--sd-success)!important}.text-success-light{color:var(--sd-success-light)!important}.bg-success-light{background:var(--sd-success-light)!important}.border-success-light{border-color:var(--sd-success-light)!important}.text-success-dark{color:var(--sd-success-dark)!important}.bg-success-dark{background:var(--sd-success-dark)!important}.border-success-dark{border-color:var(--sd-success-dark)!important}.text-warning{color:var(--sd-warning)!important}.bg-warning{background:var(--sd-warning)!important}.border-warning{border-color:var(--sd-warning)!important}.text-warning-light{color:var(--sd-warning-light)!important}.bg-warning-light{background:var(--sd-warning-light)!important}.border-warning-light{border-color:var(--sd-warning-light)!important}.text-warning-dark{color:var(--sd-warning-dark)!important}.bg-warning-dark{background:var(--sd-warning-dark)!important}.border-warning-dark{border-color:var(--sd-warning-dark)!important}.text-error{color:var(--sd-error)!important}.bg-error{background:var(--sd-error)!important}.border-error{border-color:var(--sd-error)!important}.text-error-light{color:var(--sd-error-light)!important}.bg-error-light{background:var(--sd-error-light)!important}.border-error-light{border-color:var(--sd-error-light)!important}.text-error-dark{color:var(--sd-error-dark)!important}.bg-error-dark{background:var(--sd-error-dark)!important}.border-error-dark{border-color:var(--sd-error-dark)!important}.text-secondary{color:var(--sd-secondary)!important}.bg-secondary{background:var(--sd-secondary)!important}.border-secondary{border-color:var(--sd-secondary)!important}.text-secondary-light{color:var(--sd-secondary-light)!important}.bg-secondary-light{background:var(--sd-secondary-light)!important}.border-secondary-light{border-color:var(--sd-secondary-light)!important}.text-secondary-dark{color:var(--sd-secondary-dark)!important}.bg-secondary-dark{background:var(--sd-secondary-dark)!important}.border-secondary-dark{border-color:var(--sd-secondary-dark)!important}.text-light{color:var(--sd-light)!important}.bg-light{background:var(--sd-light)!important}.border-light{border-color:var(--sd-light)!important}.text-dark{color:var(--sd-dark)!important}.bg-dark{background:var(--sd-dark)!important}.border-dark{border-color:var(--sd-dark)!important}.text-black500{color:var(--sd-black500)!important}.bg-black500{background:var(--sd-black500)!important}.border-black500{border-color:var(--sd-black500)!important}.text-black400{color:var(--sd-black400)!important}.bg-black400{background:var(--sd-black400)!important}.border-black400{border-color:var(--sd-black400)!important}.text-black300{color:var(--sd-black300)!important}.bg-black300{background:var(--sd-black300)!important}.border-black300{border-color:var(--sd-black300)!important}.text-black200{color:var(--sd-black200)!important}.bg-black200{background:var(--sd-black200)!important}.border-black200{border-color:var(--sd-black200)!important}.text-black100{color:var(--sd-black100)!important}.bg-black100{background:var(--sd-black100)!important}.border-black100{border-color:var(--sd-black100)!important}.text-white{color:#fff!important}.bg-white{background:#fff!important}.border-white{border-color:#fff!important}.text-black{color:#000!important}.bg-black{background:#000!important}.border-black{border-color:#000!important}:host ::ng-deep label{margin-bottom:0!important}:host{--sd-c: var(--sd-primary);--sd-c-light: var(--sd-primary-light)}:host(.sd-c-secondary){--sd-c: var(--sd-secondary);--sd-c-light: var(--sd-secondary-light)}:host(.sd-c-info){--sd-c: var(--sd-info);--sd-c-light: var(--sd-info-light)}:host(.sd-c-success){--sd-c: var(--sd-success);--sd-c-light: var(--sd-success-light)}:host(.sd-c-warning){--sd-c: var(--sd-warning);--sd-c-light: var(--sd-warning-light)}:host(.sd-c-error){--sd-c: var(--sd-error);--sd-c-light: var(--sd-error-light)}:host ::ng-deep .mat-mdc-slide-toggle,:host ::ng-deep .mdc-switch{--mdc-switch-selected-handle-color: var(--sd-c) !important;--mdc-switch-selected-focus-handle-color: var(--sd-c) !important;--mdc-switch-selected-hover-handle-color: var(--sd-c) !important;--mdc-switch-selected-pressed-handle-color: var(--sd-c) !important;--mdc-switch-selected-track-color: var(--sd-c-light) !important;--mdc-switch-selected-focus-track-color: var(--sd-c-light) !important;--mdc-switch-selected-hover-track-color: var(--sd-c-light) !important;--mdc-switch-selected-pressed-track-color: var(--sd-c-light) !important;--mdc-switch-selected-focus-state-layer-color: var(--sd-c-light) !important;--mdc-switch-selected-hover-state-layer-color: var(--sd-c-light) !important;--mdc-switch-selected-pressed-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-focus-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-hover-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-pressed-handle-color: var(--sd-c) !important;--mat-slide-toggle-selected-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-focus-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-hover-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-pressed-track-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-focus-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-hover-state-layer-color: var(--sd-c-light) !important;--mat-slide-toggle-selected-pressed-state-layer-color: var(--sd-c-light) !important}\n"] }]
        }], ctorParameters: () => [], propDecorators: { autoIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], viewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewed", required: false }] }], hideInlineError: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideInlineError", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }, { type: i0.Output, args: ["modelChange"] }], sdChange: [{ type: i0.Output, args: ["sdChange"] }] } });

/**
 * Generated bundle index. Do not edit.
 */

export { SdSwitch };
//# sourceMappingURL=sdcorejs-angular-forms-switch.mjs.map
