import { __decorate, __metadata } from "tslib";
import { Component, EventEmitter, forwardRef, Input, Output, TemplateRef } from '@angular/core';
import { I18nService } from 'ng-devui/i18n';
import { DevConfigService, WithConfig } from 'ng-devui/utils';
import { ACCORDION } from './accordion-token';
import * as i0 from "@angular/core";
import * as i1 from "ng-devui/i18n";
import * as i2 from "ng-devui/utils";
import * as i3 from "@angular/common";
import * as i4 from "./accordion-list.component";
export class AccordionComponent {
    constructor(i18n, devConfigService) {
        this.i18n = i18n;
        this.devConfigService = devConfigService;
        /* Key值定义, 用于自定义数据结构 */
        this.titleKey = 'title'; // 标题的key，item[titleKey]类型为string，为标题显示内容
        this.loadingKey = 'loading'; // 子菜单动态加载item[loadingKey]类型为boolean
        this.childrenKey = 'children'; // 子菜单Key
        this.disabledKey = 'disabled'; // 是否禁用Key
        this.activeKey = 'active'; // 菜单是否激活/选中
        this.openKey = 'open'; // 菜单是否打开
        this.menuToggle = new EventEmitter(); // 可展开菜单展开事件
        this.itemClick = new EventEmitter(); // 可点击菜单点击事件
        this.activeItemChange = new EventEmitter();
        /** 高级选项和模板 */
        this.restrictOneOpen = false; // 限制一级菜单同时只能打开一个
        this.autoOpenActiveMenu = false; // 自动展开活跃菜单
        this.showNoContent = true; // 没有内容的时候是否显示没有数据
        /* 内置路由/链接/动态判断路由或链接类型 */
        this.linkType = '';
        this.linkTypeKey = 'linkType'; // linkType为'dependOnLinkTypeKey'时指定对象linkType定义区
        this.linkKey = 'link'; // 链接内容的key
        this.linkTargetKey = 'target'; // 链接目标窗口的key
        this.linkDefaultTarget = '_self'; // 不设置target的时候target默认值
        this.accordionType = 'normal';
        this.showAnimation = true;
        // 点击了可点击菜单
        this.itemClickFn = (itemEvent) => {
            const prevActiveItem = this.activeItem;
            this.activeItemFn(itemEvent.item);
            this.itemClick.emit({ ...itemEvent, prevActiveItem: prevActiveItem });
        };
        this.linkItemClickFn = (itemEvent) => {
            const prevActiveItem = this.activeItem;
            this.activeItem = itemEvent.item;
            this.itemClick.emit({ ...itemEvent, prevActiveItem: prevActiveItem });
        };
        // 打开或关闭可折叠菜单
        this.menuToggleFn = (menuEvent) => {
            this.openMenuFn(menuEvent.item, menuEvent.open);
            this.menuToggle.emit(menuEvent);
        };
    }
    ngOnChanges(changes) {
        if (changes['data']) {
            this.initActiveItem();
        }
        if (changes['autoOpenActiveMenu']) {
            if (this.autoOpenActiveMenu && changes['autoOpenActiveMenu'].previousValue === false) {
                this.cleanOpenData();
            }
        }
    }
    ngOnInit() {
        if (this.data) {
            this.initActiveItem();
        }
        this.i18nCommonText = this.i18n.getI18nText().common;
        this.i18nSubscription = this.i18n.langChange().subscribe(data => {
            this.i18nCommonText = data.common;
        });
    }
    ngOnDestroy() {
        if (this.i18nSubscription) {
            this.i18nSubscription.unsubscribe();
        }
    }
    flatten(arr, childrenKey = 'children', includeParent = false, includeLeaf = true) {
        return arr.reduce((acc, cur) => {
            const children = cur[childrenKey];
            if (children === undefined) {
                if (includeLeaf) {
                    acc.push(cur);
                }
            }
            else {
                if (includeParent) {
                    acc.push(cur);
                }
                if (Array.isArray(children)) {
                    acc.push(...this.flatten(children, childrenKey, includeParent));
                }
            }
            return acc;
        }, []);
    }
    cleanOpenData() {
        this.flatten(this.data, this.childrenKey, true, false).forEach(item => { item[this.openKey] = undefined; });
    }
    // 默认激活
    initActiveItem() {
        const activeItem = this.flatten(this.data, this.childrenKey)
            .filter(item => item[this.activeKey]).pop();
        if (activeItem) {
            if (!this.activeItem) {
                this.activeItemFn(activeItem);
            }
        }
        else {
            this.activeItem = undefined;
        }
    }
    // 激活子菜单项并去掉其他子菜单的激活
    activeItemFn(item) {
        if (this.activeItem && this.activeItem[this.activeKey]) {
            this.activeItem[this.activeKey] = false;
        }
        item[this.activeKey] = true;
        this.activeItem = item;
        this.activeItemChange.emit(this.activeItem);
    }
    // 打开或关闭一级菜单，如果有限制只能展开一项则关闭其他一级菜单
    openMenuFn(item, open) {
        if (open && this.restrictOneOpen) {
            (this.data).forEach(itemtemp => { itemtemp[this.openKey] = false; });
        }
        item[this.openKey] = open;
    }
}
AccordionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: AccordionComponent, deps: [{ token: i1.I18nService }, { token: i2.DevConfigService }], target: i0.ɵɵFactoryTarget.Component });
AccordionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: AccordionComponent, selector: "d-accordion", inputs: { data: "data", titleKey: "titleKey", loadingKey: "loadingKey", childrenKey: "childrenKey", disabledKey: "disabledKey", activeKey: "activeKey", openKey: "openKey", menuItemTemplate: "menuItemTemplate", itemTemplate: "itemTemplate", restrictOneOpen: "restrictOneOpen", autoOpenActiveMenu: "autoOpenActiveMenu", showNoContent: "showNoContent", noContentTemplate: "noContentTemplate", loadingTemplate: "loadingTemplate", innerListTemplate: "innerListTemplate", linkType: "linkType", linkTypeKey: "linkTypeKey", linkKey: "linkKey", linkTargetKey: "linkTargetKey", linkDefaultTarget: "linkDefaultTarget", accordionType: "accordionType", showAnimation: "showAnimation" }, outputs: { menuToggle: "menuToggle", itemClick: "itemClick", activeItemChange: "activeItemChange" }, providers: [{
            provide: ACCORDION,
            useExisting: forwardRef(() => AccordionComponent)
        }], usesOnChanges: true, ngImport: i0, template: "<d-accordion-list\n  class=\"devui-accordion-menu devui-scrollbar\"\n  [ngClass]=\"{ 'devui-accordion-menu-normal': accordionType === 'normal' }\"\n  [data]=\"data\"\n  [deepth]=\"0\"\n  [parent]=\"null\"\n>\n</d-accordion-list>\n", styles: ["@charset \"UTF-8\";:host{display:block}:host ::ng-deep d-accordion-menu,:host ::ng-deep d-accordion-item,:host ::ng-deep d-accordion-item-hreflink,:host ::ng-deep d-accordion-item-routerlink,:host ::ng-deep d-accordion-list{display:block}:host ::ng-deep .devui-accordion-menu{display:block;background:#ffffff;background:var(--devui-base-bg, #ffffff);width:100%;overflow-y:auto;border-radius:2px;border-radius:var(--devui-border-radius, 2px);height:100%}:host ::ng-deep .devui-accordion-menu.devui-accordion-menu-normal{box-shadow:0 1px 4px #252b3a33;box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-shadow, rgba(37, 43, 58, .2))}:host ::ng-deep .devui-accordion-menu>.devui-accordion-list{padding:8px 0}:host ::ng-deep .devui-accordion-menu .devui-over-flow-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host ::ng-deep .devui-accordion-submenu{background:#ffffff;background:var(--devui-base-bg, #ffffff);width:100%}:host ::ng-deep .devui-accordion-item-title{display:block;height:40px;width:100%;padding:0 12px 0 20px;font-weight:400;line-height:40px;color:#575d6c;color:var(--devui-text-weak, #575d6c);background:transparent;cursor:pointer}:host ::ng-deep .devui-accordion-item-title.disabled{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}:host ::ng-deep .devui-accordion-item-title.disabled>a{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-item-title:not(.disabled):hover{background:#f2f2f3;background:var(--devui-list-item-hover-bg, #f2f2f3);color:#252b3a;color:var(--devui-list-item-hover-text, #252b3a)}:host ::ng-deep .devui-accordion-item-title:not(.disabled).devui-router-active,:host ::ng-deep .devui-accordion-item-title:not(.disabled).active:not(.open){color:#526ecc;color:var(--devui-brand-active, #526ecc);font-weight:700}:host ::ng-deep .devui-accordion-item-title:not(.disabled).devui-router-active>a,:host ::ng-deep .devui-accordion-item-title:not(.disabled).active:not(.open)>a{color:#526ecc;color:var(--devui-brand-active, #526ecc)}:host ::ng-deep .devui-accordion-item-title>a{text-decoration:none;display:block;width:100%;color:#575d6c;color:var(--devui-text-weak, #575d6c)}:host ::ng-deep .devui-accordion-item-title>a:hover{color:inherit;text-decoration:none}:host ::ng-deep d-accordion-item-hreflink.devui-accordion-item-title,:host ::ng-deep d-accordion-item-routerlink.devui-accordion-item-title{padding:0}:host ::ng-deep d-accordion-item-hreflink.devui-accordion-item-title>a,:host ::ng-deep d-accordion-item-routerlink.devui-accordion-item-title>a{padding:0 12px 0 20px}:host ::ng-deep .devui-accordion-menu-item{overflow-y:hidden}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title{position:relative}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon{display:inline-block;text-indent:0;pointer-events:none;position:absolute;right:10px;top:12px;width:16px;height:16px;line-height:16px;transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon>svg{width:16px;height:16px}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon>svg path{fill:#575d6c;fill:var(--devui-text-weak, #575d6c)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title:not(.open).active svg path{fill:#252b3a;fill:var(--devui-icon-fill-active, #252b3a)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.open>.devui-accordion-open-icon{transform:rotate(180deg);transform-origin:center}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.disabled>.devui-accordion-open-icon{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.disabled>.devui-accordion-open-icon svg path{fill:#cfd0d3;fill:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title{padding-right:28px}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.active:not(.open){color:#526ecc;color:var(--devui-brand-active, #526ecc);background:transparent}:host ::ng-deep .devui-accordion-item-title{position:relative}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter{position:absolute;display:inline-block;left:10px;width:2px;height:40px;background:#f2f2f3;background:var(--devui-dividing-line, #f2f2f3);vertical-align:middle}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter.devui-parent-list{background-color:transparent}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter:before{content:\"\";display:block;width:2px;height:18px;background-color:#5e7ce0;background-color:var(--devui-form-control-line-active, #5e7ce0);position:absolute;top:11px;left:0;opacity:0}:host ::ng-deep .devui-accordion-item-title.devui-router-active:not(.open) .devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-item-title.active:not(.open) .devui-accordion-splitter:before{opacity:1}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title{transition:font-weight .1s cubic-bezier(.645,.045,.355,1),background-color .1s cubic-bezier(.645,.045,.355,1);transition:font-weight var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),background-color var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title .devui-accordion-splitter:before{transform:scaleY(0);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title.devui-router-active:not(.open) .devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title.active:not(.open) .devui-accordion-splitter:before{transform:scaleY(1)}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:28px;top:12px}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter:before{top:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:28px;top:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter:before{top:auto;top:initial;bottom:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:18px;top:11px}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i4.AccordionListComponent, selector: "d-accordion-list", inputs: ["data", "deepth", "parent"] }] });
__decorate([
    WithConfig(),
    __metadata("design:type", Object)
], AccordionComponent.prototype, "showAnimation", void 0);
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: AccordionComponent, decorators: [{
            type: Component,
            args: [{ selector: 'd-accordion', preserveWhitespaces: false, providers: [{
                            provide: ACCORDION,
                            useExisting: forwardRef(() => AccordionComponent)
                        }], template: "<d-accordion-list\n  class=\"devui-accordion-menu devui-scrollbar\"\n  [ngClass]=\"{ 'devui-accordion-menu-normal': accordionType === 'normal' }\"\n  [data]=\"data\"\n  [deepth]=\"0\"\n  [parent]=\"null\"\n>\n</d-accordion-list>\n", styles: ["@charset \"UTF-8\";:host{display:block}:host ::ng-deep d-accordion-menu,:host ::ng-deep d-accordion-item,:host ::ng-deep d-accordion-item-hreflink,:host ::ng-deep d-accordion-item-routerlink,:host ::ng-deep d-accordion-list{display:block}:host ::ng-deep .devui-accordion-menu{display:block;background:#ffffff;background:var(--devui-base-bg, #ffffff);width:100%;overflow-y:auto;border-radius:2px;border-radius:var(--devui-border-radius, 2px);height:100%}:host ::ng-deep .devui-accordion-menu.devui-accordion-menu-normal{box-shadow:0 1px 4px #252b3a33;box-shadow:var(--devui-shadow-length-base, 0 1px 4px 0) var(--devui-shadow, rgba(37, 43, 58, .2))}:host ::ng-deep .devui-accordion-menu>.devui-accordion-list{padding:8px 0}:host ::ng-deep .devui-accordion-menu .devui-over-flow-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host ::ng-deep .devui-accordion-submenu{background:#ffffff;background:var(--devui-base-bg, #ffffff);width:100%}:host ::ng-deep .devui-accordion-item-title{display:block;height:40px;width:100%;padding:0 12px 0 20px;font-weight:400;line-height:40px;color:#575d6c;color:var(--devui-text-weak, #575d6c);background:transparent;cursor:pointer}:host ::ng-deep .devui-accordion-item-title.disabled{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3);cursor:not-allowed}:host ::ng-deep .devui-accordion-item-title.disabled>a{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-item-title:not(.disabled):hover{background:#f2f2f3;background:var(--devui-list-item-hover-bg, #f2f2f3);color:#252b3a;color:var(--devui-list-item-hover-text, #252b3a)}:host ::ng-deep .devui-accordion-item-title:not(.disabled).devui-router-active,:host ::ng-deep .devui-accordion-item-title:not(.disabled).active:not(.open){color:#526ecc;color:var(--devui-brand-active, #526ecc);font-weight:700}:host ::ng-deep .devui-accordion-item-title:not(.disabled).devui-router-active>a,:host ::ng-deep .devui-accordion-item-title:not(.disabled).active:not(.open)>a{color:#526ecc;color:var(--devui-brand-active, #526ecc)}:host ::ng-deep .devui-accordion-item-title>a{text-decoration:none;display:block;width:100%;color:#575d6c;color:var(--devui-text-weak, #575d6c)}:host ::ng-deep .devui-accordion-item-title>a:hover{color:inherit;text-decoration:none}:host ::ng-deep d-accordion-item-hreflink.devui-accordion-item-title,:host ::ng-deep d-accordion-item-routerlink.devui-accordion-item-title{padding:0}:host ::ng-deep d-accordion-item-hreflink.devui-accordion-item-title>a,:host ::ng-deep d-accordion-item-routerlink.devui-accordion-item-title>a{padding:0 12px 0 20px}:host ::ng-deep .devui-accordion-menu-item{overflow-y:hidden}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title{position:relative}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon{display:inline-block;text-indent:0;pointer-events:none;position:absolute;right:10px;top:12px;width:16px;height:16px;line-height:16px;transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon>svg{width:16px;height:16px}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-open-icon>svg path{fill:#575d6c;fill:var(--devui-text-weak, #575d6c)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title:not(.open).active svg path{fill:#252b3a;fill:var(--devui-icon-fill-active, #252b3a)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.open>.devui-accordion-open-icon{transform:rotate(180deg);transform-origin:center}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.disabled>.devui-accordion-open-icon{color:#cfd0d3;color:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.disabled>.devui-accordion-open-icon svg path{fill:#cfd0d3;fill:var(--devui-disabled-text, #cfd0d3)}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title{padding-right:28px}:host ::ng-deep .devui-accordion-menu-item>.devui-accordion-item-title.active:not(.open){color:#526ecc;color:var(--devui-brand-active, #526ecc);background:transparent}:host ::ng-deep .devui-accordion-item-title{position:relative}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter{position:absolute;display:inline-block;left:10px;width:2px;height:40px;background:#f2f2f3;background:var(--devui-dividing-line, #f2f2f3);vertical-align:middle}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter.devui-parent-list{background-color:transparent}:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter:before{content:\"\";display:block;width:2px;height:18px;background-color:#5e7ce0;background-color:var(--devui-form-control-line-active, #5e7ce0);position:absolute;top:11px;left:0;opacity:0}:host ::ng-deep .devui-accordion-item-title.devui-router-active:not(.open) .devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-item-title.active:not(.open) .devui-accordion-splitter:before{opacity:1}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title{transition:font-weight .1s cubic-bezier(.645,.045,.355,1),background-color .1s cubic-bezier(.645,.045,.355,1);transition:font-weight var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1)),background-color var(--devui-animation-duration-fast, .1s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title .devui-accordion-splitter:before{transform:scaleY(0);transition:transform .3s cubic-bezier(.645,.045,.355,1);transition:transform var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title.devui-router-active:not(.open) .devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-show-animate .devui-accordion-item-title.active:not(.open) .devui-accordion-splitter:before{transform:scaleY(1)}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:28px;top:12px}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-item-title>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter:before{top:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:28px;top:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-item-title>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter:before,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter:before{top:auto;top:initial;bottom:0}:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-item-title>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>a>.devui-accordion-splitter,:host ::ng-deep .devui-accordion-list>.devui-accordion-item:last-child:first-child>.devui-accordion-menu-item>.devui-accordion-item-title>.devui-accordion-splitter{height:18px;top:11px}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.I18nService }, { type: i2.DevConfigService }]; }, propDecorators: { data: [{
                type: Input
            }], titleKey: [{
                type: Input
            }], loadingKey: [{
                type: Input
            }], childrenKey: [{
                type: Input
            }], disabledKey: [{
                type: Input
            }], activeKey: [{
                type: Input
            }], openKey: [{
                type: Input
            }], menuItemTemplate: [{
                type: Input
            }], itemTemplate: [{
                type: Input
            }], menuToggle: [{
                type: Output
            }], itemClick: [{
                type: Output
            }], activeItemChange: [{
                type: Output
            }], restrictOneOpen: [{
                type: Input
            }], autoOpenActiveMenu: [{
                type: Input
            }], showNoContent: [{
                type: Input
            }], noContentTemplate: [{
                type: Input
            }], loadingTemplate: [{
                type: Input
            }], innerListTemplate: [{
                type: Input
            }], linkType: [{
                type: Input
            }], linkTypeKey: [{
                type: Input
            }], linkKey: [{
                type: Input
            }], linkTargetKey: [{
                type: Input
            }], linkDefaultTarget: [{
                type: Input
            }], accordionType: [{
                type: Input
            }], showAnimation: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 