{
    "schemaVersion": 2,
    "product": {
        "sku": "TRY-7149B",
        "name": "3er Fußball Pokale 7149B",
        "type": "figure-plate",
        "basePrice": 22.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/pk7149/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.41562,
                        "y": 0.85407
                    },
                    {
                        "x": 0.46335,
                        "y": 0.9018
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4813,
                "y": 0.8779,
                "maxWidthPx": 96,
                "maxHeightPx": 35,
                "quad": [
                    [
                        305,
                        635.5
                    ],
                    [
                        416.9,
                        635.5
                    ],
                    [
                        416.9,
                        681.4
                    ],
                    [
                        305,
                        681.4
                    ]
                ]
            },
            "font": {
                "sizePx": 14,
                "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.5089,
                "y": 0.8779,
                "maxWidthPx": 51,
                "maxHeightPx": 35,
                "quad": [
                    [
                        352,
                        635.5
                    ],
                    [
                        411.3,
                        635.5
                    ],
                    [
                        411.3,
                        681.4
                    ],
                    [
                        352,
                        681.4
                    ]
                ]
            },
            "font": {
                "sizePx": 14,
                "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": "400",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "400",
                    "label": "40 cm · 22,90 €",
                    "sku": "TRY-7149C",
                    "price": 22.9
                },
                {
                    "id": "410",
                    "label": "41 cm · 26,90 €",
                    "sku": "TRY-7149B-X",
                    "price": 26.9
                },
                {
                    "id": "420",
                    "label": "42 cm · 27,90 €",
                    "sku": "TRY-7149A",
                    "price": 27.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": 1169,
        "addUrl": "/checkout/cart/add/product/1169/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5665,
            "font": 5666,
            "preview": 5668,
            "logo": 5667
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "400": 5830,
                "410": 5805,
                "420": 5888
            }
        }
    }
}
