import { ChangeDetectionStrategy, Component, Inject, Input, } from '@angular/core';
import { MatSnackBar, MatSnackBarModule, } from '@angular/material/snack-bar';
import { MatIconModule } from '@angular/material/icon';
import { ClipboardModule } from '@angular/cdk/clipboard';
import { MatButtonModule } from '@angular/material/button';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/button";
import * as i2 from "@angular/cdk/clipboard";
import * as i3 from "@angular/material/icon";
import * as i4 from "@angular/material/snack-bar";
export class CopyToClipboardButtonComponent {
    constructor(snackbar) {
        this.snackbar = snackbar;
        this.value = '';
    }
    copied() {
        this.snackbar.open('Erfolgreich in die Zwischenablage kopiert.', 'OK', {
            duration: 2500,
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: CopyToClipboardButtonComponent, deps: [{ token: MatSnackBar }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: CopyToClipboardButtonComponent, isStandalone: true, selector: "rxap-copy-to-clipboard-button", inputs: { value: "value" }, ngImport: i0, template: "<button\n  (cdkCopyToClipboardCopied)=\"copied()\"\n  (click)=\"$event.stopPropagation()\"\n  [cdkCopyToClipboard]=\"value\"\n  mat-icon-button\n  type=\"button\"\n>\n  <mat-icon>content_copy</mat-icon>\n</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: ClipboardModule }, { kind: "directive", type: i2.CdkCopyToClipboard, selector: "[cdkCopyToClipboard]", inputs: ["cdkCopyToClipboard", "cdkCopyToClipboardAttempts"], outputs: ["cdkCopyToClipboardCopied"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatSnackBarModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: CopyToClipboardButtonComponent, decorators: [{
            type: Component,
            args: [{ selector: 'rxap-copy-to-clipboard-button', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
                        MatButtonModule,
                        ClipboardModule,
                        MatIconModule,
                        MatSnackBarModule,
                    ], template: "<button\n  (cdkCopyToClipboardCopied)=\"copied()\"\n  (click)=\"$event.stopPropagation()\"\n  [cdkCopyToClipboard]=\"value\"\n  mat-icon-button\n  type=\"button\"\n>\n  <mat-icon>content_copy</mat-icon>\n</button>\n" }]
        }], ctorParameters: () => [{ type: i4.MatSnackBar, decorators: [{
                    type: Inject,
                    args: [MatSnackBar]
                }] }], propDecorators: { value: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29weS10by1jbGlwYm9hcmQtYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXIvY29tcG9uZW50cy9zcmMvbGliL2NvcHktdG8tY2xpcGJvYXJkLWJ1dHRvbi9jb3B5LXRvLWNsaXBib2FyZC1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYW5ndWxhci9jb21wb25lbnRzL3NyYy9saWIvY29weS10by1jbGlwYm9hcmQtYnV0dG9uL2NvcHktdG8tY2xpcGJvYXJkLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxNQUFNLEVBQ04sS0FBSyxHQUNOLE1BQU0sZUFBZSxDQUFDO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