import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@ironsource/fusion-ui/components/icon/v1";
const _c0 = () => ({ iconName: "loading-rotate", iconVersion: "v2" });
const _c1 = () => ({ iconName: "loader-dots-v4", iconVersion: "v2" });
export class ButtonLoadingComponent {
    constructor() {
        this.projectContent = false;
        this.buttonWithIcon = false;
    }
    static { this.ɵfac = function ButtonLoadingComponent_Factory(t) { return new (t || ButtonLoadingComponent)(); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ButtonLoadingComponent, selectors: [["fusion-button-loading"]], inputs: { projectContent: "projectContent", buttonWithIcon: "buttonWithIcon" }, decls: 1, vars: 3, consts: [[1, "icon-loading", 3, "name"]], template: function ButtonLoadingComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelement(0, "fusion-icon", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("name", !ctx.projectContent && ctx.buttonWithIcon ? i0.ɵɵpureFunction0(1, _c0) : i0.ɵɵpureFunction0(2, _c1));
        } }, dependencies: [i1.IconComponent], styles: ["@keyframes _ngcontent-%COMP%_rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}[_nghost-%COMP%]{height:24px;width:24px}[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:24px;width:24px}[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:currentColor}[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg{width:20px;height:20px}[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg *{fill:currentColor}.large[_nghost-%COMP%], .large   [_nghost-%COMP%]{height:32px;width:32px}.large[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%], .large   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{display:block}.large[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg, .large   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:32px;width:32px}.large[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *, .large   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:currentColor}.large[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg, .large   [_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg{width:24px;height:24px}.large[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg *, .large   [_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg *{fill:currentColor}.small[_nghost-%COMP%], .small   [_nghost-%COMP%]{height:24px;width:24px}.small[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%], .small   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{display:block}.small[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg, .small   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:24px;width:24px}.small[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *, .small   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:currentColor}.small[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg, .small   [_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg{width:16px;height:16px}.small[_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg *, .small   [_nghost-%COMP%]   fusion-icon.loading-clean[_ngcontent-%COMP%]     svg *{fill:currentColor}.fu-link-button[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%], .fu-link-button   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{height:16px}.fu-link-button[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg, .fu-link-button   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:16px;width:22px}.fu-link-button[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *, .fu-link-button   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:var(--fu-primary-500, #3083FF)}.fu-link-button.third[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%], .fu-link-button.third   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{height:16px}.fu-link-button.third[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg, .fu-link-button.third   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:16px;width:22px}.fu-link-button.third[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *, .fu-link-button.third   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:var(--fu-light-900, #7B838C)}.fu-link-button.black[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%], .fu-link-button.black   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]{height:16px}.fu-link-button.black[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg, .fu-link-button.black   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg{height:16px;width:22px}.fu-link-button.black[_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *, .fu-link-button.black   [_nghost-%COMP%]   fusion-icon.loader-dots-v4[_ngcontent-%COMP%]     svg *{fill:var(--fu-black-500, #53575B)}"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonLoadingComponent, [{
        type: Component,
        args: [{ selector: 'fusion-button-loading', template: "<fusion-icon\n    class=\"icon-loading\"\n    [name]=\"!projectContent && buttonWithIcon ? {iconName: 'loading-rotate', iconVersion: 'v2'} : {iconName: 'loader-dots-v4', iconVersion: 'v2'}\"\n></fusion-icon>\n", styles: ["@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes shineAnimation{0%{background-position:-750px 0}to{background-position:750px 0}}:host{height:24px;width:24px}:host fusion-icon.loader-dots-v4{display:block}:host fusion-icon.loader-dots-v4 ::ng-deep svg{height:24px;width:24px}:host fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:currentColor}:host fusion-icon.loading-clean ::ng-deep svg{width:20px;height:20px}:host fusion-icon.loading-clean ::ng-deep svg *{fill:currentColor}:host-context(.large){height:32px;width:32px}:host-context(.large) fusion-icon.loader-dots-v4{display:block}:host-context(.large) fusion-icon.loader-dots-v4 ::ng-deep svg{height:32px;width:32px}:host-context(.large) fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:currentColor}:host-context(.large) fusion-icon.loading-clean ::ng-deep svg{width:24px;height:24px}:host-context(.large) fusion-icon.loading-clean ::ng-deep svg *{fill:currentColor}:host-context(.small){height:24px;width:24px}:host-context(.small) fusion-icon.loader-dots-v4{display:block}:host-context(.small) fusion-icon.loader-dots-v4 ::ng-deep svg{height:24px;width:24px}:host-context(.small) fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:currentColor}:host-context(.small) fusion-icon.loading-clean ::ng-deep svg{width:16px;height:16px}:host-context(.small) fusion-icon.loading-clean ::ng-deep svg *{fill:currentColor}:host-context(.fu-link-button) fusion-icon.loader-dots-v4{height:16px}:host-context(.fu-link-button) fusion-icon.loader-dots-v4 ::ng-deep svg{height:16px;width:22px}:host-context(.fu-link-button) fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:var(--fu-primary-500, #3083FF)}:host-context(.fu-link-button.third) fusion-icon.loader-dots-v4{height:16px}:host-context(.fu-link-button.third) fusion-icon.loader-dots-v4 ::ng-deep svg{height:16px;width:22px}:host-context(.fu-link-button.third) fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:var(--fu-light-900, #7B838C)}:host-context(.fu-link-button.black) fusion-icon.loader-dots-v4{height:16px}:host-context(.fu-link-button.black) fusion-icon.loader-dots-v4 ::ng-deep svg{height:16px;width:22px}:host-context(.fu-link-button.black) fusion-icon.loader-dots-v4 ::ng-deep svg *{fill:var(--fu-black-500, #53575B)}\n"] }]
    }], null, { projectContent: [{
            type: Input
        }], buttonWithIcon: [{
            type: Input
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ButtonLoadingComponent, { className: "ButtonLoadingComponent", filePath: "components/button-loading/button-loading.component.ts", lineNumber: 8 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWxvYWRpbmcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvYnV0dG9uL3YzL2NvbXBvbmVudHMvYnV0dG9uLWxvYWRpbmcvYnV0dG9uLWxvYWRpbmcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZnVzaW9uLXVpL2NvbXBvbmVudHMvYnV0dG9uL3YzL2NvbXBvbmVudHMvYnV0dG9uLWxvYWRpbmcvYnV0dG9uLWxvYWRpbmcuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxL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