using System;
using Cpp2IlInjected;
using DG.Tweening;
using DG.Tweening.Core;
using DG.Tweening.Plugins.Options;
using MarsSDK;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;

// Token: 0x020002C0 RID: 704
[Token(Token = "0x20002C0")]
public class UIArrowHandler : UIHandlerBase, IPointerClickHandler, IEventSystemHandler
{
	// Token: 0x06001A8C RID: 6796 RVA: 0x000410B8 File Offset: 0x0003F2B8
	[Token(Token = "0x6001A8C")]
	[Address(RVA = "0x33F340", Offset = "0x33E340", VA = "0x18033F340")]
	public Image GetImage()
	{
		return this.image;
	}

	// Token: 0x06001A8D RID: 6797 RVA: 0x000410CC File Offset: 0x0003F2CC
	[Token(Token = "0x6001A8D")]
	[Address(RVA = "0x19D3D30", Offset = "0x19D2D30", VA = "0x1819D3D30", Slot = "8")]
	public override void OnSelect()
	{
		this.ProcessScaleEffect(1.25f);
		Action<UIHandlerBase> onSelectedHandler = this.onSelectedHandler;
		if (onSelectedHandler != 0)
		{
			onSelectedHandler(this);
			return;
		}
	}

	// Token: 0x06001A8E RID: 6798 RVA: 0x000410F8 File Offset: 0x0003F2F8
	[Token(Token = "0x6001A8E")]
	[Address(RVA = "0x19D3CD0", Offset = "0x19D2CD0", VA = "0x1819D3CD0", Slot = "9")]
	public override void OnDeselect()
	{
		this.ProcessScaleEffect(1f);
		Action<UIHandlerBase> onDeselectedHandler = this.onDeselectedHandler;
		if (onDeselectedHandler != 0)
		{
			onDeselectedHandler(this);
			return;
		}
	}

	// Token: 0x06001A8F RID: 6799 RVA: 0x00041124 File Offset: 0x0003F324
	[Token(Token = "0x6001A8F")]
	[Address(RVA = "0x19D3D90", Offset = "0x19D2D90", VA = "0x1819D3D90")]
	private void ProcessScaleEffect(float scale)
	{
		TweenerCore<Vector3, Vector3, VectorOptions> tweenerCore = ShortcutExtensions.DOScale(this.image.rectTransform, scale, 0.2f).SetEase((Ease)((uint)15)).Play<TweenerCore<Vector3, Vector3, VectorOptions>>();
	}

	// Token: 0x06001A90 RID: 6800 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A90")]
	[Address(RVA = "0x29E8B0", Offset = "0x29D8B0", VA = "0x18029E8B0", Slot = "10")]
	public void OnPointerClick(PointerEventData eventData)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A91 RID: 6801 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001A91")]
	[Address(RVA = "0x19D3E30", Offset = "0x19D2E30", VA = "0x1819D3E30")]
	public void UpdateActivation(bool isActive)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001A92 RID: 6802 RVA: 0x0004115C File Offset: 0x0003F35C
	[Token(Token = "0x6001A92")]
	[Address(RVA = "0x41ED30", Offset = "0x41DD30", VA = "0x18041ED30")]
	public UIArrowHandler()
	{
	}

	// Token: 0x040024D0 RID: 9424
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x40024D0")]
	[SerializeField]
	private Image image;

	// Token: 0x040024D1 RID: 9425
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x40024D1")]
	[SerializeField]
	private EmptyGraphicSensor sensor;
}
