{
    "schemaVersion": 2,
    "product": {
        "sku": "FS-G60/30.61406",
        "name": "Handball Pokal 61406",
        "type": "figure-plate",
        "basePrice": 13.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/pk61406/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.35597,
                        "y": 0.74109
                    },
                    {
                        "x": 0.45752,
                        "y": 0.84264
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4956,
                "y": 0.7918,
                "maxWidthPx": 204,
                "maxHeightPx": 93,
                "quad": [
                    [
                        252.7,
                        534.1
                    ],
                    [
                        490.7,
                        534.1
                    ],
                    [
                        490.7,
                        653.7
                    ],
                    [
                        252.7,
                        653.7
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "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.5543,
                "y": 0.7918,
                "maxWidthPx": 108,
                "maxHeightPx": 93,
                "quad": [
                    [
                        352.7,
                        534.1
                    ],
                    [
                        478.8,
                        534.1
                    ],
                    [
                        478.8,
                        653.7
                    ],
                    [
                        352.7,
                        653.7
                    ]
                ]
            },
            "font": {
                "sizePx": 24,
                "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": "150",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Eine Größe: 15 cm",
            "options": [
                {
                    "id": "150",
                    "label": "15 cm · 13,90 €",
                    "sku": "FS-G60/30.61406-X",
                    "price": 13.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": 393,
        "addUrl": "/checkout/cart/add/product/393/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5409,
            "font": 5410,
            "preview": 5412,
            "logo": 5411
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "150": 5995
            }
        }
    }
}
