import { h } from "@stencil/core";
export class SquareSkeleton {
    constructor() {
        this.type = '1';
        this.width = '80px';
    }
    getBorderRadius() {
        const borderRadiusMapper = {
            '24px': 'rounded-[2px]',
            '64px': 'rounded-[4px]',
            '48px': 'rounded-[2px]',
            '80px': 'rounded-[4px]',
            '120px': 'rounded-[8px]',
            '170px': 'rounded-[8px]',
            '240px': 'rounded-[16px]',
        };
        return borderRadiusMapper[this.width] || '';
    }
    render() {
        return (h("div", { key: 'dc6f6319197b3d875f95f950f1dc63d7076d4041' }, h("div", { key: '30c3cc1b5d5cad0d6c23b7639e7ddd87b7012d52', style: { width: this.width, height: this.width }, class: `square_skeleton type${this.type} ${this.getBorderRadius()}` })));
    }
    static get is() { return "dga-square-skeleton"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["./style.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["style.css"]
        };
    }
    static get properties() {
        return {
            "type": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'1' | '2'",
                    "resolved": "\"1\" | \"2\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "type",
                "reflect": false,
                "defaultValue": "'1'"
            },
            "width": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'24px' | '64px' | '48px' | '80px' | '120px' | '170px' | '240px'",
                    "resolved": "\"120px\" | \"170px\" | \"240px\" | \"24px\" | \"48px\" | \"64px\" | \"80px\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "width",
                "reflect": false,
                "defaultValue": "'80px'"
            }
        };
    }
}
//# sourceMappingURL=dga-square-skeleton.js.map
