{
    "schemaVersion": 2,
    "product": {
        "sku": "TRY- 9297/CHE",
        "name": "schach Pokale 9297/CHE",
        "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/pk9297che/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.40115,
                        "y": 0.78783
                    },
                    {
                        "x": 0.47202,
                        "y": 0.8587
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4986,
                "y": 0.8233,
                "maxWidthPx": 142,
                "maxHeightPx": 69,
                "quad": [
                    [
                        290.9,
                        572.8
                    ],
                    [
                        457,
                        572.8
                    ],
                    [
                        457,
                        662.1
                    ],
                    [
                        290.9,
                        662.1
                    ]
                ]
            },
            "font": {
                "sizePx": 20,
                "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.5396,
                "y": 0.8233,
                "maxWidthPx": 75,
                "maxHeightPx": 69,
                "quad": [
                    [
                        360.7,
                        572.8
                    ],
                    [
                        448.7,
                        572.8
                    ],
                    [
                        448.7,
                        662.1
                    ],
                    [
                        360.7,
                        662.1
                    ]
                ]
            },
            "font": {
                "sizePx": 20,
                "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": "175",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "175",
                    "label": "17,5 cm · 12,90 €",
                    "sku": "TRY-9297/CHE-C",
                    "price": 12.9
                },
                {
                    "id": "185",
                    "label": "18,5 cm · 14,90 €",
                    "sku": "TRY-9297/CHE-B",
                    "price": 14.9
                },
                {
                    "id": "200",
                    "label": "20 cm · 18,90 €",
                    "sku": "TRY-9297/CHE-A",
                    "price": 18.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": 1146,
        "addUrl": "/checkout/cart/add/product/1146/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5641,
            "font": 5642,
            "preview": 5644,
            "logo": 5643
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "175": 6004,
                "185": 6013,
                "200": 5986
            }
        }
    }
}
