{
  "page_ir": {
    "page_id": "configuration",
    "page_goal": "System configuration page with tabbed interface for managing Truck Purposes, ASN Statuses, and System Settings with full CRUD operations",
    "style": {
      "tone": "professional",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "neutral"
    },
    "accessibility": {
      "required_labels": [
        "tab_labels",
        "form_labels",
        "table_headers",
        "button_labels"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 1024,
        "xl": 1200
      },
      "collapse_rules": [
        "tables_scroll_horizontal_on_small"
      ],
      "hidden_on_small": [
        "description_column"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "admin_only_access"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "activeTab": {
        "type": "string",
        "initial": "truck_purposes",
        "required": true,
        "constraints": {},
        "item_type": null
      },
      "truckPurposes": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "asnStatuses": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "systemSettings": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "purposeModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "statusModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "settingModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editingPurpose": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editingStatus": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editingSetting": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {}
  },
  "data_fetch_ir": {
    "endpoints": {
      "1d9c692f03f1405c8e489fdf335d5411": {
        "endpoint_id": "1d9c692f03f1405c8e489fdf335d5411",
        "module": "Configuration",
        "endpoint": "/configuration/truck-purposes",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "cfg_truck_purpose_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id",
          "created_at",
          "updated_at"
        ],
        "response_target": "truckPurposes",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "5890db883a074a158ba7b8ce65d50434": {
        "endpoint_id": "5890db883a074a158ba7b8ce65d50434",
        "module": "Configuration",
        "endpoint": "/configuration/asn-statuses",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "cfg_asn_status_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id",
          "created_at",
          "updated_at"
        ],
        "response_target": "asnStatuses",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "7fc65850f1c748e392f4965f88624950": {
        "endpoint_id": "7fc65850f1c748e392f4965f88624950",
        "module": "Configuration",
        "endpoint": "/configuration/system-settings",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "submenu_id",
          "setting_key",
          "setting_value",
          "description",
          "is_active",
          "created_at",
          "updated_at"
        ],
        "response_target": "systemSettings",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "7b46bfeeda014d85af0bbae444d8f5c8": {
        "endpoint_id": "7b46bfeeda014d85af0bbae444d8f5c8",
        "module": "Configuration",
        "endpoint": "/configuration/truck-purposes",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "cfg_truck_purpose_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id"
        ],
        "response_target": "truckPurposes",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "dcb9c8505ff747e6953b96168b428253": {
        "endpoint_id": "dcb9c8505ff747e6953b96168b428253",
        "module": "Configuration",
        "endpoint": "/configuration/truck-purposes/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.editingPurpose.id"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "cfg_truck_purpose_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id"
        ],
        "response_target": "truckPurposes",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "b10c82663ff14d2585260e89c3c2a23b": {
        "endpoint_id": "b10c82663ff14d2585260e89c3c2a23b",
        "module": "Configuration",
        "endpoint": "/configuration/truck-purposes/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$action.payload.id"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "truckPurposes",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "9644150d2a034b2db19c45a2987f95fa": {
        "endpoint_id": "9644150d2a034b2db19c45a2987f95fa",
        "module": "Configuration",
        "endpoint": "/configuration/asn-statuses",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "cfg_asn_status_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id"
        ],
        "response_target": "asnStatuses",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c84837c65e8149239459888fe699d79a": {
        "endpoint_id": "c84837c65e8149239459888fe699d79a",
        "module": "Configuration",
        "endpoint": "/configuration/asn-statuses/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.editingStatus.id"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "cfg_asn_status_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id"
        ],
        "response_target": "asnStatuses",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "981a4a3e5bd845a89cab9830d29e6d0a": {
        "endpoint_id": "981a4a3e5bd845a89cab9830d29e6d0a",
        "module": "Configuration",
        "endpoint": "/configuration/asn-statuses/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$action.payload.id"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "asnStatuses",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "da460c6d7cd7443c955a304fac7a5f18": {
        "endpoint_id": "da460c6d7cd7443c955a304fac7a5f18",
        "module": "Configuration",
        "endpoint": "/configuration/system-settings",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "submenu_id",
          "setting_key",
          "setting_value",
          "description",
          "is_active"
        ],
        "response_target": "systemSettings",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "059209e0234241699a1c70c06877457d": {
        "endpoint_id": "059209e0234241699a1c70c06877457d",
        "module": "Configuration",
        "endpoint": "/configuration/system-settings/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.editingSetting.id"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "submenu_id",
          "setting_key",
          "setting_value",
          "description",
          "is_active"
        ],
        "response_target": "systemSettings",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "6ba4372138504666b40016a30dc38d3c": {
        "endpoint_id": "6ba4372138504666b40016a30dc38d3c",
        "module": "Configuration",
        "endpoint": "/configuration/system-settings/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$action.payload.id"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "systemSettings",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "truckPurpose": {
        "name": "Truck Purpose",
        "backend_module": "Configuration",
        "fields": [
          "id",
          "cfg_truck_purpose_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "label",
          "code",
          "description",
          "is_active"
        ],
        "search_fields": [],
        "filters": [
          "is_active",
          "code"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "asnStatus": {
        "name": "ASN Status",
        "backend_module": "Configuration",
        "fields": [
          "id",
          "cfg_asn_status_id",
          "code",
          "label",
          "description",
          "is_active",
          "submenu_id",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "label",
          "code",
          "description",
          "is_active"
        ],
        "search_fields": [],
        "filters": [
          "is_active",
          "code"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "systemSetting": {
        "name": "System Setting",
        "backend_module": "Configuration",
        "fields": [
          "id",
          "submenu_id",
          "setting_key",
          "setting_value",
          "description",
          "is_active",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "setting_key",
          "setting_value",
          "description",
          "is_active"
        ],
        "search_fields": [],
        "filters": [
          "is_active",
          "setting_key"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onTabChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.activeTab",
            "expr": "$event.value"
          }
        ],
        "description": ""
      },
      "openPurposeModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.purposeModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingPurpose",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openEditPurposeModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.purposeModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingPurpose",
            "expr": "$event.record"
          }
        ],
        "description": ""
      },
      "closePurposeModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.purposeModalVisible",
            "expr": "false"
          },
          {
            "target": "state.editingPurpose",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openStatusModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.statusModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingStatus",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openEditStatusModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.statusModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingStatus",
            "expr": "$event.record"
          }
        ],
        "description": ""
      },
      "closeStatusModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.statusModalVisible",
            "expr": "false"
          },
          {
            "target": "state.editingStatus",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openSettingModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.settingModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingSetting",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openEditSettingModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.settingModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingSetting",
            "expr": "$event.record"
          }
        ],
        "description": ""
      },
      "closeSettingModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.settingModalVisible",
            "expr": "false"
          },
          {
            "target": "state.editingSetting",
            "expr": "null"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "2518d4ab8f254639ac0789b98847bea5": {
        "action_id": "2518d4ab8f254639ac0789b98847bea5",
        "trigger": "form_submit",
        "target_component_id": "purpose_modal",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_label\", \"type\": \"required\"}",
            "message": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_label\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_code\", \"type\": \"required\"}",
            "message": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_code\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "7b46bfeeda014d85af0bbae444d8f5c8",
        "api_body": "{ cfg_truck_purpose_id: formValues.cfg_truck_purpose_id, code: formValues.code, label: formValues.label, description: formValues.description, is_active: formValues.is_active, submenu_id: 1 }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Truck purpose saved successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "purpose_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchTruckPurposes"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "188b4bdd597b4cf0a3de2871ea09acef": {
        "action_id": "188b4bdd597b4cf0a3de2871ea09acef",
        "trigger": "form_submit",
        "target_component_id": "purpose_modal",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_label_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_label_edit\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_code_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_code_edit\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "dcb9c8505ff747e6953b96168b428253",
        "api_body": "{ code: formValues.code, label: formValues.label, description: formValues.description, is_active: formValues.is_active }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Truck purpose updated successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "purpose_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchTruckPurposes"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "37135939f0e4475c8550ef37793bd228": {
        "action_id": "37135939f0e4475c8550ef37793bd228",
        "trigger": "button_click",
        "target_component_id": "truck_purposes_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "b10c82663ff14d2585260e89c3c2a23b",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Truck purpose deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchTruckPurposes"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "a9ba587483144432ba8fad6b1c3d7df5": {
        "action_id": "a9ba587483144432ba8fad6b1c3d7df5",
        "trigger": "form_submit",
        "target_component_id": "status_modal",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_status_label\", \"type\": \"required\"}",
            "message": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_status_label\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_status_code\", \"type\": \"required\"}",
            "message": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_status_code\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "9644150d2a034b2db19c45a2987f95fa",
        "api_body": "{ cfg_asn_status_id: formValues.cfg_asn_status_id, code: formValues.code, label: formValues.label, description: formValues.description, is_active: formValues.is_active, submenu_id: 1 }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "ASN status saved successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "status_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchAsnStatuses"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "e7de5d86c5c44d549bed00dd6d672fc5": {
        "action_id": "e7de5d86c5c44d549bed00dd6d672fc5",
        "trigger": "form_submit",
        "target_component_id": "status_modal",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_status_label_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"label\", \"message\": \"Name is required\", \"rule_id\": \"val_status_label_edit\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_status_code_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"code\", \"message\": \"Code is required\", \"rule_id\": \"val_status_code_edit\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "c84837c65e8149239459888fe699d79a",
        "api_body": "{ code: formValues.code, label: formValues.label, description: formValues.description, is_active: formValues.is_active }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "ASN status updated successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "status_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchAsnStatuses"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b390c57b32a24b4eb3f607f776a4db8f": {
        "action_id": "b390c57b32a24b4eb3f607f776a4db8f",
        "trigger": "button_click",
        "target_component_id": "asn_statuses_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "981a4a3e5bd845a89cab9830d29e6d0a",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "ASN status deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchAsnStatuses"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "6f48aa7d5ac4463eb62bb3507550aaa5": {
        "action_id": "6f48aa7d5ac4463eb62bb3507550aaa5",
        "trigger": "form_submit",
        "target_component_id": "setting_modal",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"setting_key\", \"message\": \"Key is required\", \"rule_id\": \"val_setting_key\", \"type\": \"required\"}",
            "message": "{\"field\": \"setting_key\", \"message\": \"Key is required\", \"rule_id\": \"val_setting_key\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"setting_value\", \"message\": \"Value is required\", \"rule_id\": \"val_setting_value\", \"type\": \"required\"}",
            "message": "{\"field\": \"setting_value\", \"message\": \"Value is required\", \"rule_id\": \"val_setting_value\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "da460c6d7cd7443c955a304fac7a5f18",
        "api_body": "{ submenu_id: 1, setting_key: formValues.setting_key, setting_value: formValues.setting_value, description: formValues.description, is_active: true }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "System setting saved successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "setting_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchSystemSettings"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "681e8a28cf4a4cab802ac5c92e04aa6d": {
        "action_id": "681e8a28cf4a4cab802ac5c92e04aa6d",
        "trigger": "form_submit",
        "target_component_id": "setting_modal",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"setting_key\", \"message\": \"Key is required\", \"rule_id\": \"val_setting_key_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"setting_key\", \"message\": \"Key is required\", \"rule_id\": \"val_setting_key_edit\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"setting_value\", \"message\": \"Value is required\", \"rule_id\": \"val_setting_value_edit\", \"type\": \"required\"}",
            "message": "{\"field\": \"setting_value\", \"message\": \"Value is required\", \"rule_id\": \"val_setting_value_edit\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "059209e0234241699a1c70c06877457d",
        "api_body": "{ setting_key: formValues.setting_key, setting_value: formValues.setting_value, description: formValues.description, is_active: formValues.is_active }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "System setting updated successfully",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "setting_modal"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchSystemSettings"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "81535c0dbce748cf894629ced54acb6c": {
        "action_id": "81535c0dbce748cf894629ced54acb6c",
        "trigger": "button_click",
        "target_component_id": "system_settings_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "6ba4372138504666b40016a30dc38d3c",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "System setting deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "endpoint_id": "fetchSystemSettings"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "3dea1094bfa248f8bb184af12adc757d": {
        "action_id": "3dea1094bfa248f8bb184af12adc757d",
        "trigger": "button_click",
        "target_component_id": "breadcrumb_dashboard",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "79b30a2c54c745a29d4bce3b4d144601": {
        "action_id": "79b30a2c54c745a29d4bce3b4d144601",
        "trigger": "button_click",
        "target_component_id": "pallet_configs_link",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/pallet-configs"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "2518d4ab8f254639ac0789b98847bea5": {
        "action_id": "2518d4ab8f254639ac0789b98847bea5",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Truck purpose saved successfully",
        "error_message": "Failed to save truck purpose",
        "ui_updates": []
      },
      "188b4bdd597b4cf0a3de2871ea09acef": {
        "action_id": "188b4bdd597b4cf0a3de2871ea09acef",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Truck purpose updated successfully",
        "error_message": "Failed to update truck purpose",
        "ui_updates": []
      },
      "37135939f0e4475c8550ef37793bd228": {
        "action_id": "37135939f0e4475c8550ef37793bd228",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Truck purpose deleted",
        "error_message": "Failed to delete truck purpose",
        "ui_updates": []
      },
      "a9ba587483144432ba8fad6b1c3d7df5": {
        "action_id": "a9ba587483144432ba8fad6b1c3d7df5",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "ASN status saved successfully",
        "error_message": "Failed to save ASN status",
        "ui_updates": []
      },
      "e7de5d86c5c44d549bed00dd6d672fc5": {
        "action_id": "e7de5d86c5c44d549bed00dd6d672fc5",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "ASN status updated successfully",
        "error_message": "Failed to update ASN status",
        "ui_updates": []
      },
      "b390c57b32a24b4eb3f607f776a4db8f": {
        "action_id": "b390c57b32a24b4eb3f607f776a4db8f",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "ASN status deleted",
        "error_message": "Failed to delete ASN status",
        "ui_updates": []
      },
      "6f48aa7d5ac4463eb62bb3507550aaa5": {
        "action_id": "6f48aa7d5ac4463eb62bb3507550aaa5",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "System setting saved successfully",
        "error_message": "Failed to save system setting",
        "ui_updates": []
      },
      "681e8a28cf4a4cab802ac5c92e04aa6d": {
        "action_id": "681e8a28cf4a4cab802ac5c92e04aa6d",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "System setting updated successfully",
        "error_message": "Failed to update system setting",
        "ui_updates": []
      },
      "81535c0dbce748cf894629ced54acb6c": {
        "action_id": "81535c0dbce748cf894629ced54acb6c",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "System setting deleted",
        "error_message": "Failed to delete system setting",
        "ui_updates": []
      },
      "3dea1094bfa248f8bb184af12adc757d": {
        "action_id": "3dea1094bfa248f8bb184af12adc757d",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "79b30a2c54c745a29d4bce3b4d144601": {
        "action_id": "79b30a2c54c745a29d4bce3b4d144601",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      }
    }
  },
  "component_ir": {
    "library": "antd",
    "theme": {
      "primaryColor": "#1677ff",
      "secondaryColor": "#000000",
      "successColor": null,
      "warningColor": null,
      "errorColor": null,
      "fontFamily": "sans-serif",
      "fontSize": null,
      "borderRadius": 6
    },
    "components": {
      "main_container": {
        "type": "Layout",
        "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": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "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
      },
      "breadcrumb_dashboard": {
        "type": "Breadcrumb",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "navigateToDashboard",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "items": [
            {
              "title": "Dashboard",
              "href": "/"
            },
            {
              "title": "System Configuration"
            }
          ]
        },
        "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
      },
      "page_title": {
        "type": "Typography.Title",
        "label": "System Configuration",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 2
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "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
      },
      "page_description": {
        "type": "Typography.Text",
        "label": "Manage truck purposes, ASN statuses, and system settings",
        "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
      },
      "pallet_configs_link": {
        "type": "Button",
        "label": "Pallet Configurations",
        "description": null,
        "bind": null,
        "onClick": "navigateToPalletConfigs",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "icon": "ArrowRightOutlined"
        },
        "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
      },
      "tabs_container": {
        "type": "Tabs",
        "label": null,
        "description": null,
        "bind": "state.activeTab",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "card",
          "items": [
            {
              "key": "truck_purposes",
              "label": "Truck Purposes"
            },
            {
              "key": "asn_statuses",
              "label": "ASN Statuses"
            },
            {
              "key": "system_settings",
              "label": "System Settings"
            }
          ],
          "onChange": "onTabChange"
        },
        "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
      },
      "truck_purposes_tab": {
        "type": "div",
        "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
      },
      "truck_purposes_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "truck_purposes_title": {
        "type": "Typography.Title",
        "label": "Truck Purposes",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4
        },
        "dynamic_props": {},
        "styles": {
          "margin": "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
      },
      "add_purpose_button": {
        "type": "Button",
        "label": "Add Purpose",
        "description": null,
        "bind": null,
        "onClick": "openPurposeModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "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
      },
      "truck_purposes_table": {
        "type": "Table",
        "label": null,
        "description": null,
        "bind": "state.truckPurposes",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Entity ID",
              "dataIndex": "id",
              "key": "id"
            },
            {
              "title": "Name",
              "dataIndex": "label",
              "key": "label"
            },
            {
              "title": "Code",
              "dataIndex": "code",
              "key": "code"
            },
            {
              "title": "Description",
              "dataIndex": "description",
              "key": "description"
            },
            {
              "title": "Active",
              "dataIndex": "is_active",
              "key": "is_active",
              "render": "tag"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "actions",
              "actions": [
                "edit",
                "delete"
              ]
            }
          ],
          "rowKey": "id",
          "pagination": {
            "pageSize": 10
          },
          "bordered": true,
          "size": "middle",
          "editAction": "openEditPurposeModal",
          "deleteAction": "deletePurpose"
        },
        "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
      },
      "asn_statuses_tab": {
        "type": "div",
        "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
      },
      "asn_statuses_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "asn_statuses_title": {
        "type": "Typography.Title",
        "label": "ASN Statuses",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4
        },
        "dynamic_props": {},
        "styles": {
          "margin": "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
      },
      "add_status_button": {
        "type": "Button",
        "label": "Add Status",
        "description": null,
        "bind": null,
        "onClick": "openStatusModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "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
      },
      "asn_statuses_table": {
        "type": "Table",
        "label": null,
        "description": null,
        "bind": "state.asnStatuses",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Entity ID",
              "dataIndex": "id",
              "key": "id"
            },
            {
              "title": "Name",
              "dataIndex": "label",
              "key": "label"
            },
            {
              "title": "Code",
              "dataIndex": "code",
              "key": "code"
            },
            {
              "title": "Description",
              "dataIndex": "description",
              "key": "description"
            },
            {
              "title": "Active",
              "dataIndex": "is_active",
              "key": "is_active",
              "render": "tag"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "actions",
              "actions": [
                "edit",
                "delete"
              ]
            }
          ],
          "rowKey": "id",
          "pagination": {
            "pageSize": 10
          },
          "bordered": true,
          "size": "middle",
          "editAction": "openEditStatusModal",
          "deleteAction": "deleteStatus"
        },
        "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
      },
      "system_settings_tab": {
        "type": "div",
        "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
      },
      "system_settings_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "system_settings_title": {
        "type": "Typography.Title",
        "label": "System Settings",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4
        },
        "dynamic_props": {},
        "styles": {
          "margin": "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
      },
      "add_setting_button": {
        "type": "Button",
        "label": "Add Setting",
        "description": null,
        "bind": null,
        "onClick": "openSettingModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "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
      },
      "system_settings_table": {
        "type": "Table",
        "label": null,
        "description": null,
        "bind": "state.systemSettings",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Entity ID",
              "dataIndex": "id",
              "key": "id"
            },
            {
              "title": "Key",
              "dataIndex": "setting_key",
              "key": "setting_key"
            },
            {
              "title": "Value",
              "dataIndex": "setting_value",
              "key": "setting_value"
            },
            {
              "title": "Description",
              "dataIndex": "description",
              "key": "description"
            },
            {
              "title": "Active",
              "dataIndex": "is_active",
              "key": "is_active",
              "render": "tag"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "actions",
              "actions": [
                "edit",
                "delete"
              ]
            }
          ],
          "rowKey": "id",
          "pagination": {
            "pageSize": 10
          },
          "bordered": true,
          "size": "middle",
          "editAction": "openEditSettingModal",
          "deleteAction": "deleteSetting"
        },
        "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
      },
      "purpose_modal": {
        "type": "Modal",
        "label": "Truck Purpose",
        "description": null,
        "bind": "state.purposeModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Truck Purpose",
          "okText": "Save",
          "cancelText": "Cancel",
          "onCancel": "closePurposeModal",
          "onOk": "submitPurpose",
          "destroyOnClose": 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
      },
      "purpose_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": "state.editingPurpose",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "fields": [
            {
              "name": "label",
              "label": "Name",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Name is required"
                }
              ]
            },
            {
              "name": "code",
              "label": "Code",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Code is required"
                }
              ]
            },
            {
              "name": "description",
              "label": "Description",
              "type": "Input.TextArea",
              "rules": []
            },
            {
              "name": "is_active",
              "label": "Active",
              "type": "Switch",
              "rules": [],
              "valuePropName": "checked",
              "initialValue": 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
      },
      "status_modal": {
        "type": "Modal",
        "label": "ASN Status",
        "description": null,
        "bind": "state.statusModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "ASN Status",
          "okText": "Save",
          "cancelText": "Cancel",
          "onCancel": "closeStatusModal",
          "onOk": "submitStatus",
          "destroyOnClose": 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
      },
      "status_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": "state.editingStatus",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "fields": [
            {
              "name": "label",
              "label": "Name",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Name is required"
                }
              ]
            },
            {
              "name": "code",
              "label": "Code",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Code is required"
                }
              ]
            },
            {
              "name": "description",
              "label": "Description",
              "type": "Input.TextArea",
              "rules": []
            },
            {
              "name": "is_active",
              "label": "Active",
              "type": "Switch",
              "rules": [],
              "valuePropName": "checked",
              "initialValue": 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
      },
      "setting_modal": {
        "type": "Modal",
        "label": "System Setting",
        "description": null,
        "bind": "state.settingModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "System Setting",
          "okText": "Save",
          "cancelText": "Cancel",
          "onCancel": "closeSettingModal",
          "onOk": "submitSetting",
          "destroyOnClose": 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
      },
      "setting_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": "state.editingSetting",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "fields": [
            {
              "name": "setting_key",
              "label": "Key",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Key is required"
                }
              ]
            },
            {
              "name": "setting_value",
              "label": "Value",
              "type": "Input",
              "rules": [
                {
                  "required": true,
                  "message": "Value is required"
                }
              ]
            },
            {
              "name": "description",
              "label": "Description",
              "type": "Input.TextArea",
              "rules": []
            }
          ]
        },
        "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",
        "tabs_container",
        "purpose_modal",
        "status_modal",
        "setting_modal"
      ],
      "page_header": [
        "breadcrumb_dashboard",
        "page_title",
        "page_description",
        "pallet_configs_link"
      ],
      "tabs_container": [
        "truck_purposes_tab",
        "asn_statuses_tab",
        "system_settings_tab"
      ],
      "truck_purposes_tab": [
        "truck_purposes_header",
        "truck_purposes_table"
      ],
      "truck_purposes_header": [
        "truck_purposes_title",
        "add_purpose_button"
      ],
      "asn_statuses_tab": [
        "asn_statuses_header",
        "asn_statuses_table"
      ],
      "asn_statuses_header": [
        "asn_statuses_title",
        "add_status_button"
      ],
      "system_settings_tab": [
        "system_settings_header",
        "system_settings_table"
      ],
      "system_settings_header": [
        "system_settings_title",
        "add_setting_button"
      ],
      "purpose_modal": [
        "purpose_form"
      ],
      "status_modal": [
        "status_form"
      ],
      "setting_modal": [
        "setting_form"
      ]
    },
    "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
      },
      "page_header": {
        "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
      },
      "tabs_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
      },
      "truck_purposes_tab": {
        "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
      },
      "truck_purposes_header": {
        "type": "horizontal",
        "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
      },
      "asn_statuses_tab": {
        "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
      },
      "asn_statuses_header": {
        "type": "horizontal",
        "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
      },
      "system_settings_tab": {
        "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
      },
      "system_settings_header": {
        "type": "horizontal",
        "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
      },
      "purpose_modal": {
        "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
      },
      "status_modal": {
        "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
      },
      "setting_modal": {
        "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
      }
    },
    "layout_zones": [
      {
        "zone_id": "main_zone",
        "component": "main_container",
        "anchor": "top-left",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Main page container"
      },
      {
        "zone_id": "purpose_modal_zone",
        "component": "purpose_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Truck purpose add/edit modal"
      },
      {
        "zone_id": "status_modal_zone",
        "component": "status_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "ASN status add/edit modal"
      },
      {
        "zone_id": "setting_modal_zone",
        "component": "setting_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "System setting add/edit modal"
      }
    ],
    "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
}
