{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-S3-FG325",
        "name": "Angel Pokale FG325",
        "type": "figure-plate",
        "basePrice": 48.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/pkfg325/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.34141,
                        "y": 0.77593
                    },
                    {
                        "x": 0.41088,
                        "y": 0.8454
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4964,
                "y": 0.8107,
                "maxWidthPx": 227,
                "maxHeightPx": 52,
                "quad": [
                    [
                        240.2,
                        574.6
                    ],
                    [
                        504.5,
                        574.6
                    ],
                    [
                        504.5,
                        641.4
                    ],
                    [
                        240.2,
                        641.4
                    ]
                ]
            },
            "font": {
                "sizePx": 22,
                "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.54,
                "y": 0.8107,
                "maxWidthPx": 148,
                "maxHeightPx": 52,
                "quad": [
                    [
                        318.7,
                        574.6
                    ],
                    [
                        491.3,
                        574.6
                    ],
                    [
                        491.3,
                        641.4
                    ],
                    [
                        318.7,
                        641.4
                    ]
                ]
            },
            "font": {
                "sizePx": 22,
                "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": "230",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 3 Höhen",
            "options": [
                {
                    "id": "230",
                    "label": "23 cm · 48,90 €",
                    "sku": "BS-FG325",
                    "price": 48.9
                },
                {
                    "id": "285",
                    "label": "28,5 cm · 68,90 €",
                    "sku": "BS-FG326",
                    "price": 68.9
                },
                {
                    "id": "370",
                    "label": "37 cm · 83,90 €",
                    "sku": "BS-FG327",
                    "price": 83.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": 677,
        "addUrl": "/checkout/cart/add/product/677/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5761,
            "font": 5762,
            "preview": 5764,
            "logo": 5763
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "230": 5974,
                "285": 6018,
                "370": 5813
            }
        }
    }
}
