package w8;

import android.content.Context;
import ca.canadapost.core.data.model.ResultWrapper;
import ca.canadapost.core.data.model.ValidationError;
import u8.g;
import w8.o;

/* loaded from: classes.dex */
public final class g implements o {
    @Override // w8.o
    public String a(Context context) {
        return o.a.h(this, context);
    }

    public void b(l8.c cVar, androidx.fragment.app.f fVar) {
        o.a.a(this, cVar, fVar);
    }

    @Override // w8.o
    public String d(Context context) {
        return o.a.g(this, context);
    }

    @Override // w8.o
    public void e(ResultWrapper.Error error, Context context) {
        o.a.i(this, error, context);
    }

    @Override // w8.o
    public void g(androidx.fragment.app.f fragment, ResultWrapper.Error error) {
        kotlin.jvm.internal.t.g(fragment, "fragment");
        kotlin.jvm.internal.t.g(error, "error");
        Context requireContext = fragment.requireContext();
        kotlin.jvm.internal.t.f(requireContext, "requireContext(...)");
        g.a aVar = u8.g.f36993k;
        androidx.fragment.app.k requireActivity = fragment.requireActivity();
        kotlin.jvm.internal.t.f(requireActivity, "requireActivity(...)");
        String d10 = d(requireActivity);
        androidx.fragment.app.k requireActivity2 = fragment.requireActivity();
        kotlin.jvm.internal.t.f(requireActivity2, "requireActivity(...)");
        aVar.d(requireContext, d10, a(requireActivity2)).x(requireContext);
    }

    @Override // w8.o
    public String h(Context context) {
        return o.a.f(this, context);
    }

    @Override // w8.o
    public String i(ValidationError validationError, Context context) {
        return o.a.d(this, validationError, context);
    }

    @Override // w8.o
    public String j(String str, Context context) {
        return o.a.e(this, str, context);
    }

    @Override // w8.o
    public void k(ValidationError validationError, Context context) {
        o.a.m(this, validationError, context);
    }

    @Override // w8.o
    public void l(androidx.fragment.app.f fVar, ResultWrapper.Error error) {
        o.a.j(this, fVar, error);
    }

    @Override // w8.o
    public String m(ValidationError validationError, Context context) {
        return o.a.b(this, validationError, context);
    }

    @Override // w8.o
    public String n(String str, String str2, Context context) {
        return o.a.c(this, str, str2, context);
    }

    @Override // w8.o
    public void o(Context context) {
        o.a.k(this, context);
    }
}
