package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import o.C15715hv; /* renamed from: o.uu, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17222uu extends C16157lj { private static final Map b; private static final Map d; static { HashMap hashMap = new HashMap(); hashMap.put(1, Integer.valueOf(C15715hv.tOB.weekly_monday)); hashMap.put(2, Integer.valueOf(C15715hv.tOB.weekly_tuesday)); hashMap.put(3, Integer.valueOf(C15715hv.tOB.weekly_wednesday)); hashMap.put(4, Integer.valueOf(C15715hv.tOB.weekly_thursday)); hashMap.put(5, Integer.valueOf(C15715hv.tOB.weekly_friday)); b = Collections.unmodifiableMap(hashMap); HashMap hashMap2 = new HashMap(); hashMap2.put(1, Integer.valueOf(C15715hv.tOB.calendar_january)); hashMap2.put(2, Integer.valueOf(C15715hv.tOB.calendar_february)); hashMap2.put(3, Integer.valueOf(C15715hv.tOB.calendar_march)); hashMap2.put(4, Integer.valueOf(C15715hv.tOB.calendar_april)); hashMap2.put(5, Integer.valueOf(C15715hv.tOB.calendar_may)); hashMap2.put(6, Integer.valueOf(C15715hv.tOB.calendar_june)); hashMap2.put(7, Integer.valueOf(C15715hv.tOB.calendar_july)); hashMap2.put(8, Integer.valueOf(C15715hv.tOB.calendar_august)); hashMap2.put(9, Integer.valueOf(C15715hv.tOB.calendar_september)); hashMap2.put(10, Integer.valueOf(C15715hv.tOB.calendar_october)); hashMap2.put(11, Integer.valueOf(C15715hv.tOB.calendar_november)); hashMap2.put(12, Integer.valueOf(C15715hv.tOB.calendar_december)); d = Collections.unmodifiableMap(hashMap2); } @InterfaceC13391fZD public C17222uu(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public final String n(String str) { char c; str.hashCode(); int hashCode = str.hashCode(); if (hashCode == 77) { if (str.equals("M")) { c = 0; } c = 65535; } else if (hashCode != 79) { if (hashCode == 87 && str.equals("W")) { c = 2; } c = 65535; } else { if (str.equals("O")) { c = 1; } c = 65535; } if (c == 0) { return e(C15715hv.tOB.schedule_review_effective_date_monthly); } if (c != 1) { return c != 2 ? "" : e(C15715hv.tOB.schedule_review_effective_date_weekly); } return e(C15715hv.tOB.schedule_review_effective_date_once); } public final String c(JiO jiO) { char c; String obj; String str = jiO.e; str.hashCode(); int hashCode = str.hashCode(); if (hashCode == 77) { if (str.equals("M")) { c = 0; } c = 65535; } else if (hashCode != 79) { if (hashCode == 87 && str.equals("W")) { c = 2; } c = 65535; } else { if (str.equals("O")) { c = 1; } c = 65535; } if (c != 0) { if (c != 1) { return c != 2 ? "" : e(b.get(Integer.valueOf(Integer.parseInt(jiO.b))).intValue()); } return cXG.VK_(this.e, jiO.a); } if (jiO.d == null || jiO.d.isEmpty()) { return ""; } String e = e(C15715hv.tOB.purchase_schedule_monthly); Object[] objArr = new Object[2]; String str2 = jiO.c; if ("en".equalsIgnoreCase(c())) { StringBuilder sb = new StringBuilder(); sb.append(str2); sb.append(C6583cXR.a(Integer.parseInt(str2))); str2 = sb.toString(); } objArr[0] = str2; int size = jiO.d.size(); if (((Boolean) C6583cXR.c(new Object[]{Integer.valueOf(size)}, 1275317401, -1275317383, size)).booleanValue()) { obj = e(C15715hv.tOB.purchase_schedule_all_months); } else { List list = jiO.d; StringBuilder sb2 = new StringBuilder(e(C15715hv.tOB.purchase_schedule_months_of)); for (String str3 : list) { sb2.append(" "); sb2.append(e(d.get(Integer.valueOf(Integer.parseInt(str3))).intValue())); if ("en".equalsIgnoreCase(c()) && list.indexOf(str3) != list.size() - 1) { sb2.append(","); } } obj = sb2.toString(); } objArr[1] = obj; return String.format(e, objArr); } }