<?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>
        <section id="weltpixel_newsletter" translate="label" type="text" sortOrder="180" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Enhanced Newsletter Popup PRO</label>
            <tab>weltpixel</tab>
            <resource>WeltPixel_Newsletter::NewsletterSettings</resource>
            <group id="general_module_information" translate="label" type="text" sortOrder="0" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Enhanced Newsletter Popup PRO</label>
                <attribute type="expanded">1</attribute>
                <fieldset_css>weltpixel-module-information-header active</fieldset_css>
                <field id="separator_product_dimensions" translate="button_label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <frontend_model>WeltPixel\Backend\Block\Adminhtml\System\Config\ModuleInformation</frontend_model>
                    <button_label>WeltPixel_Newsletter</button_label>
                </field>
            </group>
            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>General</label>
                <field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Newsletter</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="version" translate="label comment" type="select" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Version</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\Version</source_model>
                    <comment><![CDATA[Choose one of the available design versions. Designs available can be viewed <a href="https://www.weltpixel.com/enhanced-newsletter-popup-magento-2.html" target="_blank">here.</a>]]></comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="overlay_color" translate="label comment" type="text" sortOrder="14" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Overlay Color</label>
                    <comment>Background color when popup is displayed. Specify a valid color code. Example: #000000</comment>
                    <validate>required color {required:false, hash:true}</validate>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="overlay_opacity" translate="label comment" type="text" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Overlay Opacity</label>
                    <comment>Choose how transparent/opaque you want the background to be when popup is displayed. Specify  avalue between 0 - 1.0. Example: 0.8</comment>
                    <validate>required validate-number validate-number-range number-range-0.0-1.0</validate>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="display_mode" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display Mode</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\DisplayMode</source_model>
                    <comment><![CDATA[ If this option is set to ‘Just Home Page’ - the popup will show up only on homepage after meeting the vizibility conditions setup in the options below. <br/> If this option is set to ‘All pages’ - the popup will shop up on any page type once the vizibility conditions are met.]]></comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="display_mobile" translate="label comment" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display on mobile</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>If this option is set to No, newsletter will only show up on desktop devices.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="mobile_version" translate="label comment" type="select" sortOrder="32" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Mobile Version</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\Version</source_model>
                    <comment>Choose one of the available design options for mobile. Can be different from desktop version. </comment>
                    <depends>
                        <field id="enable">1</field>
                        <field id="display_mobile">1</field>
                    </depends>
                </field>
                <field id="display_after_pages" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display after visited pages</label>
                    <validate>required-entry validate-number integer</validate>
                    <comment> To show the newsletter popup on the landing page use 0 in this field. Popup will show up after the visited number of pages specified in this field.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="display_after_seconds" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Wait this amount of time to display(in seconds)</label>
                    <comment>The popup will be displayed after this number of seconds on the page</comment>
                    <validate>required-entry validate-number integer</validate>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="popup_cookie_lifetime" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Popup Lifetime</label>
                    <comment>In days</comment>
                    <validate>required-entry validate-greater-than-zero integer</validate>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="disable_popup" translate="label comment" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Disable newsletter pop-up</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\DisplayDisableOptions</source_model>
                    <comment>Based on this action, the popup is closed, disabled and not opened again until the Popup Lifetime period expires.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="terms_conditions_consent" translate="label comment" type="select" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable terms and condition consent</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Choose whether or not to display link to terms and conditons/privacy policy.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="terms_conditions_text" translate="label comment" type="textarea" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Terms and Condition text</label>
                    <comment>Change text displayed when terms and conditions consent is enabled.</comment>
                    <depends>
                        <field id="enable">1</field>
                        <field id="terms_conditions_consent">1</field>
                    </depends>
                </field>
                <field id="terms_conditions_checkbox" translate="label comment" type="select" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Terms and Condition checkbox mandatory</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Choose whether or not to require the box to be checked before continuing.</comment>
                    <depends>
                        <field id="enable">1</field>
                        <field id="terms_conditions_consent">1</field>
                    </depends>
                </field>
                <field id="signup_steps" translate="label comment" type="select" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Signup Steps</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\SignupSteps</source_model>
                    <comment>When two steps is enabled, an additonal agreement step is required before the sign up button and email input field is available.</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="signup_step_1_proceed_button_label" translate="label" type="text" sortOrder="125" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - Proceed Button Label</label>
                    <depends>
                        <field id="enable">1</field>
                        <field id="signup_steps">2</field>
                    </depends>
                </field>
                <field id="signup_step_1_close_button" translate="label" type="select" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - Enable No Thanks Button</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable">1</field>
                        <field id="signup_steps">2</field>
                    </depends>
                </field>
                <field id="signup_step_1_close_button_label" translate="label" type="text" sortOrder="135" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - No Thanks Button Label</label>
                    <depends>
                        <field id="enable">1</field>
                        <field id="signup_steps">2</field>
                        <field id="signup_step_1_close_button">1</field>
                    </depends>
                </field>
                <field id="newsletter_submit_button_label" translate="label comment" type="text" sortOrder="145" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Newsletter Submit Button Label</label>
                    <comment>Change text displayed on sign up button</comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="newsletter_close_button" translate="label" type="select" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Newsletter No Thanks Button</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable">1</field>
                        <field id="version" separator="|">3|4</field>
                    </depends>
                </field>
                <field id="newsletter_close_button_label" translate="label" type="text" sortOrder="155" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Newsletter Close Button Label</label>
                    <depends>
                        <field id="enable">1</field>
                        <field id="newsletter_close_button">1</field>
                        <field id="version" separator="|">3|4</field>
                    </depends>
                </field>
                <field id="triggerbutton_separator" translate="button_label" type="text" sortOrder="158" showInDefault="1" showInWebsite="1" showInStore="1">
                    <frontend_model>WeltPixel\Newsletter\Block\Adminhtml\System\Config\SeparatorElement</frontend_model>
                    <button_label>Trigger Button Options</button_label>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="enable_trigger_button" translate="label comment" type="select" sortOrder="160" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Newsletter Popup Trigger Button</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Choose whether or not to display a button that manually brings up the popup. Stickied on the right side of the screen and visible on all pages. </comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="trigger_button_hide_on_mobile" translate="label comment" type="select" sortOrder="161" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Hide on mobile</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable">1</field>
                        <field id="enable_trigger_button">1</field>
                    </depends>
                </field>
                <field id="trigger_button_title" translate="label comment" type="text" sortOrder="162" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Trigger Button Title</label>
                    <comment>Text displayed on manual popup button.</comment>
                    <validate>required</validate>
                    <depends>
                        <field id="enable">1</field>
                        <field id="enable_trigger_button">1</field>
                    </depends>
                </field>
                <field id="trigger_button_color" translate="label comment" type="text" sortOrder="165" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Trigger Button Text Color</label>
                    <comment>Specify a valid color code; Example: #000000</comment>
                    <validate>required color {required:false, hash:true}</validate>
                    <depends>
                        <field id="enable">1</field>
                        <field id="enable_trigger_button">1</field>
                    </depends>
                </field>
                <field id="trigger_button_backgroundcolor" translate="label comment" type="text" sortOrder="170" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Trigger Button Background Color</label>
                    <comment>Specify a valid color code; Example: #000000</comment>
                    <validate>required color {required:false, hash:true}</validate>
                    <depends>
                        <field id="enable">1</field>
                        <field id="enable_trigger_button">1</field>
                    </depends>
                </field>
                <field id="popup_enable_gtm_tracking" translate="label comment" type="select" sortOrder="190" showInDefault="1" showInWebsite="1" showInStore="1" >
                    <label>Enable Google Analytics Tracking</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment><![CDATA[<b>Hint:</b> Requires Installation and Enable of <a href="https://www.weltpixel.com/google-analytics-4-ga4-with-gtm-support-for-magento-2.html" target="_blank" >Google Analytics 4 (GA4) With GTM Support Extension</a>. This feature will allow you to track event impressions and event success signup.  ]]></comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
            </group>
            <group id="exitintent" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Exit Intent</label>
                <field id="enable_exitintent" translate="label comment" type="select" sortOrder="180" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Exit Intent</label>
                    <comment>Displays newsletter popup only when user has the intent of navigating away from the page. Overrides amount of time selected in "Wait this amount of time to display".</comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="exitintent_disable_popup" translate="label comment" type="select" sortOrder="185" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Disable pop-up</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\DisplayDisableOptions</source_model>
                    <comment>Based on this action, the popup is closed, disabled and not opened again until the Popup Lifetime period expires.</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_display_user_subscribed" translate="label comment" type="select" sortOrder="190" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display if user already subscribed</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>If set to No, once a valid email address is used to subscribe, the popup will not display, regardless of whether or not the user signs in. </comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_display_closed_popup" translate="label" type="select" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Display if user closed popup</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_version" translate="label comment" type="select" sortOrder="210" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Version</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\Version</source_model>
                    <comment><![CDATA[Choose one of the available design versions. Designs available can be viewed <a href="https://www.weltpixel.com/enhanced-newsletter-popup-magento-2.html" target="_blank">here.</a>]]></comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_overlay_color" translate="label comment" type="text" sortOrder="220" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Overlay Color</label>
                    <comment>Background color when popup is displayed. Specify a valid color code. Example: #000000</comment>
                    <validate>required color {required:false, hash:true}</validate>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_overlay_opacity" translate="label comment" type="text" sortOrder="230" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Overlay Opacity</label>
                    <comment>Choose how transparent/opaque you want the background to be when popup is displayed. Specify  avalue between 0 - 1.0. Example: 0.8</comment>
                    <validate>required validate-number validate-number-range number-range-0.0-1.0</validate>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_terms_conditions_consent" translate="label comment" type="select" sortOrder="240" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable terms and condition consent</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Choose whether or not to display link to terms and conditons/privacy policy.</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_terms_conditions_text" translate="label comment" type="textarea" sortOrder="250" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Terms and Condition text</label>
                    <comment>Change text displayed when terms and conditions consent is enabled.</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_terms_conditions_consent">1</field>
                    </depends>
                </field>
                <field id="exitintent_terms_conditions_checkbox" translate="label comment" type="select" sortOrder="260" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Terms and Condition checkbox mandatory</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment>Choose whether or not to require the box to be checked before continuing.</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_terms_conditions_consent">1</field>
                    </depends>
                </field>
                <field id="exitintent_signup_steps" translate="label comment" type="select" sortOrder="270" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Signup Steps</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\SignupSteps</source_model>
                    <comment>When two steps is enabled, an additonal agreement step is required before the sign up button and email input field is available.</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_signup_step_1_proceed_button_label" translate="label" type="text" sortOrder="280" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - Proceed Button Label</label>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_signup_steps">2</field>
                    </depends>
                </field>
                <field id="exitintent_signup_step_1_close_button" translate="label" type="select" sortOrder="290" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - Enable No Thanks Button</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_signup_steps">2</field>
                    </depends>
                </field>
                <field id="exitintent_signup_step_1_close_button_label" translate="label" type="text" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Step 1 - No Thanks Button Label</label>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_signup_steps">2</field>
                        <field id="exitintent_signup_step_1_close_button">1</field>
                    </depends>
                </field>
                <field id="exitintent_newsletter_submit_button_label" translate="label comment" type="text" sortOrder="310" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Newsletter Submit Button Label</label>
                    <comment>Change text displayed on sign up button</comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
                <field id="exitintent_newsletter_close_button" translate="label" type="select" sortOrder="320" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable Newsletter No Thanks Button</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_version" separator="|">3|4</field>
                    </depends>
                </field>
                <field id="exitintent_newsletter_close_button_label" translate="label" type="text" sortOrder="330" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Newsletter Close Button Label</label>
                    <depends>
                        <field id="enable_exitintent">1</field>
                        <field id="exitintent_newsletter_close_button">1</field>
                        <field id="exitintent_version" separator="|">3|4</field>
                    </depends>
                </field>
                <field id="exitintent_enable_gtm_tracking" translate="label comment" type="select" sortOrder="350" showInDefault="1" showInWebsite="1" showInStore="1" >
                    <label>Enable Google Analytics Tracking</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment><![CDATA[<b>Hint:</b> Requires Installation and Enable of <a href="https://www.weltpixel.com/google-analytics-4-ga4-with-gtm-support-for-magento-2.html" target="_blank" >Google Analytics 4 (GA4) With GTM Support Extension</a>. This feature will allow you to track event impressions and event success signup.  ]]></comment>
                    <depends>
                        <field id="enable_exitintent">1</field>
                    </depends>
                </field>
            </group>
            <group id="sociallogin" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Social Media Login</label>
                <comment>
                    <![CDATA[<b>Hint:</b> Requires Installation and Enable of <a href="https://www.weltpixel.com/magento2-social-login.html" target="_blank" >Social Login PRO Extension</a>.]]>
                </comment>
                <field id="sociallogin_integration" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Social Login Integration</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\SocialLoginIntegration</source_model>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="sociallogin_integration_applies_to" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Social Login Integration Applies To</label>
                    <source_model>WeltPixel\Newsletter\Model\Config\Source\SocialLoginIntegrationApplyTo</source_model>
                    <depends>
                        <field id="sociallogin_integration" separator="|">2|3</field>
                    </depends>
                </field>

            </group>
        </section>
    </system>
</config>
