How is the \Magento\Checkout\Block\Cart\Totals (checkout.cart.totals) implemented inside the «Summary» container on a frontend cart page?

Context: How is the «checkout.cart.totals.container» implemented inside the «Summary» container on a frontend cart page?

The checkout.cart.totals block contants the single Magento_Checkout/js/view/cart/totals UI component:

The Magento_Checkout/js/view/cart/totals UI component contains the 3 primary UI components:

1. subtotal (Magento_Checkout/js/view/summary/subtotal)

2. shipping (Magento_Checkout/js/view/cart/totals/shipping)

3. grand-total (Magento_Checkout/js/view/summary/grand-total)

The Magento_Checkout/js/view/cart/totals UI component can also contain additional UI components:

4. before_grandtotal, discount (Magento_SalesRule/js/view/cart/totals/discount)

5. tax (Magento_Tax/js/view/checkout/cart/totals/tax)

6. weee (FPT, Fixed Product Tax)

A post was split to a new topic: How to update the cart totals block when a customer enters credit points?