{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-SE1930",
        "name": "Rugby Pokale SE1930-01",
        "type": "cup-emblem",
        "basePrice": 10.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "Emblem, Gravurschild und Wunschtext inklusive &middot; fertig montiert"
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/pkse1930/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "clip": {
                "shape": "circle",
                "points": [
                    {
                        "x": 0.30982,
                        "y": 0.78615
                    },
                    {
                        "x": 0.42012,
                        "y": 0.89645
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5756,
                "y": 0.8454,
                "maxWidthPx": 168,
                "maxHeightPx": 89
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 24
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "150",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 3 Höhen",
            "options": [
                {
                    "id": "150",
                    "label": "15 cm · 10,90 €",
                    "sku": "BS-SE1930-01",
                    "price": 10.9
                },
                {
                    "id": "165",
                    "label": "16,5 cm · 12,90 €",
                    "sku": "BS-SE1930-02",
                    "price": 12.9
                },
                {
                    "id": "180",
                    "label": "18 cm · 14,90 €",
                    "sku": "BS-SE1930-03",
                    "price": 14.9
                }
            ]
        },
        {
            "id": "logo",
            "title": "Eigenes Logo im Emblemhalter (optional)",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10
        },
        {
            "id": "engravingMode",
            "title": "Gravur",
            "type": "radio",
            "alwaysOpen": true,
            "default": "text",
            "defaultCounts": true,
            "note": "Goldenes Gravurschild auf dem Sockel, 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": 105,
            "showCounter": true
        }
    ],
    "cart": {
        "productId": 743,
        "addUrl": "/checkout/cart/add/product/743/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 4945,
            "font": 4946,
            "preview": 4948,
            "motif": 4944,
            "logo": 4947
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "150": 5995,
                "165": 6016,
                "180": 5988
            }
        }
    }
}
