export const VegaItemToggleRuntimeMetricsPayloadDefinition = [
  {
    payloadKey: 'ITEM_TOGGLE_STATUS_MAP_IS_DEFAULT_VALUE',
    payloadDescription: '@deprecated Defines the labels and icons associated with the toggle states.',
    /**
     * The function checks if the `itemToggleStatusMap` property of the `host` element is default value.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.itemToggleStatusMap.unToggledIcon === 'plus-sign' &&
      host.itemToggleStatusMap.toggledIcon === 'delete-bin' &&
      host.itemToggleStatusMap.unToggledLabel === 'Add' &&
      host.itemToggleStatusMap.togglingLabel === 'Added' &&
      host.itemToggleStatusMap.toggledLabel === 'Remove' &&
      host.itemToggleStatusMap.unTogglingLabel === 'Removed',
  },
  {
    payloadKey: 'ITEM_TOGGLE_STATUS_MAP_IS_NOT_DEFAULT_VALUE',
    payloadDescription: '@deprecated Defines the labels and icons associated with the toggle states.',
    /**
     * The function checks if the `itemToggleStatusMap` property of the `host` element is not default value.
     * If it is, the function will return `true`.
     *
     * @param {HTMLElement} host - The element to check
     * @returns {boolean} A boolean value
     */
    payloadValue: (host) => host.itemToggleStatusMap.unToggledIcon !== 'plus-sign' ||
      host.itemToggleStatusMap.toggledIcon !== 'delete-bin' ||
      host.itemToggleStatusMap.unToggledLabel !== 'Add' ||
      host.itemToggleStatusMap.togglingLabel !== 'Added' ||
      host.itemToggleStatusMap.toggledLabel !== 'Remove' ||
      host.itemToggleStatusMap.unTogglingLabel !== 'Removed',
  },
];
