{
  "page_ir": {
    "page_id": "book_detail",
    "page_goal": "Display comprehensive book details including metadata, availability, copy information, and allow members to borrow or reserve books",
    "style": {
      "tone": "informational",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "professional library catalog with clear availability indicators"
    },
    "accessibility": {
      "required_labels": [
        "book_title",
        "author_links",
        "availability_status",
        "borrow_button",
        "reserve_button",
        "copies_table"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 992,
        "xl": 1200
      },
      "collapse_rules": [
        "book_info_section stacks vertically on sm",
        "copies_table scrolls horizontally on sm"
      ],
      "hidden_on_small": [
        "recommended_section"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "Route param :bookId required",
      "Borrow/Reserve buttons visible only for authenticated members",
      "Reserve button shown only when no copies available"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "bookDetails": {
        "type": "object",
        "initial": null,
        "required": true,
        "constraints": {},
        "item_type": null
      },
      "bookAvailability": {
        "type": "object",
        "initial": null,
        "required": true,
        "constraints": {},
        "item_type": null
      },
      "activeReservations": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "recommendedBooks": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": true,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "reserving": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "reservationQueuePosition": {
        "type": "number",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "totalCopies": {
        "type": "number",
        "expr": "state.bookAvailability?.total_copies || 0",
        "deps": []
      },
      "availableCopies": {
        "type": "number",
        "expr": "state.bookAvailability?.available_copies || 0",
        "deps": []
      },
      "checkedOutCopies": {
        "type": "number",
        "expr": "state.bookAvailability?.checked_out_copies || 0",
        "deps": []
      },
      "reservedCopies": {
        "type": "number",
        "expr": "state.bookAvailability?.reserved_copies || 0",
        "deps": []
      },
      "activeReservationCount": {
        "type": "number",
        "expr": "state.activeReservations.length",
        "deps": []
      },
      "canBorrow": {
        "type": "boolean",
        "expr": "appContext.currentUser?.role === 'member' && state.bookAvailability?.available_copies > 0",
        "deps": []
      },
      "canReserve": {
        "type": "boolean",
        "expr": "appContext.currentUser?.role === 'member' && state.bookAvailability?.available_copies === 0",
        "deps": []
      },
      "bookAuthors": {
        "type": "array",
        "expr": "state.bookDetails?.book_authors || []",
        "deps": []
      },
      "bookCategories": {
        "type": "array",
        "expr": "state.bookDetails?.book_categories || []",
        "deps": []
      },
      "bookCopies": {
        "type": "array",
        "expr": "state.bookDetails?.book_copies || []",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "b58bed84ca464e7d9c32d9f9a1adea69": {
        "endpoint_id": "b58bed84ca464e7d9c32d9f9a1adea69",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}/details",
        "method": "GET",
        "path_params": {
          "book_id": "$route.bookId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "isbn",
          "title",
          "publisher",
          "publication_date",
          "edition",
          "number_of_pages",
          "language",
          "description",
          "cover_image_url",
          "created_at",
          "updated_at",
          "book_authors",
          "book_categories",
          "book_copies"
        ],
        "response_target": "bookDetails",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "827f4b66a6b84bbd94ce26c3fe26eca1": {
        "endpoint_id": "827f4b66a6b84bbd94ce26c3fe26eca1",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}/availability",
        "method": "GET",
        "path_params": {
          "book_id": "$route.bookId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "book_id",
          "title",
          "total_copies",
          "available_copies",
          "checked_out_copies",
          "reserved_copies",
          "copies_by_branch"
        ],
        "response_target": "bookAvailability",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "0cad9fdf069a4326bde5cabf30030aab": {
        "endpoint_id": "0cad9fdf069a4326bde5cabf30030aab",
        "module": "Reservations",
        "endpoint": "/reservations/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "book_id": "$route.bookId",
          "status": "PENDING",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "member_id",
          "book_id",
          "reservation_date",
          "status",
          "priority_order"
        ],
        "response_target": "activeReservations",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "908528b31e8a43fdb180533b5de49469": {
        "endpoint_id": "908528b31e8a43fdb180533b5de49469",
        "module": "Catalog",
        "endpoint": "/catalog/books",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 6
        },
        "body": null,
        "fields": [
          "id",
          "title",
          "book_authors"
        ],
        "response_target": "recommendedBooks",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "331135e3cd7046d993876ee6cc65f7bb": {
        "endpoint_id": "331135e3cd7046d993876ee6cc65f7bb",
        "module": "Reservations",
        "endpoint": "/reservations/",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {
          "member_id": "appContext.currentUser.memberId",
          "book_id": "$route.bookId",
          "reservation_date": "new Date().toISOString()",
          "expiration_date": "new Date(Date.now() + 90*24*60*60*1000).toISOString()"
        },
        "fields": [
          "id",
          "member_id",
          "book_id",
          "reservation_date",
          "status",
          "priority_order"
        ],
        "response_target": "reservationQueuePosition",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "book": {
        "name": "Book",
        "backend_module": "Catalog",
        "fields": [
          "id",
          "isbn",
          "title",
          "publisher",
          "publication_date",
          "edition",
          "number_of_pages",
          "language",
          "description",
          "cover_image_url",
          "created_at",
          "updated_at",
          "book_authors",
          "book_categories",
          "book_copies"
        ],
        "computed": [],
        "display_fields": [
          "title",
          "isbn",
          "publisher",
          "publication_date",
          "edition",
          "number_of_pages",
          "language",
          "description",
          "cover_image_url"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "bookAvailability": {
        "name": "BookAvailability",
        "backend_module": "Catalog",
        "fields": [
          "book_id",
          "title",
          "total_copies",
          "available_copies",
          "checked_out_copies",
          "reserved_copies",
          "copies_by_branch"
        ],
        "computed": [],
        "display_fields": [
          "total_copies",
          "available_copies",
          "checked_out_copies",
          "reserved_copies"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "reservation": {
        "name": "Reservation",
        "backend_module": "Reservations",
        "fields": [
          "id",
          "member_id",
          "book_id",
          "reservation_date",
          "expiration_date",
          "status",
          "priority_order",
          "notified_date",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "status",
          "priority_order",
          "reservation_date"
        ],
        "search_fields": [],
        "filters": [
          "book_id",
          "status"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "recommendedBook": {
        "name": "RecommendedBook",
        "backend_module": "Catalog",
        "fields": [
          "id",
          "title",
          "book_authors"
        ],
        "computed": [],
        "display_fields": [
          "title",
          "book_authors"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onPageLoad": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "description": ""
      },
      "onDataLoaded": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.loading",
            "expr": "false"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "9e398b06486f4063ae0f549b7a6b3381": {
        "action_id": "9e398b06486f4063ae0f549b7a6b3381",
        "trigger": "button_click",
        "target_component_id": "author_link",
        "operation": "custom",
        "description": "",
        "payload": {
          "authorId": "$event.authorId"
        },
        "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": "/authors/${authorId}"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "db1e968b7d2641bc853d76946be38442": {
        "action_id": "db1e968b7d2641bc853d76946be38442",
        "trigger": "button_click",
        "target_component_id": "back_to_catalog_button",
        "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
      },
      "833d2846288c4d0dbf19409c9a49942c": {
        "action_id": "833d2846288c4d0dbf19409c9a49942c",
        "trigger": "button_click",
        "target_component_id": "borrow_button",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Please visit the library to complete checkout or contact a librarian.",
              "type": "info"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "ce147118be5e4cf19c3adf10c99b4542": {
        "action_id": "ce147118be5e4cf19c3adf10c99b4542",
        "trigger": "button_click",
        "target_component_id": "reserve_button",
        "operation": "create",
        "description": "",
        "payload": {
          "member_id": "appContext.currentUser.memberId",
          "book_id": "$route.bookId"
        },
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.reserving",
            "expr": "true"
          }
        ],
        "api_endpoint": "331135e3cd7046d993876ee6cc65f7bb",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Book reserved successfully!",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {}
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b8b86b02430c4d7aae85150a89d7b3a3": {
        "action_id": "b8b86b02430c4d7aae85150a89d7b3a3",
        "trigger": "button_click",
        "target_component_id": "recommended_book_card",
        "operation": "custom",
        "description": "",
        "payload": {
          "bookId": "$event.bookId"
        },
        "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": "/books/${bookId}"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "9e398b06486f4063ae0f549b7a6b3381": {
        "action_id": "9e398b06486f4063ae0f549b7a6b3381",
        "loading_indicator": "none",
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "db1e968b7d2641bc853d76946be38442": {
        "action_id": "db1e968b7d2641bc853d76946be38442",
        "loading_indicator": "none",
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "833d2846288c4d0dbf19409c9a49942c": {
        "action_id": "833d2846288c4d0dbf19409c9a49942c",
        "loading_indicator": "none",
        "loading_text": null,
        "success_message": "Borrow request initiated",
        "error_message": "Unable to process borrow request",
        "ui_updates": []
      },
      "ce147118be5e4cf19c3adf10c99b4542": {
        "action_id": "ce147118be5e4cf19c3adf10c99b4542",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Book reserved successfully! Check your queue position.",
        "error_message": "Unable to reserve book. Please try again.",
        "ui_updates": [
          "state.reserving = false"
        ]
      },
      "b8b86b02430c4d7aae85150a89d7b3a3": {
        "action_id": "b8b86b02430c4d7aae85150a89d7b3a3",
        "loading_indicator": "none",
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      }
    }
  },
  "component_ir": {
    "library": "antd",
    "theme": {
      "primaryColor": "#1677ff",
      "secondaryColor": "#52c41a",
      "successColor": null,
      "warningColor": null,
      "errorColor": null,
      "fontFamily": "sans-serif",
      "fontSize": null,
      "borderRadius": 6
    },
    "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",
          "maxWidth": "1200px",
          "margin": "0 auto"
        },
        "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_section": {
        "type": "Breadcrumb",
        "label": "Navigation breadcrumb",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "items": [
            {
              "title": "Catalog",
              "href": "/"
            },
            {
              "title": "Book Details"
            }
          ]
        },
        "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
      },
      "back_to_catalog_button": {
        "type": "Button",
        "label": "Back to Catalog",
        "description": null,
        "bind": null,
        "onClick": "navigateToCatalog",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "icon": "ArrowLeftOutlined"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px",
          "paddingLeft": "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
      },
      "loading_spinner": {
        "type": "Spin",
        "label": "Loading book details",
        "description": null,
        "bind": "state.loading",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "large",
          "tip": "Loading book details..."
        },
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "center",
          "padding": "100px 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
      },
      "book_info_section": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "marginBottom": "32px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "cover_image_col": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "flex": "0 0 300px",
          "marginRight": "32px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "cover_image": {
        "type": "Image",
        "label": "Book cover image",
        "description": null,
        "bind": "state.bookDetails.cover_image_url",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 280,
          "fallback": "https://via.placeholder.com/280x400?text=No+Cover",
          "alt": "Book cover"
        },
        "dynamic_props": {},
        "styles": {
          "borderRadius": "8px",
          "boxShadow": "0 4px 12px rgba(0,0,0,0.1)"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "book_details_col": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "flex": "1"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "book_title": {
        "type": "Typography.Title",
        "label": "Book title",
        "description": null,
        "bind": "state.bookDetails.title",
        "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
      },
      "author_link": {
        "type": "Typography.Text",
        "label": "Author names with links",
        "description": null,
        "bind": "derived.bookAuthors",
        "onClick": "navigateToAuthor",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "secondary",
          "renderAs": "links"
        },
        "dynamic_props": {},
        "styles": {
          "fontSize": "16px",
          "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
      },
      "book_metadata_descriptions": {
        "type": "Descriptions",
        "label": "Book metadata",
        "description": null,
        "bind": "state.bookDetails",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "column": 2,
          "bordered": true,
          "size": "middle",
          "items": [
            {
              "label": "ISBN",
              "field": "isbn"
            },
            {
              "label": "Publisher",
              "field": "publisher"
            },
            {
              "label": "Publication Date",
              "field": "publication_date"
            },
            {
              "label": "Edition",
              "field": "edition"
            },
            {
              "label": "Pages",
              "field": "number_of_pages"
            },
            {
              "label": "Language",
              "field": "language"
            }
          ]
        },
        "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
      },
      "categories_section": {
        "type": "div",
        "label": "Book categories",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "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
      },
      "categories_label": {
        "type": "Typography.Text",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "strong": true,
          "content": "Categories:"
        },
        "dynamic_props": {},
        "styles": {
          "marginRight": "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
      },
      "categories_tags": {
        "type": "Tag",
        "label": "Category tags",
        "description": null,
        "bind": "derived.bookCategories",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "color": "blue",
          "clickable": 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
      },
      "description_section": {
        "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
      },
      "description_title": {
        "type": "Typography.Title",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4,
          "content": "Description"
        },
        "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
      },
      "description_text": {
        "type": "Typography.Paragraph",
        "label": "Book description",
        "description": null,
        "bind": "state.bookDetails.description",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "ellipsis": {
            "rows": 5,
            "expandable": 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
      },
      "availability_card": {
        "type": "Card",
        "label": "Availability section",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Availability",
          "bordered": true
        },
        "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
      },
      "availability_stats": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "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
      },
      "total_copies_stat": {
        "type": "Statistic",
        "label": "Total Copies",
        "description": null,
        "bind": "derived.totalCopies",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Total Copies"
        },
        "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
      },
      "available_copies_stat": {
        "type": "Statistic",
        "label": "Available",
        "description": null,
        "bind": "derived.availableCopies",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Available",
          "valueStyle": {
            "color": "#52c41a"
          }
        },
        "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
      },
      "checked_out_stat": {
        "type": "Statistic",
        "label": "Checked Out",
        "description": null,
        "bind": "derived.checkedOutCopies",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Checked Out",
          "valueStyle": {
            "color": "#faad14"
          }
        },
        "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
      },
      "reserved_stat": {
        "type": "Statistic",
        "label": "Reserved",
        "description": null,
        "bind": "derived.reservedCopies",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Reserved",
          "valueStyle": {
            "color": "#1677ff"
          }
        },
        "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
      },
      "active_reservations_stat": {
        "type": "Statistic",
        "label": "Active Reservations",
        "description": null,
        "bind": "derived.activeReservationCount",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Active Reservations in Queue",
          "valueStyle": {
            "color": "#722ed1"
          }
        },
        "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
      },
      "action_buttons_section": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "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
      },
      "borrow_button": {
        "type": "Button",
        "label": "Borrow this book",
        "description": null,
        "bind": "derived.canBorrow",
        "onClick": "borrowBook",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "size": "large",
          "icon": "BookOutlined",
          "content": "Borrow"
        },
        "dynamic_props": {},
        "styles": {
          "marginRight": "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
      },
      "reserve_button": {
        "type": "Button",
        "label": "Reserve this book",
        "description": null,
        "bind": "derived.canReserve",
        "onClick": "reserveBook",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "default",
          "size": "large",
          "icon": "ClockCircleOutlined",
          "content": "Reserve",
          "loading": "state.reserving"
        },
        "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
      },
      "queue_position_alert": {
        "type": "Alert",
        "label": "Reservation queue position",
        "description": null,
        "bind": "state.reservationQueuePosition",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "success",
          "showIcon": true,
          "message": "Reservation confirmed! Your queue position: ${state.reservationQueuePosition}"
        },
        "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
      },
      "copies_table_card": {
        "type": "Card",
        "label": "Copies table section",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Book Copies",
          "bordered": true
        },
        "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
      },
      "copies_table": {
        "type": "Table",
        "label": "Table of book copies",
        "description": null,
        "bind": "derived.bookCopies",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Barcode",
              "dataIndex": "barcode",
              "key": "barcode"
            },
            {
              "title": "Branch",
              "dataIndex": "library_branch_id",
              "key": "branch"
            },
            {
              "title": "Condition",
              "dataIndex": "condition_status",
              "key": "condition"
            },
            {
              "title": "Status",
              "dataIndex": "availability_status",
              "key": "status"
            },
            {
              "title": "Expected Return",
              "dataIndex": "expected_return_date",
              "key": "return_date"
            }
          ],
          "pagination": false,
          "size": "middle",
          "rowKey": "id"
        },
        "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
      },
      "recommended_section": {
        "type": "Card",
        "label": "Recommended books section",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Recommended for You",
          "bordered": true
        },
        "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
      },
      "recommended_books_grid": {
        "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
      },
      "recommended_book_card": {
        "type": "Card",
        "label": "Recommended book item",
        "description": null,
        "bind": "state.recommendedBooks",
        "onClick": "navigateToBookDetail",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "hoverable": true,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "cursor": "pointer"
        },
        "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": [
        "breadcrumb_section",
        "back_to_catalog_button",
        "loading_spinner",
        "book_info_section",
        "description_section",
        "availability_card",
        "copies_table_card",
        "recommended_section"
      ],
      "book_info_section": [
        "cover_image_col",
        "book_details_col"
      ],
      "cover_image_col": [
        "cover_image"
      ],
      "book_details_col": [
        "book_title",
        "author_link",
        "book_metadata_descriptions",
        "categories_section"
      ],
      "categories_section": [
        "categories_label",
        "categories_tags"
      ],
      "description_section": [
        "description_title",
        "description_text"
      ],
      "availability_card": [
        "availability_stats",
        "action_buttons_section",
        "queue_position_alert"
      ],
      "availability_stats": [
        "total_copies_stat",
        "available_copies_stat",
        "checked_out_stat",
        "reserved_stat",
        "active_reservations_stat"
      ],
      "action_buttons_section": [
        "borrow_button",
        "reserve_button"
      ],
      "copies_table_card": [
        "copies_table"
      ],
      "recommended_section": [
        "recommended_books_grid"
      ],
      "recommended_books_grid": [
        "recommended_book_card"
      ]
    },
    "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
      },
      "book_info_section": {
        "type": "horizontal",
        "gap": 32,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "cover_image_col": {
        "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
      },
      "book_details_col": {
        "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
      },
      "categories_section": {
        "type": "horizontal",
        "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
      },
      "description_section": {
        "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
      },
      "availability_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
      },
      "availability_stats": {
        "type": "horizontal",
        "gap": 32,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "action_buttons_section": {
        "type": "horizontal",
        "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
      },
      "copies_table_card": {
        "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
      },
      "recommended_section": {
        "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
      },
      "recommended_books_grid": {
        "type": "grid",
        "gap": 16,
        "padding": null,
        "columns": 3,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      }
    },
    "layout_zones": [
      {
        "zone_id": "main_content",
        "component": "main_container",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Main page container with max-width constraint"
      },
      {
        "zone_id": "loading_overlay",
        "component": "loading_spinner",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "overlay",
        "notes": "Shown while data is loading"
      }
    ],
    "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
}
