File "gdpr.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/mailchimp-for-woocommerce_bk/blocks/assets/js/checkout-newsletter-subscription-block/gdpr.js
File size: 767 bytes
MIME-type: text/x-java
Charset: utf-8

import {Header} from "@wordpress/components/build/box-control/styles/box-control-styles";
import {__} from "@wordpress/i18n";

{gdpr.length &&
<div>
    <Header>
        {__(gdprHeadline, 'mailchimp-for-woocommerce')}
    </Header>
    {
        gdpr.forEach((gdprItem) => {
            <CheckboxControl
                id={'gdpr_'+gdprItem['marketing_permission_id']}
                checked={ gdprValues[gdprItem['marketing_permission_id']] }
                onChange={ () => {
                    gdprValues[gdprItem['marketing_permission_id']] = !gdprValues[gdprItem['marketing_permission_id']]
                }}
            >
                <span dangerouslySetInnerHTML={ {__html: gdprItem['text']} }/>
            </CheckboxControl>
        })
    }
</div>
}