<?xml version="1.0" ?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes 2022-present. All rights reserved.
 * This product is licensed per Magento install
 * See https://hyva.io/license
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd"
>
    <!-- @OSCMAP: onestepcheckout_iosc/shippingfields/shippingfields -->
    <!-- @TO: hyva_themes_checkout/component/shipping_address/form_fields -->
    <group id="shipping_address"
           translate="label"
           showInDefault="1"
           showInWebsite="1"
           showInStore="1"
    >
        <label>Shipping Address Form</label>

        <field id="use_luma_checkout_email_tooltip"
               translate="label comment"
               type="select"
               sortOrder="10"
               showInDefault="1"
               showInWebsite="1"
               showInStore="1"
        >
            <label>Use Luma email tooltip</label>
            <comment>If no email tooltip was manually configured, the field will fallback using the original "We'll send your order confirmation here" Luma Checkout text as its tooltip description.</comment>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
        </field>

        <field id="use_luma_checkout_telephone_tooltip"
               translate="label comment"
               type="select"
               sortOrder="11"
               showInDefault="1"
               showInWebsite="1"
               showInStore="1"
        >
            <label>Use Luma telephone tooltip</label>
            <comment>If no telephone tooltip was manually configured, the field will fallback using the original "For delivery questions" Luma Checkout text as its tooltip description.</comment>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
        </field>

        <field id="eav_attribute_form_fields"
               translate="label"
               type="select"
               sortOrder="20"
               showInDefault="1"
               showInWebsite="1"
               showInStore="1"
        >
            <label>Form Fields</label>
            <frontend_model>Hyva\Checkout\Block\Adminhtml\System\Config\Form\Field\FieldArray\AddressFieldArray</frontend_model>
            <backend_model>Hyva\Checkout\Model\Config\Backend\EavAttributeFormFieldsSerialized</backend_model>
            <comment><![CDATA[
            <ul style="width: 80%;  padding-left: 35px;">
                <li><span style="color: red">Tip:</span> Display custom tooltips and will overwrite any default tooltips.</li>
                <li>All readonly fields are defined in the system and can be configured from different locations (like street fields count, gender etc) and might need to be enabled/configured from Magento settings: stores > configuration > customer configuration first.</li>
                    <li>Fields you can edit (like some street fields) are not required or enabled from magento configuration </li>
                    <li>ADD button is not meant for adding new fields to checkout address forms but rather to include 3rd party objects to the mix to allow sorting</li>
                    <li>The "Auto Save" checkbox enables autosaving for that field. However, if it is unchecked and the field still autosaves, a form modifier may be overriding this behavior.</li>
                </ul>
            ]]></comment>
        </field>
    </group>
</include>
