Write a Lightning Web Component and an Apex controller to query Invoice__c records and related child Invoice_Line_Item__c records and display records name as tree structure (using HTML ordered list). The Invoice__c records and related child Invoice_Line_Item__c records from Apex should be returned as a Map<> object.
1. Invoice 1
a. Invoice Line Item 1.1
b. Invoice Line Item 1.2
c. Invoice Line Item 1.3
2. Invoice 2
a. Invoice Line Item 2.1
b. Invoice Line Item 2.2
3. Invoice 3
a. Invoice Line Item 3.1
b. Invoice Line Item 3.2
c. Invoice Line Item 3.3
Specifications:
1. The data of Invoices and related
2. The list of Invoice Line Items should be collapsed by default for all invoices.
3. On click of a specific Invoice, its Invoice Line Items should be displayed, and all other
existing expanded Invoice should be collapsed.
4. There should be dynamic loading: child records should be loaded dynamically, in chunks
of 10 records at a time, to ensure that it can handle large datasets efficiently. View More link should be displayed to add the next 10 Invoice Line Items.