{
    "schemaVersion": 2,
    "product": {
        "sku": "TRY-4228C",
        "name": "Fußball Pokale 4228C",
        "type": "figure-plate",
        "basePrice": 32.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/pk4228/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.43595,
                        "y": 0.84772
                    },
                    {
                        "x": 0.48117,
                        "y": 0.89295
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4981,
                "y": 0.8703,
                "maxWidthPx": 91,
                "maxHeightPx": 34,
                "quad": [
                    [
                        320.6,
                        630.8
                    ],
                    [
                        426.6,
                        630.8
                    ],
                    [
                        426.6,
                        674.7
                    ],
                    [
                        320.6,
                        674.7
                    ]
                ]
            },
            "font": {
                "sizePx": 13,
                "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.5243,
                "y": 0.8703,
                "maxWidthPx": 48,
                "maxHeightPx": 34,
                "quad": [
                    [
                        365.1,
                        630.8
                    ],
                    [
                        421.3,
                        630.8
                    ],
                    [
                        421.3,
                        674.7
                    ],
                    [
                        365.1,
                        674.7
                    ]
                ]
            },
            "font": {
                "sizePx": 13,
                "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": "340",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "340",
                    "label": "34 cm · 32,90 €",
                    "sku": "TRY-4228C-N",
                    "price": 32.9
                },
                {
                    "id": "370",
                    "label": "37 cm · 36,90 €",
                    "sku": "TRY-4228B-N",
                    "price": 36.9
                },
                {
                    "id": "430",
                    "label": "43 cm · 40,90 €",
                    "sku": "TRY-4228A-N",
                    "price": 40.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": 1164,
        "addUrl": "/checkout/cart/add/product/1164/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5905,
            "font": 5906,
            "preview": 5908,
            "logo": 5907
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "340": 5812,
                "370": 5813,
                "430": 5895
            }
        }
    }
}
