{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-Platz ST.202.01",
        "name": "Pokale für 1.-3. Platz ST.202.01",
        "type": "figure-plate",
        "basePrice": 9.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Gravurschild, Wunschtext und Logo inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/ps3st202/",
    "layers": [
        {
            "id": "photo",
            "type": "option",
            "category": "color"
        },
        {
            "id": "logoPlate_p1",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p2"
                },
                {
                    "category": "color",
                    "equals": "p3"
                }
            ],
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.39161,
                        "y": 0.82044
                    },
                    {
                        "x": 0.47028,
                        "y": 0.89911
                    }
                ]
            }
        },
        {
            "id": "text_p1",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4998,
                "y": 0.8598,
                "maxWidthPx": 159,
                "maxHeightPx": 64
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 23
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p2"
                },
                {
                    "category": "color",
                    "equals": "p3"
                },
                {
                    "category": "logoMode",
                    "equals": "logo"
                }
            ]
        },
        {
            "id": "textLogo_p1",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5453,
                "y": 0.8598,
                "maxWidthPx": 98,
                "maxHeightPx": 64
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 14
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p2"
                },
                {
                    "category": "color",
                    "equals": "p3"
                },
                {
                    "category": "logoMode",
                    "equals": "none"
                }
            ]
        },
        {
            "id": "logoPlate_p2",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p3"
                }
            ],
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.39257,
                        "y": 0.82242
                    },
                    {
                        "x": 0.47382,
                        "y": 0.90367
                    }
                ]
            }
        },
        {
            "id": "text_p2",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5043,
                "y": 0.863,
                "maxWidthPx": 164,
                "maxHeightPx": 65
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 23
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p3"
                },
                {
                    "category": "logoMode",
                    "equals": "logo"
                }
            ]
        },
        {
            "id": "textLogo_p2",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5513,
                "y": 0.863,
                "maxWidthPx": 101,
                "maxHeightPx": 65
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 14
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p3"
                },
                {
                    "category": "logoMode",
                    "equals": "none"
                }
            ]
        },
        {
            "id": "logoPlate_p3",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p2"
                }
            ],
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.3848,
                        "y": 0.81337
                    },
                    {
                        "x": 0.46384,
                        "y": 0.89241
                    }
                ]
            }
        },
        {
            "id": "text_p3",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4982,
                "y": 0.8529,
                "maxWidthPx": 166,
                "maxHeightPx": 61
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 24
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p2"
                },
                {
                    "category": "logoMode",
                    "equals": "logo"
                }
            ]
        },
        {
            "id": "textLogo_p3",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5442,
                "y": 0.8529,
                "maxWidthPx": 105,
                "maxHeightPx": 61
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 15
            },
            "hideWhen": [
                {
                    "category": "color",
                    "equals": "p1"
                },
                {
                    "category": "color",
                    "equals": "p2"
                },
                {
                    "category": "logoMode",
                    "equals": "none"
                }
            ]
        }
    ],
    "categories": [
        {
            "id": "color",
            "title": "Platzierung",
            "type": "radio",
            "default": "p1",
            "defaultCounts": true,
            "alwaysOpen": true,
            "required": true,
            "note": "Jeweils 21 cm hoch, goldenes Gravurschild (40 × 15 mm) auf schwarzem Marmorsockel",
            "options": [
                {
                    "id": "p1",
                    "label": "1. Platz · 21 cm · 9,90 €",
                    "sku": "BS-ST.200.01.A",
                    "price": 9.9,
                    "image": "photos/front-p1.webp"
                },
                {
                    "id": "p2",
                    "label": "2. Platz · 21 cm · 9,90 €",
                    "sku": "BS-ST.201.01.A",
                    "price": 9.9,
                    "image": "photos/front-p2.webp"
                },
                {
                    "id": "p3",
                    "label": "3. Platz · 21 cm · 9,90 €",
                    "sku": "BS-ST.202.01.A",
                    "price": 9.9,
                    "image": "photos/front-p3.webp"
                }
            ]
        },
        {
            "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",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Goldenes Gravurschild, Gravur inklusive",
            "options": [
                {
                    "id": "text",
                    "label": "mit Wunschtext"
                },
                {
                    "id": "none",
                    "label": "ohne Wunschtext"
                }
            ]
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true
        },
        {
            "id": "customText",
            "title": "Wunschtext",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 1557,
        "addUrl": "/checkout/cart/add/product/1557/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 6837,
            "font": 6838,
            "preview": 6840,
            "logo": 6839
        },
        "superAttribute": {
            "category": "color",
            "attributeId": 218,
            "byOption": {
                "p1": 6052,
                "p2": 6053,
                "p3": 6054
            }
        }
    }
}
