{
    "schemaVersion": 2,
    "product": {
        "sku": "FS- 1421",
        "name": "Günstige Goldpokale 1421",
        "type": "figure-plate",
        "basePrice": 12.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/pkfs1421/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.40598,
                        "y": 0.83801
                    },
                    {
                        "x": 0.46848,
                        "y": 0.90052
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4997,
                "y": 0.8692,
                "maxWidthPx": 137,
                "maxHeightPx": 46,
                "quad": [
                    [
                        294.9,
                        621.9
                    ],
                    [
                        454.6,
                        621.9
                    ],
                    [
                        454.6,
                        682
                    ],
                    [
                        294.9,
                        682
                    ]
                ]
            },
            "font": {
                "sizePx": 19,
                "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.5362,
                "y": 0.8692,
                "maxWidthPx": 76,
                "maxHeightPx": 46,
                "quad": [
                    [
                        357.7,
                        621.9
                    ],
                    [
                        446.6,
                        621.9
                    ],
                    [
                        446.6,
                        682
                    ],
                    [
                        357.7,
                        682
                    ]
                ]
            },
            "font": {
                "sizePx": 19,
                "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": "170",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Gleiche Form in 4 Höhen",
            "options": [
                {
                    "id": "170",
                    "label": "17 cm · 12,90 €",
                    "sku": "FS-1421",
                    "price": 12.9
                },
                {
                    "id": "190",
                    "label": "19 cm · 14,90 €",
                    "sku": "FS-1422",
                    "price": 14.9
                },
                {
                    "id": "220",
                    "label": "22 cm · 15,90 €",
                    "sku": "FS-1423",
                    "price": 15.9
                },
                {
                    "id": "240",
                    "label": "24 cm · 16,90 €",
                    "sku": "FS-1424",
                    "price": 16.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": 1308,
        "addUrl": "/checkout/cart/add/product/1308/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 7083,
            "font": 7084,
            "preview": 7086,
            "logo": 7085
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "170": 5997,
                "190": 5989,
                "220": 5990,
                "240": 5850
            }
        }
    }
}
