<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="form.additional.info">
            <container name="dd.register.blocks.wrapper">
                <block
                    ifconfig="connector_consent/sms/registration_enabled"
                    name="dd.account.create.sms.marketingconsent"
                    template="Dotdigitalgroup_Sms::customer/marketing-consent.phtml"
                >
                    <arguments>
                        <argument name="config" xsi:type="object">Dotdigitalgroup\Sms\ViewModel\Customer\Account\MarketingConsent</argument>
                        <argument name="printLegend" xsi:type="boolean">false</argument>
                    </arguments>
                </block>
                <block
                    template="Dotdigitalgroup_Sms::customer/js-marketing-consent.phtml"
                    name="dd.account.create.sms.marketingconsent.js">
                    <arguments>
                        <argument name="telephoneInputConfig" xsi:type="object">Dotdigitalgroup\Sms\ViewModel\TelephoneInputConfig</argument>
                        <argument name="consentConfig" xsi:type="object">Dotdigitalgroup\Sms\ViewModel\Customer\Account\MarketingConsent</argument>
                    </arguments>
                </block>
                <block
                    ifconfig="connector_consent/sms/registration_enabled"
                    template="Dotdigitalgroup_Sms::customer/js-marketing-consent-toggler.phtml"
                    name="dd.account.create.sms.marketingconsent.checkbox.js">
                </block>
            </container>
        </referenceBlock>
    </body>
</page>
