package com.cvte.dss.ups.camera.model;

import android.util.Base64;
import java.nio.charset.Charset;
import java.util.Objects;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.o;
import kotlin.text.Charsets;
import kotlin.text.j;

/* JADX INFO: loaded from: classes.dex */
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0002\u0010\u000e\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"", "invoke", "()Ljava/lang/String;", "<anonymous>"}, k = 3, mv = {1, 4, 0})
public final class CameraUpgradeInfo$id$2 extends Lambda implements Function0<String> {
    public final /* synthetic */ CameraUpgradeInfo this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public CameraUpgradeInfo$id$2(CameraUpgradeInfo cameraUpgradeInfo) {
        super(0);
        this.this$0 = cameraUpgradeInfo;
    }

    @Override // kotlin.jvm.functions.Function0
    public final String invoke() {
        String str = this.this$0.getPid() + ';' + this.this$0.getVid();
        Charset charset = Charsets.f9181b;
        Objects.requireNonNull(str, "null cannot be cast to non-null type java.lang.String");
        byte[] bytes = str.getBytes(charset);
        o.e(bytes, "(this as java.lang.String).getBytes(charset)");
        byte[] bArrEncode = Base64.encode(bytes, 0);
        o.b(bArrEncode, "Base64.encode(\"${pid};${…eArray(), Base64.DEFAULT)");
        return j.Y(new String(bArrEncode, charset)).toString();
    }
}
