<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <tab id="wesupply" translate="label" sortOrder="1000" class="wesupply-tab">
            <label>WeSupply</label>
        </tab>
        <section id="wesupply_api" translate="label" type="text" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Configuration</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::APISettings</resource>
            <group id="module_information" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>WeSupply Configuration (for Magento 2.4.x)</label>
                <attribute type="expanded">0</attribute>
                <fieldset_css>wesupply-toolbox-header active</fieldset_css>
                <field id="version_compare" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
                    <frontend_model>WeSupply\Toolbox\Block\System\Config\VersionCompare</frontend_model>
                </field>
            </group>
            <group id="integration" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>WeSupply Integration</label>
                <attribute type="expanded">1</attribute>
                <comment>
                    <![CDATA[
                    To connect your WeSupply account, copy and paste the <strong>Access Key</strong> and <strong>API Endpoint</strong> into your WeSupply Dashboard under <strong>Settings -> Providers -> Magento</strong>
                    ]]>
                </comment>
                <field id="wesupply_enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable WeSupply</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Enable / disable WeSupply integration.</comment>
                </field>
                <field id="access_key" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="1">
                    <frontend_model>WeSupply\Toolbox\Block\System\Config\AccessKey</frontend_model>
                    <label>Access Key</label>
                    <comment>Copy this generated Access Key into your WeSupply account</comment>
                    <depends>
                        <field id="wesupply_enabled">1</field>
                    </depends>
                </field>
                <field id="api_endpoint_info" translate="label" type="note" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>API Endpoint</label>
                    <comment model="WeSupply\Toolbox\Model\ApiInfoComment"></comment>
                    <depends>
                        <field id="wesupply_enabled">1</field>
                    </depends>
                </field>
                <field id="store_ids" translate="label" type="note" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
                    <frontend_model>WeSupply\Toolbox\Block\System\Config\StoreIdsList</frontend_model>
                    <label>IDs of existing stores</label>
                    <comment><![CDATA[ Use <strong>All</strong> instead of a specific id, to synchronize orders from all Storeviews]]></comment>
                    <depends>
                        <field id="wesupply_enabled">1</field>
                    </depends>
                </field>
                <field id="wesupply_subdomain_info" translate="label" type="note" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>WeSupply Domain</label>
                    <comment model="WeSupply\Toolbox\Model\WsDomainComment"></comment>
                    <depends>
                        <field id="wesupply_enabled">1</field>
                    </depends>
                </field>
            </group>
            <group id="step_4" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Allow users to subscribe to SMS alert notification on Checkout Success page</label>
                <attribute type="expanded">0</attribute>
                <comment>
                    <![CDATA[
                   If enabled, your customers will have the option to subscribe to SMS order tracking once the purchase is complete.
                    ]]>
                </comment>
                <field id="checkout_page_notification" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable SMS Notification Signup Section</label>
                    <comment>Display SMS signup section on Success Page. This allows customers to subscribe to receive SMS notifications regarding order and shipping statuses</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="notification_type" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Insert SMS Notification Section in</label>
                    <comment>
                        <![CDATA[
                        If the <strong>Widget</strong> option is selected, you can display the SMS notification sign up section on the success page, by inserting the widget in a custom CMS Block.
                        <br/>
                        Name of the widget is: <strong>WeSupply Toolbox SMS Notification Widget</strong>
                        ]]>
                    </comment>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\NotificationDesignType</source_model>
                    <depends>
                        <field id="wesupply_api/step_4/checkout_page_notification">1</field>
                    </depends>
                </field>
                <field id="design_notification" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>SMS Notification Signup Section design</label>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\NotificationDesignMode</source_model>
                    <comment>Select design version for SMS Notification section</comment>
                    <depends>
                        <field id="wesupply_api/step_4/checkout_page_notification">1</field>
                        <field id="wesupply_api/step_4/notification_type">default</field>
                    </depends>
                </field>
                <field id="design_notification_alingment" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>SMS Notification Signup Section alignment</label>
                    <comment>Select alignment for SMS Notification section</comment>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\NotificationDesignModeAlignment</source_model>
                    <depends>
                        <field id="wesupply_api/step_4/checkout_page_notification">1</field>
                        <field id="wesupply_api/step_4/notification_type">default</field>
                    </depends>
                </field>
                <depends>
                    <field id="wesupply_api/integration/wesupply_enabled">1</field>
                </depends>
            </group>
            <group id="step_5" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Allow logged in/guest customers to receive estimations for delivery date</label>
                <attribute type="expanded">0</attribute>
                <comment>
                    <![CDATA[
                   If enabled, your customers will have the possibility to get an estimations on the delivery time based on their IP address location detection,
                   <br />or by entering a specific zip-code directly on the product page, shopping cart and checkout page.
                   <br/>
                   <strong style="color: #ff0000">In order to enable Estimate Delivery Date, make sure this addon is activated and enabled under your WeSupply account.</strong>
                    ]]>
                </comment>
                <field id="enable_delivery_estimations" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Delivery Estimations</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="estimation_display_spinner" translate="label" type="select" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display Spinner While Loading</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_product_attributes" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Product Attributes for delivery estimation logic</label>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributes</source_model>
                    <comment>Select the product attributes which will be used to create delivery estimation logic in WeSupply Platform. To create estimation logic go to Settings -> Estimates -> Estimates Rules under your WeSupply account and use the attribute code from within the parentheses.</comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="add_estimation_range" translate="label" type="select" sortOrder="24" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Add Estimation Range</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Set "Yes" to add additional days for delivery estimations. Eg: If you set range with value 2 and shipping vendor estimation is for 28 January, shown estimation will be as follows: 28 January - 30 January.</comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="apply_estimation_range" translate="label" type="select" sortOrder="25" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Apply Estimation Range To</label>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\ApplyEstimationRange</source_model>
                    <comment>
                        <![CDATA[
                            Set <strong>All Shipping Methods</strong> to apply <strong>Estimations Range</strong> to all available shipping methods.<br />
                            Select <strong>Specific Shipping Methods</strong> to set different estimations ranges, custom messages or hide the ETA completely for any available shipping method.
                        ]]>
                    </comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                        <field id="wesupply_api/step_5/add_estimation_range">1</field>
                    </depends>
                </field>
                <field id="estimation_range" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Estimations Range</label>
                    <validate>integer</validate>
                    <comment>
                        <![CDATA[
                            Insert number of days for delivery estimations, applicable when <strong>All Shipping Methods</strong> is set. Eg: If you set range with value 2 and  shipping vendor estimation is for 28 January, shown estimation will be as follows: 28 January - 30 January.
                        ]]>
                    </comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                        <field id="wesupply_api/step_5/add_estimation_range">1</field>
                        <field id="wesupply_api/step_5/apply_estimation_range">all_shipping_methods</field>
                    </depends>
                </field>
                <field id="estimation_range_specific" translate="label" sortOrder="32" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Specific Estimates Ranges</label>
                    <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
                    <frontend_model>WeSupply\Toolbox\Block\System\Config\SpecificEstimationRanges</frontend_model>
                    <comment>
                        <![CDATA[
                            If <strong>Range</strong> field is empty or zero ETA will be displayed as a single day as received from the shipper.<br />
                            If <strong>Range</strong> field is greater than zero ETA will be displayed as a range.<br />
                            <strong>Additional message</strong> field will be appended to the ETA. Can be left empty for no message.<br />
                            If <strong>Hide ETA</strong> is checked the ETA will be hidden. However the custom message will be displayed if there is one.
                        ]]>
                    </comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                        <field id="wesupply_api/step_5/add_estimation_range">1</field>
                        <field id="wesupply_api/step_5/apply_estimation_range">specific_shipping_methods</field>
                    </depends>
                </field>
                <field id="estimation_display" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>ETA Display Mode When Multiple Products In Cart</label>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\EstimationDisplay</source_model>
                    <comment>
                        <![CDATA[
                            If multiple products are in cart, each product might have a different ETA based on Estimates Logic set on your WeSupply account under Settings -> Estimates -> Estimates Rules.<br />
                            You can choose to display the <strong>Earliest</strong>, <strong>Latest</strong> ETA or display it <strong>As a range</strong> between the Earliest and the Latest ETA from all the products in the cart.<br />
                            NOTE: <strong>Estimation Ranges</strong> set above will be taken into consideration and added to the final ETA displayed.
                         ]]>
                    </comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_format" translate="label" type="select" sortOrder="45" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Estimations Format</label>
                    <source_model>WeSupply\Toolbox\Model\Config\Source\EstimationFormat</source_model>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_order_within" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>"Order within" Display</label>
                    <validate>integer</validate>
                    <comment>Display "Order within" if remaining time is lower than this value (in hours).</comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_label_arrival" translate="label" type="text" sortOrder="53" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>"Estimated Arrival" Text</label>
                    <validate>validate-no-empty</validate>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_label_zip" translate="label" type="text" sortOrder="56" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>"at ZIP" Text</label>
                    <validate>validate-no-empty</validate>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_label_order_within" translate="label" type="text" sortOrder="59" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>"Order within" Text</label>
                    <validate>validate-no-empty</validate>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <field id="estimation_default_carrier" translate="label" type="note" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Default Shipping Vendor</label>
                    <comment>
                        <![CDATA[<span style="color: #ff0000;"><b>NOTE</b>: Please make sure you set this up in WeSupply Platform.</span>]]>
                    </comment>
                    <depends>
                        <field id="wesupply_api/step_5/enable_delivery_estimations">1</field>
                    </depends>
                </field>
                <depends>
                    <field id="wesupply_api/integration/wesupply_enabled">1</field>
                </depends>
            </group>
            <group id="step_6" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Store Locator Settings</label>
                <attribute type="expanded">0</attribute>
                <field id="store_locator_cms" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Store Locator CMS Page</label>
                    <source_model>Magento\Cms\Model\Config\Source\Page</source_model>
                </field>
                <field id="store_details_cms" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Store Details CMS Page</label>
                    <source_model>Magento\Cms\Model\Config\Source\Page</source_model>
                </field>
                <depends>
                    <field id="wesupply_api/integration/wesupply_enabled">1</field>
                </depends>
            </group>
            <group id="advanced_settings" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Advanced Settings</label>
                <attribute type="expanded">0</attribute>
                <group id="wesupply_order_export" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Order and Return Logic Attribute Export Rules</label>
                    <field id="wesupply_order_filter" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Orders To Be Exported / Updated</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\OrderExportFilter</source_model>
                        <comment>
                            <![CDATA[Choose orders that you'd like to have exported to the WeSupply Platform.]]>
                        </comment>
                    </field>
                    <field id="wesupply_order_filter_countries" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Excluded Shipping Country(s)</label>
                        <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
                        <comment>Orders which are shipped to selected country(s) are not exported to WeSupply Platform.</comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter">exclude_specific</field>
                        </depends>
                    </field>
                    <field id="wesupply_order_filter_pending" translate="label" type="select" sortOrder="22" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Exclude Pending Orders</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>Select "Yes" if you would like to exclude orders in the "Pending" status from being exported to WeSupply. Once the "Pending" status is updated, the orders are exported to WeSupply normally.</comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                    </field>
                    <field id="wesupply_order_filter_complete" translate="label" type="select" sortOrder="24" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Exclude Complete Orders</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>Select "Yes" if you would like to exclude orders in the "Complete" status from being exported to WeSupply (this applies only to orders created directly with the "Complete" status).</comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                    </field>
                    <field id="wesupply_order_product_attributes" translate="label" type="multiselect" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Attributes To Be Exported For Return Logics</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributes</source_model>
                        <comment>
                            <![CDATA[
                                <script type="text/javascript">
                                    require(['jquery', 'Magento_Ui/js/modal/alert', 'prototype', 'domReady!'], function($, alert){
                                        var maxAllowed = 10;
                                        $('#wesupply_api_wesupply_order_export_wesupply_order_product_attributes').on('change', function() {
                                            if ($(this).val().length > maxAllowed) {
                                                $('button#save').prop('disabled', true);
                                                alert({
                                                    title: $.mage.__('Too many attributes selected'),
                                                    content: $.mage.__($(this).val().length + ' attributes were selected and maximum allowed are ' + maxAllowed + '.')
                                                })
                                            } else {
                                                $('button#save').prop('disabled', false);
                                            }
                                        });
                                    });
                                </script>
                                Select product attributes that you would like to use to create return logics in WeSupply
                            ]]>
                        </comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                    </field>
                    <field id="item_weight_attr" translate="label" type="select"  sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Weight Attribute For Return Logics</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributesSelect</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                        <comment>Select the attribute that is used to set the product weight.</comment>
                    </field>
                    <field id="item_width_attr" translate="label" type="select"  sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Width Attribute For Return Logics</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributesSelect</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                        <comment>Select the attribute that is used to set the product width.</comment>
                    </field>
                    <field id="item_height_attr" translate="label" type="select"  sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Height Attribute For Return Logics</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributesSelect</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                        <comment>Select the attribute that is used to set the product height.</comment>
                    </field>
                    <field id="item_length_attr" translate="label" type="select"  sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Length Attribute For Return Logics</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ProductAttributesSelect</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                        <comment>Select the attribute that is used to set the product length.</comment>
                    </field>
                    <field id="wesupply_order_product_attributes_fetch" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Product Attributes Fetch Priority</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\AttributesFetchPriority</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_order_export/wesupply_order_filter" separator=",">allow_all,exclude_specific</field>
                        </depends>
                        <comment>
                            <![CDATA[ Choose how <strong>Product Attributes</strong> are collected in the case of a configurable product. ]]>
                        </comment>
                    </field>
                </group>
                <group id="wesupply_view_settings" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Order and Returns View Settings</label>
                    <field id="wesupply_order_list_enabled" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Replace Default Magento Order List</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                            Select "Yes" to replace the default Magento Order List with the WeSupply platform's own Order List. Excluded orders will not be displayed in the WeSupply Order List. Applies to the Order List in <strong>My Account > My Orders</strong> as well as the <strong>Recent Orders</strong> block in <strong>My Account</strong>.<br/>This setting is only available if you have configured a <strong>Domain Alias</strong> in your WeSupply account under Settings > Branding > Configuration > DNS Settings > Custom Domain Host Mapping.
                            ]]>
                        </comment>
                    </field>
                    <field id="wesupply_recent_orders_enabled" translate="label" type="select" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Display The Recent Orders Block</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                            Show / hide the <strong>Recent Orders</strong> block on the <strong>My Account</strong> page.
                            ]]>
                        </comment>
                    </field>
                    <field id="wesupply_order_view_enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Replace Default Magento Order View</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                            Select "Yes" to replace the default Magento <strong>Order View</strong> Page with the WeSupply platform's own Order View Page
                            ]]>
                        </comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_view_settings/wesupply_order_list_enabled">0</field>
                        </depends>
                    </field>
                    <field id="wesupply_order_view_iframe" translate="label" type="select" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Select Order View Behavior</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\ViewOrderBehavior</source_model>
                        <comment>
                            <![CDATA[
                                Select "Open in Modal" to display the Order View Page in a popup window. Select "Open on WeSupply Platform" to display the View Order Page in a new window.<br/>
                                "<strong>Open in Modal</strong>" is only available if you have configured a <strong>Domain Alias</strong> in your WeSupply account under Settings > Branding > Configuration > DNS Settings > Custom Domain Host Mapping.
                            ]]>
                        </comment>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_view_settings/wesupply_order_list_enabled">0</field>
                            <field id="wesupply_api/advanced_settings/wesupply_view_settings/wesupply_order_view_enabled">1</field>
                        </depends>
                    </field>
                    <field id="enable_delivery_estimations_header_link" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Display "Tracking Info" Header Link</label>
                        <comment>
                            <![CDATA[
                                Display "Tracking Info" link in the store header.<br/>
                                The Tracking Info link will display a page where the customers will be able to view advanced order details based on order number and email address.
                            ]]>
                        </comment>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    </field>
                    <field id="wesupply_tracking_info_iframe" translate="label" type="select" sortOrder="22" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Select Tracking Info Link Behavior</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\TrackingInfoBehavior</source_model>
                        <comment>
                            <![CDATA[
                                Select "Open in Magento" to display the Tracking Info Page as an iframe embedded in a CMS page. Select "Open on WeSupply Platform" to redirect the customer to the Tracking Info Page in WeSupply.<br/>
                                "<strong>Open in Magento</strong>" option is only available if you have configured a <strong>Domain Alias</strong> in your WeSupply account under Settings > Branding > Configuration > DNS Settings > Custom Domain Host Mapping.
                            ]]>
                        </comment>
                    </field>
                    <field id="wesupply_admin_order_enabled" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Display WeSupply Order View in Admin</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                                If set to Yes, a link to the Order View of WeSupply platform will be displayed for each order.<br/>Go to Magento Admin > Sales > Orders > Order details page and check WeSupply Button.
                            ]]>
                        </comment>
                    </field>
                    <field id="wesupply_admin_returns_enabled" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Display WeSupply Returns List in Admin</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                                If set to Yes, a link to the Returns List of WeSupply platform will be displayed for each order (available only for plans that includes the Returns addon).<br/>
                                Go to Magento Admin > Sales > Orders > Order details page and check WeSupply Button.
                            ]]>
                        </comment>
                    </field>
                </group>
                <group id="wesupply_pickup_settings" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Pick up behavior</label>
                    <field id="create_invoice" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Create invoice when item/order is Picked up in WeSupply</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    </field>
                    <field id="capture_payment" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                        <label>Capture payment when item/order is Picked up in WeSupply</label>
                        <source_model>WeSupply\Toolbox\Model\Config\Source\CapturePaymentType</source_model>
                        <depends>
                            <field id="wesupply_api/advanced_settings/wesupply_pickup_settings/create_invoice">1</field>
                        </depends>
                    </field>
                </group>
                <group id="wesupply_cron_settings" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
                    <label>Crons settings</label>
                    <field id="cron_update_shipment_track" translate="label" type="select" sortOrder="5" showInDefault="1" showInWebsite="0" showInStore="0">
                        <label>Update new Shipment Tracking Numbers based on Crons</label>
                        <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                        <comment>
                            <![CDATA[
                                Enable this cron in case your tracking numbers are updated via custom API and/or they are not collected by the WeSupply system.
                                ]]>
                        </comment>
                    </field>
                </group>
                <depends>
                    <field id="wesupply_api/integration/wesupply_enabled">1</field>
                </depends>
            </group>
        </section>
        <section id="norton_shopping_guarantee" translate="label"  type="text" sortOrder="180" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Norton Shopping Guarantee</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::NortonShoppingGuarantee</resource>
            <group id="package_protection" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Package Protection</label>
                <attribute type="expanded">1</attribute>
                <comment>
                    <![CDATA[
                   Increase sales by providing a unique and holistic buyer protection program, offering both a shopping guarantee and shipping insurance,
                   utilizing trust badges to guide potential customers towards a confident purchase from your online store.
                ]]>
                </comment>
                <field id="nsgpp_enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable</label>
                    <comment>Enable/Disable NSG Package Protection.</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="nsgpp_sn" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Store Number</label>
                    <comment>Unique Store Identifier</comment>
                    <validate>validate-no-empty validate-digits</validate>
                    <depends>
                        <field id="norton_shopping_guarantee/package_protection/nsgpp_enabled">1</field>
                    </depends>
                </field>
            </group>
        </section>
        <section id="help_center_order_tracking_notification" translate="label"  type="text" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Order Tracking &amp; Notifications</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::OrderTrackingNotifications</resource>
            <group id="order_tracking_notification" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Order Tracking &amp; Notifications</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
        <section id="help_center_returns_rma" translate="label"  type="text" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Returns &amp; RMA</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::ReturnsRMA</resource>
            <group id="returns_rma" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Returns &amp; RMA</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
        <section id="help_center_estimated_delivery_dates" translate="label"  type="text" sortOrder="220" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Estimated Delivery Dates</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::EstimatedDeliveryDates</resource>
            <group id="estimated_delivery_dates" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Estimated Delivery Dates</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
        <section id="help_center_store_locator" translate="label"  type="text" sortOrder="230" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Store Locator</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::StoreLocator</resource>
            <group id="store_locator" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Store Locator</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
        <section id="help_center_store_pickup_curbside" translate="label"  type="text" sortOrder="240" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Store Pickup &amp; Curbside</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::StorePickupCurbside</resource>
            <group id="store_pickup_curbside" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Store Pickup &amp; Curbside</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
        <section id="help_center_reviews" translate="label"  type="text" sortOrder="250" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Reviews</label>
            <tab>wesupply</tab>
            <resource>WeSupply_Toolbox::Reviews</resource>
            <group id="reviews" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Reviews</label>
                <fieldset_css>help-center</fieldset_css>
                <frontend_model>WeSupply\Toolbox\Block\Adminhtml\System\Config\HelpCenterLink</frontend_model>
            </group>
        </section>
    </system>
</config>
