package c.a.f; import android.net.Uri; import android.view.View; import com.discord.chips_view.ChipsView; import com.discord.chips_view.ChipsView.a; import d0.z.d.m; /* compiled from: Chip.kt */ public final class a implements View.OnClickListener { public c.a.f.i.a i; public boolean j; public String k; public final Uri l; public final K m; public final T n; public final boolean o; public final C0023a p; public final ChipsView q; /* compiled from: Chip.kt */ /* renamed from: c.a.f.a$a reason: collision with other inner class name */ public static final class C0023a { public final int a; public final float b; /* renamed from: c reason: collision with root package name */ public final int f52c; public final int d; public final int e; public final int f; public final int g; public final int h; public final int i; public final int j; public C0023a(int i, float f, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, int i10) { this.a = i; this.b = f; this.f52c = i2; this.d = i3; this.e = i4; this.f = i5; this.g = i6; this.h = i7; this.i = i8; this.j = i9; } } public a(String str, Uri uri, K k, T t, boolean z2, C0023a aVar, ChipsView chipsView) { m.checkNotNullParameter(aVar, "params"); m.checkNotNullParameter(chipsView, "container"); this.k = str; this.l = uri; this.m = k; this.n = t; this.o = z2; this.p = aVar; this.q = chipsView; String str2 = null; if (str == null) { this.k = t != null ? t.getDisplayString() : null; } String str3 = this.k; if ((str3 != null ? str3.length() : 0) > 30) { String str4 = this.k; if (str4 != null) { str2 = str4.substring(0, 30); m.checkNotNullExpressionValue(str2, "(this as java.lang.Strin…ing(startIndex, endIndex)"); } this.k = m.stringPlus(str2, "..."); } } @Override // java.lang.Object public boolean equals(Object obj) { if (obj instanceof a) { return m.areEqual(this.n, ((a) obj).n); } return false; } @Override // java.lang.Object public int hashCode() { String str = this.k; int i = 0; int hashCode = (str != null ? str.hashCode() : 0) * 31; Uri uri = this.l; int hashCode2 = (hashCode + (uri != null ? uri.hashCode() : 0)) * 31; K k = this.m; int hashCode3 = (hashCode2 + (k != null ? k.hashCode() : 0)) * 31; T t = this.n; int hashCode4 = (this.q.hashCode() + ((this.p.hashCode() + ((c.a(this.o) + ((hashCode3 + (t != null ? t.hashCode() : 0)) * 31)) * 31)) * 31)) * 31; c.a.f.i.a aVar = this.i; if (aVar != null) { i = aVar.hashCode(); } return c.a(this.j) + ((hashCode4 + i) * 31); } @Override // android.view.View.OnClickListener public void onClick(View view) { m.checkNotNullParameter(view, "v"); this.q.A.clearFocus(); this.q.c(this); } @Override // java.lang.Object public String toString() { StringBuilder L = c.d.b.a.a.L("{[Data: "); L.append(this.n); L.append(']'); L.append("[Label: "); L.append(this.k); L.append(']'); L.append("[PhotoUri: "); L.append(this.l); L.append(']'); L.append("[IsIndelible"); L.append(this.o); L.append(']'); L.append('}'); return L.toString(); } }