import { Host, h } from "@stencil/core";
import { ToolsThemeProviderBrandEnum } from "./tools-theme-provider.brand.enum";
/**
 * @slot default - Kan innehålla vad som helst
 * @swedishName Temaväljare
 * @new
 */
export class ToolsThemeProvider {
    constructor() {
        this.afBrand = ToolsThemeProviderBrandEnum.AF25;
    }
    get cssModifiers() {
        return {
            'digi-tools-theme-provider--af25': this.afBrand === ToolsThemeProviderBrandEnum.AF25,
            'digi-tools-theme-provider--af18': this.afBrand === ToolsThemeProviderBrandEnum.AF18
        };
    }
    render() {
        return (h(Host, { key: '81e3c29b48b813327c264d8a94a018fa73b83097' }, h("div", { key: '5207462a50a29328b64de61b9dd953f263c27815', class: this.cssModifiers }, h("slot", { key: 'f2f00909d5f69bdb5aa9ffe38c1a9629b71fc065' }))));
    }
    static get is() { return "digi-tools-theme-provider"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "$": ["tools-theme-provider.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["tools-theme-provider.css"]
        };
    }
    static get properties() {
        return {
            "afBrand": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "ToolsThemeProviderBrandEnum",
                    "resolved": "ToolsThemeProviderBrandEnum.AF18 | ToolsThemeProviderBrandEnum.AF25",
                    "references": {
                        "ToolsThemeProviderBrandEnum": {
                            "location": "import",
                            "path": "./tools-theme-provider.brand.enum",
                            "id": "src/components/_tools/tools-theme-provider/tools-theme-provider.brand.enum.ts::ToolsThemeProviderBrandEnum"
                        }
                    }
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [{
                            "name": "en",
                            "text": "Change theme for underlying components"
                        }],
                    "text": "\u00C4ndrar tema p\u00E5 underliggande komponenter"
                },
                "getter": false,
                "setter": false,
                "attribute": "af-brand",
                "reflect": false,
                "defaultValue": "ToolsThemeProviderBrandEnum.AF25"
            }
        };
    }
}
