"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const getBadgeStyle = (badgeClass, color) => ({
    className: `.app-accordion-header-${badgeClass}-badge`,
    rnStyleSelector: `app-accordion.${badgeClass}`,
    studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-${badgeClass}`,
    style: {
        'background-color': color
    }
});
const getBadgedtStyle = () => [
    {
        className: `.app-accordion-header-danger-badge`,
        rnStyleSelector: `app-accordion.danger`,
        studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-danger`,
        dtStyle: {
            'background-color': 'var(--wm-color-error)'
        }
    },
    {
        className: `.app-accordion-header-success-badge`,
        rnStyleSelector: `app-accordion.success`,
        studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-success`,
        dtStyle: {
            'background-color': 'var(--wm-color-success)'
        }
    },
    {
        className: `.app-accordion-header-warning-badge`,
        rnStyleSelector: `app-accordion.warning`,
        studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-warning`,
        dtStyle: {
            'background-color': 'var(--wm-color-warning)'
        }
    },
    {
        className: `.app-accordion-header-info-badge`,
        rnStyleSelector: `app-accordion.info`,
        studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-info`,
        dtStyle: {
            'background-color': 'var(--wm-color-info)'
        }
    },
    {
        className: `.app-accordion-header-primary-badge`,
        rnStyleSelector: `app-accordion.primary`,
        studioStyleSelector: `.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label.label-primary`,
        dtStyle: {
            'background-color': 'var(--wm-color-primary)'
        }
    }
];
exports.default = {
    getStyleDefs: () => ([{
            className: '.app-accordion',
            rnStyleSelector: 'app-accordion.root',
            studioStyleSelector: 'app-accordion',
            style: {
                'border-color': '@accordionBorderColor',
                'background-color': '@accordionBgColor'
            },
            dtStyle: {
                'width': 'var(--wm-accordion-width)',
                'border-width': 'var(--wm-accordion-border-width)',
                'border-style': 'var(--wm-accordion-border-style)',
                'border-color': 'var(--wm-accordion-border-color)',
                'border-radius': 'var(--wm-accordion-border-radius)',
                'background-color': 'var(--wm-accordion-background-color)'
            }
        }, {
            className: '.app-accordion-text',
            rnStyleSelector: 'app-accordion.text',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .heading',
            style: {
                color: '@accordionTitleColor'
            },
            dtStyle: {
                'color': 'var(--wm-accordion-text-color)',
                'font-size': 'var(--wm-accordion-text-font-size)'
            }
        }, {
            className: '.app-accordion-first-header',
            rnStyleSelector: 'app-accordion.firstHeader',
            dtStyle: {
                'border-top-left-radius': 'var(--wm-accordion-first-header-border-top-left-radius)',
                'border-top-right-radius': 'var(--wm-accordion-first-header-border-top-right-radius)'
            }
        }, {
            className: '.app-accordion-last-header',
            rnStyleSelector: 'app-accordion.lastHeader',
            dtStyle: {
                'border-bottom-left-radius': 'var(--wm-accordion-first-header-border-bottom-left-radius)',
                'border-bottom-right-radius': 'var(--wm-accordion-first-header-border-bottom-right-radius)',
                'border-bottom-width': 'var(--wm-accordion-last-header-border-bottom-width)'
            }
        }, {
            className: '.app-accordion-pane',
            rnStyleSelector: 'app-accordion.pane',
            studioStyleSelector: '.app-accordion .app-accordion-pane',
            style: {}
        }, {
            className: '.app-accordion-header',
            rnStyleSelector: 'app-accordion.header',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading',
            style: {
                'border-color': '@accordionBorderColor',
                'background-color': '@accordionHeaderBgColor'
            },
            dtStyle: {
                'background-color': 'var(--wm-accordion-header-background-color)',
                'padding': 'var(--wm-accordion-header-padding)',
                'border-bottom-width': 'var(--wm-accordion-header-border-bottom-width)',
                'border-style': "var(--wm-accordion-border-style)",
                'border-color': 'var(--wm-accordion-border-color)',
                'border-top-left-radius': 'var(--wm-accordion-border-radius)',
                'border-top-right-radius': 'var(--wm-accordion-border-radius)'
            }
        }, {
            className: '.app-accordion-active-header',
            rnStyleSelector: 'app-accordion.activeHeader',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading.active',
            style: {
                'border-color': '@accordionActiveHeaderBgColor',
                'background-color': '@accordionActiveHeaderBgColor'
            },
            dtStyle: {
                'border-color': 'var(--wm-color-primary)',
                'background-color': 'var(--wm-color-primary)'
            }
        }, {
            className: '.app-accordion-active-header-title',
            rnStyleSelector: 'app-accordion.activeHeaderTitle',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading.active .heading',
            style: {
                'color': '@accordionActiveHeaderTextColor'
            },
            dtStyle: {
                'color': 'var(--wm-accordion-active-header-title-color)'
            }
        }, {
            className: '.app-accordion-header-subtitle',
            rnStyleSelector: 'app-accordion.subheading',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .description',
            style: {}
        },
        {
            className: '.app-accordion-icon-icon',
            rnStyleSelector: 'app-accordion.icon.icon',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .panel-icon',
            dtStyle: {
                'color': 'var(--wm-accordion-icon-color)',
                'font-size': 'var(--wm-accordion-icon-font-size)',
                'font-weight': 'var(--wm-accordion-icon-font-weight)'
            }
        },
        {
            className: '.app-accordion-icon-root',
            rnStyleSelector: 'app-accordion.icon.root',
            dtStyle: {
                'width': 'var(--wm-accordion-icon-root-width)',
                'height': 'var(--wm-accordion-icon-root-height)',
                'border-radius': 'var(--wm-accordion-icon-root-border-radius)'
            }
        },
        {
            className: '.app-accordion-active-icon-icon',
            rnStyleSelector: 'app-accordion.activeIcon.icon',
            dtStyle: {
                'color': 'var(--wm-accordion-active-header-title-color)'
            }
        },
        {
            className: '.app-accordion-active-icon-root',
            rnStyleSelector: 'app-accordion.activeIcon.root',
            dtStyle: {
                'border-color': 'var(--wm-accordion-active-header-title-color)'
            }
        },
        {
            className: '.app-accordion1-icon-root',
            rnStyleSelector: 'app-accordion1.icon.root',
            dtStyle: {
                'background-color': 'var(--wm-accordion1-background-color)'
            }
        },
        {
            className: '.app-accordion-header-expand-icon',
            rnStyleSelector: 'app-accordion.icon',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .wi-plus',
            style: {}
        }, {
            className: '.app-accordion-header-left-toggle-icon',
            rnStyleSelector: 'app-accordion.leftToggleIcon',
            studioStyleSelector: '',
            style: {}
        }, {
            className: '.app-accordion-header-right-toggle-icon',
            rnStyleSelector: 'app-accordion.rightToggleIcon',
            studioStyleSelector: '',
            style: {}
        }, {
            className: '.app-accordion-header-collapse-icon',
            rnStyleSelector: 'app-accordion.activeIcon',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .wi-minus',
            style: {
                'color': '@accordionActiveHeaderTextColor'
            }
        }, {
            className: '.app-accordion-header-badge',
            rnStyleSelector: 'app-accordion.badge',
            studioStyleSelector: '.app-accordion >.app-accordion-panel >.panel-heading .panel-actions .label',
            style: {
                'color': '@accordionIconColor'
            },
            dtStyle: {
                'font-size': 'var(--wm-accordion-badge-font-size)',
                'margin-right': 'var(--wm-accordion-badge-margin-right)',
                'width': 'var(--wm-accordion-badge-width)',
                'height': 'var(--wm-accordion-badge-height)',
                'border-radius': 'var(--wm-accordion-badge-border-radius)',
                'border-style': "var(--wm-accordion-border-style)",
                'border-width': 'var(--wm-accordion-badge-border-width)',
                'border-color': 'var(--wm-accordion-icon-color)',
                'color': 'var(--wm-accordion-icon-color)',
                'background-color': 'var(--wm-accordion-badge-background-color)'
            }
        }, {
            className: '.app-accordion-active-header-badge',
            rnStyleSelector: 'app-accordion.activeBadge',
            studioStyleSelector: '',
            style: {
                'border-color': '@accordionActiveHeaderTextColor',
                'color': '@accordionActiveHeaderTextColor'
            },
            dtStyle: {
                'border-color': 'var(--wm-accordion-active-icon-border-color)',
                'color': 'var(--wm-accordion-active-icon-color)'
            }
        }, {
            className: '.app-accordion-skeleton',
            rnStyleSelector: 'app-accordion.skeleton',
            studioStyleSelector: '.app-accordion-skeleton',
            style: {}
        }, {
            className: '.app-accordion-title-icon',
            rnStyleSelector: 'app-accordion.titleIcon',
            studioStyleSelector: '',
            style: {}
        },
        getBadgeStyle('default', '@transparent'),
        getBadgeStyle('danger', '@labelDangerColor'),
        getBadgeStyle('success', '@labelSuccessColor'),
        getBadgeStyle('warning', '@labelWarningColor'),
        getBadgeStyle('info', '@labelInfoColor'),
        getBadgeStyle('primary', '@labelPrimaryColor'),
        ...getBadgedtStyle()
    ])
};
//# sourceMappingURL=accordion.styledef.js.map