package w8;

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

/* loaded from: classes.dex */
public final class k implements o {

    /* renamed from: p, reason: collision with root package name */
    private final Integer f40982p;

    /* renamed from: q, reason: collision with root package name */
    private final Integer f40983q;

    /* renamed from: r, reason: collision with root package name */
    private final Integer f40984r;

    public k(Integer num, Integer num2, Integer num3) {
        this.f40982p = num;
        this.f40983q = num2;
        this.f40984r = num3;
    }

    @Override // w8.o
    public String a(Context context) {
        kotlin.jvm.internal.t.g(context, "context");
        Integer num = this.f40982p;
        String string = num != null ? context.getString(num.intValue()) : null;
        return string == null ? o.a.h(this, context) : string;
    }

    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) {
        kotlin.jvm.internal.t.g(context, "context");
        Integer num = this.f40983q;
        String string = num != null ? context.getString(num.intValue()) : null;
        return string == null ? o.a.g(this, context) : string;
    }

    @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 fVar, ResultWrapper.Error error) {
        o.a.l(this, fVar, error);
    }

    @Override // w8.o
    public String h(Context context) {
        kotlin.jvm.internal.t.g(context, "context");
        Integer num = this.f40984r;
        String string = num != null ? context.getString(num.intValue()) : null;
        return string == null ? o.a.f(this, context) : string;
    }

    @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);
    }

    public /* synthetic */ k(Integer num, Integer num2, Integer num3, int i10, kotlin.jvm.internal.k kVar) {
        this((i10 & 1) != 0 ? null : num, (i10 & 2) != 0 ? null : num2, (i10 & 4) != 0 ? null : num3);
    }
}
