{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-50/20.ST.205.01.A",
        "name": "Basketball Pokal ST.205.01.A",
        "type": "cup-emblem",
        "basePrice": 8.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/pkst20501/",
    "layers": [
        {
            "id": "photo",
            "type": "static",
            "image": "photos/front.jpg"
        },
        {
            "id": "logoSmall",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.39283,
                        "y": 0.8174
                    },
                    {
                        "x": 0.46989,
                        "y": 0.89447
                    }
                ]
            }
        },
        {
            "id": "textSmall",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5035,
                "y": 0.8559,
                "maxWidthPx": 162,
                "maxHeightPx": 59
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 23
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "logo"
            }
        },
        {
            "id": "textSmallLogo",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.5484,
                "y": 0.8559,
                "maxWidthPx": 103,
                "maxHeightPx": 59
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.1,
                "familyFrom": "font",
                "defaultFamily": "Roboto Condensed",
                "sizePx": 17
            },
            "hideWhen": {
                "category": "logoMode",
                "equals": "none"
            }
        }
    ],
    "categories": [
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "210",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleicher Pokal in 1 Höhen",
            "options": [
                {
                    "id": "210",
                    "label": "21 cm · 8,90 €",
                    "sku": "BS-50/20.ST.205.01.A-X",
                    "price": 8.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",
            "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": 632,
        "addUrl": "/checkout/cart/add/product/632/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5195,
            "font": 5196,
            "preview": 5198,
            "motif": 5194,
            "logo": 5197
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "210": 5987
            }
        }
    }
}
