{
  "format": "pricekit-template",
  "schemaVersion": "1.0",
  "engineVersion": "1",
  "createdWithVersion": "1.0.0",
  "template": {
    "templateId": "fc37b85b-a7e2-402c-8ced-b855bb970bb5",
    "templateVersion": "1.0"
  },
  "calculator": {
    "name": "تصميم هوية بصرية",
    "description": "من الشعار وحده إلى الهوية الكاملة، تشمل كل باقة جولتي تعديل.",
    "currency": "USD",
    "calculatorVersion": 1,
    "moneyDecimals": 2,
    "allowNegativeTotal": false,
    "fields": [
      {
        "key": "package",
        "label": "الباقة",
        "type": "singleChoice",
        "required": true,
        "options": [
          {
            "key": "option_1",
            "label": "شعار فقط"
          },
          {
            "key": "option_2",
            "label": "شعار وهوية أساسية"
          },
          {
            "key": "option_3",
            "label": "هوية كاملة مع دليل الاستخدام"
          }
        ],
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "concepts",
        "label": "عدد المقترحات الأولية للشعار",
        "type": "singleChoice",
        "required": true,
        "options": [
          {
            "key": "option_1",
            "label": "مقترحان"
          },
          {
            "key": "option_2",
            "label": "3 مقترحات"
          },
          {
            "key": "option_3",
            "label": "5 مقترحات"
          }
        ],
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "brand_guide",
        "label": "دليل استخدام الهوية",
        "type": "boolean",
        "required": false,
        "defaultValue": {
          "type": "boolean",
          "value": false
        },
        "visibleByDefault": false,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "extras",
        "label": "تصاميم إضافية",
        "type": "multipleChoice",
        "required": false,
        "options": [
          {
            "key": "option_1",
            "label": "بطاقة أعمال"
          },
          {
            "key": "option_2",
            "label": "ورق رسمي وظرف"
          },
          {
            "key": "option_3",
            "label": "ختم الشركة"
          },
          {
            "key": "option_4",
            "label": "قوالب منشورات سوشيال ميديا"
          },
          {
            "key": "option_5",
            "label": "تصميم واجهة المحل"
          }
        ],
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "extra_revisions",
        "label": "جولات تعديل إضافية",
        "type": "number",
        "required": true,
        "defaultValue": {
          "type": "number",
          "value": 0
        },
        "constraints": {
          "min": 0,
          "max": 10
        },
        "unit": "جولة",
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "urgent",
        "label": "تسليم مستعجل",
        "type": "boolean",
        "required": false,
        "defaultValue": {
          "type": "boolean",
          "value": false
        },
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      }
    ],
    "rules": [
      {
        "key": "show_brand_guide",
        "name": "دليل استخدام الهوية",
        "enabled": true,
        "when": {
          "mode": "any",
          "items": [
            {
              "type": "condition",
              "subject": {
                "kind": "field",
                "key": "package"
              },
              "operator": "equals",
              "operand": {
                "type": "choice",
                "option": "option_2"
              }
            }
          ]
        },
        "then": [
          {
            "action": "showField",
            "target": "brand_guide"
          }
        ]
      },
      {
        "key": "when_brand_guide",
        "name": "دليل استخدام الهوية",
        "enabled": true,
        "when": {
          "mode": "all",
          "items": [
            {
              "type": "condition",
              "subject": {
                "kind": "field",
                "key": "brand_guide"
              },
              "operator": "equals",
              "operand": {
                "type": "boolean",
                "value": true
              }
            }
          ]
        },
        "then": [
          {
            "action": "activateComponent",
            "target": "brand_guide_price"
          }
        ]
      },
      {
        "key": "when_urgent",
        "name": "تسليم مستعجل",
        "enabled": true,
        "when": {
          "mode": "all",
          "items": [
            {
              "type": "condition",
              "subject": {
                "kind": "field",
                "key": "urgent"
              },
              "operator": "equals",
              "operand": {
                "type": "boolean",
                "value": true
              }
            }
          ]
        },
        "then": [
          {
            "action": "activateComponent",
            "target": "urgent_percent"
          }
        ]
      }
    ],
    "components": [
      {
        "key": "package_price",
        "label": "الباقة",
        "stage": "base",
        "pricing": {
          "type": "singleChoice",
          "field": "package",
          "options": [
            {
              "option": "option_1",
              "amount": 250
            },
            {
              "option": "option_2",
              "amount": 500
            },
            {
              "option": "option_3",
              "amount": 1000
            }
          ]
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "concepts_price",
        "label": "عدد المقترحات الأولية للشعار",
        "stage": "base",
        "pricing": {
          "type": "singleChoice",
          "field": "concepts",
          "options": [
            {
              "option": "option_1",
              "amount": 0
            },
            {
              "option": "option_2",
              "amount": 80
            },
            {
              "option": "option_3",
              "amount": 200
            }
          ]
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "brand_guide_price",
        "label": "دليل استخدام الهوية",
        "stage": "base",
        "pricing": {
          "type": "fixedAmount",
          "amount": 150
        },
        "activeByDefault": false,
        "customerVisible": true
      },
      {
        "key": "extras_price",
        "label": "تصاميم إضافية",
        "stage": "base",
        "pricing": {
          "type": "multipleChoice",
          "field": "extras",
          "options": [
            {
              "option": "option_1",
              "amount": 40
            },
            {
              "option": "option_2",
              "amount": 50
            },
            {
              "option": "option_3",
              "amount": 25
            },
            {
              "option": "option_4",
              "amount": 100
            },
            {
              "option": "option_5",
              "amount": 250
            }
          ]
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "extra_revisions_price",
        "label": "جولات تعديل إضافية",
        "stage": "base",
        "pricing": {
          "type": "unitRate",
          "quantity": {
            "kind": "field",
            "key": "extra_revisions"
          },
          "rate": 40
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "urgent_percent",
        "label": "تسليم مستعجل",
        "stage": "adjustment",
        "pricing": {
          "type": "percentage",
          "direction": "surcharge",
          "percent": {
            "type": "fixed",
            "percent": 20
          },
          "base": {
            "type": "subtotal",
            "subtotal": "baseSubtotal"
          }
        },
        "activeByDefault": false,
        "customerVisible": true
      }
    ],
    "derivedValues": [],
    "outputs": []
  }
}