{
    "schemaVersion": 2,
    "product": {
        "sku": "TRY-1058",
        "name": "Pokale aus Metall 1058",
        "type": "figure-plate",
        "basePrice": 139.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Silbernes Gravurschild mit Wunschtext und Logo inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pk1058/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.43191,
                        "y": 0.7938
                    },
                    {
                        "x": 0.48191,
                        "y": 0.8438
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5007,
                "y": 0.8188,
                "maxWidthPx": 100,
                "maxHeightPx": 47,
                "quad": [
                    [
                        316.9,
                        583.6
                    ],
                    [
                        434.1,
                        583.6
                    ],
                    [
                        434.1,
                        644.6
                    ],
                    [
                        316.9,
                        644.6
                    ]
                ]
            },
            "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.5296,
                "y": 0.8188,
                "maxWidthPx": 53,
                "maxHeightPx": 47,
                "quad": [
                    [
                        366.1,
                        583.6
                    ],
                    [
                        428.2,
                        583.6
                    ],
                    [
                        428.2,
                        644.6
                    ],
                    [
                        366.1,
                        644.6
                    ]
                ]
            },
            "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": "610",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "610",
                    "label": "61 cm · 139,90 €",
                    "sku": "TRY-1058C",
                    "price": 139.9
                },
                {
                    "id": "635",
                    "label": "63,5 cm · 159,90 €",
                    "sku": "TRY-1058B",
                    "price": 159.9
                },
                {
                    "id": "655",
                    "label": "65,5 cm · 179,90 €",
                    "sku": "TRY-1058A",
                    "price": 179.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": "Silbernes 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": 1444,
        "addUrl": "/checkout/cart/add/product/1444/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5701,
            "font": 5702,
            "preview": 5704,
            "logo": 5703
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "610": 5799,
                "635": 6026,
                "655": 6027
            }
        }
    }
}
