<?php
if (!defined('ABSPATH')) {
    header('Status: 403 Forbidden');
    header('HTTP/1.1 403 Forbidden');
    exit;
}
/** @var array $values */
/** @var string $key */
/** @var mixed $value */
?>
<script id="vcv-<?php echo esc_attr(vchelper('Str')->slugify($key)); ?>">
  // Read-Only data
  if(typeof window['<?php echo esc_js($key); ?>'] === 'undefined') {
    Object.defineProperty(window, '<?php echo esc_js($key); ?>', {
      value: function () {
        // @codingStandardsIgnoreLine
        return <?php echo wp_json_encode($value, isset($options) ? $options : 0); ?> },
      writable: false
    });
  }
</script>
