package com.ustadmobile.port.android.view;

import java.lang.System;

@kotlin.Metadata(mv = {1, 6, 0}, k = 1, d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\b\u0016\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u00022\u00020\u00032\u00020\u0004:\u0003789B\u000f\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007B\u0019\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\u0010\b\u001a\u0004\u0018\u00010\t\u00a2\u0006\u0002\u0010\nB!\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\u0010\b\u001a\u0004\u0018\u00010\t\u0012\u0006\u0010\u000b\u001a\u00020\f\u00a2\u0006\u0002\u0010\rJ\b\u0010,\u001a\u00020-H\u0002J0\u0010.\u001a\u00020-2\f\u0010/\u001a\b\u0012\u0002\b\u0003\u0018\u0001002\b\u00101\u001a\u0004\u0018\u0001022\u0006\u00103\u001a\u00020\f2\u0006\u00104\u001a\u00020$H\u0016J\u0012\u00105\u001a\u00020-2\b\u00106\u001a\u0004\u0018\u00010\u0004H\u0016R\"\u0010\u000e\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u000fX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R0\u0010\u0016\u001a\b\u0012\u0004\u0012\u00028\u00000\u00152\f\u0010\u0014\u001a\b\u0012\u0004\u0012\u00028\u00000\u0015@FX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001b\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u001cX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\"\u0010\u001d\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u001eX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u001f\u0010 \"\u0004\b!\u0010\"R\u0010\u0010#\u001a\u0004\u0018\u00010\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R$\u0010%\u001a\u00020$2\u0006\u0010\u0014\u001a\u00020$8F@FX\u0086\u000e\u00a2\u0006\f\u001a\u0004\b&\u0010\'\"\u0004\b(\u0010)R\u0012\u0010*\u001a\u0004\u0018\u00018\u0000X\u0082\u000e\u00a2\u0006\u0004\n\u0002\u0010+\u00a8\u0006:"}, d2 = {"Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView;", "T", "", "Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;", "Landroid/widget/AdapterView$OnItemClickListener;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "attrs", "Landroid/util/AttributeSet;", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "defStyleAttr", "", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "dropDownListAdapter", "Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;", "getDropDownListAdapter", "()Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;", "setDropDownListAdapter", "(Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;)V", "value", "", "dropDownOptions", "getDropDownOptions", "()Ljava/util/List;", "setDropDownOptions", "(Ljava/util/List;)V", "mListBaseAdapter", "Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$ListBaseAdapter;", "onDropDownListItemSelectedListener", "Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$OnDropDownListItemSelectedListener;", "getOnDropDownListItemSelectedListener", "()Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$OnDropDownListItemSelectedListener;", "setOnDropDownListItemSelectedListener", "(Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$OnDropDownListItemSelectedListener;)V", "realItemSelectedListener", "", "selectedDropDownOptionId", "getSelectedDropDownOptionId", "()J", "setSelectedDropDownOptionId", "(J)V", "selectedItem", "Ljava/lang/Object;", "init", "", "onItemClick", "parent", "Landroid/widget/AdapterView;", "view", "Landroid/view/View;", "position", "id", "setOnItemClickListener", "listener", "DropDownListAutoCompleteAdapter", "ListBaseAdapter", "OnDropDownListItemSelectedListener", "app-android_debug"})
public class DropDownListAutoCompleteTextView<T extends java.lang.Object> extends androidx.appcompat.widget.AppCompatAutoCompleteTextView implements android.widget.AdapterView.OnItemClickListener {
    @org.jetbrains.annotations.Nullable()
    private com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> dropDownListAdapter;
    private android.widget.AdapterView.OnItemClickListener realItemSelectedListener;
    @org.jetbrains.annotations.Nullable()
    private com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.OnDropDownListItemSelectedListener<T> onDropDownListItemSelectedListener;
    private com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.ListBaseAdapter<T> mListBaseAdapter;
    private T selectedItem;
    @org.jetbrains.annotations.NotNull()
    private java.util.List<? extends T> dropDownOptions;
    
    @org.jetbrains.annotations.Nullable()
    public final com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> getDropDownListAdapter() {
        return null;
    }
    
    public final void setDropDownListAdapter(@org.jetbrains.annotations.Nullable()
    com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> p0) {
    }
    
    @org.jetbrains.annotations.Nullable()
    public final com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.OnDropDownListItemSelectedListener<T> getOnDropDownListItemSelectedListener() {
        return null;
    }
    
    public final void setOnDropDownListItemSelectedListener(@org.jetbrains.annotations.Nullable()
    com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.OnDropDownListItemSelectedListener<T> p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final java.util.List<T> getDropDownOptions() {
        return null;
    }
    
    public final void setDropDownOptions(@org.jetbrains.annotations.NotNull()
    java.util.List<? extends T> value) {
    }
    
    public final long getSelectedDropDownOptionId() {
        return 0L;
    }
    
    public final void setSelectedDropDownOptionId(long value) {
    }
    
    public DropDownListAutoCompleteTextView(@org.jetbrains.annotations.NotNull()
    android.content.Context context) {
        super(null);
    }
    
    public DropDownListAutoCompleteTextView(@org.jetbrains.annotations.NotNull()
    android.content.Context context, @org.jetbrains.annotations.Nullable()
    android.util.AttributeSet attrs) {
        super(null);
    }
    
    public DropDownListAutoCompleteTextView(@org.jetbrains.annotations.NotNull()
    android.content.Context context, @org.jetbrains.annotations.Nullable()
    android.util.AttributeSet attrs, int defStyleAttr) {
        super(null);
    }
    
    private final void init() {
    }
    
    @java.lang.Override()
    public void setOnItemClickListener(@org.jetbrains.annotations.Nullable()
    android.widget.AdapterView.OnItemClickListener listener) {
    }
    
    @java.lang.Override()
    public void onItemClick(@org.jetbrains.annotations.Nullable()
    android.widget.AdapterView<?> parent, @org.jetbrains.annotations.Nullable()
    android.view.View view, int position, long id) {
    }
    
    @kotlin.Metadata(mv = {1, 6, 0}, k = 1, d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\bf\u0018\u0000*\u0004\b\u0001\u0010\u00012\u00020\u0002J#\u0010\u0003\u001a\u00020\u00042\f\u0010\u0005\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00062\u0006\u0010\u0007\u001a\u00028\u0001H&\u00a2\u0006\u0002\u0010\bJ\u0016\u0010\t\u001a\u00020\u00042\f\u0010\u0005\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0006H&\u00a8\u0006\n"}, d2 = {"Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$OnDropDownListItemSelectedListener;", "T", "", "onDropDownItemSelected", "", "view", "Landroid/widget/AdapterView;", "selectedOption", "(Landroid/widget/AdapterView;Ljava/lang/Object;)V", "onNoMessageIdOptionSelected", "app-android_debug"})
    public static abstract interface OnDropDownListItemSelectedListener<T extends java.lang.Object> {
        
        public abstract void onDropDownItemSelected(@org.jetbrains.annotations.Nullable()
        android.widget.AdapterView<?> view, T selectedOption);
        
        public abstract void onNoMessageIdOptionSelected(@org.jetbrains.annotations.Nullable()
        android.widget.AdapterView<?> view);
    }
    
    @kotlin.Metadata(mv = {1, 6, 0}, k = 1, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\bf\u0018\u0000*\b\b\u0001\u0010\u0001*\u00020\u00022\u00020\u0002J\u0015\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00028\u0001H&\u00a2\u0006\u0002\u0010\u0006J\u0015\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00028\u0001H&\u00a2\u0006\u0002\u0010\t\u00a8\u0006\n"}, d2 = {"Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;", "T", "", "getId", "", "item", "(Ljava/lang/Object;)J", "getText", "", "(Ljava/lang/Object;)Ljava/lang/String;", "app-android_debug"})
    public static abstract interface DropDownListAutoCompleteAdapter<T extends java.lang.Object> {
        
        public abstract long getId(@org.jetbrains.annotations.NotNull()
        T item);
        
        @org.jetbrains.annotations.NotNull()
        public abstract java.lang.String getText(@org.jetbrains.annotations.NotNull()
        T item);
    }
    
    @kotlin.Metadata(mv = {1, 6, 0}, k = 1, d1 = {"\u0000N\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u001a\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0002\b\u0004\u0018\u0000*\b\b\u0001\u0010\u0001*\u00020\u00022\u00020\u00032\u00020\u0004B3\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00010\b\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u000e\u0010\u000b\u001a\n\u0012\u0004\u0012\u00028\u0001\u0018\u00010\f\u00a2\u0006\u0002\u0010\rJ\b\u0010(\u001a\u00020\nH\u0016J$\u0010)\u001a\u00020*2\u0006\u0010+\u001a\u00020\n2\b\u0010,\u001a\u0004\u0018\u00010*2\b\u0010-\u001a\u0004\u0018\u00010.H\u0016J\b\u0010/\u001a\u00020\u000fH\u0016J\u0010\u00100\u001a\u00020\u00022\u0006\u0010+\u001a\u00020\nH\u0016J\u0010\u00101\u001a\u0002022\u0006\u0010+\u001a\u00020\nH\u0016J\u0013\u00103\u001a\u00028\u00012\u0006\u0010+\u001a\u00020\n\u00a2\u0006\u0002\u00104J$\u00105\u001a\u00020*2\u0006\u0010+\u001a\u00020\n2\b\u0010,\u001a\u0004\u0018\u00010*2\b\u0010-\u001a\u0004\u0018\u00010.H\u0016R\u0011\u0010\u000e\u001a\u00020\u000f\u00a2\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u001a\u0010\u0005\u001a\u00020\u0006X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001a\u0010\u0016\u001a\u00020\nX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR\u0016\u0010\u001b\u001a\n\u0012\u0004\u0012\u00028\u0001\u0018\u00010\bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\"\u0010\u000b\u001a\n\u0012\u0004\u0012\u00028\u0001\u0018\u00010\fX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u001c\u0010\u001d\"\u0004\b\u001e\u0010\u001fR\u001a\u0010\t\u001a\u00020\nX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b \u0010\u0018\"\u0004\b!\u0010\u001aR \u0010\"\u001a\b\u0012\u0004\u0012\u00028\u00010\bX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b#\u0010$\"\u0004\b%\u0010&R\u0014\u0010\'\u001a\b\u0012\u0004\u0012\u00028\u00010\bX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u00066"}, d2 = {"Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$ListBaseAdapter;", "T", "", "Landroid/widget/BaseAdapter;", "Landroid/widget/Filterable;", "context", "Landroid/content/Context;", "itemList", "", "layoutResId", "", "itemAdapter", "Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;", "(Landroid/content/Context;Ljava/util/List;ILcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;)V", "baseFilter", "Landroid/widget/Filter;", "getBaseFilter", "()Landroid/widget/Filter;", "getContext", "()Landroid/content/Context;", "setContext", "(Landroid/content/Context;)V", "dropDownLayoutResourceId", "getDropDownLayoutResourceId", "()I", "setDropDownLayoutResourceId", "(I)V", "filteredData", "getItemAdapter", "()Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;", "setItemAdapter", "(Lcom/ustadmobile/port/android/view/DropDownListAutoCompleteTextView$DropDownListAutoCompleteAdapter;)V", "getLayoutResId", "setLayoutResId", "mCurrentList", "getMCurrentList", "()Ljava/util/List;", "setMCurrentList", "(Ljava/util/List;)V", "originalList", "getCount", "getDropDownView", "Landroid/view/View;", "position", "convertView", "parent", "Landroid/view/ViewGroup;", "getFilter", "getItem", "getItemId", "", "getItemTyped", "(I)Ljava/lang/Object;", "getView", "app-android_debug"})
    public static final class ListBaseAdapter<T extends java.lang.Object> extends android.widget.BaseAdapter implements android.widget.Filterable {
        @org.jetbrains.annotations.NotNull()
        private android.content.Context context;
        private int layoutResId;
        @org.jetbrains.annotations.Nullable()
        private com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> itemAdapter;
        private final java.util.List<T> originalList = null;
        @org.jetbrains.annotations.NotNull()
        private java.util.List<? extends T> mCurrentList;
        private java.util.List<? extends T> filteredData;
        @org.jetbrains.annotations.NotNull()
        private final android.widget.Filter baseFilter = null;
        private int dropDownLayoutResourceId = 0;
        
        public ListBaseAdapter(@org.jetbrains.annotations.NotNull()
        android.content.Context context, @org.jetbrains.annotations.NotNull()
        java.util.List<? extends T> itemList, int layoutResId, @org.jetbrains.annotations.Nullable()
        com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> itemAdapter) {
            super();
        }
        
        @org.jetbrains.annotations.NotNull()
        public final android.content.Context getContext() {
            return null;
        }
        
        public final void setContext(@org.jetbrains.annotations.NotNull()
        android.content.Context p0) {
        }
        
        public final int getLayoutResId() {
            return 0;
        }
        
        public final void setLayoutResId(int p0) {
        }
        
        @org.jetbrains.annotations.Nullable()
        public final com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> getItemAdapter() {
            return null;
        }
        
        public final void setItemAdapter(@org.jetbrains.annotations.Nullable()
        com.ustadmobile.port.android.view.DropDownListAutoCompleteTextView.DropDownListAutoCompleteAdapter<T> p0) {
        }
        
        @org.jetbrains.annotations.NotNull()
        public final java.util.List<T> getMCurrentList() {
            return null;
        }
        
        public final void setMCurrentList(@org.jetbrains.annotations.NotNull()
        java.util.List<? extends T> p0) {
        }
        
        @org.jetbrains.annotations.NotNull()
        public final android.widget.Filter getBaseFilter() {
            return null;
        }
        
        public final int getDropDownLayoutResourceId() {
            return 0;
        }
        
        public final void setDropDownLayoutResourceId(int p0) {
        }
        
        @org.jetbrains.annotations.NotNull()
        @java.lang.Override()
        public android.view.View getView(int position, @org.jetbrains.annotations.Nullable()
        android.view.View convertView, @org.jetbrains.annotations.Nullable()
        android.view.ViewGroup parent) {
            return null;
        }
        
        @org.jetbrains.annotations.NotNull()
        @java.lang.Override()
        public android.view.View getDropDownView(int position, @org.jetbrains.annotations.Nullable()
        android.view.View convertView, @org.jetbrains.annotations.Nullable()
        android.view.ViewGroup parent) {
            return null;
        }
        
        @org.jetbrains.annotations.NotNull()
        @java.lang.Override()
        public java.lang.Object getItem(int position) {
            return null;
        }
        
        @org.jetbrains.annotations.NotNull()
        public final T getItemTyped(int position) {
            return null;
        }
        
        @java.lang.Override()
        public long getItemId(int position) {
            return 0L;
        }
        
        @java.lang.Override()
        public int getCount() {
            return 0;
        }
        
        @org.jetbrains.annotations.NotNull()
        @java.lang.Override()
        public android.widget.Filter getFilter() {
            return null;
        }
    }
}