{
  "page_ir": {
    "page_id": "book_management",
    "page_goal": "Librarian book catalog management page with search, filters, CRUD operations for books and their copies",
    "style": {
      "tone": "professional",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "neutral with primary accents"
    },
    "accessibility": {
      "required_labels": [
        "search_input",
        "book_table",
        "add_book_form",
        "manage_copies_drawer"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 1024,
        "xl": 1200
      },
      "collapse_rules": [
        "filters_row collapses to vertical on sm"
      ],
      "hidden_on_small": [
        "isbn_column"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "Role must be librarian or administrator"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "books": {
        "type": "array",
        "initial": [],
        "required": true,
        "constraints": {},
        "item_type": null
      },
      "authors": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "categories": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "branches": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "bookCopies": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "searchText": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterCategory": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterAuthor": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterStatus": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterBranch": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "pagination": {
        "type": "object",
        "initial": {
          "current": 1,
          "pageSize": 20,
          "total": 0
        },
        "required": true,
        "constraints": {},
        "item_type": null
      },
      "addBookModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editBookModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "manageCopiesDrawerVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "addCopyModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editCopyModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedBookId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedCopyId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "copiesLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "totalBooks": {
        "type": "number",
        "expr": "state.pagination.total",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "9b8362b67c0c4ed2a232eda5c50d2fe8": {
        "endpoint_id": "9b8362b67c0c4ed2a232eda5c50d2fe8",
        "module": "Catalog",
        "endpoint": "/catalog/books",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": "$state.pagination.pageSize",
          "offset": "($state.pagination.current - 1) * $state.pagination.pageSize",
          "search": "$state.searchText"
        },
        "body": null,
        "fields": [
          "id",
          "title",
          "book_authors"
        ],
        "response_target": "books",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "3e5698fb2d554b1d8dee572834545cef": {
        "endpoint_id": "3e5698fb2d554b1d8dee572834545cef",
        "module": "Catalog",
        "endpoint": "/catalog/authors",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 100
        },
        "body": null,
        "fields": [
          "id",
          "name"
        ],
        "response_target": "authors",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "9350ad6ca23441ce9fc1eb1d03f8cca8": {
        "endpoint_id": "9350ad6ca23441ce9fc1eb1d03f8cca8",
        "module": "Catalog",
        "endpoint": "/catalog/categories",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 100
        },
        "body": null,
        "fields": [
          "id",
          "name"
        ],
        "response_target": "categories",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "b68daacb023a4c459e8e481313c345bf": {
        "endpoint_id": "b68daacb023a4c459e8e481313c345bf",
        "module": "Library Branches",
        "endpoint": "/library-branches/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "name"
        ],
        "response_target": "branches",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "72ec9edcf9fa49649e184af5d8b66fab": {
        "endpoint_id": "72ec9edcf9fa49649e184af5d8b66fab",
        "module": "Catalog",
        "endpoint": "/catalog/books",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "title",
          "book_authors"
        ],
        "response_target": "createBook_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "7281c1cb7de24de7af1d79de9191d067": {
        "endpoint_id": "7281c1cb7de24de7af1d79de9191d067",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}",
        "method": "PUT",
        "path_params": {
          "book_id": "$state.selectedBookId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "title",
          "book_authors"
        ],
        "response_target": "updateBook_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "ef9f4d789d0b4f0697c99882e2e1497b": {
        "endpoint_id": "ef9f4d789d0b4f0697c99882e2e1497b",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}",
        "method": "DELETE",
        "path_params": {
          "book_id": "$state.selectedBookId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "deleteBook_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "621fa2edb97e43b6800742bf4373a602": {
        "endpoint_id": "621fa2edb97e43b6800742bf4373a602",
        "module": "Catalog",
        "endpoint": "/catalog/book-copies",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "book_id": "$state.selectedBookId",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "book_id",
          "barcode",
          "library_branch_id",
          "condition_status",
          "availability_status",
          "acquisition_date",
          "physical_location"
        ],
        "response_target": "bookCopies",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "b24e8cb43c80403c95f4b79831010553": {
        "endpoint_id": "b24e8cb43c80403c95f4b79831010553",
        "module": "Catalog",
        "endpoint": "/catalog/book-copies",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "barcode",
          "library_branch_id",
          "condition_status",
          "availability_status"
        ],
        "response_target": "createBookCopy_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "fb6aa96c50324a2ebfa7c0b11e9f45fa": {
        "endpoint_id": "fb6aa96c50324a2ebfa7c0b11e9f45fa",
        "module": "Catalog",
        "endpoint": "/catalog/book-copies/{bookcopy_id}",
        "method": "PUT",
        "path_params": {
          "bookcopy_id": "$state.selectedCopyId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "barcode",
          "library_branch_id",
          "condition_status",
          "availability_status"
        ],
        "response_target": "updateBookCopy_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "67aa46595a35476e90019e4249a0db77": {
        "endpoint_id": "67aa46595a35476e90019e4249a0db77",
        "module": "Catalog",
        "endpoint": "/catalog/book-copies/{bookcopy_id}",
        "method": "DELETE",
        "path_params": {
          "bookcopy_id": "$state.selectedCopyId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "deleteBookCopy_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "ec426481f2f248ed8485e80b5a2f6f37": {
        "endpoint_id": "ec426481f2f248ed8485e80b5a2f6f37",
        "module": "Catalog",
        "endpoint": "/catalog/authors",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "name"
        ],
        "response_target": "createAuthor_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "fb7553571e9247f188264473bffaeaea": {
        "endpoint_id": "fb7553571e9247f188264473bffaeaea",
        "module": "Catalog",
        "endpoint": "/catalog/book-authors",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "book_id",
          "author_id"
        ],
        "response_target": "createBookAuthor_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "02df11b8cbfa4dd1b6cf1a32f1cc5530": {
        "endpoint_id": "02df11b8cbfa4dd1b6cf1a32f1cc5530",
        "module": "Catalog",
        "endpoint": "/catalog/book-categories",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "book_id",
          "category_id"
        ],
        "response_target": "createBookCategory_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "36d562d4dbb740cca6297972c4c4e7da": {
        "endpoint_id": "36d562d4dbb740cca6297972c4c4e7da",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}/details",
        "method": "GET",
        "path_params": {
          "book_id": "$state.selectedBookId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "isbn",
          "title",
          "publisher",
          "publication_date",
          "edition",
          "number_of_pages",
          "language",
          "description",
          "cover_image_url",
          "book_authors",
          "book_categories",
          "book_copies"
        ],
        "response_target": "fetchBookDetails_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "7428cc80f0944488a259e035681e22c0": {
        "endpoint_id": "7428cc80f0944488a259e035681e22c0",
        "module": "Catalog",
        "endpoint": "/catalog/books/{book_id}/availability",
        "method": "GET",
        "path_params": {
          "book_id": "$state.selectedBookId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "book_id",
          "title",
          "total_copies",
          "available_copies",
          "checked_out_copies",
          "reserved_copies"
        ],
        "response_target": "fetchBookAvailability_data",
        "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",
          "book_authors",
          "book_categories",
          "book_copies"
        ],
        "computed": [
          "total_copies",
          "available_copies"
        ],
        "display_fields": [
          "title",
          "isbn",
          "book_authors",
          "book_categories",
          "total_copies",
          "available_copies"
        ],
        "search_fields": [
          "title",
          "isbn"
        ],
        "filters": [
          "category",
          "author",
          "language"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "author": {
        "name": "Author",
        "backend_module": "Catalog",
        "fields": [
          "id",
          "name",
          "biography",
          "birth_date",
          "death_date",
          "nationality"
        ],
        "computed": [],
        "display_fields": [
          "name"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "category": {
        "name": "Category",
        "backend_module": "Catalog",
        "fields": [
          "id",
          "name",
          "description",
          "parent_category_id"
        ],
        "computed": [],
        "display_fields": [
          "name"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "bookCopy": {
        "name": "BookCopy",
        "backend_module": "Catalog",
        "fields": [
          "id",
          "book_id",
          "barcode",
          "library_branch_id",
          "condition_status",
          "availability_status",
          "acquisition_date",
          "physical_location"
        ],
        "computed": [],
        "display_fields": [
          "barcode",
          "library_branch_id",
          "condition_status",
          "availability_status"
        ],
        "search_fields": [],
        "filters": [
          "library_branch_id",
          "availability_status"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "branch": {
        "name": "LibraryBranch",
        "backend_module": "Library Branches",
        "fields": [
          "id",
          "name",
          "address"
        ],
        "computed": [],
        "display_fields": [
          "name"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onSearchChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.searchText",
            "expr": "event.target.value"
          }
        ],
        "description": ""
      },
      "onCategoryFilterChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.filterCategory",
            "expr": "value"
          }
        ],
        "description": ""
      },
      "onAuthorFilterChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.filterAuthor",
            "expr": "value"
          }
        ],
        "description": ""
      },
      "onStatusFilterChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.filterStatus",
            "expr": "value"
          }
        ],
        "description": ""
      },
      "onBranchFilterChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.filterBranch",
            "expr": "value"
          }
        ],
        "description": ""
      },
      "onPaginationChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.pagination.current",
            "expr": "page"
          },
          {
            "target": "state.pagination.pageSize",
            "expr": "pageSize"
          }
        ],
        "description": ""
      },
      "openAddBookModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.addBookModalVisible",
            "expr": "true"
          }
        ],
        "description": ""
      },
      "closeAddBookModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.addBookModalVisible",
            "expr": "false"
          }
        ],
        "description": ""
      },
      "openEditBookModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.editBookModalVisible",
            "expr": "true"
          },
          {
            "target": "state.selectedBookId",
            "expr": "record.id"
          }
        ],
        "description": ""
      },
      "closeEditBookModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.editBookModalVisible",
            "expr": "false"
          },
          {
            "target": "state.selectedBookId",
            "expr": "null"
          }
        ],
        "description": ""
      },
      "openManageCopiesDrawer": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.manageCopiesDrawerVisible",
            "expr": "true"
          },
          {
            "target": "state.selectedBookId",
            "expr": "record.id"
          }
        ],
        "description": ""
      },
      "closeManageCopiesDrawer": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.manageCopiesDrawerVisible",
            "expr": "false"
          },
          {
            "target": "state.selectedBookId",
            "expr": "null"
          },
          {
            "target": "state.bookCopies",
            "expr": "[]"
          }
        ],
        "description": ""
      },
      "openAddCopyModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.addCopyModalVisible",
            "expr": "true"
          }
        ],
        "description": ""
      },
      "closeAddCopyModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.addCopyModalVisible",
            "expr": "false"
          }
        ],
        "description": ""
      },
      "openEditCopyModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.editCopyModalVisible",
            "expr": "true"
          },
          {
            "target": "state.selectedCopyId",
            "expr": "record.id"
          }
        ],
        "description": ""
      },
      "closeEditCopyModal": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.editCopyModalVisible",
            "expr": "false"
          },
          {
            "target": "state.selectedCopyId",
            "expr": "null"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "edddd5a0d8b64285858c6120ec7637cc": {
        "action_id": "edddd5a0d8b64285858c6120ec7637cc",
        "trigger": "input_change",
        "target_component_id": "search_input",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "9b8362b67c0c4ed2a232eda5c50d2fe8",
        "api_body": null,
        "side_effects": [
          {
            "type": "refresh",
            "config": {
              "target": "books"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "7d22c5ee2b6e45aa8d569fd288f754c7": {
        "action_id": "7d22c5ee2b6e45aa8d569fd288f754c7",
        "trigger": "form_submit",
        "target_component_id": "add_book_form",
        "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\": \"title\", \"message\": \"Title is required\", \"rule_id\": \"val_title\", \"type\": \"required\"}",
            "message": "{\"field\": \"title\", \"message\": \"Title is required\", \"rule_id\": \"val_title\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"config\": {\"pattern\": \"^(\\\\d{10}|\\\\d{13}|\\\\d{3}-\\\\d{10})$\"}, \"field\": \"isbn\", \"message\": \"ISBN must be valid ISBN-10 or ISBN-13 format\", \"rule_id\": \"val_isbn_format\", \"type\": \"pattern\"}",
            "message": "{\"config\": {\"pattern\": \"^(\\\\d{10}|\\\\d{13}|\\\\d{3}-\\\\d{10})$\"}, \"field\": \"isbn\", \"message\": \"ISBN must be valid ISBN-10 or ISBN-13 format\", \"rule_id\": \"val_isbn_format\", \"type\": \"pattern\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "72ec9edcf9fa49649e184af5d8b66fab",
        "api_body": "{ isbn: formValues.isbn, title: formValues.title, publisher: formValues.publisher, publication_date: formValues.publication_date, edition: formValues.edition, number_of_pages: formValues.number_of_pages, language: formValues.language, description: formValues.description, cover_image_url: formValues.cover_image_url }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Book added successfully!",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "addBookModalVisible"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "books"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "cbc7617429ab4629ac4350fbb9e6c25c": {
        "action_id": "cbc7617429ab4629ac4350fbb9e6c25c",
        "trigger": "form_submit",
        "target_component_id": "edit_book_form",
        "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\": \"title\", \"message\": \"Title is required\", \"rule_id\": \"val_edit_title\", \"type\": \"required\"}",
            "message": "{\"field\": \"title\", \"message\": \"Title is required\", \"rule_id\": \"val_edit_title\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "7281c1cb7de24de7af1d79de9191d067",
        "api_body": "{ isbn: formValues.isbn, title: formValues.title, publisher: formValues.publisher, publication_date: formValues.publication_date, edition: formValues.edition, number_of_pages: formValues.number_of_pages, language: formValues.language, description: formValues.description, cover_image_url: formValues.cover_image_url }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Book updated successfully!",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "editBookModalVisible"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "books"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "e920f0fb92eb4d51ab1ba6ef543c37e3": {
        "action_id": "e920f0fb92eb4d51ab1ba6ef543c37e3",
        "trigger": "button_click",
        "target_component_id": "deactivate_book_btn",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "ef9f4d789d0b4f0697c99882e2e1497b",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Book deactivated successfully!",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "books"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "67fae7a7bd6c4ece8551ecf1c8e9093e": {
        "action_id": "67fae7a7bd6c4ece8551ecf1c8e9093e",
        "trigger": "button_click",
        "target_component_id": "manage_copies_btn",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.copiesLoading",
            "expr": "true"
          }
        ],
        "api_endpoint": "621fa2edb97e43b6800742bf4373a602",
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "af0db188560f44d789ce86480a1d4d7b": {
        "action_id": "af0db188560f44d789ce86480a1d4d7b",
        "trigger": "form_submit",
        "target_component_id": "add_copy_form",
        "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\": \"library_branch_id\", \"message\": \"Branch is required\", \"rule_id\": \"val_branch\", \"type\": \"required\"}",
            "message": "{\"field\": \"library_branch_id\", \"message\": \"Branch is required\", \"rule_id\": \"val_branch\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"condition_status\", \"message\": \"Condition is required\", \"rule_id\": \"val_condition\", \"type\": \"required\"}",
            "message": "{\"field\": \"condition_status\", \"message\": \"Condition is required\", \"rule_id\": \"val_condition\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.copiesLoading",
            "expr": "true"
          }
        ],
        "api_endpoint": "b24e8cb43c80403c95f4b79831010553",
        "api_body": "{ book_id: state.selectedBookId, barcode: formValues.barcode, library_branch_id: formValues.library_branch_id, condition_status: formValues.condition_status, availability_status: formValues.availability_status || 'AVAILABLE', acquisition_date: formValues.acquisition_date, physical_location: formValues.physical_location }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Copy added successfully!",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "addCopyModalVisible"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "bookCopies"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "1f03cb2ad6934e34bd85011743483dd1": {
        "action_id": "1f03cb2ad6934e34bd85011743483dd1",
        "trigger": "form_submit",
        "target_component_id": "edit_copy_form",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.copiesLoading",
            "expr": "true"
          }
        ],
        "api_endpoint": "fb6aa96c50324a2ebfa7c0b11e9f45fa",
        "api_body": "{ barcode: formValues.barcode, library_branch_id: formValues.library_branch_id, condition_status: formValues.condition_status, availability_status: formValues.availability_status, physical_location: formValues.physical_location }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Copy updated successfully!",
              "type": "success"
            }
          },
          {
            "type": "modal_close",
            "config": {
              "target": "editCopyModalVisible"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "bookCopies"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "8fb1338e1252499f8a822f35fe1b87ba": {
        "action_id": "8fb1338e1252499f8a822f35fe1b87ba",
        "trigger": "button_click",
        "target_component_id": "delete_copy_btn",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.copiesLoading",
            "expr": "true"
          }
        ],
        "api_endpoint": "67aa46595a35476e90019e4249a0db77",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Copy deleted successfully!",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "bookCopies"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "4be58d7fae5548b7ac289d73026987ed": {
        "action_id": "4be58d7fae5548b7ac289d73026987ed",
        "trigger": "button_click",
        "target_component_id": "add_author_inline_btn",
        "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\": \"name\", \"message\": \"Author name is required\", \"rule_id\": \"val_author_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"name\", \"message\": \"Author name is required\", \"rule_id\": \"val_author_name\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "ec426481f2f248ed8485e80b5a2f6f37",
        "api_body": "{ name: formValues.new_author_name }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Author added!",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "authors"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "78303af7f28741b9b376172bcac420bf": {
        "action_id": "78303af7f28741b9b376172bcac420bf",
        "trigger": "button_click",
        "target_component_id": "nav_dashboard_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": "/staff/dashboard"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "94274f91cb6340b980532f0f4543690d": {
        "action_id": "94274f91cb6340b980532f0f4543690d",
        "trigger": "button_click",
        "target_component_id": "nav_authors_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": "/staff/authors"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "fe9b749c380643d5b9822e441d3220e4": {
        "action_id": "fe9b749c380643d5b9822e441d3220e4",
        "trigger": "button_click",
        "target_component_id": "nav_categories_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": "/staff/categories"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "edddd5a0d8b64285858c6120ec7637cc": {
        "action_id": "edddd5a0d8b64285858c6120ec7637cc",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": null,
        "error_message": "Failed to load books",
        "ui_updates": []
      },
      "7d22c5ee2b6e45aa8d569fd288f754c7": {
        "action_id": "7d22c5ee2b6e45aa8d569fd288f754c7",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Book added successfully!",
        "error_message": "Failed to add book. Please try again.",
        "ui_updates": []
      },
      "cbc7617429ab4629ac4350fbb9e6c25c": {
        "action_id": "cbc7617429ab4629ac4350fbb9e6c25c",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Book updated successfully!",
        "error_message": "Failed to update book. Please try again.",
        "ui_updates": []
      },
      "e920f0fb92eb4d51ab1ba6ef543c37e3": {
        "action_id": "e920f0fb92eb4d51ab1ba6ef543c37e3",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Book deactivated successfully!",
        "error_message": "Failed to deactivate book.",
        "ui_updates": []
      },
      "67fae7a7bd6c4ece8551ecf1c8e9093e": {
        "action_id": "67fae7a7bd6c4ece8551ecf1c8e9093e",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": null,
        "error_message": "Failed to load copies.",
        "ui_updates": []
      },
      "af0db188560f44d789ce86480a1d4d7b": {
        "action_id": "af0db188560f44d789ce86480a1d4d7b",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Copy added successfully!",
        "error_message": "Failed to add copy.",
        "ui_updates": []
      },
      "1f03cb2ad6934e34bd85011743483dd1": {
        "action_id": "1f03cb2ad6934e34bd85011743483dd1",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Copy updated successfully!",
        "error_message": "Failed to update copy.",
        "ui_updates": []
      },
      "8fb1338e1252499f8a822f35fe1b87ba": {
        "action_id": "8fb1338e1252499f8a822f35fe1b87ba",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Copy deleted successfully!",
        "error_message": "Failed to delete copy.",
        "ui_updates": []
      },
      "4be58d7fae5548b7ac289d73026987ed": {
        "action_id": "4be58d7fae5548b7ac289d73026987ed",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Author added!",
        "error_message": "Failed to add author.",
        "ui_updates": []
      },
      "78303af7f28741b9b376172bcac420bf": {
        "action_id": "78303af7f28741b9b376172bcac420bf",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "94274f91cb6340b980532f0f4543690d": {
        "action_id": "94274f91cb6340b980532f0f4543690d",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "fe9b749c380643d5b9822e441d3220e4": {
        "action_id": "fe9b749c380643d5b9822e441d3220e4",
        "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%",
          "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": {
          "padding": "24px 24px 0 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_nav": {
        "type": "Breadcrumb",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "items": [
            {
              "title": "Staff"
            },
            {
              "title": "Books"
            }
          ]
        },
        "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
      },
      "header_row": {
        "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": "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
      },
      "page_title": {
        "type": "Typography.Title",
        "label": "Book Management",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 2
        },
        "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
      },
      "header_actions": {
        "type": "Space",
        "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
      },
      "nav_dashboard_link": {
        "type": "Button",
        "label": "Dashboard",
        "description": null,
        "bind": null,
        "onClick": "navigateToDashboard",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "default"
        },
        "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
      },
      "nav_authors_link": {
        "type": "Button",
        "label": "Authors",
        "description": null,
        "bind": null,
        "onClick": "navigateToAuthors",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "default"
        },
        "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
      },
      "nav_categories_link": {
        "type": "Button",
        "label": "Categories",
        "description": null,
        "bind": null,
        "onClick": "navigateToCategories",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "default"
        },
        "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
      },
      "add_book_btn": {
        "type": "Button",
        "label": "Add Book",
        "description": null,
        "bind": null,
        "onClick": "openAddBookModal",
        "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
      },
      "content_area": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "margin": "0 24px 24px 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
      },
      "filters_row": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "gap": "12px",
          "marginBottom": "16px",
          "flexWrap": "wrap"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "search_input": {
        "type": "Input.Search",
        "label": "Search books",
        "description": null,
        "bind": "state.searchText",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search by title or ISBN...",
          "allowClear": true,
          "enterButton": true
        },
        "dynamic_props": {},
        "styles": {
          "width": "280px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "category_filter": {
        "type": "Select",
        "label": "Category",
        "description": null,
        "bind": "state.filterCategory",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "All Categories",
          "allowClear": true,
          "options": "state.categories.map(c => ({label: c.name, value: c.id}))"
        },
        "dynamic_props": {},
        "styles": {
          "width": "180px"
        },
        "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_filter": {
        "type": "Select",
        "label": "Author",
        "description": null,
        "bind": "state.filterAuthor",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "All Authors",
          "allowClear": true,
          "showSearch": true,
          "options": "state.authors.map(a => ({label: a.name, value: a.id}))"
        },
        "dynamic_props": {},
        "styles": {
          "width": "180px"
        },
        "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_filter": {
        "type": "Select",
        "label": "Status",
        "description": null,
        "bind": "state.filterStatus",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "All Statuses",
          "allowClear": true,
          "options": [
            {
              "label": "Active",
              "value": "active"
            },
            {
              "label": "Inactive",
              "value": "inactive"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {
          "width": "140px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "branch_filter": {
        "type": "Select",
        "label": "Branch",
        "description": null,
        "bind": "state.filterBranch",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "All Branches",
          "allowClear": true,
          "options": "state.branches.map(b => ({label: b.name, value: b.id}))"
        },
        "dynamic_props": {},
        "styles": {
          "width": "180px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "books_table": {
        "type": "Table",
        "label": "Books Table",
        "description": null,
        "bind": "state.books",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "columns": [
            {
              "title": "Title",
              "dataIndex": "title",
              "key": "title",
              "sorter": true
            },
            {
              "title": "ISBN",
              "dataIndex": "isbn",
              "key": "isbn"
            },
            {
              "title": "Author(s)",
              "dataIndex": "book_authors",
              "key": "book_authors",
              "render": "authors"
            },
            {
              "title": "Category",
              "dataIndex": "book_categories",
              "key": "book_categories",
              "render": "categories"
            },
            {
              "title": "Total Copies",
              "dataIndex": "total_copies",
              "key": "total_copies"
            },
            {
              "title": "Available Copies",
              "dataIndex": "available_copies",
              "key": "available_copies"
            },
            {
              "title": "Status",
              "dataIndex": "status",
              "key": "status",
              "render": "tag"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "actions"
            }
          ],
          "rowKey": "id",
          "loading": "state.loading",
          "pagination": {
            "current": "state.pagination.current",
            "pageSize": "state.pagination.pageSize",
            "total": "state.pagination.total",
            "showSizeChanger": true,
            "showTotal": 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
      },
      "edit_book_btn": {
        "type": "Button",
        "label": "Edit",
        "description": null,
        "bind": null,
        "onClick": "openEditBookModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "size": "small"
        },
        "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
      },
      "deactivate_book_btn": {
        "type": "Button",
        "label": "Deactivate",
        "description": null,
        "bind": null,
        "onClick": "deactivateBook",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "danger": true,
          "size": "small"
        },
        "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
      },
      "manage_copies_btn": {
        "type": "Button",
        "label": "Manage Copies",
        "description": null,
        "bind": null,
        "onClick": "openManageCopiesDrawer",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "size": "small"
        },
        "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
      },
      "add_book_modal": {
        "type": "Modal",
        "label": "Add New Book",
        "description": null,
        "bind": "state.addBookModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Add New Book",
          "width": 720,
          "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
      },
      "add_book_form": {
        "type": "Form",
        "label": "Add Book Form",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "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
      },
      "form_isbn": {
        "type": "Form.Item",
        "label": "ISBN",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "isbn",
          "rules": [
            {
              "pattern": "^(\\d{10}|\\d{13}|\\d{3}-\\d{10})$",
              "message": "Please enter a valid ISBN"
            }
          ]
        },
        "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
      },
      "input_isbn": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter ISBN-10 or ISBN-13"
        },
        "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
      },
      "form_title": {
        "type": "Form.Item",
        "label": "Title",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "title",
          "rules": [
            {
              "required": true,
              "message": "Title is required"
            }
          ]
        },
        "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
      },
      "input_title": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter book title"
        },
        "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
      },
      "form_description": {
        "type": "Form.Item",
        "label": "Description",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "description"
        },
        "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
      },
      "input_description": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter book description",
          "rows": 4
        },
        "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
      },
      "form_row_1": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "grid",
          "gridTemplateColumns": "1fr 1fr",
          "gap": "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
      },
      "form_publisher": {
        "type": "Form.Item",
        "label": "Publisher",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "publisher"
        },
        "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
      },
      "input_publisher": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter publisher"
        },
        "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
      },
      "form_publication_date": {
        "type": "Form.Item",
        "label": "Publication Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "publication_date"
        },
        "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
      },
      "input_publication_date": {
        "type": "DatePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "form_row_2": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "grid",
          "gridTemplateColumns": "1fr 1fr 1fr",
          "gap": "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
      },
      "form_edition": {
        "type": "Form.Item",
        "label": "Edition",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "edition"
        },
        "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
      },
      "input_edition": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. 2nd"
        },
        "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
      },
      "form_pages": {
        "type": "Form.Item",
        "label": "Pages",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "number_of_pages"
        },
        "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
      },
      "input_pages": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Number of pages",
          "min": 1,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "form_language": {
        "type": "Form.Item",
        "label": "Language",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "language"
        },
        "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
      },
      "input_language": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. English"
        },
        "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
      },
      "form_cover_image": {
        "type": "Form.Item",
        "label": "Cover Image URL",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "cover_image_url"
        },
        "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
      },
      "input_cover_image": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter cover image URL"
        },
        "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
      },
      "form_authors_select": {
        "type": "Form.Item",
        "label": "Authors",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "author_ids"
        },
        "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
      },
      "authors_multi_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "mode": "multiple",
          "placeholder": "Select authors",
          "showSearch": true,
          "options": "state.authors.map(a => ({label: a.name, value: a.id}))",
          "dropdownRender": "withAddAuthor"
        },
        "dynamic_props": {},
        "styles": {
          "width": "100%"
        },
        "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_author_inline_btn": {
        "type": "Button",
        "label": "Add New Author",
        "description": null,
        "bind": null,
        "onClick": "addNewAuthorInline",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "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
      },
      "form_categories_select": {
        "type": "Form.Item",
        "label": "Categories",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "category_ids"
        },
        "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
      },
      "categories_multi_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "mode": "multiple",
          "placeholder": "Select categories",
          "showSearch": true,
          "options": "state.categories.map(c => ({label: c.name, value: c.id}))"
        },
        "dynamic_props": {},
        "styles": {
          "width": "100%"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "edit_book_modal": {
        "type": "Modal",
        "label": "Edit Book",
        "description": null,
        "bind": "state.editBookModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Edit Book",
          "width": 720,
          "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
      },
      "edit_book_form": {
        "type": "Form",
        "label": "Edit Book Form",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "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
      },
      "manage_copies_drawer": {
        "type": "Drawer",
        "label": "Manage Copies",
        "description": null,
        "bind": "state.manageCopiesDrawerVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Manage Book Copies",
          "width": 720,
          "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
      },
      "copies_header_row": {
        "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
      },
      "copies_title": {
        "type": "Typography.Title",
        "label": "Book Copies",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 5
        },
        "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_copy_btn": {
        "type": "Button",
        "label": "Add Copy",
        "description": null,
        "bind": null,
        "onClick": "openAddCopyModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined",
          "size": "small"
        },
        "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
      },
      "copies_table": {
        "type": "Table",
        "label": "Copies Table",
        "description": null,
        "bind": "state.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": "library_branch_id",
              "render": "branch_name"
            },
            {
              "title": "Condition",
              "dataIndex": "condition_status",
              "key": "condition_status",
              "render": "tag"
            },
            {
              "title": "Status",
              "dataIndex": "availability_status",
              "key": "availability_status",
              "render": "tag"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "copy_actions"
            }
          ],
          "rowKey": "id",
          "loading": "state.copiesLoading",
          "size": "small",
          "pagination": false
        },
        "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
      },
      "edit_copy_btn": {
        "type": "Button",
        "label": "Edit",
        "description": null,
        "bind": null,
        "onClick": "openEditCopyModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "size": "small"
        },
        "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
      },
      "delete_copy_btn": {
        "type": "Button",
        "label": "Delete",
        "description": null,
        "bind": null,
        "onClick": "deleteCopy",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "danger": true,
          "size": "small"
        },
        "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
      },
      "add_copy_modal": {
        "type": "Modal",
        "label": "Add Copy",
        "description": null,
        "bind": "state.addCopyModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Add Book Copy",
          "width": 520,
          "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
      },
      "add_copy_form": {
        "type": "Form",
        "label": "Add Copy Form",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "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
      },
      "form_copy_barcode": {
        "type": "Form.Item",
        "label": "Barcode",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "barcode",
          "tooltip": "Auto-generated if left empty"
        },
        "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
      },
      "input_copy_barcode": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Auto-generated if empty"
        },
        "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
      },
      "form_copy_branch": {
        "type": "Form.Item",
        "label": "Branch",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "library_branch_id",
          "rules": [
            {
              "required": true,
              "message": "Branch is required"
            }
          ]
        },
        "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
      },
      "select_copy_branch": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select branch",
          "options": "state.branches.map(b => ({label: b.name, value: b.id}))"
        },
        "dynamic_props": {},
        "styles": {
          "width": "100%"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "form_copy_condition": {
        "type": "Form.Item",
        "label": "Condition",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "condition_status",
          "rules": [
            {
              "required": true,
              "message": "Condition is required"
            }
          ]
        },
        "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
      },
      "select_copy_condition": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select condition",
          "options": [
            {
              "label": "Excellent",
              "value": "EXCELLENT"
            },
            {
              "label": "Good",
              "value": "GOOD"
            },
            {
              "label": "Fair",
              "value": "FAIR"
            },
            {
              "label": "Poor",
              "value": "POOR"
            },
            {
              "label": "Damaged",
              "value": "DAMAGED"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {
          "width": "100%"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "form_copy_status": {
        "type": "Form.Item",
        "label": "Availability Status",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "availability_status",
          "initialValue": "AVAILABLE"
        },
        "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
      },
      "select_copy_status": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select status",
          "options": [
            {
              "label": "Available",
              "value": "AVAILABLE"
            },
            {
              "label": "Checked Out",
              "value": "CHECKED_OUT"
            },
            {
              "label": "Reserved",
              "value": "RESERVED"
            },
            {
              "label": "In Transit",
              "value": "IN_TRANSIT"
            },
            {
              "label": "Maintenance",
              "value": "MAINTENANCE"
            },
            {
              "label": "Lost",
              "value": "LOST"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {
          "width": "100%"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "form_copy_location": {
        "type": "Form.Item",
        "label": "Physical Location",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "physical_location"
        },
        "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
      },
      "input_copy_location": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g. Shelf A3, Row 2"
        },
        "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
      },
      "form_copy_acquisition_date": {
        "type": "Form.Item",
        "label": "Acquisition Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "acquisition_date"
        },
        "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
      },
      "input_copy_acquisition_date": {
        "type": "DatePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "edit_copy_modal": {
        "type": "Modal",
        "label": "Edit Copy",
        "description": null,
        "bind": "state.editCopyModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Edit Book Copy",
          "width": 520,
          "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
      },
      "edit_copy_form": {
        "type": "Form",
        "label": "Edit Copy Form",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "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",
        "content_area",
        "add_book_modal",
        "edit_book_modal",
        "manage_copies_drawer"
      ],
      "page_header": [
        "breadcrumb_nav",
        "header_row"
      ],
      "header_row": [
        "page_title",
        "header_actions"
      ],
      "header_actions": [
        "nav_dashboard_link",
        "nav_authors_link",
        "nav_categories_link",
        "add_book_btn"
      ],
      "content_area": [
        "filters_row",
        "books_table"
      ],
      "filters_row": [
        "search_input",
        "category_filter",
        "author_filter",
        "status_filter",
        "branch_filter"
      ],
      "add_book_modal": [
        "add_book_form"
      ],
      "add_book_form": [
        "form_isbn",
        "form_title",
        "form_description",
        "form_row_1",
        "form_row_2",
        "form_cover_image",
        "form_authors_select",
        "form_categories_select"
      ],
      "form_isbn": [
        "input_isbn"
      ],
      "form_title": [
        "input_title"
      ],
      "form_description": [
        "input_description"
      ],
      "form_row_1": [
        "form_publisher",
        "form_publication_date"
      ],
      "form_publisher": [
        "input_publisher"
      ],
      "form_publication_date": [
        "input_publication_date"
      ],
      "form_row_2": [
        "form_edition",
        "form_pages",
        "form_language"
      ],
      "form_edition": [
        "input_edition"
      ],
      "form_pages": [
        "input_pages"
      ],
      "form_language": [
        "input_language"
      ],
      "form_cover_image": [
        "input_cover_image"
      ],
      "form_authors_select": [
        "authors_multi_select",
        "add_author_inline_btn"
      ],
      "form_categories_select": [
        "categories_multi_select"
      ],
      "edit_book_modal": [
        "edit_book_form"
      ],
      "edit_book_form": [],
      "manage_copies_drawer": [
        "copies_header_row",
        "copies_table",
        "add_copy_modal",
        "edit_copy_modal"
      ],
      "copies_header_row": [
        "copies_title",
        "add_copy_btn"
      ],
      "add_copy_modal": [
        "add_copy_form"
      ],
      "add_copy_form": [
        "form_copy_barcode",
        "form_copy_branch",
        "form_copy_condition",
        "form_copy_status",
        "form_copy_location",
        "form_copy_acquisition_date"
      ],
      "form_copy_barcode": [
        "input_copy_barcode"
      ],
      "form_copy_branch": [
        "select_copy_branch"
      ],
      "form_copy_condition": [
        "select_copy_condition"
      ],
      "form_copy_status": [
        "select_copy_status"
      ],
      "form_copy_location": [
        "input_copy_location"
      ],
      "form_copy_acquisition_date": [
        "input_copy_acquisition_date"
      ],
      "edit_copy_modal": [
        "edit_copy_form"
      ],
      "edit_copy_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": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "header_row": {
        "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
      },
      "header_actions": {
        "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
      },
      "content_area": {
        "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
      },
      "filters_row": {
        "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
      },
      "add_book_form": {
        "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
      },
      "form_row_1": {
        "type": "grid",
        "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
      },
      "form_row_2": {
        "type": "grid",
        "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
      },
      "form_authors_select": {
        "type": "vertical",
        "gap": 4,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "manage_copies_drawer": {
        "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
      },
      "copies_header_row": {
        "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
      },
      "add_copy_form": {
        "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": "Root page container"
      },
      {
        "zone_id": "add_book_modal_zone",
        "component": "add_book_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Add book modal overlay"
      },
      {
        "zone_id": "edit_book_modal_zone",
        "component": "edit_book_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Edit book modal overlay"
      },
      {
        "zone_id": "manage_copies_drawer_zone",
        "component": "manage_copies_drawer",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Manage copies drawer overlay"
      }
    ],
    "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
}
