{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-ET.458.01.A",
        "name": "Goldpokale ET.458.01.A",
        "type": "figure-plate",
        "basePrice": 12.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Goldenes Gravurschild mit Wunschtext und Logo inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkbet458/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.40683,
                        "y": 0.82098
                    },
                    {
                        "x": 0.471,
                        "y": 0.88515
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4951,
                "y": 0.8531,
                "maxWidthPx": 129,
                "maxHeightPx": 49,
                "quad": [
                    [
                        296.1,
                        607.8
                    ],
                    [
                        446.5,
                        607.8
                    ],
                    [
                        446.5,
                        671.8
                    ],
                    [
                        296.1,
                        671.8
                    ]
                ]
            },
            "font": {
                "sizePx": 18,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "logo"
            }
        },
        {
            "id": "engravingLogo",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5322,
                "y": 0.8531,
                "maxWidthPx": 68,
                "maxHeightPx": 49,
                "quad": [
                    [
                        359.3,
                        607.8
                    ],
                    [
                        439,
                        607.8
                    ],
                    [
                        439,
                        671.8
                    ],
                    [
                        359.3,
                        671.8
                    ]
                ]
            },
            "font": {
                "sizePx": 18,
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed"
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "none"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "205",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 6 Höhen",
            "options": [
                {
                    "id": "205",
                    "label": "20,5 cm · 12,90 €",
                    "sku": "BS-ET.458.01.A-X",
                    "price": 12.9
                },
                {
                    "id": "215",
                    "label": "21,5 cm · 13,90 €",
                    "sku": "BS-ET.458.01.B",
                    "price": 13.9
                },
                {
                    "id": "230",
                    "label": "23 cm · 15,90 €",
                    "sku": "BS-ET.458.01.C",
                    "price": 15.9
                },
                {
                    "id": "250",
                    "label": "25 cm · 17,90 €",
                    "sku": "BS-ET.458.01.D",
                    "price": 17.9
                },
                {
                    "id": "255",
                    "label": "25,5 cm · 18,40 €",
                    "sku": "BS-ET.458.01.E",
                    "price": 18.4
                },
                {
                    "id": "275",
                    "label": "27,5 cm · 19,90 €",
                    "sku": "BS-ET.458.01.F",
                    "price": 19.9
                }
            ]
        },
        {
            "id": "logoMode",
            "title": "Logo auf dem Gravurschild",
            "type": "radio",
            "alwaysOpen": true,
            "default": "none",
            "defaultCounts": true,
            "note": "Optional: Ihr Logo links auf dem Gravurschild, der Wunschtext steht dann rechts daneben",
            "options": [
                {
                    "id": "none",
                    "label": "ohne Logo"
                },
                {
                    "id": "logo",
                    "label": "mit eigenem Logo"
                }
            ]
        },
        {
            "id": "logo",
            "title": "Eigenes Logo hochladen",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "visibleWhen": {
                "category": "logoMode",
                "equals": "logo"
            }
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "note": "Goldenes Gravurschild, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ],
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1250,
        "addUrl": "/checkout/cart/add/product/1250/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 7147,
            "font": 7148,
            "preview": 7150,
            "logo": 7149
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "205": 6008,
                "215": 6009,
                "230": 5974,
                "250": 5824,
                "255": 6010,
                "275": 6011
            }
        }
    }
}
