package p000.p001.p002.p008.p009.p010;

import android.os.Bundle;
import android.os.Parcelable;
import ar.tvplayer.core.data.prefs.ރ;
import ar.tvplayer.core.util.CommonUtilsKt;
import java.util.List;
import kotlin.TypeCastException;
import p000.p001.p002.p008.C0911;
import p000.p001.p002.p008.C0915;
import p000.p001.p002.p008.p009.AbstractC0736;
import p037.p041.p043.p044.C1527;
import p037.p089.p090.AbstractC2014;
import p037.p089.p090.ActivityC1999;
import p037.p091.p095.C2136;
import p037.p091.p095.C2138;
import p138.p139.p143.p144.C2803;
import p402.p411.p413.C6635;
import p402.p420.C6703;

/* JADX INFO: renamed from: ނ.֏.֏.ހ.֏.ހ.ކ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C0772 extends AbstractC0736 {
    @Override // p000.p001.p002.p008.p009.AbstractC0736, p037.p091.p092.C2084, androidx.fragment.app.Fragment
    public /* synthetic */ void onDestroyView() {
        super.onDestroyView();
    }

    @Override // p037.p091.p092.C2084
    /* JADX INFO: renamed from: ֏ */
    public C2136.C2137 mo2061(Bundle bundle) {
        return new C2136.C2137(getString(C0915.file_picker_lan_smb), "", "", C1527.m3025(requireContext(), C0911.ic_lan_connect_white));
    }

    @Override // p037.p091.p092.C2084
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo2074(List<C2138> list, Bundle bundle) {
        if (list == null) {
            C6635.m9824("actions");
            throw null;
        }
        C2138.C2139 c2139 = new C2138.C2139(getContext());
        c2139.f6984 = 100L;
        c2139.f6985 = getString(C0915.server_address) + " (" + getString(C0915.required) + ')';
        c2139.f6986 = ރ.ߠ.ʺ();
        c2139.m4188(true);
        C2138 c2138M4183 = c2139.m4183();
        C6635.m9823((Object) c2138M4183, "GuidedAction.Builder(con…\n                .build()");
        list.add(c2138M4183);
        C2138.C2139 c21392 = new C2138.C2139(getContext());
        c21392.f6984 = 101L;
        c21392.m4187(C0915.server_name);
        c21392.f6986 = ރ.ߠ.ʰ();
        c21392.m4188(true);
        C2138 c2138M41832 = c21392.m4183();
        C6635.m9823((Object) c2138M41832, "GuidedAction.Builder(con…\n                .build()");
        list.add(c2138M41832);
        C2138.C2139 c21393 = new C2138.C2139(getContext());
        c21393.f6984 = 102L;
        c21393.m4187(C0915.username);
        c21393.f6986 = ރ.ߠ.ʶ();
        c21393.m4188(true);
        C2138 c2138M41833 = c21393.m4183();
        C6635.m9823((Object) c2138M41833, "GuidedAction.Builder(con…\n                .build()");
        list.add(c2138M41833);
        C2138.C2139 c21394 = new C2138.C2139(getContext());
        c21394.f6984 = 103L;
        c21394.m4187(C0915.password);
        c21394.f6986 = ރ.ߠ.ʲ();
        c21394.m4188(true);
        c21394.f6993 = 144;
        C2803.m4894(c21394, "GuidedAction.Builder(con…\n                .build()", list);
    }

    @Override // p037.p091.p092.C2084
    /* JADX INFO: renamed from: ؠ */
    public void mo2065(List<C2138> list, Bundle bundle) {
        if (list == null) {
            C6635.m9824("actions");
            throw null;
        }
        C2138.C2139 c2139 = new C2138.C2139(getContext());
        c2139.f6984 = 0L;
        c2139.m4187(C0915.ok);
        C2138 c2138M4183 = c2139.m4183();
        C6635.m9823((Object) c2138M4183, "GuidedAction.Builder(con…\n                .build()");
        list.add(c2138M4183);
        C2138.C2139 c21392 = new C2138.C2139(getContext());
        c21392.f6984 = 104L;
        c21392.m4187(C0915.delete);
        C2138 c2138M41832 = c21392.m4183();
        C6635.m9823((Object) c2138M41832, "GuidedAction.Builder(con…\n                .build()");
        list.add(c2138M41832);
        C2138.C2139 c21393 = new C2138.C2139(getContext());
        c21393.f6984 = 1L;
        c21393.m4187(C0915.cancel);
        C2803.m4894(c21393, "GuidedAction.Builder(con…\n                .build()", list);
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0736, p037.p091.p092.C2084
    /* JADX INFO: renamed from: ؠ */
    public void mo2033(C2138 c2138) {
        if (c2138 == null) {
            C6635.m9824("action");
            throw null;
        }
        long j = c2138.f6867;
        if (j == 0) {
            ރ r1 = ރ.ߠ;
            C2138 c2138M4056 = m4056(100L);
            C6635.m9823((Object) c2138M4056, "findActionById(ACTION_ID_SERVER_ADDRESS)");
            String string = c2138M4056.f6870.toString();
            if (string == null) {
                throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
            }
            String string2 = C6703.m9900(string).toString();
            if (r1 == null) {
                throw null;
            }
            if (string2 == null) {
                C6635.m9824("value");
                throw null;
            }
            ރ r4 = ރ.ߠ;
            if (r4 == null) {
                throw null;
            }
            ރ.Ȉ.m9836(r4, ރ.ށ[203], string2);
            ރ r2 = ރ.ߠ;
            C2138 c2138M40562 = m4056(101L);
            C6635.m9823((Object) c2138M40562, "findActionById(ACTION_ID_SERVER_NAME)");
            String string3 = c2138M40562.f6870.toString();
            if (string3 == null) {
                throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
            }
            String string4 = C6703.m9900(string3).toString();
            if (r2 == null) {
                throw null;
            }
            if (string4 == null) {
                C6635.m9824("value");
                throw null;
            }
            ރ r22 = ރ.ߠ;
            if (r22 == null) {
                throw null;
            }
            ރ.Ї.m9836(r22, ރ.ށ[204], string4);
            ރ r23 = ރ.ߠ;
            C2138 c2138M40563 = m4056(102L);
            C6635.m9823((Object) c2138M40563, "findActionById(ACTION_ID_USERNAME)");
            String string5 = c2138M40563.f6870.toString();
            if (string5 == null) {
                throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
            }
            String string6 = C6703.m9900(string5).toString();
            if (r23 == null) {
                throw null;
            }
            if (string6 == null) {
                C6635.m9824("value");
                throw null;
            }
            ރ r24 = ރ.ߠ;
            if (r24 == null) {
                throw null;
            }
            ރ.Ĭ.m9836(r24, ރ.ށ[205], string6);
            ރ r25 = ރ.ߠ;
            C2138 c2138M40564 = m4056(103L);
            C6635.m9823((Object) c2138M40564, "findActionById(ACTION_ID_PASSWORD)");
            String string7 = c2138M40564.f6870.toString();
            if (string7 == null) {
                throw new TypeCastException("null cannot be cast to non-null type kotlin.CharSequence");
            }
            String string8 = C6703.m9900(string7).toString();
            if (r25 == null) {
                throw null;
            }
            if (string8 == null) {
                C6635.m9824("value");
                throw null;
            }
            ރ r12 = ރ.ߠ;
            if (r12 == null) {
                throw null;
            }
            ރ.Ϊ.m9836(r12, ރ.ށ[206], string8);
            ActivityC1999 activity = getActivity();
            if (activity != null) {
                activity.setResult(-1);
            }
        } else if (j == 104) {
            AbstractC2014 childFragmentManager = getChildFragmentManager();
            C6635.m9823((Object) childFragmentManager, "childFragmentManager");
            CommonUtilsKt.֏(childFragmentManager, C0763.class, (Parcelable) null);
        }
        super.mo2033(c2138);
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0736, p037.p091.p092.C2084
    /* JADX INFO: renamed from: ހ */
    public long mo2034(C2138 c2138) {
        if (c2138 != null) {
            return -3L;
        }
        C6635.m9824("action");
        throw null;
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0736
    /* JADX INFO: renamed from: ދ */
    public void mo2037() {
    }

    @Override // p000.p001.p002.p008.p009.AbstractC0736
    /* JADX INFO: renamed from: ގ */
    public Long mo2040() {
        return 100L;
    }
}
