{
  "page_ir": {
    "page_id": "bmi_calculator",
    "page_goal": "Single-page BMI Calculator allowing users to input height and weight, calculate BMI, view results with category classification, manage calculation history, and access BMI information.",
    "style": {
      "tone": "clean",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "health-focused with color-coded BMI categories"
    },
    "accessibility": {
      "required_labels": [
        "height_input",
        "weight_input",
        "measurement_system_toggle",
        "calculate_button",
        "clear_history_button"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "mobile": 320,
        "tablet": 768,
        "desktop": 1024
      },
      "collapse_rules": [
        "stack_form_fields_vertically_on_mobile",
        "collapse_info_panel_on_mobile"
      ],
      "hidden_on_small": [],
      "stack_on_small": []
    },
    "constraints": [
      "all_calculations_client_side",
      "history_persisted_in_localStorage",
      "no_authentication_required"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "bmiResult": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "calculations": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {
          "maxItems": 100
        },
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "bmiCategories": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "showClearConfirm": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "infoExpanded": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "recentCalculations": {
        "type": "array",
        "expr": "state.calculations.slice(0, 10)",
        "deps": []
      },
      "hasHistory": {
        "type": "boolean",
        "expr": "state.calculations.length > 0",
        "deps": []
      },
      "isMetric": {
        "type": "boolean",
        "expr": "appContext.measurementSystem === 'metric'",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "7f5260b0b2b144bf8195d0bdbce64272": {
        "endpoint_id": "7f5260b0b2b144bf8195d0bdbce64272",
        "module": "BMI",
        "endpoint": "/bmi/categories",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "name",
          "min_bmi",
          "max_bmi",
          "description",
          "color_code"
        ],
        "response_target": "bmiCategories",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "ad1b151e32a54c3bbd3cd9c20b539ece": {
        "endpoint_id": "ad1b151e32a54c3bbd3cd9c20b539ece",
        "module": "BMI",
        "endpoint": "/bmi/history",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 10
        },
        "body": null,
        "fields": [
          "id",
          "height",
          "weight",
          "height_unit",
          "weight_unit",
          "bmi_value",
          "category_id",
          "timestamp",
          "category_name",
          "category_color_code"
        ],
        "response_target": "calculations",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "19243aeaff7f4084894987d32f5fadb7": {
        "endpoint_id": "19243aeaff7f4084894987d32f5fadb7",
        "module": "BMI",
        "endpoint": "/bmi/calculate",
        "method": "POST",
        "path_params": {},
        "query_params": {
          "height": "$form.height",
          "weight": "$form.weight",
          "height_unit": "$form.height_unit",
          "weight_unit": "$form.weight_unit"
        },
        "body": null,
        "fields": [
          "id",
          "height",
          "weight",
          "height_unit",
          "weight_unit",
          "bmi_value",
          "category_id",
          "timestamp",
          "category"
        ],
        "response_target": "bmiResult",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "8da0becb82b8421fb508463ee45a0865": {
        "endpoint_id": "8da0becb82b8421fb508463ee45a0865",
        "module": "BMI",
        "endpoint": "/bmi/history",
        "method": "DELETE",
        "path_params": {},
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "calculations",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "calculation": {
        "name": "Calculation",
        "backend_module": "BMI",
        "fields": [
          "id",
          "height",
          "weight",
          "height_unit",
          "weight_unit",
          "bmi_value",
          "category_id",
          "timestamp",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "height",
          "weight",
          "bmi_value",
          "timestamp"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "bmiCategory": {
        "name": "BMICategory",
        "backend_module": "BMI",
        "fields": [
          "id",
          "name",
          "min_bmi",
          "max_bmi",
          "description",
          "color_code",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "name",
          "min_bmi",
          "max_bmi",
          "description",
          "color_code"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "measurementUnit": {
        "name": "MeasurementUnit",
        "backend_module": "Measurement Units",
        "fields": [
          "id",
          "system",
          "height_units",
          "weight_units",
          "default_height_unit",
          "default_weight_unit",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "system",
          "height_units",
          "weight_units"
        ],
        "search_fields": [],
        "filters": [
          "system"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onSystemChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "appContext.measurementSystem",
            "expr": "event.value"
          }
        ],
        "description": ""
      },
      "onInfoToggle": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.infoExpanded",
            "expr": "!state.infoExpanded"
          }
        ],
        "description": ""
      },
      "onShowClearConfirm": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.showClearConfirm",
            "expr": "true"
          }
        ],
        "description": ""
      },
      "onHideClearConfirm": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.showClearConfirm",
            "expr": "false"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "19243aeaff7f4084894987d32f5fadb7": {
        "action_id": "19243aeaff7f4084894987d32f5fadb7",
        "trigger": "form_submit",
        "target_component_id": "calculate_button",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"height\", \"message\": \"Height is required\", \"rule_id\": \"val_height\", \"type\": \"required\"}",
            "message": "{\"field\": \"height\", \"message\": \"Height is required\", \"rule_id\": \"val_height\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"height\", \"message\": \"Height must be at least 50 cm\", \"rule_id\": \"val_height_min\", \"type\": \"min\", \"value\": 50}",
            "message": "{\"field\": \"height\", \"message\": \"Height must be at least 50 cm\", \"rule_id\": \"val_height_min\", \"type\": \"min\", \"value\": 50}"
          },
          {
            "rule_id": "val_2",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"height\", \"message\": \"Height must not exceed 300 cm\", \"rule_id\": \"val_height_max\", \"type\": \"max\", \"value\": 300}",
            "message": "{\"field\": \"height\", \"message\": \"Height must not exceed 300 cm\", \"rule_id\": \"val_height_max\", \"type\": \"max\", \"value\": 300}"
          },
          {
            "rule_id": "val_3",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"weight\", \"message\": \"Weight is required\", \"rule_id\": \"val_weight\", \"type\": \"required\"}",
            "message": "{\"field\": \"weight\", \"message\": \"Weight is required\", \"rule_id\": \"val_weight\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_4",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"weight\", \"message\": \"Weight must be at least 10 kg\", \"rule_id\": \"val_weight_min\", \"type\": \"min\", \"value\": 10}",
            "message": "{\"field\": \"weight\", \"message\": \"Weight must be at least 10 kg\", \"rule_id\": \"val_weight_min\", \"type\": \"min\", \"value\": 10}"
          },
          {
            "rule_id": "val_5",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"weight\", \"message\": \"Weight must not exceed 500 kg\", \"rule_id\": \"val_weight_max\", \"type\": \"max\", \"value\": 500}",
            "message": "{\"field\": \"weight\", \"message\": \"Weight must not exceed 500 kg\", \"rule_id\": \"val_weight_max\", \"type\": \"max\", \"value\": 500}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "19243aeaff7f4084894987d32f5fadb7",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "BMI calculated successfully!",
              "type": "success"
            }
          },
          {
            "type": "api_call",
            "config": {
              "endpoint_id": "fetchHistory"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "8da0becb82b8421fb508463ee45a0865": {
        "action_id": "8da0becb82b8421fb508463ee45a0865",
        "trigger": "button_click",
        "target_component_id": "clear_history_button",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.calculations",
            "expr": "[]"
          },
          {
            "target": "state.showClearConfirm",
            "expr": "false"
          }
        ],
        "api_endpoint": "8da0becb82b8421fb508463ee45a0865",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Calculation history cleared.",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "modal_id": "clear_confirm_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "19243aeaff7f4084894987d32f5fadb7": {
        "action_id": "19243aeaff7f4084894987d32f5fadb7",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "BMI calculated successfully!",
        "error_message": "Failed to calculate BMI. Please check your inputs.",
        "ui_updates": [
          "state.loading = false"
        ]
      },
      "8da0becb82b8421fb508463ee45a0865": {
        "action_id": "8da0becb82b8421fb508463ee45a0865",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "History cleared successfully.",
        "error_message": "Failed to clear history.",
        "ui_updates": []
      }
    }
  },
  "component_ir": {
    "library": "antd",
    "theme": {
      "primaryColor": "#1677ff",
      "secondaryColor": "#52c41a",
      "successColor": null,
      "warningColor": null,
      "errorColor": null,
      "fontFamily": "sans-serif",
      "fontSize": null,
      "borderRadius": 8
    },
    "components": {
      "main_container": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "minHeight": "100vh",
          "width": "100%",
          "padding": "24px",
          "background": "#f5f5f5"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "page_header": {
        "type": "Typography.Title",
        "label": "BMI Calculator",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 2,
          "style": {
            "textAlign": "center",
            "marginBottom": "8px"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "page_subtitle": {
        "type": "Typography.Text",
        "label": "Calculate your Body Mass Index quickly and easily",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "secondary",
          "style": {
            "textAlign": "center",
            "display": "block",
            "marginBottom": "24px"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "calculator_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Calculate Your BMI",
          "bordered": true
        },
        "dynamic_props": {},
        "styles": {
          "maxWidth": "600px",
          "margin": "0 auto",
          "marginBottom": "24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "measurement_system_radio": {
        "type": "Radio.Group",
        "label": "Measurement System",
        "description": null,
        "bind": "appContext.measurementSystem",
        "onClick": "onSystemChange",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "optionType": "button",
          "buttonStyle": "solid",
          "options": [
            {
              "label": "Metric",
              "value": "metric"
            },
            {
              "label": "Imperial",
              "value": "imperial"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px",
          "display": "block"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "bmi_form"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_input": {
        "type": "Form.Item",
        "label": "Height",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "height",
          "rules": [
            {
              "required": true,
              "message": "Please enter your height"
            },
            {
              "type": "number",
              "min": 50,
              "max": 300,
              "message": "Height must be between 50-300 cm",
              "transform": "Number"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_input_number": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": "height",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. 175",
          "addonAfter": "cm",
          "min": 50,
          "max": 300,
          "style": {
            "width": "100%"
          },
          "precision": 1
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_feet_input": {
        "type": "Form.Item",
        "label": "Height (feet)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "height_feet",
          "rules": [
            {
              "required": true,
              "message": "Please enter feet"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_feet_input_number": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": "height_feet",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. 5",
          "addonAfter": "ft",
          "min": 1,
          "max": 9,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_inches_input": {
        "type": "Form.Item",
        "label": "Height (inches)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "height_inches",
          "rules": [
            {
              "required": true,
              "message": "Please enter inches"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "height_inches_input_number": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": "height_inches",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. 9",
          "addonAfter": "in",
          "min": 0,
          "max": 11,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "weight_input": {
        "type": "Form.Item",
        "label": "Weight",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "weight",
          "rules": [
            {
              "required": true,
              "message": "Please enter your weight"
            },
            {
              "type": "number",
              "min": 10,
              "max": 500,
              "message": "Weight must be between 10-500 kg",
              "transform": "Number"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "weight_input_number": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": "weight",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. 70",
          "addonAfter": "kg",
          "min": 10,
          "max": 500,
          "style": {
            "width": "100%"
          },
          "precision": 1
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "calculate_button": {
        "type": "Button",
        "label": "Calculate BMI",
        "description": null,
        "bind": null,
        "onClick": "calculateBmi",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "htmlType": "submit",
          "size": "large",
          "block": true,
          "icon": "CalculatorOutlined"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": "8px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "result_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Your BMI Result",
          "bordered": true
        },
        "dynamic_props": {},
        "styles": {
          "maxWidth": "600px",
          "margin": "0 auto",
          "marginBottom": "24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_value_display": {
        "type": "Statistic",
        "label": "BMI Value",
        "description": null,
        "bind": "state.bmiResult.bmi_value",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "precision": 1,
          "valueStyle": {
            "fontSize": "48px",
            "fontWeight": "bold"
          }
        },
        "dynamic_props": {},
        "styles": {
          "textAlign": "center"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_category_tag": {
        "type": "Tag",
        "label": null,
        "description": null,
        "bind": "state.bmiResult.category.name",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "fontSize": "16px",
            "padding": "4px 16px"
          }
        },
        "dynamic_props": {},
        "styles": {
          "textAlign": "center",
          "marginTop": "12px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_progress_bar": {
        "type": "Progress",
        "label": null,
        "description": null,
        "bind": "state.bmiResult.bmi_value",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "line",
          "showInfo": false,
          "strokeLinecap": "round"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_description": {
        "type": "Typography.Paragraph",
        "label": null,
        "description": null,
        "bind": "state.bmiResult.category.description",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "marginTop": "12px",
            "textAlign": "center"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "history_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Calculation History",
          "bordered": true
        },
        "dynamic_props": {},
        "styles": {
          "maxWidth": "600px",
          "margin": "0 auto",
          "marginBottom": "24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "history_list": {
        "type": "List",
        "label": null,
        "description": null,
        "bind": "state.calculations",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small",
          "locale": {
            "emptyText": "No calculations yet. Calculate your BMI to see history here."
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "history_list_item": {
        "type": "List.Item",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "clear_history_button": {
        "type": "Button",
        "label": "Clear History",
        "description": null,
        "bind": null,
        "onClick": "onShowClearConfirm",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "default",
          "danger": true,
          "icon": "DeleteOutlined",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": "12px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "clear_confirm_modal": {
        "type": "Modal",
        "label": null,
        "description": null,
        "bind": "state.showClearConfirm",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Clear Calculation History",
          "okText": "Clear All",
          "cancelText": "Cancel",
          "okButtonProps": {
            "danger": true
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "clear_confirm_text": {
        "type": "Typography.Text",
        "label": "Are you sure you want to clear all calculation history? This action cannot be undone.",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "clear_confirm_ok_button": {
        "type": "Button",
        "label": "Clear All",
        "description": null,
        "bind": null,
        "onClick": "clearHistory",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "danger": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_collapse": {
        "type": "Collapse",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "items": [
            {
              "key": "bmi_info",
              "label": "BMI Information & Health Guidelines",
              "children": "bmi_info_content"
            }
          ],
          "bordered": true
        },
        "dynamic_props": {},
        "styles": {
          "maxWidth": "600px",
          "margin": "0 auto",
          "marginBottom": "24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "bmi_info_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "padding": "8px 0"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_formula_title": {
        "type": "Typography.Title",
        "label": "BMI Formula",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 5
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_formula_text": {
        "type": "Typography.Paragraph",
        "label": "BMI = weight (kg) / height (m)²",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "code": true
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_categories_title": {
        "type": "Typography.Title",
        "label": "BMI Categories (WHO Standard)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 5
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_categories_table": {
        "type": "Table",
        "label": null,
        "description": null,
        "bind": "state.bmiCategories",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Category",
              "dataIndex": "name",
              "key": "name"
            },
            {
              "title": "BMI Range",
              "dataIndex": "min_bmi",
              "key": "range"
            },
            {
              "title": "Description",
              "dataIndex": "description",
              "key": "description"
            }
          ],
          "pagination": false,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_disclaimer_title": {
        "type": "Typography.Title",
        "label": "Disclaimer",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 5
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "info_disclaimer_text": {
        "type": "Typography.Paragraph",
        "label": "BMI is a general indicator and does not account for muscle mass, bone density, age, sex, or ethnicity. It should not be used as a sole diagnostic tool. Please consult a healthcare professional for personalized health advice.",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "secondary"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      }
    }
  },
  "layout_ir": {
    "root": "main_container",
    "children": {
      "main_container": [
        "page_header",
        "page_subtitle",
        "calculator_card",
        "result_card",
        "history_card",
        "info_collapse"
      ],
      "calculator_card": [
        "measurement_system_radio",
        "bmi_form"
      ],
      "bmi_form": [
        "height_input",
        "height_feet_input",
        "height_inches_input",
        "weight_input",
        "calculate_button"
      ],
      "height_input": [
        "height_input_number"
      ],
      "height_feet_input": [
        "height_feet_input_number"
      ],
      "height_inches_input": [
        "height_inches_input_number"
      ],
      "weight_input": [
        "weight_input_number"
      ],
      "result_card": [
        "bmi_value_display",
        "bmi_category_tag",
        "bmi_progress_bar",
        "bmi_description"
      ],
      "history_card": [
        "history_list",
        "clear_history_button"
      ],
      "clear_confirm_modal": [
        "clear_confirm_text"
      ],
      "info_collapse": [
        "bmi_info_content"
      ],
      "bmi_info_content": [
        "info_formula_title",
        "info_formula_text",
        "info_categories_title",
        "info_categories_table",
        "info_disclaimer_title",
        "info_disclaimer_text"
      ]
    },
    "layout": {
      "main_container": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "calculator_card": {
        "type": "vertical",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "bmi_form": {
        "type": "vertical",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "result_card": {
        "type": "vertical",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "history_card": {
        "type": "vertical",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "bmi_info_content": {
        "type": "vertical",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      }
    },
    "layout_zones": [
      {
        "zone_id": "main_zone",
        "component": "main_container",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Root page container with centered content"
      },
      {
        "zone_id": "modal_zone",
        "component": "clear_confirm_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Confirmation modal for clearing history"
      }
    ],
    "responsive_overrides": []
  },
  "navigation_ir": {
    "tabs": [],
    "modals": {},
    "drawers": {},
    "routes": [],
    "breadcrumb": null,
    "default_tab": null
  },
  "realtime_ir": {
    "timers": {},
    "polling": {}
  },
  "metadata": {
    "ir_version": "3.5",
    "generated_at": "",
    "source_prompt": null,
    "schema_session_id": null,
    "warnings": []
  },
  "page_data_contract": null,
  "schema_ir": null
}
