{
  "format": "pricekit-template",
  "schemaVersion": "1.0",
  "engineVersion": "1",
  "createdWithVersion": "1.0.0",
  "template": {
    "templateId": "f36e3885-7eac-45b9-9397-9c57de34419a",
    "templateVersion": "1.0"
  },
  "calculator": {
    "name": "تنظيف المنازل",
    "description": "سعر التنظيف حسب المساحة ونوع التنظيف والإضافات.",
    "currency": "USD",
    "calculatorVersion": 1,
    "moneyDecimals": 2,
    "allowNegativeTotal": false,
    "fields": [
      {
        "key": "area",
        "label": "مساحة المنزل",
        "type": "number",
        "required": true,
        "defaultValue": {
          "type": "number",
          "value": 120
        },
        "constraints": {
          "min": 30,
          "max": 2000
        },
        "unit": "م²",
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      },
      {
        "key": "cleaning_type",
        "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": "extras",
        "label": "خدمات إضافية",
        "type": "multipleChoice",
        "required": false,
        "options": [
          {
            "key": "option_1",
            "label": "تنظيف الكنب"
          },
          {
            "key": "option_2",
            "label": "تنظيف السجاد"
          },
          {
            "key": "option_3",
            "label": "تنظيف المطبخ والأجهزة"
          },
          {
            "key": "option_4",
            "label": "تنظيف النوافذ والواجهات"
          }
        ],
        "visibleByDefault": true,
        "enabledByDefault": true,
        "customerVisible": true
      }
    ],
    "rules": [],
    "components": [
      {
        "key": "area_price",
        "label": "مساحة المنزل",
        "stage": "base",
        "pricing": {
          "type": "unitRate",
          "quantity": {
            "kind": "field",
            "key": "area"
          },
          "rate": 0.8
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "cleaning_type_price",
        "label": "نوع التنظيف",
        "stage": "base",
        "pricing": {
          "type": "singleChoice",
          "field": "cleaning_type",
          "options": [
            {
              "option": "option_1",
              "amount": 0
            },
            {
              "option": "option_2",
              "amount": 40
            },
            {
              "option": "option_3",
              "amount": 80
            }
          ]
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "extras_price",
        "label": "خدمات إضافية",
        "stage": "base",
        "pricing": {
          "type": "multipleChoice",
          "field": "extras",
          "options": [
            {
              "option": "option_1",
              "amount": 35
            },
            {
              "option": "option_2",
              "amount": 25
            },
            {
              "option": "option_3",
              "amount": 30
            },
            {
              "option": "option_4",
              "amount": 25
            }
          ]
        },
        "activeByDefault": true,
        "customerVisible": true
      },
      {
        "key": "minimum_order",
        "label": "الحد الأدنى للزيارة",
        "stage": "adjustment",
        "pricing": {
          "type": "minimumCharge",
          "minimum": 50,
          "basis": "beforeTax"
        },
        "activeByDefault": true,
        "customerVisible": true
      }
    ],
    "derivedValues": [],
    "outputs": []
  }
}