package com.discord.widgets.chat.input; import androidx.annotation.MainThread; import d0.g; import java.util.HashMap; import kotlin.Lazy; import kotlin.jvm.internal.DefaultConstructorMarker; /* compiled from: MessageDraftsRepo.kt */ public final class MessageDraftsRepo { private final HashMap textChannelInput; /* compiled from: MessageDraftsRepo.kt */ public static final class Provider { public static final Provider INSTANCE = new Provider(); private static final Lazy MESSAGE_DRAFTS_REPO_INSTANCE$delegate = g.lazy(MessageDraftsRepo$Provider$MESSAGE_DRAFTS_REPO_INSTANCE$2.INSTANCE); private Provider() { } private final MessageDraftsRepo getMESSAGE_DRAFTS_REPO_INSTANCE() { return (MessageDraftsRepo) MESSAGE_DRAFTS_REPO_INSTANCE$delegate.getValue(); } public final MessageDraftsRepo get() { return getMESSAGE_DRAFTS_REPO_INSTANCE(); } } private MessageDraftsRepo() { this.textChannelInput = new HashMap<>(); } public /* synthetic */ MessageDraftsRepo(DefaultConstructorMarker defaultConstructorMarker) { this(); } @MainThread public final CharSequence getTextChannelInput(long j) { return this.textChannelInput.get(Long.valueOf(j)); } @MainThread public final void setTextChannelInput(long j, CharSequence charSequence) { if (charSequence != null) { if (!(charSequence.length() == 0)) { this.textChannelInput.put(Long.valueOf(j), charSequence); return; } } this.textChannelInput.remove(Long.valueOf(j)); } }