{
    "schemaVersion": 2,
    "product": {
        "sku": "BS-G40/15.FG273",
        "name": "Ski Pokale FG273",
        "type": "figure-plate",
        "basePrice": 10.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/pkfg273/",
    "layers": [
        {
            "id": "figure",
            "type": "static",
            "image": "photos/front.webp"
        },
        {
            "id": "logoPlate",
            "type": "upload",
            "category": "logo",
            "laser": "#1a1a1a",
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.31943,
                        "y": 0.76004
                    },
                    {
                        "x": 0.42749,
                        "y": 0.86809
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "box": {
                "x": 0.4923,
                "y": 0.814,
                "maxWidthPx": 253,
                "maxHeightPx": 81,
                "quad": [
                    [
                        221.9,
                        558.6
                    ],
                    [
                        516.5,
                        558.6
                    ],
                    [
                        516.5,
                        662.5
                    ],
                    [
                        221.9,
                        662.5
                    ]
                ]
            },
            "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.5561,
                "y": 0.814,
                "maxWidthPx": 145,
                "maxHeightPx": 81,
                "quad": [
                    [
                        332.4,
                        558.6
                    ],
                    [
                        501.8,
                        558.6
                    ],
                    [
                        501.8,
                        662.5
                    ],
                    [
                        332.4,
                        662.5
                    ]
                ]
            },
            "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": "100",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Eine Größe: 10 cm",
            "options": [
                {
                    "id": "100",
                    "label": "10 cm · 10,90 €",
                    "sku": "BS-G40/15.FG273-X",
                    "price": 10.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": 377,
        "addUrl": "/checkout/cart/add/product/377/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 5281,
            "font": 5282,
            "preview": 5284,
            "logo": 5283
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "100": 5994
            }
        }
    }
}
