{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-FG750",
        "name": "Kinder Pokale FG750",
        "type": "figure-plate",
        "basePrice": 16.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/pkfg750/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.36041,
                        "y": 0.70127
                    },
                    {
                        "x": 0.46681,
                        "y": 0.80766
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5091,
                "y": 0.7545,
                "maxWidthPx": 217,
                "maxHeightPx": 79,
                "quad": [
                    [
                        255.1,
                        514.7
                    ],
                    [
                        508.6,
                        514.7
                    ],
                    [
                        508.6,
                        617
                    ],
                    [
                        255.1,
                        617
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "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.5708,
                "y": 0.7545,
                "maxWidthPx": 116,
                "maxHeightPx": 79,
                "quad": [
                    [
                        360.2,
                        514.7
                    ],
                    [
                        495.9,
                        514.7
                    ],
                    [
                        495.9,
                        617
                    ],
                    [
                        360.2,
                        617
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "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": "120",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Eine Größe: 12 cm",
            "options": [
                {
                    "id": "120",
                    "label": "12 cm · 16,90 €",
                    "sku": "BS-FG750-X",
                    "price": 16.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": 704,
        "addUrl": "/checkout/cart/add/product/704/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5869,
            "font": 5870,
            "preview": 5872,
            "logo": 5871
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "120": 5992
            }
        }
    }
}
