86.6 - Beta (86106)

This commit is contained in:
Juby210 2021-08-03 09:33:18 +02:00
parent 630bcebe98
commit c6c1251f96
24565 changed files with 1600868 additions and 31410 deletions

View File

@ -10,8 +10,8 @@ android {
applicationId 'com.discord'
minSdkVersion 21
targetSdkVersion 29
versionCode 85112
versionName "85.12 - Beta"
versionCode 86106
versionName "86.6 - Beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -0,0 +1,272 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="86106" android:versionName="86.6 - Beta" android:installLocation="auto" android:compileSdkVersion="30" android:compileSdkVersionCodename="11" package="com.discord" platformBuildVersionCode="30" platformBuildVersionName="11">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="29"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.faketouch" android:required="false"/>
<uses-feature android:name="android.hardware.microphone" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BROADCAST_STICKY"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<permission android:label="@string/app_permission_connect_label" android:name="com.discord.permission.CONNECT" android:protectionLevel="dangerous" android:description="@string/app_permission_connect_desc"/>
<uses-feature android:name="android.hardware.camera.any" android:required="false"/>
<queries>
<package android:name="com.samsung.android.game.gametools"/>
<package android:name="com.samsung.android.game.gamehome"/>
<intent>
<action android:name="android.support.customtabs.action.CustomTabsService"/>
</intent>
</queries>
<uses-feature android:name="android.hardware.camera.front" android:required="false"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application android:theme="@style/res_2131951648_apptheme_dark" android:label="@string/discord" android:icon="@mipmap/ic_logo_square_beta" android:name="com.discord.app.App" android:allowBackup="false" android:largeHeap="true" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_logo_round_beta" android:appCategory="social" android:appComponentFactory="androidx.core.app.CoreComponentFactory">
<activity android:theme="@style/res_2131951669_apptheme_translucent" android:name="com.discord.samsung.SamsungConnectActivity"/>
<activity android:theme="@style/res_2131951648_apptheme_dark" android:name="com.discord.app.AppActivity" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize"/>
<activity android:theme="@style/res_2131951659_apptheme_loading" android:name="com.discord.app.AppActivity$Main" android:exported="true" android:launchMode="singleTask" android:screenOrientation="fullUser" android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/feature/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/feature/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/query/.*"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/query/.*"/>
<data android:scheme="http" android:host="discord.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/app"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/gifts/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/invite/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/template/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/channels/.*"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/users/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/discovery"/>
<data android:scheme="https" android:host="*.discordapp.com" android:pathPattern="/discovery"/>
<data android:scheme="http" android:host="discordapp.com" android:pathPattern="/ra/.*"/>
<data android:scheme="https" android:host="discordapp.com" android:pathPattern="/ra/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="discord" android:host="app" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.gift" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.gift" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.gg" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.gg" android:pathPattern="/.*"/>
<data android:scheme="https" android:host="discord.new" android:pathPattern="/.*"/>
<data android:scheme="http" android:host="discord.new" android:pathPattern="/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="discord" android:host="action" android:pathPattern="/oauth2/authorize"/>
<data android:scheme="discord" android:host="action" android:pathPattern="/connect/authorize"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https" android:host="discord.com" android:pathPattern="/connect/authorize"/>
<data android:scheme="https" android:host="*.discord.com" android:pathPattern="/connect/authorize"/>
</intent-filter>
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity>
<activity android:name="com.discord.app.AppActivity$Call" android:excludeFromRecents="true" android:launchMode="singleTask"/>
<activity android:name="com.discord.app.AppActivity$IncomingCall" android:excludeFromRecents="true" android:launchMode="singleTask" android:showOnLockScreen="true" android:showWhenLocked="true" android:turnScreenOn="true"/>
<activity android:theme="@style/res_2131951659_apptheme_loading" android:label="@string/discord" android:name="com.discord.app.AppActivity$AppAction" android:exported="true" android:launchMode="standard" android:windowSoftInputMode="stateHidden|adjustResize">
<intent-filter>
<action android:name="com.discord.intent.action.SDK"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.OPENABLE"/>
<data android:scheme="discord" android:host="sdk" android:pathPattern="/.*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.SEND_MULTIPLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.OPENABLE"/>
<data android:mimeType="*/*"/>
</intent-filter>
<meta-data android:name="android.service.chooser.chooser_target_service" android:value="androidx.sharetarget.ChooserTargetServiceCompat"/>
</activity>
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity" android:exported="true"/>
<service android:name="com.discord.utilities.fcm.NotificationClient$FCMMessagingService" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service android:name="com.discord.app.DiscordConnectService" android:permission="com.discord.permission.CONNECT" android:exported="true">
<intent-filter>
<action android:name="com.discord.intent.action.CONNECT"/>
<data android:scheme="discord" android:host="app" android:pathPattern="/connect/.*"/>
</intent-filter>
</service>
<service android:name="com.discord.utilities.voice.DiscordOverlayService" android:exported="false"/>
<meta-data android:name="com.discord.features.FLAG" android:value="1"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/asset_default_avatar_64dp"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/brand_new_500"/>
<receiver android:name="com.discord.utilities.fcm.NotificationActions" android:exported="false">
<intent-filter>
<action android:name="com.discord.intent.action.ENQUEUE_WORK"/>
<action android:name="com.discord.intent.action.NOTIFICATION_DELETED"/>
<action android:name="com.discord.intent.action.NOTIFICATION_CANCEL"/>
</intent-filter>
</receiver>
<receiver android:name="com.discord.utilities.io.NetworkUtils$NetworkDownloadReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.DOWNLOAD_COMPLETE"/>
</intent-filter>
</receiver>
<service android:name="com.discord.utilities.voice.VoiceEngineForegroundService" android:foregroundServiceType="mediaProjection"/>
<provider android:name="androidx.core.content.FileProvider" android:exported="false" android:authorities="com.discord.file-provider" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"/>
</provider>
<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="true"/>
<meta-data android:name="com.google.android.nearby.messages.API_KEY" android:value="AIzaSyD-4L6bgKMixqBRtrG2UktVXK6IexXlsog"/>
<meta-data android:name="com.google.android.actions" android:resource="@xml/actions"/>
<meta-data android:name="libdiscord_version" android:value="89.0.7-texture-crop-scale"/>
<activity android:theme="@style/res_2131952264_theme_appcompat_light_noactionbar" android:name="com.yalantis.ucrop.UCropActivity"/>
<service android:name="androidx.sharetarget.ChooserTargetServiceCompat" android:permission="android.permission.BIND_CHOOSER_TARGET_SERVICE">
<intent-filter>
<action android:name="android.service.chooser.ChooserTargetService"/>
</intent-filter>
</service>
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.analytics.AnalyticsJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity" android:exported="false" android:excludeFromRecents="true"/>
<service android:name="com.google.android.gms.auth.api.signin.RevocationBoundService" android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" android:exported="true" android:visibleToInstantApps="true"/>
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:exported="false" android:directBootAware="true">
<meta-data android:name="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.ktx.FirebaseMessagingKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.iid.Registrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.ndk.CrashlyticsNdkRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.crashlytics.CrashlyticsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.ktx.FirebaseCommonKtxRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
<meta-data android:name="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
<service android:name="com.google.firebase.messaging.FirebaseMessagingService" android:exported="false" android:directBootAware="true">
<intent-filter android:priority="-500">
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<receiver android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver" android:permission="com.google.android.c2dm.permission.SEND" android:exported="true">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE"/>
</intent-filter>
</receiver>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false"/>
<receiver android:name="com.google.android.gms.measurement.AppMeasurementReceiver" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.measurement.AppMeasurementService" android:enabled="true" android:exported="false"/>
<service android:name="com.google.android.gms.measurement.AppMeasurementJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="true" android:exported="false"/>
<provider android:name="com.google.firebase.provider.FirebaseInitProvider" android:exported="false" android:authorities="com.discord.firebaseinitprovider" android:initOrder="100" android:directBootAware="true"/>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
<provider android:name="androidx.work.impl.WorkManagerInitializer" android:exported="false" android:multiprocess="true" android:authorities="com.discord.workmanager-init" android:directBootAware="false"/>
<service android:name="androidx.work.impl.background.systemalarm.SystemAlarmService" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:directBootAware="false"/>
<service android:name="androidx.work.impl.background.systemjob.SystemJobService" android:permission="android.permission.BIND_JOB_SERVICE" android:enabled="@bool/enable_system_job_service_default" android:exported="true" android:directBootAware="false"/>
<service android:name="androidx.work.impl.foreground.SystemForegroundService" android:enabled="@bool/enable_system_foreground_service_default" android:exported="false" android:directBootAware="false"/>
<receiver android:name="androidx.work.impl.utils.ForceStopRunnable$BroadcastReceiver" android:enabled="true" android:exported="false" android:directBootAware="false"/>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryChargingProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$BatteryNotLowProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BATTERY_OKAY"/>
<action android:name="android.intent.action.BATTERY_LOW"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$StorageNotLowProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.DEVICE_STORAGE_LOW"/>
<action android:name="android.intent.action.DEVICE_STORAGE_OK"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxy$NetworkStateProxy" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.RescheduleReceiver" android:enabled="false" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.TIME_SET"/>
<action android:name="android.intent.action.TIMEZONE_CHANGED"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver" android:enabled="@bool/enable_system_alarm_service_default" android:exported="false" android:directBootAware="false">
<intent-filter>
<action android:name="androidx.work.impl.background.systemalarm.UpdateProxies"/>
</intent-filter>
</receiver>
<receiver android:name="androidx.work.impl.diagnostics.DiagnosticsReceiver" android:permission="android.permission.DUMP" android:enabled="true" android:exported="true" android:directBootAware="false">
<intent-filter>
<action android:name="androidx.work.diagnostics.REQUEST_DIAGNOSTICS"/>
</intent-filter>
</receiver>
<service android:name="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery" android:exported="false">
<meta-data android:name="backend:com.google.android.datatransport.cct.CctBackendFactory" android:value="cct"/>
</service>
<service android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService" android:permission="android.permission.BIND_JOB_SERVICE" android:exported="false"/>
<receiver android:name="com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver" android:exported="false"/>
<service android:name="androidx.room.MultiInstanceInvalidationService" android:exported="false" android:directBootAware="true"/>
<meta-data android:name="com.google.android.play.billingclient.version" android:value="3.0.3"/>
<activity android:theme="@android:style/Theme.Translucent.NoTitleBar" android:name="com.android.billingclient.api.ProxyBillingActivity" android:exported="false" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize"/>
<meta-data android:name="com.android.vending.derived.apk.id" android:value="1"/>
</application>
</manifest>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[{"label":"Alberta","value":"AB"},{"label":"British Columbia","value":"BC"},{"label":"Manitoba","value":"MB"},{"label":"New Brunswick","value":"NB"},{"label":"Newfoundland and Labrador","value":"NL"},{"label":"Nova Scotia","value":"NS"},{"label":"Ontario","value":"ON"},{"label":"Prince Edward Island","value":"PE"},{"label":"Quebec","value":"QC"},{"label":"Saskatchewan","value":"SK"},{"label":"Northwest Territories","value":"NT"},{"label":"Nunavut","value":"NU"},{"label":"Yukon","value":"YT"}]

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,255 @@
[
{
"emoji": "angry",
"shortcuts": [
">:(",
">:-(",
">=(",
">=-("
]
},
{
"emoji": "blush",
"shortcuts": [
":\")",
":-\")",
"=\")",
"=-\")"
]
},
{
"emoji": "broken_heart",
"shortcuts": [
"</3",
"<\\3"
]
},
{
"emoji": "confused",
"shortcuts": [
":-\\",
":-/",
"=-\\",
"=-/"
]
},
{
"emoji": "cry",
"shortcuts": [
":'(",
":'-(",
":,(",
":,-(",
"='(",
"='-(",
"=,(",
"=,-("
]
},
{
"emoji": "frowning",
"shortcuts": [
":(",
":-(",
"=(",
"=-("
]
},
{
"emoji": "heart",
"shortcuts": [
"<3",
"♡"
]
},
{
"emoji": "imp",
"shortcuts": [
"]:(",
"]:-(",
"]=(",
"]=-("
]
},
{
"emoji": "innocent",
"shortcuts": [
"o:)",
"O:)",
"o:-)",
"O:-)",
"0:)",
"0:-)",
"o=)",
"O=)",
"o=-)",
"O=-)",
"0=)",
"0=-)"
]
},
{
"emoji": "joy",
"shortcuts": [
":')",
":'-)",
":,)",
":,-)",
":'D",
":'-D",
":,D",
":,-D",
"=')",
"='-)",
"=,)",
"=,-)",
"='D",
"='-D",
"=,D",
"=,-D"
]
},
{
"emoji": "kissing",
"shortcuts": [
":*",
":-*",
"=*",
"=-*"
]
},
{
"emoji": "laughing",
"shortcuts": [
"x-)",
"X-)"
]
},
{
"emoji": "neutral_face",
"shortcuts": [
":|",
":-|",
"=|",
"=-|"
]
},
{
"emoji": "open_mouth",
"shortcuts": [
":o",
":-o",
":O",
":-O",
"=o",
"=-o",
"=O",
"=-O"
]
},
{
"emoji": "rage",
"shortcuts": [
":@",
":-@",
"=@",
"=-@"
]
},
{
"emoji": "smile",
"shortcuts": [
":D",
":-D",
"=D",
"=-D"
]
},
{
"emoji": "slight_smile",
"shortcuts": [
":)",
":-)",
"=)",
"=-)"
]
},
{
"emoji": "smiling_imp",
"shortcuts": [
"]:)",
"]:-)",
"]=)",
"]=-)"
]
},
{
"emoji": "sob",
"shortcuts": [
":,'(",
":,'-(",
";(",
";-(",
"=,'(",
"=,'-("
]
},
{
"emoji": "stuck_out_tongue",
"shortcuts": [
":P",
":-P",
"=P",
"=-P"
]
},
{
"emoji": "sunglasses",
"shortcuts": [
"8-)",
"B-)"
]
},
{
"emoji": "sweat",
"shortcuts": [
",:(",
",:-(",
",=(",
",=-("
]
},
{
"emoji": "sweat_smile",
"shortcuts": [
",:)",
",:-)",
",=)",
",=-)"
]
},
{
"emoji": "unamused",
"shortcuts": [
":s",
":-S",
":z",
":-Z",
":$",
":-$",
"=s",
"=-S",
"=z",
"=-Z",
"=$",
"=-$"
]
},
{
"emoji": "wink",
"shortcuts": [
";)",
";-)"
]
}
]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
[{"label":"Alabama","value":"AL"},{"label":"Alaska","value":"AK"},{"label":"American Samoa","value":"AS"},{"label":"Arizona","value":"AZ"},{"label":"Arkansas","value":"AR"},{"label":"Armed Forces: Americas","value":"AA"},{"label":"Armed Forces: Europe","value":"AE"},{"label":"Armed Forces: Pacific","value":"AP"},{"label":"California","value":"CA"},{"label":"Colorado","value":"CO"},{"label":"Connecticut","value":"CT"},{"label":"Delaware","value":"DE"},{"label":"District Of Columbia","value":"DC"},{"label":"Federated States Of Micronesia","value":"FM"},{"label":"Florida","value":"FL"},{"label":"Georgia","value":"GA"},{"label":"Guam","value":"GU"},{"label":"Hawaii","value":"HI"},{"label":"Idaho","value":"ID"},{"label":"Illinois","value":"IL"},{"label":"Indiana","value":"IN"},{"label":"Iowa","value":"IA"},{"label":"Kansas","value":"KS"},{"label":"Kentucky","value":"KY"},{"label":"Louisiana","value":"LA"},{"label":"Maine","value":"ME"},{"label":"Marshall Islands","value":"MH"},{"label":"Maryland","value":"MD"},{"label":"Massachusetts","value":"MA"},{"label":"Michigan","value":"MI"},{"label":"Minnesota","value":"MN"},{"label":"Mississippi","value":"MS"},{"label":"Missouri","value":"MO"},{"label":"Montana","value":"MT"},{"label":"Nebraska","value":"NE"},{"label":"Nevada","value":"NV"},{"label":"New Hampshire","value":"NH"},{"label":"New Jersey","value":"NJ"},{"label":"New Mexico","value":"NM"},{"label":"New York","value":"NY"},{"label":"North Carolina","value":"NC"},{"label":"North Dakota","value":"ND"},{"label":"Northern Mariana Islands","value":"MP"},{"label":"Ohio","value":"OH"},{"label":"Oklahoma","value":"OK"},{"label":"Oregon","value":"OR"},{"label":"Palau","value":"PW"},{"label":"Pennsylvania","value":"PA"},{"label":"Puerto Rico","value":"PR"},{"label":"Rhode Island","value":"RI"},{"label":"South Carolina","value":"SC"},{"label":"South Dakota","value":"SD"},{"label":"Tennessee","value":"TN"},{"label":"Texas","value":"TX"},{"label":"Utah","value":"UT"},{"label":"Vermont","value":"VT"},{"label":"Virgin Islands","value":"VI"},{"label":"Virginia","value":"VA"},{"label":"Washington","value":"WA"},{"label":"West Virginia","value":"WV"},{"label":"Wisconsin","value":"WI"},{"label":"Wyoming","value":"WY"}]

View File

@ -0,0 +1,162 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<style>
* {
padding: 0;
margin: 0;
}
body {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
#hcaptcha-container {
margin-top: 5px;
display: table-cell;
vertical-align: middle;
}
/* overwrite hCaptcha iframe overlay which adds a #FFF background with opacity 0.05 */
div > div:nth-child(2) {
opacity: 0 !important;
}
</style>
</head>
<body>
<div id="hcaptcha-container"></div>
<script type="text/javascript">
// Android will inject this bridge object as `JSInterface`
// Browser is missing it so we mock it
var BridgeObject = window.JSInterface || {
getConfig: function getConfig() {
return JSON.stringify({
siteKey: '10000000-ffff-ffff-ffff-000000000001',
locale: 'ro',
size: 'compact',
theme: 'dark',
sentry: true,
rqdata: null,
apiEndpoint: 'https://hcaptcha.com/1/api.js',
endpoint: null,
assethost: null,
imghost: null,
reportapi: null
});
},
onPass: function onPass(token) {
return console.log("pass: token ".concat(token));
},
onError: function onError(errCode) {
return console.log("error: code ".concat(errCode));
},
onLoaded: function onLoaded() {
return console.log('cb: challenge or checkbox is visible');
}
};
var bridgeConfig = JSON.parse(BridgeObject.getConfig());
function getRenderConfig() {
return {
sitekey: bridgeConfig.siteKey,
size: bridgeConfig.size,
theme: bridgeConfig.theme,
'callback': function callback(token) {
return BridgeObject.onPass(token);
},
'expired-callback': function expiredCallback() {
return BridgeObject.onError(15);
},
'chalexpired-callback': function chalexpiredCallback() {
return BridgeObject.onError(15);
},
'close-callback': function closeCallback() {
return BridgeObject.onError(30);
},
'error-callback': function errorCallback() {
return BridgeObject.onError(31);
},
'open-callback': function openCallback() {
return BridgeObject.onLoaded();
}
};
}
function onHcaptchaLoaded() {
try {
var renderConfig = getRenderConfig();
var rqdata = bridgeConfig.rqdata;
var hCaptchaID = hcaptcha.render('hcaptcha-container', renderConfig);
if (rqdata) {
hcaptcha.setData(hCaptchaID, {
rqdata: rqdata
});
}
if (renderConfig.size === 'invisible') {
hcaptcha.execute(hCaptchaID);
} else {
BridgeObject.onLoaded();
}
} catch (e) {
console.error(e);
BridgeObject.onError(29);
}
}
function addQueryParamIfDefined(url, queryName, queryValue) {
if (queryValue !== undefined && queryValue !== null) {
var link = url.indexOf('?') !== -1 ? '&' : '?';
return url + link + queryName + '=' + encodeURIComponent(queryValue);
}
return url;
}
function loadApi() {
var siteKey = bridgeConfig.siteKey;
var locale = bridgeConfig.locale;
var sentry = bridgeConfig.sentry;
var apiEndpoint = bridgeConfig.apiEndpoint;
var endpoint = bridgeConfig.endpoint;
var assethost = bridgeConfig.assethost;
var imghost = bridgeConfig.imghost;
var reportapi = bridgeConfig.reportapi;
var host = siteKey + '.android-sdk.hcaptcha.com';
var scriptSrc = apiEndpoint + '?render=explicit&onload=' + onHcaptchaLoaded.name;
scriptSrc = addQueryParamIfDefined(scriptSrc, 'recaptchacompat', 'off');
scriptSrc = addQueryParamIfDefined(scriptSrc, 'hl', locale);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'host', host);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'sentry', sentry);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'endpoint', endpoint);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'assethost', assethost);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'imghost', imghost);
scriptSrc = addQueryParamIfDefined(scriptSrc, 'reportapi', reportapi);
var script = document.createElement('script');
script.async = true;
script.src = scriptSrc;
script.onerror = function () {
// network issue
BridgeObject.onError(7);
};
document.head.appendChild(script);
}
document.body.onclick = function () {
if (window.hcaptcha) {
window.hcaptcha.close();
} else {
BridgeObject.onError(30);
}
};
loadApi();
</script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
https://www.reddit.com/r/discordapp/comments/dlkvza/theres_a_cute_catdog_image_hidden_inside_the/

View File

@ -30,7 +30,7 @@ public class ResultReceiver implements Parcelable {
}
}
public class b extends a.AbstractBinderC0356a {
public class b extends a.AbstractBinderC0357a {
public b() {
}
@ -44,12 +44,12 @@ public class ResultReceiver implements Parcelable {
public ResultReceiver(Parcel parcel) {
x.a.b.c.a aVar;
IBinder readStrongBinder = parcel.readStrongBinder();
int i = a.AbstractBinderC0356a.a;
int i = a.AbstractBinderC0357a.a;
if (readStrongBinder == null) {
aVar = null;
} else {
IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("android.support.v4.os.IResultReceiver");
aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0356a.C0357a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
aVar = (queryLocalInterface == null || !(queryLocalInterface instanceof x.a.b.c.a)) ? new a.AbstractBinderC0357a.C0358a(readStrongBinder) : (x.a.b.c.a) queryLocalInterface;
}
this.i = aVar;
}

View File

@ -48,7 +48,7 @@ public class CustomTabsClient {
}
/* renamed from: androidx.browser.customtabs.CustomTabsClient$2 reason: invalid class name */
public class AnonymousClass2 extends a.AbstractBinderC0345a {
public class AnonymousClass2 extends a.AbstractBinderC0346a {
private Handler mHandler = new Handler(Looper.getMainLooper());
public final /* synthetic */ CustomTabsCallback val$callback;
@ -219,7 +219,7 @@ public class CustomTabsClient {
}
}
private a.AbstractBinderC0345a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) {
private a.AbstractBinderC0346a createCallbackWrapper(@Nullable CustomTabsCallback customTabsCallback) {
return new AnonymousClass2(customTabsCallback);
}
@ -270,7 +270,7 @@ public class CustomTabsClient {
@Nullable
private CustomTabsSession newSessionInternal(@Nullable CustomTabsCallback customTabsCallback, @Nullable PendingIntent pendingIntent) {
boolean z2;
a.AbstractBinderC0345a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
a.AbstractBinderC0346a createCallbackWrapper = createCallbackWrapper(customTabsCallback);
if (pendingIntent != null) {
try {
Bundle bundle = new Bundle();

View File

@ -83,8 +83,8 @@ public class CustomTabsSessionToken {
}
}
public static class MockCallback extends a.AbstractBinderC0345a {
@Override // x.a.a.a.AbstractBinderC0345a, android.os.IInterface
public static class MockCallback extends a.AbstractBinderC0346a {
@Override // x.a.a.a.AbstractBinderC0346a, android.os.IInterface
public IBinder asBinder() {
return this;
}
@ -150,7 +150,7 @@ public class CustomTabsSessionToken {
return null;
}
if (binder != null) {
aVar = a.AbstractBinderC0345a.asInterface(binder);
aVar = a.AbstractBinderC0346a.asInterface(binder);
}
return new CustomTabsSessionToken(aVar, pendingIntent);
}

View File

@ -26,7 +26,7 @@ public abstract class PostMessageServiceConnection implements PostMessageBackend
public PostMessageServiceConnection(@NonNull CustomTabsSessionToken customTabsSessionToken) {
IBinder callbackBinder = customTabsSessionToken.getCallbackBinder();
if (callbackBinder != null) {
this.mSessionBinder = a.AbstractBinderC0345a.asInterface(callbackBinder);
this.mSessionBinder = a.AbstractBinderC0346a.asInterface(callbackBinder);
return;
}
throw new IllegalArgumentException("Provided session must have binder.");

View File

@ -15,7 +15,7 @@ public class TrustedWebActivityCallbackRemote {
@Nullable
public static TrustedWebActivityCallbackRemote fromBinder(@Nullable IBinder iBinder) {
a asInterface = iBinder == null ? null : a.AbstractBinderC0349a.asInterface(iBinder);
a asInterface = iBinder == null ? null : a.AbstractBinderC0350a.asInterface(iBinder);
if (asInterface == null) {
return null;
}

View File

@ -23,7 +23,7 @@ public final class TrustedWebActivityServiceConnection {
private final b mService;
/* renamed from: androidx.browser.trusted.TrustedWebActivityServiceConnection$1 reason: invalid class name */
public class AnonymousClass1 extends a.AbstractBinderC0349a {
public class AnonymousClass1 extends a.AbstractBinderC0350a {
public final /* synthetic */ TrustedWebActivityCallback val$callback;
public AnonymousClass1(TrustedWebActivityCallback trustedWebActivityCallback) {

View File

@ -9,7 +9,7 @@ import android.os.RemoteException;
import x.a.b.a.a;
public abstract class NotificationCompatSideChannelService extends Service {
public class NotificationSideChannelStub extends a.AbstractBinderC0352a {
public class NotificationSideChannelStub extends a.AbstractBinderC0353a {
public NotificationSideChannelStub() {
}

View File

@ -224,7 +224,7 @@ public final class NotificationManagerCompat {
private void handleServiceConnected(ComponentName componentName, IBinder iBinder) {
ListenerRecord listenerRecord = this.mRecordMap.get(componentName);
if (listenerRecord != null) {
listenerRecord.service = a.AbstractBinderC0352a.asInterface(iBinder);
listenerRecord.service = a.AbstractBinderC0353a.asInterface(iBinder);
listenerRecord.retryCount = 0;
processListenerQueue(listenerRecord);
}

View File

@ -14,7 +14,7 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
@Override // d0.d0.a
public boolean contains(T t) {
m.checkParameterIsNotNull(t, "value");
return a.C0192a.contains(this, t);
return a.C0193a.contains(this, t);
}
/* JADX WARNING: Unknown variable types count: 1 */
@ -30,6 +30,6 @@ public final class RangeKt$toClosedRange$1 implements a<T> {
}
public boolean isEmpty() {
return a.C0192a.isEmpty(this);
return a.C0193a.isEmpty(this);
}
}

View File

@ -9,7 +9,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.u;
import c.a.j.u;
import com.discord.app.AppDialog;
import com.discord.dialogs.ImageUploadDialog;
import com.discord.stores.StoreStream;
@ -69,7 +69,7 @@ public final class a extends AppDialog {
((a) this.j).dismiss();
} else if (i == 4) {
KProperty[] kPropertyArr = a.i;
((a) this.j).g().f165c.toggle();
((a) this.j).g().f167c.toggle();
} else {
throw null;
}
@ -110,41 +110,41 @@ public final class a extends AppDialog {
public u invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362522;
ImageView imageView = (ImageView) view2.findViewById(2131362522);
int i2 = 2131362533;
ImageView imageView = (ImageView) view2.findViewById(2131362533);
if (imageView != null) {
i2 = 2131363640;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363640);
i2 = 2131363721;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363721);
if (materialButton != null) {
i2 = 2131363641;
SwitchMaterial switchMaterial = (SwitchMaterial) view2.findViewById(2131363641);
i2 = 2131363722;
SwitchMaterial switchMaterial = (SwitchMaterial) view2.findViewById(2131363722);
if (switchMaterial != null) {
i2 = 2131363642;
RelativeLayout relativeLayout = (RelativeLayout) view2.findViewById(2131363642);
i2 = 2131363723;
RelativeLayout relativeLayout = (RelativeLayout) view2.findViewById(2131363723);
if (relativeLayout != null) {
i2 = 2131363643;
View findViewById = view2.findViewById(2131363643);
i2 = 2131363724;
View findViewById = view2.findViewById(2131363724);
if (findViewById != null) {
i2 = 2131363644;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131363644);
i2 = 2131363725;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131363725);
if (materialButton2 != null) {
i2 = 2131363645;
RelativeLayout relativeLayout2 = (RelativeLayout) view2.findViewById(2131363645);
i2 = 2131363726;
RelativeLayout relativeLayout2 = (RelativeLayout) view2.findViewById(2131363726);
if (relativeLayout2 != null) {
i2 = 2131363646;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(2131363646);
i2 = 2131363727;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(2131363727);
if (materialButton3 != null) {
i2 = 2131363647;
MaterialButton materialButton4 = (MaterialButton) view2.findViewById(2131363647);
i2 = 2131363728;
MaterialButton materialButton4 = (MaterialButton) view2.findViewById(2131363728);
if (materialButton4 != null) {
i2 = 2131363648;
TextView textView = (TextView) view2.findViewById(2131363648);
i2 = 2131363729;
TextView textView = (TextView) view2.findViewById(2131363729);
if (textView != null) {
i2 = 2131364868;
TextView textView2 = (TextView) view2.findViewById(2131364868);
i2 = 2131364944;
TextView textView2 = (TextView) view2.findViewById(2131364944);
if (textView2 != null) {
i2 = 2131364869;
TextView textView3 = (TextView) view2.findViewById(2131364869);
i2 = 2131364945;
TextView textView3 = (TextView) view2.findViewById(2131364945);
if (textView3 != null) {
return new u((RelativeLayout) view2, imageView, materialButton, switchMaterial, relativeLayout, findViewById, materialButton2, relativeLayout2, materialButton3, materialButton4, textView, textView2, textView3);
}
@ -174,7 +174,7 @@ public final class a extends AppDialog {
}
public a() {
super(2131558529);
super(2131558530);
}
public final u g() {
@ -191,7 +191,7 @@ public final class a extends AppDialog {
boolean z2 = getArgumentsOrDefault().getBoolean("PARAM_IS_USER_PREMIUM");
boolean z3 = this.l != null && getArgumentsOrDefault().getBoolean("PARAM_CAN_COMPRESS");
int i3 = 8;
int i4 = i2 != 8 ? i2 != 50 ? i2 != 100 ? i2 != 200 ? 0 : 2131888522 : 2131888521 : 2131888520 : 2131888523;
int i4 = i2 != 8 ? i2 != 50 ? i2 != 100 ? i2 != 200 ? 0 : 2131888537 : 2131888536 : 2131888535 : 2131888538;
MaterialButton materialButton = g().i;
m.checkNotNullExpressionValue(materialButton, "binding.imageUploadFailedSendCompress");
materialButton.setVisibility(z3 ? 0 : 8);
@ -220,10 +220,10 @@ public final class a extends AppDialog {
}
relativeLayout2.setVisibility(i3);
g().d.setOnClickListener(new View$OnClickListenerC0001a(4, this));
SwitchMaterial switchMaterial = g().f165c;
SwitchMaterial switchMaterial = g().f167c;
m.checkNotNullExpressionValue(switchMaterial, "binding.imageUploadFaile…mpressionSettingsCheckbox");
switchMaterial.setChecked(StoreStream.Companion.getUserSettings().getIsAutoImageCompressionEnabled());
g().f165c.setOnCheckedChangeListener(d.a);
g().f167c.setOnCheckedChangeListener(d.a);
TextView textView = g().j;
m.checkNotNullExpressionValue(textView, "binding.imageUploadFailedText");
CharSequence charSequence = null;
@ -232,16 +232,16 @@ public final class a extends AppDialog {
if (context != null) {
Object[] objArr = new Object[1];
Context context2 = getContext();
objArr[0] = context2 != null ? c.a.k.b.g(context2, i4, new Object[0], null, 4) : null;
charSequence = c.a.k.b.g(context, 2131894429, objArr, null, 4);
objArr[0] = context2 != null ? c.a.l.b.h(context2, i4, new Object[0], null, 4) : null;
charSequence = c.a.l.b.h(context, 2131894526, objArr, null, 4);
}
} else {
Context context3 = getContext();
if (context3 != null) {
Object[] objArr2 = new Object[1];
Context context4 = getContext();
objArr2[0] = context4 != null ? c.a.k.b.g(context4, i4, new Object[0], null, 4) : null;
charSequence = c.a.k.b.g(context3, 2131894430, objArr2, null, 4);
objArr2[0] = context4 != null ? c.a.l.b.h(context4, i4, new Object[0], null, 4) : null;
charSequence = c.a.l.b.h(context3, 2131894527, objArr2, null, 4);
}
}
textView.setText(charSequence);

View File

@ -7,10 +7,10 @@ import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.b.f;
import c.a.d.h0;
import c.a.d.j0;
import c.a.d.o;
import c.a.i.n1;
import c.a.e.h0;
import c.a.e.j0;
import c.a.e.o;
import c.a.j.o1;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.models.user.User;
@ -62,10 +62,10 @@ public final class a extends AppDialog {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.addRelationship$default(h.l, "User Profile", h.k, 2, null, 8, null), false, 1, null), h, null, 2, null), f.class, (Context) null, (Function1) null, new h(h), (Function0) null, (Function0) null, new g(h), 54, (Object) null);
} else if (i == 1) {
KProperty[] kPropertyArr2 = a.i;
((a) this.j).h().removeRelationship(2131894544);
((a) this.j).h().removeRelationship(2131894641);
} else if (i == 2) {
KProperty[] kPropertyArr3 = a.i;
((a) this.j).h().removeRelationship(2131888801);
((a) this.j).h().removeRelationship(2131888817);
} else {
throw null;
}
@ -79,35 +79,35 @@ public final class a extends AppDialog {
}
/* compiled from: UserActionsDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, n1> {
public static final /* synthetic */ class c extends k implements Function1<View, o1> {
public static final c i = new c();
public c() {
super(1, n1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/UserActionsDialogBinding;", 0);
super(1, o1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/UserActionsDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public n1 invoke(View view) {
public o1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131365533;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(2131365533);
int i2 = 2131365618;
SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view2.findViewById(2131365618);
if (simpleDraweeView != null) {
i2 = 2131365534;
TextView textView = (TextView) view2.findViewById(2131365534);
i2 = 2131365619;
TextView textView = (TextView) view2.findViewById(2131365619);
if (textView != null) {
i2 = 2131365535;
TextView textView2 = (TextView) view2.findViewById(2131365535);
i2 = 2131365620;
TextView textView2 = (TextView) view2.findViewById(2131365620);
if (textView2 != null) {
i2 = 2131365536;
TextView textView3 = (TextView) view2.findViewById(2131365536);
i2 = 2131365621;
TextView textView3 = (TextView) view2.findViewById(2131365621);
if (textView3 != null) {
i2 = 2131365537;
TextView textView4 = (TextView) view2.findViewById(2131365537);
i2 = 2131365622;
TextView textView4 = (TextView) view2.findViewById(2131365622);
if (textView4 != null) {
return new n1((LinearLayout) view2, simpleDraweeView, textView, textView2, textView3, textView4);
return new o1((LinearLayout) view2, simpleDraweeView, textView, textView2, textView3, textView4);
}
}
}
@ -162,8 +162,8 @@ public final class a extends AppDialog {
String str = aVar2.b;
Context requireContext = aVar3.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
textView.setText(UserNameFormatterKt.getSpannableForUserNameWithDiscrim(user, str, requireContext, 2130968932, 2130969327, 2131427362, 2130968989, 2130969326, 2131427362));
TextView textView2 = aVar3.g().f131c;
textView.setText(UserNameFormatterKt.getSpannableForUserNameWithDiscrim(user, str, requireContext, 2130968932, 2130969328, 2131427362, 2130968989, 2130969327, 2131427362));
TextView textView2 = aVar3.g().f136c;
m.checkNotNullExpressionValue(textView2, "binding.userActionsDialogBlockItem");
int i = 8;
textView2.setVisibility(aVar2.f33c ? 0 : 8);
@ -227,15 +227,15 @@ public final class a extends AppDialog {
}
public a() {
super(2131558716);
super(2131558720);
h hVar = new h(this);
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new m(4, h0Var), new j0(hVar));
this.m = new MGImages.DistinctChangeDetector();
}
public final n1 g() {
return (n1) this.k.getValue((Fragment) this, i[0]);
public final o1 g() {
return (o1) this.k.getValue((Fragment) this, i[0]);
}
public final f h() {
@ -246,7 +246,7 @@ public final class a extends AppDialog {
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
g().f131c.setOnClickListener(new View$OnClickListenerC0002a(0, this));
g().f136c.setOnClickListener(new View$OnClickListenerC0002a(0, this));
g().e.setOnClickListener(new View$OnClickListenerC0002a(1, this));
g().d.setOnClickListener(new View$OnClickListenerC0002a(2, this));
}

View File

@ -29,7 +29,7 @@ public final class b extends o implements Function1<f.c, Unit> {
Objects.requireNonNull(fVar);
User user = cVar2.a;
if (user == null) {
fVar.j.j.onNext(new f.b.a(2131888056));
fVar.j.j.onNext(new f.b.a(2131888066));
} else {
int type = ModelUserRelationship.getType(cVar2.b);
boolean z2 = type != 2;

View File

@ -246,7 +246,7 @@ public final class f extends AppViewModel<d> {
public Unit invoke(Error error) {
m.checkNotNullParameter(error, "it");
PublishSubject<b> publishSubject = this.this$0.j;
publishSubject.j.onNext(new b.a(2131888056));
publishSubject.j.onNext(new b.a(2131888066));
return Unit.a;
}
}

View File

@ -20,7 +20,7 @@ public final class g extends o implements Function1<Void, Unit> {
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Void r3) {
PublishSubject<f.b> publishSubject = this.this$0.j;
publishSubject.j.onNext(new f.b.C0003b(2131894543));
publishSubject.j.onNext(new f.b.C0003b(2131894640));
return Unit.a;
}
}

View File

@ -23,7 +23,7 @@ public final class h extends o implements Function1<Error, Unit> {
public Unit invoke(Error error) {
m.checkNotNullParameter(error, "it");
PublishSubject<f.b> publishSubject = this.this$0.j;
publishSubject.j.onNext(new f.b.a(2131888056));
publishSubject.j.onNext(new f.b.a(2131888066));
return Unit.a;
}
}

View File

@ -9,9 +9,9 @@ import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.c.f;
import c.a.d.h0;
import c.a.d.j0;
import c.a.i.w0;
import c.a.e.h0;
import c.a.e.j0;
import c.a.j.w0;
import com.discord.app.AppDialog;
import com.discord.app.AppViewFlipper;
import com.discord.app.AppViewModel;
@ -115,26 +115,26 @@ public final class a extends AppDialog {
int i2 = 2131361898;
ProgressBar progressBar = (ProgressBar) view2.findViewById(2131361898);
if (progressBar != null) {
i2 = 2131364140;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364140);
i2 = 2131364221;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364221);
if (linearLayout != null) {
i2 = 2131364379;
TextView textView = (TextView) view2.findViewById(2131364379);
i2 = 2131364454;
TextView textView = (TextView) view2.findViewById(2131364454);
if (textView != null) {
i2 = 2131364380;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131364380);
i2 = 2131364455;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131364455);
if (loadingButton != null) {
i2 = 2131364381;
TextView textView2 = (TextView) view2.findViewById(2131364381);
i2 = 2131364456;
TextView textView2 = (TextView) view2.findViewById(2131364456);
if (textView2 != null) {
i2 = 2131364382;
AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(2131364382);
i2 = 2131364457;
AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(2131364457);
if (appViewFlipper != null) {
i2 = 2131364383;
TextView textView3 = (TextView) view2.findViewById(2131364383);
i2 = 2131364458;
TextView textView3 = (TextView) view2.findViewById(2131364458);
if (textView3 != null) {
i2 = 2131364384;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364384);
i2 = 2131364459;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364459);
if (materialButton != null) {
return new w0((LinearLayout) view2, progressBar, linearLayout, textView, loadingButton, textView2, appViewFlipper, textView3, materialButton);
}
@ -181,7 +181,7 @@ public final class a extends AppDialog {
m.checkNotNullExpressionValue(materialButton2, "binding.premiumGuildSubscriptionCancelNevermind");
ViewExtensions.setEnabledAndAlpha$default(materialButton2, cVar2.f34c, 0.0f, 2, null);
aVar.setCancelable(cVar2.e);
aVar.g().f178c.setIsLoading(cVar2.d);
aVar.g().f180c.setIsLoading(cVar2.d);
AppViewFlipper appViewFlipper = aVar.g().e;
m.checkNotNullExpressionValue(appViewFlipper, "binding.premiumGuildSubscriptionCancelFlipper");
appViewFlipper.setDisplayedChild(!(cVar2 instanceof f.c.C0009f) ? 1 : 0);
@ -195,30 +195,30 @@ public final class a extends AppDialog {
if (eVar.g) {
TextView textView2 = aVar.g().b;
m.checkNotNullExpressionValue(textView2, "binding.premiumGuildSubscriptionCancelBody");
c.a.k.b.m(textView2, 2131892281, new Object[]{renderUtcDate$default}, null, 4);
c.a.l.b.n(textView2, 2131892369, new Object[]{renderUtcDate$default}, null, 4);
} else {
TextView textView3 = aVar.g().b;
m.checkNotNullExpressionValue(textView3, "binding.premiumGuildSubscriptionCancelBody");
c.a.k.b.m(textView3, 2131892280, new Object[]{renderUtcDate$default}, null, 4);
c.a.l.b.n(textView3, 2131892368, new Object[]{renderUtcDate$default}, null, 4);
}
aVar.g().f178c.setBackgroundColor(ColorCompat.getColor(aVar, 2131100325));
aVar.g().f180c.setBackgroundColor(ColorCompat.getColor(aVar, 2131100329));
} else if (cVar2 instanceof f.c.b) {
TextView textView4 = aVar.g().f;
m.checkNotNullExpressionValue(textView4, "binding.premiumGuildSubscriptionCancelHeader");
textView4.setText(aVar.getString(2131892292));
textView4.setText(aVar.getString(2131892380));
TextView textView5 = aVar.g().b;
m.checkNotNullExpressionValue(textView5, "binding.premiumGuildSubscriptionCancelBody");
TimeUtils timeUtils2 = TimeUtils.INSTANCE;
String currentPeriodEnd2 = ((f.c.b) cVar2).f.getCurrentPeriodEnd();
Context requireContext2 = aVar.requireContext();
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
c.a.k.b.m(textView5, 2131892293, new Object[]{TimeUtils.renderUtcDate$default(timeUtils2, currentPeriodEnd2, requireContext2, (String) null, (DateFormat) null, 0, 28, (Object) null)}, null, 4);
aVar.g().f178c.setText(aVar.getString(2131891868));
aVar.g().f178c.setBackgroundColor(ColorCompat.getThemedColor(aVar, 2130969008));
c.a.l.b.n(textView5, 2131892381, new Object[]{TimeUtils.renderUtcDate$default(timeUtils2, currentPeriodEnd2, requireContext2, (String) null, (DateFormat) null, 0, 28, (Object) null)}, null, 4);
aVar.g().f180c.setText(aVar.getString(2131891954));
aVar.g().f180c.setBackgroundColor(ColorCompat.getThemedColor(aVar, 2130969008));
} else if (cVar2 instanceof f.c.C0008c) {
Integer num = ((f.c.C0008c) cVar2).f;
if (num != null) {
c.a.d.o.g(aVar.requireContext(), num.intValue(), 0, null, 12);
c.a.e.o.g(aVar.requireContext(), num.intValue(), 0, null, 12);
}
aVar.dismiss();
}
@ -266,7 +266,7 @@ public final class a extends AppDialog {
}
public a() {
super(2131558644);
super(2131558647);
f fVar = new f(this);
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new m(2, h0Var), new j0(fVar));
@ -282,7 +282,7 @@ public final class a extends AppDialog {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
g().g.setOnClickListener(new View$OnClickListenerC0005a(0, this));
g().f178c.setOnClickListener(new View$OnClickListenerC0005a(1, this));
g().f180c.setOnClickListener(new View$OnClickListenerC0005a(1, this));
}
@Override // com.discord.app.AppDialog

View File

@ -9,9 +9,9 @@ import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.c.k;
import c.a.d.h0;
import c.a.d.j0;
import c.a.i.x0;
import c.a.e.h0;
import c.a.e.j0;
import c.a.j.x0;
import com.discord.app.AppDialog;
import com.discord.app.AppViewFlipper;
import com.discord.app.AppViewModel;
@ -112,29 +112,29 @@ public final class b extends AppDialog {
public x0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364140;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364140);
int i2 = 2131364221;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364221);
if (linearLayout != null) {
i2 = 2131364385;
TextView textView = (TextView) view2.findViewById(2131364385);
i2 = 2131364460;
TextView textView = (TextView) view2.findViewById(2131364460);
if (textView != null) {
i2 = 2131364386;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131364386);
i2 = 2131364461;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131364461);
if (loadingButton != null) {
i2 = 2131364387;
TextView textView2 = (TextView) view2.findViewById(2131364387);
i2 = 2131364462;
TextView textView2 = (TextView) view2.findViewById(2131364462);
if (textView2 != null) {
i2 = 2131364388;
AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(2131364388);
i2 = 2131364463;
AppViewFlipper appViewFlipper = (AppViewFlipper) view2.findViewById(2131364463);
if (appViewFlipper != null) {
i2 = 2131364389;
TextView textView3 = (TextView) view2.findViewById(2131364389);
i2 = 2131364464;
TextView textView3 = (TextView) view2.findViewById(2131364464);
if (textView3 != null) {
i2 = 2131364390;
ImageView imageView = (ImageView) view2.findViewById(2131364390);
i2 = 2131364465;
ImageView imageView = (ImageView) view2.findViewById(2131364465);
if (imageView != null) {
i2 = 2131364391;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364391);
i2 = 2131364466;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364466);
if (materialButton != null) {
return new x0((LinearLayout) view2, linearLayout, textView, loadingButton, textView2, appViewFlipper, textView3, imageView, materialButton);
}
@ -185,7 +185,7 @@ public final class b extends AppDialog {
MaterialButton materialButton2 = bVar.g().h;
m.checkNotNullExpressionValue(materialButton2, "binding.premiumGuildSubscriptionUncancelNevermind");
ViewExtensions.setEnabledAndAlpha$default(materialButton2, z3 && !((k.c.b) cVar2).b, 0.0f, 2, null);
bVar.g().f183c.setIsLoading(z3 && ((k.c.b) cVar2).b);
bVar.g().f184c.setIsLoading(z3 && ((k.c.b) cVar2).b);
k.c.C0010c cVar3 = k.c.C0010c.a;
if (!(!m.areEqual(cVar2, cVar3)) || !z3 || ((k.c.b) cVar2).b) {
z2 = false;
@ -195,25 +195,25 @@ public final class b extends AppDialog {
if (z3) {
TextView textView2 = bVar.g().f;
m.checkNotNullExpressionValue(textView2, "binding.premiumGuildSubscriptionUncancelHeader");
textView2.setText(bVar.getString(2131892316));
textView2.setText(bVar.getString(2131892404));
TextView textView3 = bVar.g().b;
m.checkNotNullExpressionValue(textView3, "binding.premiumGuildSubscriptionUncancelBody");
textView3.setText(bVar.getString(2131892313));
textView3.setText(bVar.getString(2131892401));
} else if (m.areEqual(cVar2, k.c.d.a)) {
TextView textView4 = bVar.g().f;
m.checkNotNullExpressionValue(textView4, "binding.premiumGuildSubscriptionUncancelHeader");
textView4.setText(bVar.getString(2131892312));
textView4.setText(bVar.getString(2131892400));
ImageView imageView = bVar.g().g;
m.checkNotNullExpressionValue(imageView, "binding.premiumGuildSubscriptionUncancelImage");
imageView.setVisibility(0);
TextView textView5 = bVar.g().b;
m.checkNotNullExpressionValue(textView5, "binding.premiumGuildSubscriptionUncancelBody");
textView5.setText(bVar.getString(2131892311));
bVar.g().f183c.setText(bVar.getString(2131891868));
textView5.setText(bVar.getString(2131892399));
bVar.g().f184c.setText(bVar.getString(2131891954));
} else if (cVar2 instanceof k.c.a) {
Integer num = ((k.c.a) cVar2).a;
if (num != null) {
c.a.d.o.i(bVar, num.intValue(), 0, 4);
c.a.e.o.i(bVar, num.intValue(), 0, 4);
}
bVar.dismiss();
}
@ -262,7 +262,7 @@ public final class b extends AppDialog {
}
public b() {
super(2131558645);
super(2131558648);
f fVar = new f(this);
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(k.class), new m(3, h0Var), new j0(fVar));
@ -278,7 +278,7 @@ public final class b extends AppDialog {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
g().h.setOnClickListener(new a(0, this));
g().f183c.setOnClickListener(new a(1, this));
g().f184c.setOnClickListener(new a(1, this));
}
@Override // com.discord.app.AppDialog

View File

@ -8,7 +8,7 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.v0;
import c.a.j.v0;
import com.airbnb.lottie.LottieAnimationView;
import com.discord.app.AppDialog;
import com.discord.utilities.animations.LottieAnimationUtilsKt;
@ -41,13 +41,13 @@ public final class c extends AppDialog {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(context, "context");
m.checkNotNullParameter(function0, "dismissListener");
CharSequence g = z2 ? c.a.k.b.g(context, 2131890092, new Object[0], null, 4) : c.a.k.b.g(context, 2131890075, new Object[0], null, 4);
CharSequence g2 = str == null ? c.a.k.b.g(context, 2131890077, new Object[]{StringResourceUtilsKt.getI18nPluralString(context, 2131755182, i, Integer.valueOf(i))}, null, 4) : z2 ? c.a.k.b.g(context, 2131890093, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, 2131755183, i, Integer.valueOf(i))}, null, 4) : c.a.k.b.g(context, 2131890076, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, 2131755180, i, Integer.valueOf(i))}, null, 4);
CharSequence h = z2 ? c.a.l.b.h(context, 2131890150, new Object[0], null, 4) : c.a.l.b.h(context, 2131890133, new Object[0], null, 4);
CharSequence h2 = str == null ? c.a.l.b.h(context, 2131890135, new Object[]{StringResourceUtilsKt.getI18nPluralString(context, 2131755187, i, Integer.valueOf(i))}, null, 4) : z2 ? c.a.l.b.h(context, 2131890151, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, 2131755188, i, Integer.valueOf(i))}, null, 4) : c.a.l.b.h(context, 2131890134, new Object[]{str, StringResourceUtilsKt.getI18nPluralString(context, 2131755185, i, Integer.valueOf(i))}, null, 4);
c cVar = new c();
cVar.m = function0;
Bundle bundle = new Bundle();
bundle.putCharSequence("extra_body1_text", g);
bundle.putCharSequence("extra_body2_text", g2);
bundle.putCharSequence("extra_body1_text", h);
bundle.putCharSequence("extra_body2_text", h2);
cVar.setArguments(bundle);
cVar.show(fragmentManager, c.class.getName());
}
@ -67,17 +67,17 @@ public final class c extends AppDialog {
public v0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364375;
TextView textView = (TextView) view2.findViewById(2131364375);
int i2 = 2131364450;
TextView textView = (TextView) view2.findViewById(2131364450);
if (textView != null) {
i2 = 2131364376;
TextView textView2 = (TextView) view2.findViewById(2131364376);
i2 = 2131364451;
TextView textView2 = (TextView) view2.findViewById(2131364451);
if (textView2 != null) {
i2 = 2131364377;
LottieAnimationView lottieAnimationView = (LottieAnimationView) view2.findViewById(2131364377);
i2 = 2131364452;
LottieAnimationView lottieAnimationView = (LottieAnimationView) view2.findViewById(2131364452);
if (lottieAnimationView != null) {
i2 = 2131364378;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364378);
i2 = 2131364453;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364453);
if (materialButton != null) {
return new v0((LinearLayout) view2, textView, textView2, lottieAnimationView, materialButton);
}
@ -104,7 +104,7 @@ public final class c extends AppDialog {
}
public c() {
super(2131558643);
super(2131558646);
}
public final v0 g() {
@ -129,7 +129,7 @@ public final class c extends AppDialog {
Bundle arguments = getArguments();
CharSequence charSequence = null;
textView.setText(arguments != null ? arguments.getCharSequence("extra_body1_text") : null);
TextView textView2 = g().f173c;
TextView textView2 = g().f174c;
m.checkNotNullExpressionValue(textView2, "binding.premiumGuildSubscriptionActivatedBody2");
Bundle arguments2 = getArguments();
if (arguments2 != null) {

View File

@ -39,13 +39,13 @@ public final class d extends o implements Function1<f.b, Unit> {
if ((state instanceof StorePremiumGuildSubscription.State.Loading) || (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loading)) {
obj = f.c.C0009f.f;
} else if ((state instanceof StorePremiumGuildSubscription.State.Failure) || (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Failure)) {
obj = new f.c.C0008c(2131892286);
obj = new f.c.C0008c(2131892374);
} else if (!(state instanceof StorePremiumGuildSubscription.State.Loaded) || !(subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loaded)) {
obj = new f.c.C0008c(2131892286);
obj = new f.c.C0008c(2131892374);
} else {
ModelSubscription modelSubscription = (ModelSubscription) u.firstOrNull((List<? extends Object>) ((StoreSubscriptions.SubscriptionsState.Loaded) subscriptionsState).getSubscriptions());
if (modelSubscription == null) {
obj = new f.c.C0008c(2131892286);
obj = new f.c.C0008c(2131892374);
} else if (fVar.getViewState() instanceof f.c.b) {
obj = new f.c.b(modelSubscription);
} else {

View File

@ -32,10 +32,10 @@ public final class i extends o implements Function1<k.b, Unit> {
if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loading) {
obj = k.c.C0010c.a;
} else if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Failure) {
obj = new k.c.a(2131892286);
obj = new k.c.a(2131892374);
} else if (subscriptionsState instanceof StoreSubscriptions.SubscriptionsState.Loaded) {
ModelSubscription modelSubscription = (ModelSubscription) u.firstOrNull((List<? extends Object>) ((StoreSubscriptions.SubscriptionsState.Loaded) subscriptionsState).getSubscriptions());
obj = modelSubscription == null ? new k.c.a(2131892286) : new k.c.b(modelSubscription, false, false);
obj = modelSubscription == null ? new k.c.a(2131892374) : new k.c.b(modelSubscription, false, false);
} else {
obj = new k.c.a(null, 1);
}

View File

@ -0,0 +1,167 @@
package c.a.a;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.j.i1;
import com.discord.app.AppDialog;
import com.discord.dialogs.SimpleConfirmationDialogArgs;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.g;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Lazy;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SimpleConfirmationDialog.kt */
public final class d extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0)};
public static final c j = new c(null);
public final Lazy k = g.lazy(new b(this, "intent_args_key"));
public View.OnClickListener l;
public final FragmentViewBindingDelegate m = FragmentViewBindingDelegateKt.viewBinding$default(this, C0011d.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
View.OnClickListener onClickListener = ((d) this.j).l;
if (onClickListener != null) {
onClickListener.onClick(view);
}
((d) this.j).dismiss();
} else if (i == 1) {
((d) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: ArgUtils.kt */
public static final class b extends o implements Function0<SimpleConfirmationDialogArgs> {
public final /* synthetic */ String $argsKey;
public final /* synthetic */ AppDialog $this_args;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(AppDialog appDialog, String str) {
super(0);
this.$this_args = appDialog;
this.$argsKey = str;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public SimpleConfirmationDialogArgs mo1invoke() {
Bundle arguments = this.$this_args.getArguments();
SimpleConfirmationDialogArgs simpleConfirmationDialogArgs = null;
Object obj = arguments != null ? arguments.get(this.$argsKey) : null;
if (obj instanceof SimpleConfirmationDialogArgs) {
simpleConfirmationDialogArgs = obj;
}
SimpleConfirmationDialogArgs simpleConfirmationDialogArgs2 = simpleConfirmationDialogArgs;
if (simpleConfirmationDialogArgs2 != null) {
return simpleConfirmationDialogArgs2;
}
StringBuilder K = c.d.b.a.a.K("Missing args for class type ");
K.append(a0.getOrCreateKotlinClass(SimpleConfirmationDialogArgs.class).getSimpleName());
K.append(" + key ");
throw new IllegalStateException(c.d.b.a.a.B(K, this.$argsKey, '!'));
}
}
/* compiled from: SimpleConfirmationDialog.kt */
public static final class c {
public c(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: SimpleConfirmationDialog.kt */
/* renamed from: c.a.a.d$d reason: collision with other inner class name */
public static final /* synthetic */ class C0011d extends k implements Function1<View, i1> {
public static final C0011d i = new C0011d();
public C0011d() {
super(1, i1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SimpleConfirmationDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public i1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364221;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364221);
if (linearLayout != null) {
i2 = 2131365154;
TextView textView = (TextView) view2.findViewById(2131365154);
if (textView != null) {
i2 = 2131365155;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131365155);
if (materialButton != null) {
i2 = 2131365156;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131365156);
if (materialButton2 != null) {
i2 = 2131365157;
TextView textView2 = (TextView) view2.findViewById(2131365157);
if (textView2 != null) {
return new i1((LinearLayout) view2, linearLayout, textView, materialButton, materialButton2, textView2);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public d() {
super(2131558669);
}
public final SimpleConfirmationDialogArgs g() {
return (SimpleConfirmationDialogArgs) this.k.getValue();
}
public final i1 h() {
return (i1) this.m.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
requireDialog().setCanceledOnTouchOutside(true);
h().d.setOnClickListener(new a(0, this));
h().d.setText(g().k);
h().f106c.setOnClickListener(new a(1, this));
MaterialButton materialButton = h().f106c;
m.checkNotNullExpressionValue(materialButton, "binding.simpleConfirmationDialogNegative");
materialButton.setText(g().l);
TextView textView = h().e;
m.checkNotNullExpressionValue(textView, "binding.simpleConfirmationDialogTitle");
c.a.l.b.a(textView, g().i);
TextView textView2 = h().b;
m.checkNotNullExpressionValue(textView2, "binding.simpleConfirmationDialogDescription");
c.a.l.b.a(textView2, g().j);
}
}

View File

@ -1,206 +0,0 @@
package c.a.a.d;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.y0;
import com.discord.app.AppDialog;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.servers.premiumguild.WidgetPremiumGuildSubscription;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/PremiumGuildSubscriptionUpsellDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.d.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0011a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public View$OnClickListenerC0011a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((a) this.j).dismiss();
} else if (i == 1) {
((a) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX WARNING: Removed duplicated region for block: B:17:0x0045 */
/* JADX WARNING: Removed duplicated region for block: B:19:0x0050 */
/* JADX WARNING: Removed duplicated region for block: B:26:0x007a */
/* JADX WARNING: Removed duplicated region for block: B:27:0x0080 */
/* JADX WARNING: Removed duplicated region for block: B:29:0x0083 */
/* JADX WARNING: Removed duplicated region for block: B:30:0x0089 */
/* JADX WARNING: Removed duplicated region for block: B:32:0x008c */
public final void a(FragmentManager fragmentManager, long j, Long l, Integer num, Traits.Location location) {
String str;
Bundle bundle;
String page;
String str2;
m.checkNotNullParameter(fragmentManager, "fragmentManager");
a aVar = new a();
String str3 = null;
if (num != null && num.intValue() == 1) {
str2 = "tier_1";
} else if (num != null && num.intValue() == 2) {
str2 = "tier_2";
} else if (num != null && num.intValue() == 3) {
str2 = "tier_3";
} else {
str = null;
bundle = new Bundle();
bundle.putLong("extra_guild_id", j);
if (l != null) {
bundle.putLong("extra_channel_id", l.longValue());
}
if (str != null) {
bundle.putString("extra_object_type", str);
}
if (!(location == null || (page = location.getPage()) == null)) {
bundle.putString("extra_page", page);
}
aVar.setArguments(bundle);
aVar.show(fragmentManager, a.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String s2 = c.d.b.a.a.s("Premium Guild Upsell Modal - Tier ", str);
String page2 = location == null ? location.getPage() : null;
String str4 = location == null ? location.get_object() : null;
if (location != null) {
str3 = location.getSection();
}
analyticsTracker.openModal(s2, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
str = str2;
bundle = new Bundle();
bundle.putLong("extra_guild_id", j);
if (l != null) {
}
if (str != null) {
}
bundle.putString("extra_page", page);
aVar.setArguments(bundle);
aVar.show(fragmentManager, a.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String s2 = c.d.b.a.a.s("Premium Guild Upsell Modal - Tier ", str);
if (location == null) {
}
if (location == null) {
}
if (location != null) {
}
analyticsTracker.openModal(s2, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, y0> {
public static final c i = new c();
public c() {
super(1, y0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumGuildSubscriptionUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public y0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364399;
ImageView imageView = (ImageView) view2.findViewById(2131364399);
if (imageView != null) {
i2 = 2131364400;
TextView textView = (TextView) view2.findViewById(2131364400);
if (textView != null) {
i2 = 2131364401;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364401);
if (materialButton != null) {
return new y0((RelativeLayout) view2, imageView, textView, materialButton);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ a i;
public final /* synthetic */ long j;
public final /* synthetic */ Long k;
public final /* synthetic */ String l;
public final /* synthetic */ String m;
public d(a aVar, long j, Long l, String str, String str2) {
this.i = aVar;
this.j = j;
this.k = l;
this.l = str;
this.m = str2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AnalyticsTracker.INSTANCE.premiumGuildPromotionOpened(this.j, new Traits.Location(this.l, "Premium Guild Upsell Modal", "Button CTA", this.m, null, 16, null), this.k);
WidgetPremiumGuildSubscription.Companion companion = WidgetPremiumGuildSubscription.Companion;
Context requireContext = this.i.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
companion.create(requireContext, this.j);
this.i.dismiss();
}
}
public a() {
super(2131558646);
}
public final y0 g() {
return (y0) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
long j2 = getArgumentsOrDefault().getLong("extra_guild_id", -1);
Bundle arguments = getArguments();
Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_channel_id")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_object_type") : null;
Bundle arguments3 = getArguments();
g().d.setOnClickListener(new d(this, j2, valueOf, arguments3 != null ? arguments3.getString("extra_page") : null, string));
g().b.setOnClickListener(new View$OnClickListenerC0011a(0, this));
g().f187c.setOnClickListener(new View$OnClickListenerC0011a(1, this));
}
}

View File

@ -1,455 +0,0 @@
package c.a.a.d;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.DrawableRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;
import c.a.i.k5;
import c.a.i.n0;
import com.discord.app.AppDialog;
import com.discord.app.AppFragment;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.tabs.TabLayout;
import d0.t.n;
import d0.t.u;
import d0.z.d.k;
import d0.z.d.m;
import java.util.List;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public final class b extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(b.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
public static final C0012b j = new C0012b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, f.i, null, 2, null);
public e l;
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((b) this.j).dismiss();
} else if (i == 1) {
b.g((b) this.j);
} else if (i == 2) {
b.g((b) this.j);
} else {
throw null;
}
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: c.a.a.d.b$b reason: collision with other inner class name */
public static final class C0012b {
public C0012b(DefaultConstructorMarker defaultConstructorMarker) {
}
public static void a(C0012b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) {
if ((i2 & 4) != 0) {
str = null;
}
if ((i2 & 8) != 0) {
str2 = null;
}
if ((i2 & 16) != 0) {
str3 = null;
}
if ((i2 & 32) != 0) {
str4 = null;
}
if ((i2 & 64) != 0) {
str5 = null;
}
if ((i2 & 128) != 0) {
str6 = null;
}
if ((i2 & 256) != 0) {
z2 = true;
}
if ((i2 & 512) != 0) {
z3 = true;
}
Objects.requireNonNull(bVar);
m.checkNotNullParameter(fragmentManager, "fragmentManager");
b bVar2 = new b();
Bundle bundle = new Bundle();
bundle.putInt("extra_page_number", i);
if (str != null) {
bundle.putString("extra_header_string", str);
}
if (str2 != null) {
bundle.putString("extra_body_text", str2);
}
bundle.putString("extra_page_name", str3);
bundle.putString("extra_section_name", str4);
bundle.putString("extra_object_name", str5);
bundle.putString("extra_object_type", str6);
bundle.putBoolean("extra_show_other_pages", z2);
bundle.putBoolean("extra_show_learn_more", z3);
bVar2.setArguments(bundle);
bVar2.show(fragmentManager, b.class.getName());
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class c {
public final int a;
public CharSequence b;
/* renamed from: c reason: collision with root package name */
public CharSequence f36c;
public c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) {
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
this.a = i;
this.b = charSequence;
this.f36c = charSequence2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof c)) {
return false;
}
c cVar = (c) obj;
return this.a == cVar.a && m.areEqual(this.b, cVar.b) && m.areEqual(this.f36c, cVar.f36c);
}
public int hashCode() {
int i = this.a * 31;
CharSequence charSequence = this.b;
int i2 = 0;
int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.f36c;
if (charSequence2 != null) {
i2 = charSequence2.hashCode();
}
return hashCode + i2;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("UpsellData(imageResId=");
K.append(this.a);
K.append(", headerText=");
K.append(this.b);
K.append(", bodyText=");
K.append(this.f36c);
K.append(")");
return K.toString();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class d extends AppFragment {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, C0013b.i, null, 2, null);
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: c.a.a.d.b$d$b reason: collision with other inner class name */
public static final /* synthetic */ class C0013b extends k implements Function1<View, k5> {
public static final C0013b i = new C0013b();
public C0013b() {
super(1, k5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public k5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364430;
TextView textView = (TextView) view2.findViewById(2131364430);
if (textView != null) {
i2 = 2131364438;
TextView textView2 = (TextView) view2.findViewById(2131364438);
if (textView2 != null) {
i2 = 2131364439;
ImageView imageView = (ImageView) view2.findViewById(2131364439);
if (imageView != null) {
return new k5((LinearLayout) view2, textView, textView2, imageView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public d() {
super(2131559143);
}
public final k5 g() {
return (k5) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppFragment
public void onViewBoundOrOnResume() {
String string;
super.onViewBoundOrOnResume();
ImageView imageView = g().d;
Bundle arguments = getArguments();
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
TextView textView = g().f118c;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
Bundle arguments2 = getArguments();
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
TextView textView2 = g().b;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
Bundle arguments3 = getArguments();
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : c.a.k.b.k(string, new Object[0], null, 2));
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class e extends FragmentStateAdapter {
public final List<c> a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(Fragment fragment, List<c> list) {
super(fragment);
m.checkNotNullParameter(fragment, "fragment");
m.checkNotNullParameter(list, "pages");
this.a = list;
}
@Override // androidx.viewpager2.adapter.FragmentStateAdapter
public Fragment createFragment(int i) {
c cVar = this.a.get(i);
d.a aVar = d.j;
int i2 = cVar.a;
CharSequence charSequence = cVar.b;
CharSequence charSequence2 = cVar.f36c;
Objects.requireNonNull(aVar);
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
Bundle bundle = new Bundle();
bundle.putInt("extra_image_id", i2);
bundle.putString("extra_header_string", charSequence.toString());
bundle.putString("extra_body_text", charSequence2.toString());
d dVar = new d();
dVar.setArguments(bundle);
return dVar;
}
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
public int getItemCount() {
return this.a.size();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class f extends k implements Function1<View, n0> {
public static final f i = new f();
public f() {
super(1, n0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public n0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364432;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364432);
if (linearLayout != null) {
i2 = 2131364433;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364433);
if (materialButton != null) {
i2 = 2131364435;
View findViewById = view2.findViewById(2131364435);
if (findViewById != null) {
i2 = 2131364436;
TabLayout tabLayout = (TabLayout) view2.findViewById(2131364436);
if (tabLayout != null) {
i2 = 2131364437;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131364437);
if (materialButton2 != null) {
i2 = 2131364440;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(2131364440);
if (materialButton3 != null) {
i2 = 2131364443;
ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(2131364443);
if (viewPager2 != null) {
return new n0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2);
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public b() {
super(2131558598);
}
public static final void g(b bVar) {
Bundle arguments = bVar.getArguments();
String string = arguments != null ? arguments.getString("extra_page_name") : null;
Bundle arguments2 = bVar.getArguments();
String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null;
Bundle arguments3 = bVar.getArguments();
String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null;
Bundle arguments4 = bVar.getArguments();
AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null));
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = bVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
bVar.dismiss();
}
public final n0 h() {
return (n0) this.k.getValue((Fragment) this, i[0]);
}
public final boolean i() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_learn_more");
}
public final boolean j() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_other_pages");
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
String string;
String str;
super.onCreate(bundle);
AppDialog.hideKeyboard$default(this, null, 1, null);
String string2 = getString(2131892590);
m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)");
String string3 = getString(2131892589);
m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)");
String string4 = getString(2131892576);
m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)");
String string5 = getString(2131892573);
m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)");
String string6 = getString(2131892566);
m.checkNotNullExpressionValue(string6, "getString(R.string.premi…ed_emojis_passive_mobile)");
String string7 = getString(2131892565);
m.checkNotNullExpressionValue(string7, "getString(R.string.premi…mojis_description_mobile)");
CharSequence j2 = c.a.k.b.j(this, 2131892594, new Object[0], null, 4);
Object[] objArr = {c.a.k.b.j(this, 2131888523, new Object[0], null, 4), c.a.k.b.j(this, 2131888521, new Object[0], null, 4)};
String string8 = getString(2131892561);
m.checkNotNullExpressionValue(string8, "getString(R.string.premi…ed_avatar_passive_mobile)");
String string9 = getString(2131892560);
m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)");
String string10 = getString(2131892569);
m.checkNotNullExpressionValue(string10, "getString(R.string.premi…ell_badge_passive_mobile)");
String string11 = getString(2131892568);
m.checkNotNullExpressionValue(string11, "getString(R.string.premi…badge_description_mobile)");
List listOf = n.listOf((Object[]) new c[]{new c(2131232270, string2, string3), new c(2131232192, string4, string5), new c(2131232144, string6, string7), new c(2131232271, j2, c.a.k.b.j(this, 2131892593, objArr, null, 4)), new c(2131232147, string8, string9), new c(2131232150, string10, string11)});
Bundle arguments = getArguments();
int i2 = arguments != null ? arguments.getInt("extra_page_number") : 0;
Bundle arguments2 = getArguments();
String str2 = "";
if (arguments2 != null && arguments2.containsKey("extra_header_string")) {
c cVar = (c) listOf.get(i2);
Bundle arguments3 = getArguments();
if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) {
str = str2;
}
Objects.requireNonNull(cVar);
m.checkNotNullParameter(str, "<set-?>");
cVar.b = str;
}
Bundle arguments4 = getArguments();
if (arguments4 != null && arguments4.containsKey("extra_body_text")) {
c cVar2 = (c) listOf.get(i2);
Bundle arguments5 = getArguments();
if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) {
str2 = string;
}
Objects.requireNonNull(cVar2);
m.checkNotNullParameter(str2, "<set-?>");
cVar2.f36c = str2;
}
c cVar3 = (c) listOf.get(i2);
List mutableListOf = n.mutableListOf(cVar3);
if (j()) {
mutableListOf.addAll(u.minus(listOf, cVar3));
}
this.l = new e(this, mutableListOf);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
ViewPager2 viewPager2 = h().f;
m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager");
e eVar = this.l;
if (eVar == null) {
m.throwUninitializedPropertyAccessException("pagerAdapter");
}
viewPager2.setAdapter(eVar);
TabLayout tabLayout = h().f130c;
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
int i2 = 8;
tabLayout.setVisibility(j() ? 0 : 8);
TabLayout tabLayout2 = h().f130c;
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
ViewPager2 viewPager22 = h().f;
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null);
h().b.setOnClickListener(new a(0, this));
MaterialButton materialButton = h().e;
m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore");
materialButton.setVisibility(i() ? 0 : 8);
h().e.setOnClickListener(new a(1, this));
MaterialButton materialButton2 = h().d;
m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium");
if (!i()) {
i2 = 0;
}
materialButton2.setVisibility(i2);
h().d.setOnClickListener(new a(2, this));
}
}

View File

@ -1,154 +0,0 @@
package c.a.a.d;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.i.z0;
import com.discord.app.AppDialog;
import com.discord.utilities.resources.StringResourceUtilsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UpgradePremiumGuildDialog.kt */
public final class c extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(c.class, "binding", "getBinding()Lcom/discord/databinding/PremiumGuildUpgradeDialogBinding;", 0)};
public static final b j = new b(null);
public Function0<Unit> k;
public Function0<Unit> l;
public String m;
public boolean n;
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, C0014c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
Function0<Unit> function0 = ((c) this.j).k;
if (function0 != null) {
function0.mo1invoke();
}
((c) this.j).dismiss();
} else if (i == 1) {
Function0<Unit> function02 = ((c) this.j).l;
if (function02 != null) {
function02.mo1invoke();
}
((c) this.j).dismiss();
} else if (i == 2) {
((c) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: UpgradePremiumGuildDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: UpgradePremiumGuildDialog.kt */
/* renamed from: c.a.a.d.c$c reason: collision with other inner class name */
public static final /* synthetic */ class C0014c extends k implements Function1<View, z0> {
public static final C0014c i = new C0014c();
public C0014c() {
super(1, z0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumGuildUpgradeDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public z0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362789;
TextView textView = (TextView) view2.findViewById(2131362789);
if (textView != null) {
i2 = 2131364433;
ImageView imageView = (ImageView) view2.findViewById(2131364433);
if (imageView != null) {
i2 = 2131364434;
TextView textView2 = (TextView) view2.findViewById(2131364434);
if (textView2 != null) {
i2 = 2131364442;
TextView textView3 = (TextView) view2.findViewById(2131364442);
if (textView3 != null) {
i2 = 2131365512;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131365512);
if (materialButton != null) {
return new z0((RelativeLayout) view2, textView, imageView, textView2, textView3, materialButton);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public c() {
super(2131558647);
}
public final z0 g() {
return (z0) this.o.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.k == null || this.l == null) {
dismiss();
}
requireDialog().setCanceledOnTouchOutside(true);
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellDescription");
c.a.k.b.m(textView, 2131892581, new Object[]{this.m}, null, 4);
TextView textView2 = g().e;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellServerPerk");
Context requireContext = requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
c.a.k.b.m(textView2, 2131892579, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext, 2131755298, 2, 2)}, null, 4);
TextView textView3 = g().b;
m.checkNotNullExpressionValue(textView3, "binding.continueButton");
textView3.setVisibility(this.n ^ true ? 0 : 8);
g().b.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
g().f193c.setOnClickListener(new a(2, this));
}
}

View File

@ -1,154 +0,0 @@
package c.a.a.d;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import c.a.i.i1;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.premium.ShinyButton;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public final class d extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((d) this.j).dismiss();
} else if (i == 1) {
d dVar = (d) this.j;
KProperty[] kPropertyArr = d.i;
Objects.requireNonNull(dVar);
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = dVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
dVar.dismiss();
} else {
throw null;
}
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, i1> {
public static final c i = new c();
public c() {
super(1, i1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public i1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362212;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131362212);
if (linearLayout != null) {
i2 = 2131362664;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362664);
if (materialButton != null) {
i2 = 2131362783;
View findViewById = view2.findViewById(2131362783);
if (findViewById != null) {
i2 = 2131363334;
ShinyButton shinyButton = (ShinyButton) view2.findViewById(2131363334);
if (shinyButton != null) {
i2 = 2131365483;
View findViewById2 = view2.findViewById(2131365483);
if (findViewById2 != null) {
i2 = 2131365529;
TextView textView = (TextView) view2.findViewById(2131365529);
if (textView != null) {
i2 = 2131365530;
TextView textView2 = (TextView) view2.findViewById(2131365530);
if (textView2 != null) {
i2 = 2131365648;
ImageView imageView = (ImageView) view2.findViewById(2131365648);
if (imageView != null) {
return new i1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public d() {
super(2131558668);
}
public final i1 g() {
return (i1) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
Bundle arguments = getArguments();
String str = null;
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("extra_image_drawable_res")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_header_text") : null;
Bundle arguments3 = getArguments();
if (arguments3 != null) {
str = arguments3.getString("extra_body_text");
}
if (valueOf != null) {
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), valueOf.intValue()));
}
if (string != null) {
TextView textView = g().e;
m.checkNotNullExpressionValue(textView, "binding.upsellHeaderText");
textView.setText(string);
}
if (str != null) {
TextView textView2 = g().d;
m.checkNotNullExpressionValue(textView2, "binding.upsellBodyText");
textView2.setText(str);
}
g().b.setOnClickListener(new a(0, this));
g().f104c.setOnClickListener(new a(1, this));
}
}

View File

@ -1,153 +0,0 @@
package c.a.a.d;
import android.app.Dialog;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.i.a1;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.text.NumberFormat;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UpgradePremiumYearlyDialog.kt */
public final class e extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(e.class, "binding", "getBinding()Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0)};
public static final b j = new b(null);
public Function0<Unit> k;
public Function0<Unit> l;
public String m;
public boolean n;
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
Function0<Unit> function0 = ((e) this.j).k;
if (function0 != null) {
function0.mo1invoke();
}
((e) this.j).dismiss();
} else if (i == 1) {
Function0<Unit> function02 = ((e) this.j).l;
if (function02 != null) {
function02.mo1invoke();
}
((e) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, a1> {
public static final c i = new c();
public c() {
super(1, a1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public a1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364438;
ImageView imageView = (ImageView) view2.findViewById(2131364438);
if (imageView != null) {
i2 = 2131364444;
TextView textView = (TextView) view2.findViewById(2131364444);
if (textView != null) {
i2 = 2131364445;
TextView textView2 = (TextView) view2.findViewById(2131364445);
if (textView2 != null) {
i2 = 2131364503;
TextView textView3 = (TextView) view2.findViewById(2131364503);
if (textView3 != null) {
i2 = 2131364504;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364504);
if (materialButton != null) {
return new a1((LinearLayout) view2, imageView, textView, textView2, textView3, materialButton);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public e() {
super(2131558649);
}
public final a1 g() {
return (a1) this.o.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.k == null || this.l == null) {
dismiss();
}
requireDialog().setCanceledOnTouchOutside(true);
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
CharSequence j2 = c.a.k.b.j(this, z2 ? 2131892536 : 2131892539, new Object[0], null, 4);
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellYearlyTitle");
c.a.k.b.m(textView, 2131892597, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), j2}, null, 4);
TextView textView2 = g().f60c;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription");
c.a.k.b.m(textView2, 2131892596, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f))}, null, 4);
MaterialButton materialButton = g().f;
m.checkNotNullExpressionValue(materialButton, "binding.purchasePremiumYearly");
c.a.k.b.m(materialButton, 2131892595, new Object[]{this.m}, null, 4);
g().b.setImageResource(z2 ? 2131232252 : 2131232253);
TextView textView3 = g().e;
m.checkNotNullExpressionValue(textView3, "binding.purchasePremiumMonthly");
textView3.setVisibility(this.n ^ true ? 0 : 8);
g().e.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
}
}

View File

@ -1,152 +0,0 @@
package c.a.a.d;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.t0;
import com.discord.app.AppDialog;
import com.discord.utilities.drawable.DrawableCompat;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumActivatedDialog.kt */
public final class f extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(f.class, "binding", "getBinding()Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0)};
public static final a j = new a(null);
public Function0<Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: PremiumActivatedDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final void a(FragmentManager fragmentManager, Function0<Unit> function0, boolean z2) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(function0, "onDismiss");
f fVar = new f();
fVar.k = function0;
Bundle bundle = new Bundle();
bundle.putBoolean("ARG_IS_TIER_1", z2);
fVar.setArguments(bundle);
fVar.show(fragmentManager, f.class.getSimpleName());
}
}
/* compiled from: PremiumActivatedDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, t0> {
public static final b i = new b();
public b() {
super(1, t0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public t0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364362;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364362);
if (materialButton != null) {
i2 = 2131364363;
TextView textView = (TextView) view2.findViewById(2131364363);
if (textView != null) {
i2 = 2131364364;
ImageView imageView = (ImageView) view2.findViewById(2131364364);
if (imageView != null) {
i2 = 2131364365;
ImageView imageView2 = (ImageView) view2.findViewById(2131364365);
if (imageView2 != null) {
i2 = 2131364366;
ImageView imageView3 = (ImageView) view2.findViewById(2131364366);
if (imageView3 != null) {
i2 = 2131364367;
ImageView imageView4 = (ImageView) view2.findViewById(2131364367);
if (imageView4 != null) {
return new t0((LinearLayout) view2, materialButton, textView, imageView, imageView2, imageView3, imageView4);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumActivatedDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ f i;
public c(f fVar) {
this.i = fVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function0<Unit> function0 = this.i.k;
if (function0 != null) {
function0.mo1invoke();
}
this.i.dismiss();
}
}
public f() {
super(2131558641);
}
public final t0 g() {
return (t0) this.l.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onResume() {
int i2;
super.onResume();
if (this.k == null) {
dismiss();
}
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
int i3 = z2 ? 2131230933 : 2131230937;
int i4 = z2 ? 2131232207 : 2131232201;
int i5 = z2 ? 2131232285 : 2131232283;
if (z2) {
Context requireContext = requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
i2 = DrawableCompat.getThemedDrawableRes$default(requireContext, 2130969521, 0, 2, (Object) null);
} else {
Context requireContext2 = requireContext();
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
i2 = DrawableCompat.getThemedDrawableRes$default(requireContext2, 2130969522, 0, 2, (Object) null);
}
int i6 = z2 ? 2131887005 : 2131887007;
g().d.setBackgroundResource(i3);
g().e.setImageDrawable(ContextCompat.getDrawable(requireContext(), i4));
g().g.setImageDrawable(ContextCompat.getDrawable(requireContext(), i5));
ImageView imageView = g().g;
m.checkNotNullExpressionValue(imageView, "binding.premiumActivatedWumpus");
imageView.setScaleX(z2 ? 1.0f : -1.0f);
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), i2));
TextView textView = g().f160c;
m.checkNotNullExpressionValue(textView, "binding.premiumActivatedDescription");
textView.setText(getString(i6));
requireDialog().setCanceledOnTouchOutside(true);
g().b.setOnClickListener(new c(this));
}
}

View File

@ -1,102 +0,0 @@
package c.a.a.d;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.i.u0;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public final class g extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(g.class, "binding", "getBinding()Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0)};
public static final a j = new a(null);
public Function0<Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, u0> {
public static final b i = new b();
public b() {
super(1, u0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public u0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364362;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364362);
if (materialButton != null) {
i2 = 2131364368;
TextView textView = (TextView) view2.findViewById(2131364368);
if (textView != null) {
return new u0((LinearLayout) view2, materialButton, textView);
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ g i;
public c(g gVar) {
this.i = gVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function0<Unit> function0 = this.i.k;
if (function0 != null) {
function0.mo1invoke();
}
this.i.dismiss();
}
}
public g() {
super(2131558642);
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
String str;
super.onViewBoundOrOnResume();
if (this.k == null) {
dismiss();
}
Bundle arguments = getArguments();
if (arguments == null || (str = arguments.getString("extra_plan_text")) == null) {
str = "";
}
m.checkNotNullExpressionValue(str, "arguments?.getString(EXTRA_PLAN_NAME) ?: \"\"");
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l;
KProperty<?>[] kPropertyArr = i;
TextView textView = ((u0) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f166c;
m.checkNotNullExpressionValue(textView, "binding.premiumAndPremiumGuildActivatedText");
c.a.k.b.m(textView, 2131886941, new Object[]{str}, null, 4);
requireDialog().setCanceledOnTouchOutside(true);
((u0) this.l.getValue((Fragment) this, kPropertyArr[0])).b.setOnClickListener(new c(this));
}
}

View File

@ -0,0 +1,206 @@
package c.a.a.e;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.j.y0;
import com.discord.app.AppDialog;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.servers.premiumguild.WidgetPremiumGuildSubscription;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/PremiumGuildSubscriptionUpsellDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.e.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0012a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public View$OnClickListenerC0012a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((a) this.j).dismiss();
} else if (i == 1) {
((a) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
/* JADX WARNING: Removed duplicated region for block: B:17:0x0045 */
/* JADX WARNING: Removed duplicated region for block: B:19:0x0050 */
/* JADX WARNING: Removed duplicated region for block: B:26:0x007a */
/* JADX WARNING: Removed duplicated region for block: B:27:0x0080 */
/* JADX WARNING: Removed duplicated region for block: B:29:0x0083 */
/* JADX WARNING: Removed duplicated region for block: B:30:0x0089 */
/* JADX WARNING: Removed duplicated region for block: B:32:0x008c */
public final void a(FragmentManager fragmentManager, long j, Long l, Integer num, Traits.Location location) {
String str;
Bundle bundle;
String page;
String str2;
m.checkNotNullParameter(fragmentManager, "fragmentManager");
a aVar = new a();
String str3 = null;
if (num != null && num.intValue() == 1) {
str2 = "tier_1";
} else if (num != null && num.intValue() == 2) {
str2 = "tier_2";
} else if (num != null && num.intValue() == 3) {
str2 = "tier_3";
} else {
str = null;
bundle = new Bundle();
bundle.putLong("extra_guild_id", j);
if (l != null) {
bundle.putLong("extra_channel_id", l.longValue());
}
if (str != null) {
bundle.putString("extra_object_type", str);
}
if (!(location == null || (page = location.getPage()) == null)) {
bundle.putString("extra_page", page);
}
aVar.setArguments(bundle);
aVar.show(fragmentManager, a.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String s2 = c.d.b.a.a.s("Premium Guild Upsell Modal - Tier ", str);
String page2 = location == null ? location.getPage() : null;
String str4 = location == null ? location.get_object() : null;
if (location != null) {
str3 = location.getSection();
}
analyticsTracker.openModal(s2, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
str = str2;
bundle = new Bundle();
bundle.putLong("extra_guild_id", j);
if (l != null) {
}
if (str != null) {
}
bundle.putString("extra_page", page);
aVar.setArguments(bundle);
aVar.show(fragmentManager, a.class.getSimpleName());
AnalyticsTracker analyticsTracker = AnalyticsTracker.INSTANCE;
String s2 = c.d.b.a.a.s("Premium Guild Upsell Modal - Tier ", str);
if (location == null) {
}
if (location == null) {
}
if (location != null) {
}
analyticsTracker.openModal(s2, new Traits.Location(page2, str3, str4, str, null, 16, null));
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, y0> {
public static final c i = new c();
public c() {
super(1, y0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumGuildSubscriptionUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public y0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364474;
ImageView imageView = (ImageView) view2.findViewById(2131364474);
if (imageView != null) {
i2 = 2131364475;
TextView textView = (TextView) view2.findViewById(2131364475);
if (textView != null) {
i2 = 2131364476;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364476);
if (materialButton != null) {
return new y0((RelativeLayout) view2, imageView, textView, materialButton);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumGuildSubscriptionUpsellDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ a i;
public final /* synthetic */ long j;
public final /* synthetic */ Long k;
public final /* synthetic */ String l;
public final /* synthetic */ String m;
public d(a aVar, long j, Long l, String str, String str2) {
this.i = aVar;
this.j = j;
this.k = l;
this.l = str;
this.m = str2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
AnalyticsTracker.INSTANCE.premiumGuildPromotionOpened(this.j, new Traits.Location(this.l, "Premium Guild Upsell Modal", "Button CTA", this.m, null, 16, null), this.k);
WidgetPremiumGuildSubscription.Companion companion = WidgetPremiumGuildSubscription.Companion;
Context requireContext = this.i.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
companion.create(requireContext, this.j);
this.i.dismiss();
}
}
public a() {
super(2131558649);
}
public final y0 g() {
return (y0) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
long j2 = getArgumentsOrDefault().getLong("extra_guild_id", -1);
Bundle arguments = getArguments();
Long valueOf = arguments != null ? Long.valueOf(arguments.getLong("extra_channel_id")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_object_type") : null;
Bundle arguments3 = getArguments();
g().d.setOnClickListener(new d(this, j2, valueOf, arguments3 != null ? arguments3.getString("extra_page") : null, string));
g().b.setOnClickListener(new View$OnClickListenerC0012a(0, this));
g().f189c.setOnClickListener(new View$OnClickListenerC0012a(1, this));
}
}

View File

@ -1,292 +0,0 @@
package c.a.a.e.a;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.e.a.f;
import c.a.d.h0;
import c.a.d.j0;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.rtcconnection.audio.DiscordAudioManager;
import com.discord.stores.StoreAudioDevices;
import com.discord.utilities.color.ColorCompat;
import com.discord.utilities.color.ColorCompatKt;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.radiobutton.MaterialRadioButton;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import kotlin.Lazy;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
import rx.Observable;
/* compiled from: AudioOutputSelectionDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public final Lazy l;
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.e.a.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0015a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public View$OnClickListenerC0015a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio;
int i = this.i;
f.c.a aVar = null;
if (i == 0) {
f h = a.h((a) this.j);
if (h.j.getEnabled()) {
f.c viewState = h.getViewState();
if (viewState instanceof f.c.a) {
aVar = viewState;
}
f.c.a aVar2 = aVar;
if (!(aVar2 == null || (bluetoothAudio = aVar2.f37c) == null)) {
h.j.selectAudioOutput(bluetoothAudio);
}
} else {
h.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET);
}
a.g((a) this.j);
} else if (i == 1) {
f h2 = a.h((a) this.j);
if (h2.j.getEnabled()) {
h2.j.selectAudioOutput(StoreAudioDevices.OutputDevice.Speaker.INSTANCE);
} else {
h2.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
}
a.g((a) this.j);
} else if (i == 2) {
f h3 = a.h((a) this.j);
if (h3.j.getEnabled()) {
h3.j.selectAudioOutput(StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE);
} else {
h3.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.WIRED_HEADSET);
}
a.g((a) this.j);
} else if (i == 3) {
f h4 = a.h((a) this.j);
if (h4.j.getEnabled()) {
h4.j.selectAudioOutput(StoreAudioDevices.OutputDevice.Earpiece.INSTANCE);
} else {
h4.k.selectOutputDevice(DiscordAudioManager.DeviceTypes.EARPIECE);
}
a.g((a) this.j);
} else {
throw null;
}
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.b> {
public static final c i = new c();
public c() {
super(1, c.a.i.b.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.b invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131361995;
MaterialRadioButton materialRadioButton = (MaterialRadioButton) view2.findViewById(2131361995);
if (materialRadioButton != null) {
i2 = 2131361996;
TextView textView = (TextView) view2.findViewById(2131361996);
if (textView != null) {
i2 = 2131361997;
RadioGroup radioGroup = (RadioGroup) view2.findViewById(2131361997);
if (radioGroup != null) {
i2 = 2131361998;
MaterialRadioButton materialRadioButton2 = (MaterialRadioButton) view2.findViewById(2131361998);
if (materialRadioButton2 != null) {
i2 = 2131361999;
MaterialRadioButton materialRadioButton3 = (MaterialRadioButton) view2.findViewById(2131361999);
if (materialRadioButton3 != null) {
i2 = 2131362000;
MaterialRadioButton materialRadioButton4 = (MaterialRadioButton) view2.findViewById(2131362000);
if (materialRadioButton4 != null) {
return new c.a.i.b((LinearLayout) view2, materialRadioButton, textView, radioGroup, materialRadioButton2, materialRadioButton3, materialRadioButton4);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class d extends o implements Function1<f.c, Unit> {
public final /* synthetic */ a this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(a aVar) {
super(1);
this.this$0 = aVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(f.c cVar) {
int i;
String str;
f.c cVar2 = cVar;
m.checkNotNullParameter(cVar2, "viewState");
a aVar = this.this$0;
Objects.requireNonNull(aVar);
m.checkNotNullParameter(cVar2, "viewState");
if (!(cVar2 instanceof f.c.b) && (cVar2 instanceof f.c.a)) {
f.c.a aVar2 = (f.c.a) cVar2;
StoreAudioDevices.OutputDevice outputDevice = aVar2.a;
if (outputDevice instanceof StoreAudioDevices.OutputDevice.BluetoothAudio) {
MaterialRadioButton materialRadioButton = aVar.i().b;
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionBluetoothRadio");
i = materialRadioButton.getId();
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.Speaker) {
MaterialRadioButton materialRadioButton2 = aVar.i().e;
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionSpeakerRadio");
i = materialRadioButton2.getId();
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.WiredAudio) {
MaterialRadioButton materialRadioButton3 = aVar.i().f;
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionWiredRadio");
i = materialRadioButton3.getId();
} else if (outputDevice instanceof StoreAudioDevices.OutputDevice.Earpiece) {
MaterialRadioButton materialRadioButton4 = aVar.i().d;
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
i = materialRadioButton4.getId();
} else {
throw new NoWhenBranchMatchedException();
}
aVar.i().f65c.check(i);
MaterialRadioButton materialRadioButton5 = aVar.i().b;
m.checkNotNullExpressionValue(materialRadioButton5, "binding.audioOutputSelectionBluetoothRadio");
int i2 = 0;
materialRadioButton5.setVisibility(aVar2.b ? 0 : 8);
MaterialRadioButton materialRadioButton6 = aVar.i().b;
m.checkNotNullExpressionValue(materialRadioButton6, "binding.audioOutputSelectionBluetoothRadio");
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio = aVar2.f37c;
if (bluetoothAudio == null || (str = bluetoothAudio.getName()) == null) {
str = aVar.getString(2131886745);
}
materialRadioButton6.setText(str);
MaterialRadioButton materialRadioButton7 = aVar.i().e;
m.checkNotNullExpressionValue(materialRadioButton7, "binding.audioOutputSelectionSpeakerRadio");
materialRadioButton7.setVisibility(aVar2.d ? 0 : 8);
MaterialRadioButton materialRadioButton8 = aVar.i().f;
m.checkNotNullExpressionValue(materialRadioButton8, "binding.audioOutputSelectionWiredRadio");
materialRadioButton8.setVisibility(aVar2.e ? 0 : 8);
MaterialRadioButton materialRadioButton9 = aVar.i().d;
m.checkNotNullExpressionValue(materialRadioButton9, "binding.audioOutputSelectionEarpieceRadio");
if (!aVar2.f) {
i2 = 8;
}
materialRadioButton9.setVisibility(i2);
}
return Unit.a;
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class e extends o implements Function0<AppViewModel<f.c>> {
public static final e i = new e();
public e() {
super(0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<f.c> mo1invoke() {
return new f(null, null, null, 7);
}
}
public a() {
super(2131558433);
e eVar = e.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(f.class), new m(5, h0Var), new j0(eVar));
}
public static final void g(a aVar) {
Objects.requireNonNull(aVar);
Observable<Long> d02 = Observable.d0(300, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(d02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(d02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null);
}
public static final f h(a aVar) {
return (f) aVar.l.getValue();
}
public final c.a.i.b i() {
return (c.a.i.b) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
int themedColor = ColorCompat.getThemedColor(view, 2130968949);
MaterialRadioButton materialRadioButton = i().b;
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionBluetoothRadio");
ColorCompatKt.setDrawableColor(materialRadioButton, themedColor);
MaterialRadioButton materialRadioButton2 = i().e;
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionSpeakerRadio");
ColorCompatKt.setDrawableColor(materialRadioButton2, themedColor);
MaterialRadioButton materialRadioButton3 = i().f;
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionWiredRadio");
ColorCompatKt.setDrawableColor(materialRadioButton3, themedColor);
MaterialRadioButton materialRadioButton4 = i().d;
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
ColorCompatKt.setDrawableColor(materialRadioButton4, themedColor);
i().b.setOnClickListener(new View$OnClickListenerC0015a(0, this));
i().e.setOnClickListener(new View$OnClickListenerC0015a(1, this));
i().f.setOnClickListener(new View$OnClickListenerC0015a(2, this));
i().d.setOnClickListener(new View$OnClickListenerC0015a(3, this));
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(((f) this.l.getValue()).observeViewState(), this), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
}
}

View File

@ -1,23 +0,0 @@
package c.a.a.e.a;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: AudioOutputSelectionDialog.kt */
public final class b extends o implements Function1<Long, Unit> {
public final /* synthetic */ a this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(a aVar) {
super(1);
this.this$0 = aVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Long l) {
this.this$0.requireDialog().cancel();
return Unit.a;
}
}

View File

@ -1,42 +0,0 @@
package c.a.a.e.a;
import c.a.a.e.a.f;
import com.discord.stores.StoreAudioDevices;
import d0.z.d.m;
import d0.z.d.o;
import java.util.ArrayList;
import java.util.Objects;
import java.util.Set;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class c extends o implements Function1<f.b, Unit> {
public final /* synthetic */ f this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(f fVar) {
super(1);
this.this$0 = fVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(f.b bVar) {
f.b bVar2 = bVar;
m.checkNotNullParameter(bVar2, "storeState");
f fVar = this.this$0;
Objects.requireNonNull(fVar);
StoreAudioDevices.AudioDevicesState audioDevicesState = bVar2.a;
Set<StoreAudioDevices.OutputDevice> availableOutputDevices = audioDevicesState.getAvailableOutputDevices();
ArrayList arrayList = new ArrayList();
for (Object obj : availableOutputDevices) {
if (obj instanceof StoreAudioDevices.OutputDevice.BluetoothAudio) {
arrayList.add(obj);
}
}
boolean z2 = !arrayList.isEmpty();
fVar.updateViewState(new f.c.a(audioDevicesState.getSelectedOutputDevice(), z2, z2 ? (StoreAudioDevices.OutputDevice.BluetoothAudio) arrayList.get(0) : null, availableOutputDevices.contains(StoreAudioDevices.OutputDevice.Speaker.INSTANCE), availableOutputDevices.contains(StoreAudioDevices.OutputDevice.WiredAudio.INSTANCE), availableOutputDevices.contains(StoreAudioDevices.OutputDevice.Earpiece.INSTANCE)));
return Unit.a;
}
}

View File

@ -1,19 +0,0 @@
package c.a.a.e.a;
import c.a.a.e.a.f;
import com.discord.stores.StoreAudioDevices;
import d0.z.d.m;
import j0.k.b;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class d<T, R> implements b<StoreAudioDevices.AudioDevicesState, f.b> {
public static final d i = new d();
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public f.b call(StoreAudioDevices.AudioDevicesState audioDevicesState) {
StoreAudioDevices.AudioDevicesState audioDevicesState2 = audioDevicesState;
m.checkNotNullExpressionValue(audioDevicesState2, "audioDevicesState");
return new f.b(audioDevicesState2);
}
}

View File

@ -1,16 +0,0 @@
package c.a.a.e.a;
import c.a.a.e.a.f;
import com.discord.stores.StoreAudioManagerV2;
import j0.k.b;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class e<T, R> implements b<StoreAudioManagerV2.State, f.b> {
public static final e i = new e();
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public f.b call(StoreAudioManagerV2.State state) {
return new f.b(state.asAudioDevicesState());
}
}

View File

@ -1,194 +0,0 @@
package c.a.a.e.a;
import android.content.Context;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreAudioDevices;
import com.discord.stores.StoreAudioManagerV2;
import com.discord.stores.StoreStream;
import com.discord.utilities.rx.ObservableExtensionsKt;
import d0.z.d.m;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class f extends AppViewModel<c> {
public static final a i = new a(null);
public final StoreAudioDevices j;
public final StoreAudioManagerV2 k;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static final class b {
public final StoreAudioDevices.AudioDevicesState a;
public b(StoreAudioDevices.AudioDevicesState audioDevicesState) {
m.checkNotNullParameter(audioDevicesState, "audioDevicesState");
this.a = audioDevicesState;
}
public boolean equals(Object obj) {
if (this != obj) {
return (obj instanceof b) && m.areEqual(this.a, ((b) obj).a);
}
return true;
}
public int hashCode() {
StoreAudioDevices.AudioDevicesState audioDevicesState = this.a;
if (audioDevicesState != null) {
return audioDevicesState.hashCode();
}
return 0;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("StoreState(audioDevicesState=");
K.append(this.a);
K.append(")");
return K.toString();
}
}
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static abstract class c {
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static final class a extends c {
public final StoreAudioDevices.OutputDevice a;
public final boolean b;
/* renamed from: c reason: collision with root package name */
public final StoreAudioDevices.OutputDevice.BluetoothAudio f37c;
public final boolean d;
public final boolean e;
public final boolean f;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public a(StoreAudioDevices.OutputDevice outputDevice, boolean z2, StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio, boolean z3, boolean z4, boolean z5) {
super(null);
m.checkNotNullParameter(outputDevice, "selectedAudioOutput");
this.a = outputDevice;
this.b = z2;
this.f37c = bluetoothAudio;
this.d = z3;
this.e = z4;
this.f = z5;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof a)) {
return false;
}
a aVar = (a) obj;
return m.areEqual(this.a, aVar.a) && this.b == aVar.b && m.areEqual(this.f37c, aVar.f37c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
}
public int hashCode() {
StoreAudioDevices.OutputDevice outputDevice = this.a;
int i = 0;
int hashCode = (outputDevice != null ? outputDevice.hashCode() : 0) * 31;
boolean z2 = this.b;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
StoreAudioDevices.OutputDevice.BluetoothAudio bluetoothAudio = this.f37c;
if (bluetoothAudio != null) {
i = bluetoothAudio.hashCode();
}
int i7 = (i6 + i) * 31;
boolean z3 = this.d;
if (z3) {
z3 = true;
}
int i8 = z3 ? 1 : 0;
int i9 = z3 ? 1 : 0;
int i10 = z3 ? 1 : 0;
int i11 = (i7 + i8) * 31;
boolean z4 = this.e;
if (z4) {
z4 = true;
}
int i12 = z4 ? 1 : 0;
int i13 = z4 ? 1 : 0;
int i14 = z4 ? 1 : 0;
int i15 = (i11 + i12) * 31;
boolean z5 = this.f;
if (!z5) {
i2 = z5 ? 1 : 0;
}
return i15 + i2;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("Loaded(selectedAudioOutput=");
K.append(this.a);
K.append(", showBluetoothItem=");
K.append(this.b);
K.append(", bluetoothDevice=");
K.append(this.f37c);
K.append(", showSpeakerItem=");
K.append(this.d);
K.append(", showWiredItem=");
K.append(this.e);
K.append(", showEarpieceItem=");
return c.d.b.a.a.F(K, this.f, ")");
}
}
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static final class b extends c {
public static final b a = new b();
public b() {
super(null);
}
}
public c() {
}
public c(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public f() {
this(null, null, null, 7);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public f(StoreAudioDevices storeAudioDevices, StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i2) {
super(c.b.a);
Observable observable2;
StoreAudioDevices audioDevices = (i2 & 1) != 0 ? StoreStream.Companion.getAudioDevices() : null;
StoreAudioManagerV2 audioManagerV2 = (i2 & 2) != 0 ? StoreStream.Companion.getAudioManagerV2() : null;
if ((i2 & 4) == 0) {
observable2 = null;
} else if (audioDevices.getEnabled()) {
observable2 = audioDevices.observeAudioDevicesState().F(d.i);
m.checkNotNullExpressionValue(observable2, "storeAudioDevices.observ…tate(audioDevicesState) }");
} else {
observable2 = audioManagerV2.observeAudioManagerState().F(e.i);
m.checkNotNullExpressionValue(observable2, "storeAudioManager.observ….asAudioDevicesState()) }");
}
m.checkNotNullParameter(audioDevices, "storeAudioDevices");
m.checkNotNullParameter(audioManagerV2, "storeAudioManager");
m.checkNotNullParameter(observable2, "storeStateObservable");
this.j = audioDevices;
this.k = audioManagerV2;
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observable2), this, null, 2, null), f.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
}
}

View File

@ -0,0 +1,455 @@
package c.a.a.e;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.DrawableRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.viewpager2.adapter.FragmentStateAdapter;
import androidx.viewpager2.widget.ViewPager2;
import c.a.j.k5;
import c.a.j.n0;
import com.discord.app.AppDialog;
import com.discord.app.AppFragment;
import com.discord.utilities.analytics.AnalyticsTracker;
import com.discord.utilities.analytics.Traits;
import com.discord.utilities.view.recycler.ViewPager2ExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.tabs.TabLayout;
import d0.t.n;
import d0.t.u;
import d0.z.d.k;
import d0.z.d.m;
import java.util.List;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public final class b extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(b.class, "binding", "getBinding()Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0)};
public static final C0013b j = new C0013b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, f.i, null, 2, null);
public e l;
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((b) this.j).dismiss();
} else if (i == 1) {
b.g((b) this.j);
} else if (i == 2) {
b.g((b) this.j);
} else {
throw null;
}
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: c.a.a.e.b$b reason: collision with other inner class name */
public static final class C0013b {
public C0013b(DefaultConstructorMarker defaultConstructorMarker) {
}
public static void a(C0013b bVar, FragmentManager fragmentManager, int i, String str, String str2, String str3, String str4, String str5, String str6, boolean z2, boolean z3, int i2) {
if ((i2 & 4) != 0) {
str = null;
}
if ((i2 & 8) != 0) {
str2 = null;
}
if ((i2 & 16) != 0) {
str3 = null;
}
if ((i2 & 32) != 0) {
str4 = null;
}
if ((i2 & 64) != 0) {
str5 = null;
}
if ((i2 & 128) != 0) {
str6 = null;
}
if ((i2 & 256) != 0) {
z2 = true;
}
if ((i2 & 512) != 0) {
z3 = true;
}
Objects.requireNonNull(bVar);
m.checkNotNullParameter(fragmentManager, "fragmentManager");
b bVar2 = new b();
Bundle bundle = new Bundle();
bundle.putInt("extra_page_number", i);
if (str != null) {
bundle.putString("extra_header_string", str);
}
if (str2 != null) {
bundle.putString("extra_body_text", str2);
}
bundle.putString("extra_page_name", str3);
bundle.putString("extra_section_name", str4);
bundle.putString("extra_object_name", str5);
bundle.putString("extra_object_type", str6);
bundle.putBoolean("extra_show_other_pages", z2);
bundle.putBoolean("extra_show_learn_more", z3);
bVar2.setArguments(bundle);
bVar2.show(fragmentManager, b.class.getName());
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class c {
public final int a;
public CharSequence b;
/* renamed from: c reason: collision with root package name */
public CharSequence f36c;
public c(@DrawableRes int i, CharSequence charSequence, CharSequence charSequence2) {
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
this.a = i;
this.b = charSequence;
this.f36c = charSequence2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof c)) {
return false;
}
c cVar = (c) obj;
return this.a == cVar.a && m.areEqual(this.b, cVar.b) && m.areEqual(this.f36c, cVar.f36c);
}
public int hashCode() {
int i = this.a * 31;
CharSequence charSequence = this.b;
int i2 = 0;
int hashCode = (i + (charSequence != null ? charSequence.hashCode() : 0)) * 31;
CharSequence charSequence2 = this.f36c;
if (charSequence2 != null) {
i2 = charSequence2.hashCode();
}
return hashCode + i2;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("UpsellData(imageResId=");
K.append(this.a);
K.append(", headerText=");
K.append(this.b);
K.append(", bodyText=");
K.append(this.f36c);
K.append(")");
return K.toString();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class d extends AppFragment {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, C0014b.i, null, 2, null);
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
/* renamed from: c.a.a.e.b$d$b reason: collision with other inner class name */
public static final /* synthetic */ class C0014b extends k implements Function1<View, k5> {
public static final C0014b i = new C0014b();
public C0014b() {
super(1, k5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetPremiumUpsellBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public k5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364505;
TextView textView = (TextView) view2.findViewById(2131364505);
if (textView != null) {
i2 = 2131364513;
TextView textView2 = (TextView) view2.findViewById(2131364513);
if (textView2 != null) {
i2 = 2131364514;
ImageView imageView = (ImageView) view2.findViewById(2131364514);
if (imageView != null) {
return new k5((LinearLayout) view2, textView, textView2, imageView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public d() {
super(2131559170);
}
public final k5 g() {
return (k5) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppFragment
public void onViewBoundOrOnResume() {
String string;
super.onViewBoundOrOnResume();
ImageView imageView = g().d;
Bundle arguments = getArguments();
imageView.setImageResource(arguments != null ? arguments.getInt("extra_image_id") : 0);
TextView textView = g().f119c;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellHeader");
Bundle arguments2 = getArguments();
textView.setText(arguments2 != null ? arguments2.getString("extra_header_string") : null);
TextView textView2 = g().b;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellBody");
Bundle arguments3 = getArguments();
textView2.setText((arguments3 == null || (string = arguments3.getString("extra_body_text")) == null) ? "" : c.a.l.b.l(string, new Object[0], null, 2));
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final class e extends FragmentStateAdapter {
public final List<c> a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(Fragment fragment, List<c> list) {
super(fragment);
m.checkNotNullParameter(fragment, "fragment");
m.checkNotNullParameter(list, "pages");
this.a = list;
}
@Override // androidx.viewpager2.adapter.FragmentStateAdapter
public Fragment createFragment(int i) {
c cVar = this.a.get(i);
d.a aVar = d.j;
int i2 = cVar.a;
CharSequence charSequence = cVar.b;
CharSequence charSequence2 = cVar.f36c;
Objects.requireNonNull(aVar);
m.checkNotNullParameter(charSequence, "headerText");
m.checkNotNullParameter(charSequence2, "bodyText");
Bundle bundle = new Bundle();
bundle.putInt("extra_image_id", i2);
bundle.putString("extra_header_string", charSequence.toString());
bundle.putString("extra_body_text", charSequence2.toString());
d dVar = new d();
dVar.setArguments(bundle);
return dVar;
}
@Override // androidx.recyclerview.widget.RecyclerView.Adapter
public int getItemCount() {
return this.a.size();
}
}
/* compiled from: MultiValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class f extends k implements Function1<View, n0> {
public static final f i = new f();
public f() {
super(1, n0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/MultiValuePropPremiumUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public n0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364507;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364507);
if (linearLayout != null) {
i2 = 2131364508;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364508);
if (materialButton != null) {
i2 = 2131364510;
View findViewById = view2.findViewById(2131364510);
if (findViewById != null) {
i2 = 2131364511;
TabLayout tabLayout = (TabLayout) view2.findViewById(2131364511);
if (tabLayout != null) {
i2 = 2131364512;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131364512);
if (materialButton2 != null) {
i2 = 2131364515;
MaterialButton materialButton3 = (MaterialButton) view2.findViewById(2131364515);
if (materialButton3 != null) {
i2 = 2131364518;
ViewPager2 viewPager2 = (ViewPager2) view2.findViewById(2131364518);
if (viewPager2 != null) {
return new n0((RelativeLayout) view2, linearLayout, materialButton, findViewById, tabLayout, materialButton2, materialButton3, viewPager2);
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public b() {
super(2131558599);
}
public static final void g(b bVar) {
Bundle arguments = bVar.getArguments();
String string = arguments != null ? arguments.getString("extra_page_name") : null;
Bundle arguments2 = bVar.getArguments();
String string2 = arguments2 != null ? arguments2.getString("extra_section_name") : null;
Bundle arguments3 = bVar.getArguments();
String string3 = arguments3 != null ? arguments3.getString("extra_object_name") : null;
Bundle arguments4 = bVar.getArguments();
AnalyticsTracker.INSTANCE.premiumSettingsOpened(new Traits.Location(string, string2, string3, arguments4 != null ? arguments4.getString("extra_object_type") : null, null, 16, null));
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = bVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
bVar.dismiss();
}
public final n0 h() {
return (n0) this.k.getValue((Fragment) this, i[0]);
}
public final boolean i() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_learn_more");
}
public final boolean j() {
Bundle arguments = getArguments();
return arguments != null && arguments.getBoolean("extra_show_other_pages");
}
@Override // androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
String string;
String str;
super.onCreate(bundle);
AppDialog.hideKeyboard$default(this, null, 1, null);
String string2 = getString(2131892678);
m.checkNotNullExpressionValue(string2, "getString(R.string.premi…psell_tag_passive_mobile)");
String string3 = getString(2131892677);
m.checkNotNullExpressionValue(string3, "getString(R.string.premi…l_tag_description_mobile)");
String string4 = getString(2131892664);
m.checkNotNullExpressionValue(string4, "getString(R.string.premi…ell_emoji_passive_mobile)");
String string5 = getString(2131892661);
m.checkNotNullExpressionValue(string5, "getString(R.string.premi…emoji_description_mobile)");
String string6 = getString(2131892654);
m.checkNotNullExpressionValue(string6, "getString(R.string.premi…ed_emojis_passive_mobile)");
String string7 = getString(2131892653);
m.checkNotNullExpressionValue(string7, "getString(R.string.premi…mojis_description_mobile)");
CharSequence k = c.a.l.b.k(this, 2131892682, new Object[0], null, 4);
Object[] objArr = {c.a.l.b.k(this, 2131888538, new Object[0], null, 4), c.a.l.b.k(this, 2131888536, new Object[0], null, 4)};
String string8 = getString(2131892649);
m.checkNotNullExpressionValue(string8, "getString(R.string.premi…ed_avatar_passive_mobile)");
String string9 = getString(2131892648);
m.checkNotNullExpressionValue(string9, "getString(R.string.premi…vatar_description_mobile)");
String string10 = getString(2131892657);
m.checkNotNullExpressionValue(string10, "getString(R.string.premi…ell_badge_passive_mobile)");
String string11 = getString(2131892656);
m.checkNotNullExpressionValue(string11, "getString(R.string.premi…badge_description_mobile)");
List listOf = n.listOf((Object[]) new c[]{new c(2131232289, string2, string3), new c(2131232210, string4, string5), new c(2131232162, string6, string7), new c(2131232290, k, c.a.l.b.k(this, 2131892681, objArr, null, 4)), new c(2131232165, string8, string9), new c(2131232168, string10, string11)});
Bundle arguments = getArguments();
int i2 = arguments != null ? arguments.getInt("extra_page_number") : 0;
Bundle arguments2 = getArguments();
String str2 = "";
if (arguments2 != null && arguments2.containsKey("extra_header_string")) {
c cVar = (c) listOf.get(i2);
Bundle arguments3 = getArguments();
if (arguments3 == null || (str = arguments3.getString("extra_header_string")) == null) {
str = str2;
}
Objects.requireNonNull(cVar);
m.checkNotNullParameter(str, "<set-?>");
cVar.b = str;
}
Bundle arguments4 = getArguments();
if (arguments4 != null && arguments4.containsKey("extra_body_text")) {
c cVar2 = (c) listOf.get(i2);
Bundle arguments5 = getArguments();
if (!(arguments5 == null || (string = arguments5.getString("extra_body_text")) == null)) {
str2 = string;
}
Objects.requireNonNull(cVar2);
m.checkNotNullParameter(str2, "<set-?>");
cVar2.f36c = str2;
}
c cVar3 = (c) listOf.get(i2);
List mutableListOf = n.mutableListOf(cVar3);
if (j()) {
mutableListOf.addAll(u.minus(listOf, cVar3));
}
this.l = new e(this, mutableListOf);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
ViewPager2 viewPager2 = h().f;
m.checkNotNullExpressionValue(viewPager2, "binding.premiumUpsellViewpager");
e eVar = this.l;
if (eVar == null) {
m.throwUninitializedPropertyAccessException("pagerAdapter");
}
viewPager2.setAdapter(eVar);
TabLayout tabLayout = h().f131c;
m.checkNotNullExpressionValue(tabLayout, "binding.premiumUpsellDots");
int i2 = 8;
tabLayout.setVisibility(j() ? 0 : 8);
TabLayout tabLayout2 = h().f131c;
m.checkNotNullExpressionValue(tabLayout2, "binding.premiumUpsellDots");
ViewPager2 viewPager22 = h().f;
m.checkNotNullExpressionValue(viewPager22, "binding.premiumUpsellViewpager");
ViewPager2ExtensionsKt.setUpWithViewPager2$default(tabLayout2, viewPager22, null, 2, null);
h().b.setOnClickListener(new a(0, this));
MaterialButton materialButton = h().e;
m.checkNotNullExpressionValue(materialButton, "binding.premiumUpsellLearnMore");
materialButton.setVisibility(i() ? 0 : 8);
h().e.setOnClickListener(new a(1, this));
MaterialButton materialButton2 = h().d;
m.checkNotNullExpressionValue(materialButton2, "binding.premiumUpsellGetPremium");
if (!i()) {
i2 = 0;
}
materialButton2.setVisibility(i2);
h().d.setOnClickListener(new a(2, this));
}
}

View File

@ -0,0 +1,154 @@
package c.a.a.e;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.j.z0;
import com.discord.app.AppDialog;
import com.discord.utilities.resources.StringResourceUtilsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UpgradePremiumGuildDialog.kt */
public final class c extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(c.class, "binding", "getBinding()Lcom/discord/databinding/PremiumGuildUpgradeDialogBinding;", 0)};
public static final b j = new b(null);
public Function0<Unit> k;
public Function0<Unit> l;
public String m;
public boolean n;
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, C0015c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
Function0<Unit> function0 = ((c) this.j).k;
if (function0 != null) {
function0.mo1invoke();
}
((c) this.j).dismiss();
} else if (i == 1) {
Function0<Unit> function02 = ((c) this.j).l;
if (function02 != null) {
function02.mo1invoke();
}
((c) this.j).dismiss();
} else if (i == 2) {
((c) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: UpgradePremiumGuildDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: UpgradePremiumGuildDialog.kt */
/* renamed from: c.a.a.e.c$c reason: collision with other inner class name */
public static final /* synthetic */ class C0015c extends k implements Function1<View, z0> {
public static final C0015c i = new C0015c();
public C0015c() {
super(1, z0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumGuildUpgradeDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public z0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362800;
TextView textView = (TextView) view2.findViewById(2131362800);
if (textView != null) {
i2 = 2131364508;
ImageView imageView = (ImageView) view2.findViewById(2131364508);
if (imageView != null) {
i2 = 2131364509;
TextView textView2 = (TextView) view2.findViewById(2131364509);
if (textView2 != null) {
i2 = 2131364517;
TextView textView3 = (TextView) view2.findViewById(2131364517);
if (textView3 != null) {
i2 = 2131365597;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131365597);
if (materialButton != null) {
return new z0((RelativeLayout) view2, textView, imageView, textView2, textView3, materialButton);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public c() {
super(2131558650);
}
public final z0 g() {
return (z0) this.o.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.k == null || this.l == null) {
dismiss();
}
requireDialog().setCanceledOnTouchOutside(true);
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellDescription");
c.a.l.b.n(textView, 2131892669, new Object[]{this.m}, null, 4);
TextView textView2 = g().e;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellServerPerk");
Context requireContext = requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
c.a.l.b.n(textView2, 2131892667, new Object[]{StringResourceUtilsKt.getI18nPluralString(requireContext, 2131755303, 2, 2)}, null, 4);
TextView textView3 = g().b;
m.checkNotNullExpressionValue(textView3, "binding.continueButton");
textView3.setVisibility(this.n ^ true ? 0 : 8);
g().b.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
g().f194c.setOnClickListener(new a(2, this));
}
}

View File

@ -0,0 +1,154 @@
package c.a.a.e;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import c.a.j.j1;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.premium.ShinyButton;
import com.discord.widgets.settings.premium.WidgetSettingsPremium;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Objects;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public final class d extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(d.class, "binding", "getBinding()Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
((d) this.j).dismiss();
} else if (i == 1) {
d dVar = (d) this.j;
KProperty[] kPropertyArr = d.i;
Objects.requireNonNull(dVar);
WidgetSettingsPremium.Companion companion = WidgetSettingsPremium.Companion;
Context requireContext = dVar.requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
WidgetSettingsPremium.Companion.launch$default(companion, requireContext, null, null, 6, null);
dVar.dismiss();
} else {
throw null;
}
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: SingleValuePropPremiumUpsellDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, j1> {
public static final c i = new c();
public c() {
super(1, j1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/SingleValuePropPremiumUpsellDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public j1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362215;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131362215);
if (linearLayout != null) {
i2 = 2131362675;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362675);
if (materialButton != null) {
i2 = 2131362794;
View findViewById = view2.findViewById(2131362794);
if (findViewById != null) {
i2 = 2131363356;
ShinyButton shinyButton = (ShinyButton) view2.findViewById(2131363356);
if (shinyButton != null) {
i2 = 2131365568;
View findViewById2 = view2.findViewById(2131365568);
if (findViewById2 != null) {
i2 = 2131365614;
TextView textView = (TextView) view2.findViewById(2131365614);
if (textView != null) {
i2 = 2131365615;
TextView textView2 = (TextView) view2.findViewById(2131365615);
if (textView2 != null) {
i2 = 2131365733;
ImageView imageView = (ImageView) view2.findViewById(2131365733);
if (imageView != null) {
return new j1((LinearLayout) view2, linearLayout, materialButton, findViewById, shinyButton, findViewById2, textView, textView2, imageView);
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public d() {
super(2131558672);
}
public final j1 g() {
return (j1) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
Bundle arguments = getArguments();
String str = null;
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("extra_image_drawable_res")) : null;
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("extra_header_text") : null;
Bundle arguments3 = getArguments();
if (arguments3 != null) {
str = arguments3.getString("extra_body_text");
}
if (valueOf != null) {
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), valueOf.intValue()));
}
if (string != null) {
TextView textView = g().e;
m.checkNotNullExpressionValue(textView, "binding.upsellHeaderText");
textView.setText(string);
}
if (str != null) {
TextView textView2 = g().d;
m.checkNotNullExpressionValue(textView2, "binding.upsellBodyText");
textView2.setText(str);
}
g().b.setOnClickListener(new a(0, this));
g().f111c.setOnClickListener(new a(1, this));
}
}

View File

@ -0,0 +1,153 @@
package c.a.a.e;
import android.app.Dialog;
import android.view.View;
import android.view.Window;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.j.a1;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.text.NumberFormat;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: UpgradePremiumYearlyDialog.kt */
public final class e extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(e.class, "binding", "getBinding()Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0)};
public static final b j = new b(null);
public Function0<Unit> k;
public Function0<Unit> l;
public String m;
public boolean n;
public final FragmentViewBindingDelegate o = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
Function0<Unit> function0 = ((e) this.j).k;
if (function0 != null) {
function0.mo1invoke();
}
((e) this.j).dismiss();
} else if (i == 1) {
Function0<Unit> function02 = ((e) this.j).l;
if (function02 != null) {
function02.mo1invoke();
}
((e) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: UpgradePremiumYearlyDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, a1> {
public static final c i = new c();
public c() {
super(1, a1.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumUpgradeYearlyDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public a1 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364513;
ImageView imageView = (ImageView) view2.findViewById(2131364513);
if (imageView != null) {
i2 = 2131364519;
TextView textView = (TextView) view2.findViewById(2131364519);
if (textView != null) {
i2 = 2131364520;
TextView textView2 = (TextView) view2.findViewById(2131364520);
if (textView2 != null) {
i2 = 2131364578;
TextView textView3 = (TextView) view2.findViewById(2131364578);
if (textView3 != null) {
i2 = 2131364579;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364579);
if (materialButton != null) {
return new a1((LinearLayout) view2, imageView, textView, textView2, textView3, materialButton);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
public e() {
super(2131558652);
}
public final a1 g() {
return (a1) this.o.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.DialogFragment, androidx.fragment.app.Fragment
public void onStart() {
super.onStart();
Dialog requireDialog = requireDialog();
m.checkNotNullExpressionValue(requireDialog, "requireDialog()");
Window window = requireDialog.getWindow();
if (window != null) {
window.setLayout(-1, -2);
}
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
if (this.k == null || this.l == null) {
dismiss();
}
requireDialog().setCanceledOnTouchOutside(true);
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
CharSequence k = c.a.l.b.k(this, z2 ? 2131892624 : 2131892627, new Object[0], null, 4);
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.premiumUpsellYearlyTitle");
c.a.l.b.n(textView, 2131892685, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f)), k}, null, 4);
TextView textView2 = g().f61c;
m.checkNotNullExpressionValue(textView2, "binding.premiumUpsellYearlyDescription");
c.a.l.b.n(textView2, 2131892684, new Object[]{NumberFormat.getPercentInstance().format(Float.valueOf(0.16f))}, null, 4);
MaterialButton materialButton = g().f;
m.checkNotNullExpressionValue(materialButton, "binding.purchasePremiumYearly");
c.a.l.b.n(materialButton, 2131892683, new Object[]{this.m}, null, 4);
g().b.setImageResource(z2 ? 2131232271 : 2131232272);
TextView textView3 = g().e;
m.checkNotNullExpressionValue(textView3, "binding.purchasePremiumMonthly");
textView3.setVisibility(this.n ^ true ? 0 : 8);
g().e.setOnClickListener(new a(0, this));
g().f.setOnClickListener(new a(1, this));
}
}

View File

@ -0,0 +1,152 @@
package c.a.a.e;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.j.t0;
import com.discord.app.AppDialog;
import com.discord.utilities.drawable.DrawableCompat;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumActivatedDialog.kt */
public final class f extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(f.class, "binding", "getBinding()Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0)};
public static final a j = new a(null);
public Function0<Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: PremiumActivatedDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final void a(FragmentManager fragmentManager, Function0<Unit> function0, boolean z2) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(function0, "onDismiss");
f fVar = new f();
fVar.k = function0;
Bundle bundle = new Bundle();
bundle.putBoolean("ARG_IS_TIER_1", z2);
fVar.setArguments(bundle);
fVar.show(fragmentManager, f.class.getSimpleName());
}
}
/* compiled from: PremiumActivatedDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, t0> {
public static final b i = new b();
public b() {
super(1, t0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumActivatedDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public t0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364437;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364437);
if (materialButton != null) {
i2 = 2131364438;
TextView textView = (TextView) view2.findViewById(2131364438);
if (textView != null) {
i2 = 2131364439;
ImageView imageView = (ImageView) view2.findViewById(2131364439);
if (imageView != null) {
i2 = 2131364440;
ImageView imageView2 = (ImageView) view2.findViewById(2131364440);
if (imageView2 != null) {
i2 = 2131364441;
ImageView imageView3 = (ImageView) view2.findViewById(2131364441);
if (imageView3 != null) {
i2 = 2131364442;
ImageView imageView4 = (ImageView) view2.findViewById(2131364442);
if (imageView4 != null) {
return new t0((LinearLayout) view2, materialButton, textView, imageView, imageView2, imageView3, imageView4);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumActivatedDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ f i;
public c(f fVar) {
this.i = fVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function0<Unit> function0 = this.i.k;
if (function0 != null) {
function0.mo1invoke();
}
this.i.dismiss();
}
}
public f() {
super(2131558644);
}
public final t0 g() {
return (t0) this.l.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onResume() {
int i2;
super.onResume();
if (this.k == null) {
dismiss();
}
boolean z2 = getArgumentsOrDefault().getBoolean("ARG_IS_TIER_1");
int i3 = z2 ? 2131230944 : 2131230948;
int i4 = z2 ? 2131232226 : 2131232220;
int i5 = z2 ? 2131232304 : 2131232302;
if (z2) {
Context requireContext = requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
i2 = DrawableCompat.getThemedDrawableRes$default(requireContext, 2130969525, 0, 2, (Object) null);
} else {
Context requireContext2 = requireContext();
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
i2 = DrawableCompat.getThemedDrawableRes$default(requireContext2, 2130969526, 0, 2, (Object) null);
}
int i6 = z2 ? 2131887005 : 2131887007;
g().d.setBackgroundResource(i3);
g().e.setImageDrawable(ContextCompat.getDrawable(requireContext(), i4));
g().g.setImageDrawable(ContextCompat.getDrawable(requireContext(), i5));
ImageView imageView = g().g;
m.checkNotNullExpressionValue(imageView, "binding.premiumActivatedWumpus");
imageView.setScaleX(z2 ? 1.0f : -1.0f);
g().f.setImageDrawable(ContextCompat.getDrawable(requireContext(), i2));
TextView textView = g().f162c;
m.checkNotNullExpressionValue(textView, "binding.premiumActivatedDescription");
textView.setText(getString(i6));
requireDialog().setCanceledOnTouchOutside(true);
g().b.setOnClickListener(new c(this));
}
}

View File

@ -0,0 +1,102 @@
package c.a.a.e;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.j.u0;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public final class g extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(g.class, "binding", "getBinding()Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0)};
public static final a j = new a(null);
public Function0<Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, u0> {
public static final b i = new b();
public b() {
super(1, u0.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/PremiumAndPremiumGuildActivatedDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public u0 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131364437;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131364437);
if (materialButton != null) {
i2 = 2131364443;
TextView textView = (TextView) view2.findViewById(2131364443);
if (textView != null) {
return new u0((LinearLayout) view2, materialButton, textView);
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: PremiumAndPremiumGuildActivatedDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ g i;
public c(g gVar) {
this.i = gVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function0<Unit> function0 = this.i.k;
if (function0 != null) {
function0.mo1invoke();
}
this.i.dismiss();
}
}
public g() {
super(2131558645);
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
String str;
super.onViewBoundOrOnResume();
if (this.k == null) {
dismiss();
}
Bundle arguments = getArguments();
if (arguments == null || (str = arguments.getString("extra_plan_text")) == null) {
str = "";
}
m.checkNotNullExpressionValue(str, "arguments?.getString(EXTRA_PLAN_NAME) ?: \"\"");
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.l;
KProperty<?>[] kPropertyArr = i;
TextView textView = ((u0) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f168c;
m.checkNotNullExpressionValue(textView, "binding.premiumAndPremiumGuildActivatedText");
c.a.l.b.n(textView, 2131886941, new Object[]{str}, null, 4);
requireDialog().setCanceledOnTouchOutside(true);
((u0) this.l.getValue((Fragment) this, kPropertyArr[0])).b.setOnClickListener(new c(this));
}
}

View File

@ -1,173 +0,0 @@
package c.a.a.f;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.i.g5;
import com.discord.app.AppDialog;
import com.discord.stores.StoreNotices;
import com.discord.stores.StoreStream;
import com.discord.utilities.string.StringUtilsKt;
import com.discord.utilities.uri.UriHandler;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: WidgetMaskedLinksDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.f.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0016a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public final /* synthetic */ Object k;
public View$OnClickListenerC0016a(int i, Object obj, Object obj2) {
this.i = i;
this.j = obj;
this.k = obj2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
a aVar = (a) this.j;
m.checkNotNullExpressionValue(view, "v");
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "v.context");
String str = (String) this.k;
KProperty[] kPropertyArr = a.i;
Objects.requireNonNull(aVar);
UriHandler.handle$default(UriHandler.INSTANCE, context, str, null, 4, null);
aVar.dismiss();
} else if (i == 1) {
a aVar2 = (a) this.j;
m.checkNotNullExpressionValue(view, "v");
Context context2 = view.getContext();
m.checkNotNullExpressionValue(context2, "v.context");
String str2 = (String) this.k;
KProperty[] kPropertyArr2 = a.i;
Objects.requireNonNull(aVar2);
StoreStream.Companion.getMaskedLinks().trustDomain(str2);
UriHandler.handle$default(UriHandler.INSTANCE, context2, str2, null, 4, null);
aVar2.dismiss();
} else {
throw null;
}
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, g5> {
public static final c i = new c();
public c() {
super(1, g5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public g5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131363892;
TextView textView = (TextView) view2.findViewById(2131363892);
if (textView != null) {
i2 = 2131363893;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363893);
if (materialButton != null) {
i2 = 2131363894;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131363894);
if (materialButton2 != null) {
i2 = 2131363895;
TextView textView2 = (TextView) view2.findViewById(2131363895);
if (textView2 != null) {
i2 = 2131365665;
TextView textView3 = (TextView) view2.findViewById(2131365665);
if (textView3 != null) {
return new g5((LinearLayout) view2, textView, materialButton, materialButton2, textView2, textView3);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ a i;
public d(a aVar) {
this.i = aVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
public a() {
super(2131559109);
}
public final g5 g() {
return (g5) this.k.getValue((Fragment) this, i[0]);
}
@Override // androidx.fragment.app.Fragment
public void onDestroy() {
super.onDestroy();
StoreNotices notices = StoreStream.Companion.getNotices();
Objects.requireNonNull(j);
StoreNotices.markSeen$default(notices, "WIDGET_SPOOPY_LINKS_DIALOG", 0, 2, null);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
String str;
Object obj;
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
Bundle arguments = getArguments();
if (arguments == null || (str = arguments.getString("WIDGET_SPOOPY_LINKS_DIALOG_URL")) == null) {
str = "";
}
m.checkNotNullExpressionValue(str, "arguments?.getString(DIALOG_URL) ?: \"\"");
try {
obj = StringUtilsKt.toPunyCodeASCIIUrl(str);
} catch (Exception unused) {
dismiss();
obj = Unit.a;
}
TextView textView = g().b;
m.checkNotNullExpressionValue(textView, "binding.maskedLinksBodyText");
c.a.k.b.m(textView, 2131891171, new Object[]{obj}, null, 4);
g().f99c.setOnClickListener(new d(this));
g().d.setOnClickListener(new View$OnClickListenerC0016a(0, this, str));
g().e.setOnClickListener(new View$OnClickListenerC0016a(1, this, str));
}
}

View File

@ -0,0 +1,258 @@
package c.a.a.f.a;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RadioGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.f.a.d;
import c.a.e.h0;
import c.a.e.j0;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.rtcconnection.audio.DiscordAudioManager;
import com.discord.utilities.color.ColorCompat;
import com.discord.utilities.color.ColorCompatKt;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.radiobutton.MaterialRadioButton;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import kotlin.Lazy;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
import rx.Observable;
/* compiled from: AudioOutputSelectionDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public final Lazy l;
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.f.a.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0016a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public View$OnClickListenerC0016a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET);
a.g((a) this.j);
} else if (i == 1) {
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.SPEAKERPHONE);
a.g((a) this.j);
} else if (i == 2) {
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.WIRED_HEADSET);
a.g((a) this.j);
} else if (i == 3) {
a.h((a) this.j).i.selectOutputDevice(DiscordAudioManager.DeviceTypes.EARPIECE);
a.g((a) this.j);
} else {
throw null;
}
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, c.a.j.b> {
public static final c i = new c();
public c() {
super(1, c.a.j.b.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AudioOutputSelectionDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.j.b invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131361998;
MaterialRadioButton materialRadioButton = (MaterialRadioButton) view2.findViewById(2131361998);
if (materialRadioButton != null) {
i2 = 2131361999;
TextView textView = (TextView) view2.findViewById(2131361999);
if (textView != null) {
i2 = 2131362000;
RadioGroup radioGroup = (RadioGroup) view2.findViewById(2131362000);
if (radioGroup != null) {
i2 = 2131362001;
MaterialRadioButton materialRadioButton2 = (MaterialRadioButton) view2.findViewById(2131362001);
if (materialRadioButton2 != null) {
i2 = 2131362002;
MaterialRadioButton materialRadioButton3 = (MaterialRadioButton) view2.findViewById(2131362002);
if (materialRadioButton3 != null) {
i2 = 2131362003;
MaterialRadioButton materialRadioButton4 = (MaterialRadioButton) view2.findViewById(2131362003);
if (materialRadioButton4 != null) {
return new c.a.j.b((LinearLayout) view2, materialRadioButton, textView, radioGroup, materialRadioButton2, materialRadioButton3, materialRadioButton4);
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class d extends o implements Function1<d.a, Unit> {
public final /* synthetic */ a this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(a aVar) {
super(1);
this.this$0 = aVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(d.a aVar) {
int i;
d.a aVar2 = aVar;
m.checkNotNullParameter(aVar2, "viewState");
a aVar3 = this.this$0;
Objects.requireNonNull(aVar3);
m.checkNotNullParameter(aVar2, "viewState");
if (!(aVar2 instanceof d.a.b) && (aVar2 instanceof d.a.C0017a)) {
d.a.C0017a aVar4 = (d.a.C0017a) aVar2;
int ordinal = aVar4.a.ordinal();
if (ordinal == 2) {
MaterialRadioButton materialRadioButton = aVar3.i().e;
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionSpeakerRadio");
i = materialRadioButton.getId();
} else if (ordinal == 3) {
MaterialRadioButton materialRadioButton2 = aVar3.i().f;
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionWiredRadio");
i = materialRadioButton2.getId();
} else if (ordinal == 4) {
MaterialRadioButton materialRadioButton3 = aVar3.i().d;
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionEarpieceRadio");
i = materialRadioButton3.getId();
} else if (ordinal == 5) {
MaterialRadioButton materialRadioButton4 = aVar3.i().b;
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionBluetoothRadio");
i = materialRadioButton4.getId();
}
aVar3.i().f66c.check(i);
MaterialRadioButton materialRadioButton5 = aVar3.i().b;
m.checkNotNullExpressionValue(materialRadioButton5, "binding.audioOutputSelectionBluetoothRadio");
int i2 = 0;
materialRadioButton5.setVisibility(aVar4.b ? 0 : 8);
MaterialRadioButton materialRadioButton6 = aVar3.i().b;
m.checkNotNullExpressionValue(materialRadioButton6, "binding.audioOutputSelectionBluetoothRadio");
String str = aVar4.f37c;
if (str == null) {
str = aVar3.getString(2131886745);
}
materialRadioButton6.setText(str);
MaterialRadioButton materialRadioButton7 = aVar3.i().e;
m.checkNotNullExpressionValue(materialRadioButton7, "binding.audioOutputSelectionSpeakerRadio");
materialRadioButton7.setVisibility(aVar4.d ? 0 : 8);
MaterialRadioButton materialRadioButton8 = aVar3.i().f;
m.checkNotNullExpressionValue(materialRadioButton8, "binding.audioOutputSelectionWiredRadio");
materialRadioButton8.setVisibility(aVar4.e ? 0 : 8);
MaterialRadioButton materialRadioButton9 = aVar3.i().d;
m.checkNotNullExpressionValue(materialRadioButton9, "binding.audioOutputSelectionEarpieceRadio");
if (!aVar4.f) {
i2 = 8;
}
materialRadioButton9.setVisibility(i2);
}
return Unit.a;
}
}
/* compiled from: AudioOutputSelectionDialog.kt */
public static final class e extends o implements Function0<AppViewModel<d.a>> {
public static final e i = new e();
public e() {
super(0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<d.a> mo1invoke() {
return new d(null, null, 3);
}
}
public a() {
super(2131558433);
e eVar = e.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(d.class), new m(5, h0Var), new j0(eVar));
}
public static final void g(a aVar) {
Objects.requireNonNull(aVar);
Observable<Long> d02 = Observable.d0(300, TimeUnit.MILLISECONDS);
m.checkNotNullExpressionValue(d02, "Observable\n .time…S, TimeUnit.MILLISECONDS)");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(d02, aVar, null, 2, null), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new b(aVar), 62, (Object) null);
}
public static final d h(a aVar) {
return (d) aVar.l.getValue();
}
public final c.a.j.b i() {
return (c.a.j.b) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
int themedColor = ColorCompat.getThemedColor(view, 2130968949);
MaterialRadioButton materialRadioButton = i().b;
m.checkNotNullExpressionValue(materialRadioButton, "binding.audioOutputSelectionBluetoothRadio");
ColorCompatKt.setDrawableColor(materialRadioButton, themedColor);
MaterialRadioButton materialRadioButton2 = i().e;
m.checkNotNullExpressionValue(materialRadioButton2, "binding.audioOutputSelectionSpeakerRadio");
ColorCompatKt.setDrawableColor(materialRadioButton2, themedColor);
MaterialRadioButton materialRadioButton3 = i().f;
m.checkNotNullExpressionValue(materialRadioButton3, "binding.audioOutputSelectionWiredRadio");
ColorCompatKt.setDrawableColor(materialRadioButton3, themedColor);
MaterialRadioButton materialRadioButton4 = i().d;
m.checkNotNullExpressionValue(materialRadioButton4, "binding.audioOutputSelectionEarpieceRadio");
ColorCompatKt.setDrawableColor(materialRadioButton4, themedColor);
i().b.setOnClickListener(new View$OnClickListenerC0016a(0, this));
i().e.setOnClickListener(new View$OnClickListenerC0016a(1, this));
i().f.setOnClickListener(new View$OnClickListenerC0016a(2, this));
i().d.setOnClickListener(new View$OnClickListenerC0016a(3, this));
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
super.onViewBoundOrOnResume();
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(((d) this.l.getValue()).observeViewState(), this), a.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
}
}

View File

@ -0,0 +1,23 @@
package c.a.a.f.a;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: AudioOutputSelectionDialog.kt */
public final class b extends o implements Function1<Long, Unit> {
public final /* synthetic */ a this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(a aVar) {
super(1);
this.this$0 = aVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Long l) {
this.this$0.requireDialog().cancel();
return Unit.a;
}
}

View File

@ -0,0 +1,36 @@
package c.a.a.f.a;
import c.a.a.f.a.d;
import com.discord.rtcconnection.audio.DiscordAudioManager;
import com.discord.stores.StoreAudioManagerV2;
import d0.z.d.m;
import d0.z.d.o;
import java.util.List;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class c extends o implements Function1<StoreAudioManagerV2.State, Unit> {
public final /* synthetic */ d this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(d dVar) {
super(1);
this.this$0 = dVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(StoreAudioManagerV2.State state) {
StoreAudioManagerV2.State state2 = state;
m.checkNotNullParameter(state2, "storeState");
d dVar = this.this$0;
Objects.requireNonNull(dVar);
List<DiscordAudioManager.AudioDevice> audioDevices = state2.getAudioDevices();
DiscordAudioManager.DeviceTypes activeAudioDevice = state2.getActiveAudioDevice();
DiscordAudioManager.DeviceTypes deviceTypes = DiscordAudioManager.DeviceTypes.BLUETOOTH_HEADSET;
dVar.updateViewState(new d.a.C0017a(activeAudioDevice, audioDevices.get(deviceTypes.getValue()).b, audioDevices.get(deviceTypes.getValue()).d, audioDevices.get(DiscordAudioManager.DeviceTypes.SPEAKERPHONE.getValue()).b, audioDevices.get(DiscordAudioManager.DeviceTypes.WIRED_HEADSET.getValue()).b, audioDevices.get(DiscordAudioManager.DeviceTypes.EARPIECE.getValue()).b));
return Unit.a;
}
}

View File

@ -0,0 +1,143 @@
package c.a.a.f.a;
import android.content.Context;
import com.discord.app.AppViewModel;
import com.discord.rtcconnection.audio.DiscordAudioManager;
import com.discord.stores.StoreAudioManagerV2;
import com.discord.stores.StoreStream;
import com.discord.utilities.rx.ObservableExtensionsKt;
import d0.z.d.m;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import rx.Observable;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public final class d extends AppViewModel<a> {
public final StoreAudioManagerV2 i;
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static abstract class a {
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
/* renamed from: c.a.a.f.a.d$a$a reason: collision with other inner class name */
public static final class C0017a extends a {
public final DiscordAudioManager.DeviceTypes a;
public final boolean b;
/* renamed from: c reason: collision with root package name */
public final String f37c;
public final boolean d;
public final boolean e;
public final boolean f;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public C0017a(DiscordAudioManager.DeviceTypes deviceTypes, boolean z2, String str, boolean z3, boolean z4, boolean z5) {
super(null);
m.checkNotNullParameter(deviceTypes, "selectedAudioOutput");
this.a = deviceTypes;
this.b = z2;
this.f37c = str;
this.d = z3;
this.e = z4;
this.f = z5;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof C0017a)) {
return false;
}
C0017a aVar = (C0017a) obj;
return m.areEqual(this.a, aVar.a) && this.b == aVar.b && m.areEqual(this.f37c, aVar.f37c) && this.d == aVar.d && this.e == aVar.e && this.f == aVar.f;
}
public int hashCode() {
DiscordAudioManager.DeviceTypes deviceTypes = this.a;
int i = 0;
int hashCode = (deviceTypes != null ? deviceTypes.hashCode() : 0) * 31;
boolean z2 = this.b;
int i2 = 1;
if (z2) {
z2 = true;
}
int i3 = z2 ? 1 : 0;
int i4 = z2 ? 1 : 0;
int i5 = z2 ? 1 : 0;
int i6 = (hashCode + i3) * 31;
String str = this.f37c;
if (str != null) {
i = str.hashCode();
}
int i7 = (i6 + i) * 31;
boolean z3 = this.d;
if (z3) {
z3 = true;
}
int i8 = z3 ? 1 : 0;
int i9 = z3 ? 1 : 0;
int i10 = z3 ? 1 : 0;
int i11 = (i7 + i8) * 31;
boolean z4 = this.e;
if (z4) {
z4 = true;
}
int i12 = z4 ? 1 : 0;
int i13 = z4 ? 1 : 0;
int i14 = z4 ? 1 : 0;
int i15 = (i11 + i12) * 31;
boolean z5 = this.f;
if (!z5) {
i2 = z5 ? 1 : 0;
}
return i15 + i2;
}
public String toString() {
StringBuilder K = c.d.b.a.a.K("Loaded(selectedAudioOutput=");
K.append(this.a);
K.append(", showBluetoothItem=");
K.append(this.b);
K.append(", bluetoothDeviceName=");
K.append(this.f37c);
K.append(", showSpeakerItem=");
K.append(this.d);
K.append(", showWiredItem=");
K.append(this.e);
K.append(", showEarpieceItem=");
return c.d.b.a.a.F(K, this.f, ")");
}
}
/* compiled from: AudioOutputSelectionDialogViewModel.kt */
public static final class b extends a {
public static final b a = new b();
public b() {
super(null);
}
}
public a() {
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public d() {
this(null, null, 3);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(StoreAudioManagerV2 storeAudioManagerV2, Observable observable, int i) {
super(a.b.a);
StoreAudioManagerV2 audioManagerV2 = (i & 1) != 0 ? StoreStream.Companion.getAudioManagerV2() : null;
Observable<StoreAudioManagerV2.State> observeAudioManagerState = (i & 2) != 0 ? audioManagerV2.observeAudioManagerState() : null;
m.checkNotNullParameter(audioManagerV2, "storeAudioManager");
m.checkNotNullParameter(observeAudioManagerState, "storeStateObservable");
this.i = audioManagerV2;
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.computationLatest(observeAudioManagerState), this, null, 2, null), d.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
}
}

View File

@ -1,141 +0,0 @@
package c.a.a;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.o;
import c.a.d.f;
import c.a.d.h0;
import c.a.d.j0;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Lazy;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public final class g extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(g.class, "binding", "getBinding()Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public final Lazy l;
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public a(int i, Object obj) {
this.i = i;
this.j = obj;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
g.g((g) this.j, false);
} else if (i == 1) {
g.g((g) this.j, true);
} else {
throw null;
}
}
}
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.a> {
public static final c i = new c();
public c() {
super(1, c.a.i.a.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.a invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131361856;
TextView textView = (TextView) view2.findViewById(2131361856);
if (textView != null) {
i2 = 2131361857;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131361857);
if (materialButton != null) {
i2 = 2131361858;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131361858);
if (materialButton2 != null) {
i2 = 2131365665;
TextView textView2 = (TextView) view2.findViewById(2131365665);
if (textView2 != null) {
return new c.a.i.a((LinearLayout) view2, textView, materialButton, materialButton2, textView2);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final class d extends o implements Function0<AppViewModel<o.a>> {
public static final d i = new d();
public d() {
super(0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<o.a> mo1invoke() {
return new o(null, null, 3);
}
}
public g() {
super(2131558431);
d dVar = d.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(o.class), new m(0, h0Var), new j0(dVar));
}
public static final void g(g gVar, boolean z2) {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(((o) gVar.l.getValue()).i.setIsAccessibilityDetectionAllowed(z2), false, 1, null), o.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, p.i, 62, (Object) null);
gVar.dismiss();
}
public final c.a.i.a h() {
return (c.a.i.a) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
h().f58c.setOnClickListener(new a(0, this));
h().d.setOnClickListener(new a(1, this));
TextView textView = h().b;
m.checkNotNullExpressionValue(textView, "binding.accessibilityDetectionBodyText");
c.a.k.b.m(textView, 2131886119, new Object[]{f.a.a(360035966492L, null)}, null, 4);
}
}

View File

@ -0,0 +1,173 @@
package c.a.a.g;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.j.g5;
import com.discord.app.AppDialog;
import com.discord.stores.StoreNotices;
import com.discord.stores.StoreStream;
import com.discord.utilities.string.StringUtilsKt;
import com.discord.utilities.uri.UriHandler;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: WidgetMaskedLinksDialog.kt */
public final class a extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(a.class, "binding", "getBinding()Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: java-style lambda group */
/* renamed from: c.a.a.g.a$a reason: collision with other inner class name */
public static final class View$OnClickListenerC0018a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public final /* synthetic */ Object k;
public View$OnClickListenerC0018a(int i, Object obj, Object obj2) {
this.i = i;
this.j = obj;
this.k = obj2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
a aVar = (a) this.j;
m.checkNotNullExpressionValue(view, "v");
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "v.context");
String str = (String) this.k;
KProperty[] kPropertyArr = a.i;
Objects.requireNonNull(aVar);
UriHandler.handle$default(UriHandler.INSTANCE, context, str, null, 4, null);
aVar.dismiss();
} else if (i == 1) {
a aVar2 = (a) this.j;
m.checkNotNullExpressionValue(view, "v");
Context context2 = view.getContext();
m.checkNotNullExpressionValue(context2, "v.context");
String str2 = (String) this.k;
KProperty[] kPropertyArr2 = a.i;
Objects.requireNonNull(aVar2);
StoreStream.Companion.getMaskedLinks().trustDomain(str2);
UriHandler.handle$default(UriHandler.INSTANCE, context2, str2, null, 4, null);
aVar2.dismiss();
} else {
throw null;
}
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, g5> {
public static final c i = new c();
public c() {
super(1, g5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetMaskedLinksDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public g5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131363973;
TextView textView = (TextView) view2.findViewById(2131363973);
if (textView != null) {
i2 = 2131363974;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363974);
if (materialButton != null) {
i2 = 2131363975;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131363975);
if (materialButton2 != null) {
i2 = 2131363976;
TextView textView2 = (TextView) view2.findViewById(2131363976);
if (textView2 != null) {
i2 = 2131365750;
TextView textView3 = (TextView) view2.findViewById(2131365750);
if (textView3 != null) {
return new g5((LinearLayout) view2, textView, materialButton, materialButton2, textView2, textView3);
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: WidgetMaskedLinksDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ a i;
public d(a aVar) {
this.i = aVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
public a() {
super(2131559136);
}
public final g5 g() {
return (g5) this.k.getValue((Fragment) this, i[0]);
}
@Override // androidx.fragment.app.Fragment
public void onDestroy() {
super.onDestroy();
StoreNotices notices = StoreStream.Companion.getNotices();
Objects.requireNonNull(j);
StoreNotices.markSeen$default(notices, "WIDGET_SPOOPY_LINKS_DIALOG", 0, 2, null);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
String str;
Object obj;
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
Bundle arguments = getArguments();
if (arguments == null || (str = arguments.getString("WIDGET_SPOOPY_LINKS_DIALOG_URL")) == null) {
str = "";
}
m.checkNotNullExpressionValue(str, "arguments?.getString(DIALOG_URL) ?: \"\"");
try {
obj = StringUtilsKt.toPunyCodeASCIIUrl(str);
} catch (Exception unused) {
dismiss();
obj = Unit.a;
}
TextView textView = g().b;
m.checkNotNullExpressionValue(textView, "binding.maskedLinksBodyText");
c.a.l.b.n(textView, 2131891241, new Object[]{obj}, null, 4);
g().f100c.setOnClickListener(new d(this));
g().d.setOnClickListener(new View$OnClickListenerC0018a(0, this, str));
g().e.setOnClickListener(new View$OnClickListenerC0018a(1, this, str));
}
}

View File

@ -5,87 +5,90 @@ import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import c.a.d.o;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.p;
import c.a.e.f;
import c.a.e.h0;
import c.a.e.j0;
import com.discord.app.AppDialog;
import com.discord.utilities.uri.UriHandler;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.app.AppViewModel;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Lazy;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: ConnectedAccountActionsDialog.kt */
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public final class h extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(h.class, "binding", "getBinding()Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(h.class, "binding", "getBinding()Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public final Lazy l;
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public final /* synthetic */ Object k;
public a(int i, Object obj, Object obj2) {
public a(int i, Object obj) {
this.i = i;
this.j = obj;
this.k = obj2;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
UriHandler uriHandler = UriHandler.INSTANCE;
Context requireContext = ((h) this.j).requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
UriHandler.handle$default(uriHandler, requireContext, (String) this.k, null, 4, null);
((h) this.j).dismiss();
h.g((h) this.j, false);
} else if (i == 1) {
Context requireContext2 = ((h) this.j).requireContext();
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
String str = (String) this.k;
m.checkNotNullExpressionValue(str, "username");
o.a(requireContext2, str, 2131887628);
((h) this.j).dismiss();
h.g((h) this.j, true);
} else {
throw null;
}
}
}
/* compiled from: ConnectedAccountActionsDialog.kt */
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: ConnectedAccountActionsDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, c.a.i.h> {
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, c.a.j.a> {
public static final c i = new c();
public c() {
super(1, c.a.i.h.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0);
super(1, c.a.j.a.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/AllowAccessibilityDetectionDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.h invoke(View view) {
public c.a.j.a invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362711;
TextView textView = (TextView) view2.findViewById(2131362711);
int i2 = 2131361856;
TextView textView = (TextView) view2.findViewById(2131361856);
if (textView != null) {
i2 = 2131362712;
TextView textView2 = (TextView) view2.findViewById(2131362712);
if (textView2 != null) {
i2 = 2131362713;
TextView textView3 = (TextView) view2.findViewById(2131362713);
if (textView3 != null) {
return new c.a.i.h((LinearLayout) view2, textView, textView2, textView3);
i2 = 2131361857;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131361857);
if (materialButton != null) {
i2 = 2131361858;
MaterialButton materialButton2 = (MaterialButton) view2.findViewById(2131361858);
if (materialButton2 != null) {
i2 = 2131365750;
TextView textView2 = (TextView) view2.findViewById(2131365750);
if (textView2 != null) {
return new c.a.j.a((LinearLayout) view2, textView, materialButton, materialButton2, textView2);
}
}
}
}
@ -93,33 +96,46 @@ public final class h extends AppDialog {
}
}
public h() {
super(2131558447);
/* compiled from: WidgetAccessibilityDetectionDialog.kt */
public static final class d extends o implements Function0<AppViewModel<p.a>> {
public static final d i = new d();
public d() {
super(0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<p.a> mo1invoke() {
return new p(null, null, 3);
}
}
public final c.a.i.h g() {
return (c.a.i.h) this.k.getValue((Fragment) this, i[0]);
public h() {
super(2131558431);
d dVar = d.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(p.class), new m(0, h0Var), new j0(dVar));
}
public static final void g(h hVar, boolean z2) {
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.restSubscribeOn$default(((p) hVar.l.getValue()).i.setIsAccessibilityDetectionAllowed(z2), false, 1, null), p.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, q.i, 62, (Object) null);
hVar.dismiss();
}
public final c.a.j.a h() {
return (c.a.j.a) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
String string = getArgumentsOrDefault().getString("ARG_PROFILE_URL", "");
String string2 = getArgumentsOrDefault().getString("ARG_USERNAME", "");
int i2 = getArgumentsOrDefault().getInt("ARG_PLATFORM_IMAGE_RES", 0);
if (i2 != 0) {
TextView textView = g().f100c;
m.checkNotNullExpressionValue(textView, "binding.connectedAccountActionsDialogHeader");
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView, i2, 0, 0, 0, 14, null);
}
TextView textView2 = g().f100c;
m.checkNotNullExpressionValue(textView2, "binding.connectedAccountActionsDialogHeader");
textView2.setText(string2);
TextView textView3 = g().d;
m.checkNotNullExpressionValue(textView3, "binding.connectedAccountActionsDialogOpenInBrowser");
textView3.setVisibility((string == null || string.length() == 0) ^ true ? 0 : 8);
g().d.setOnClickListener(new a(0, this, string));
g().b.setOnClickListener(new a(1, this, string2));
h().f59c.setOnClickListener(new a(0, this));
h().d.setOnClickListener(new a(1, this));
TextView textView = h().b;
m.checkNotNullExpressionValue(textView, "binding.accessibilityDetectionBodyText");
c.a.l.b.n(textView, 2131886119, new Object[]{f.a.a(360035966492L, null)}, null, 4);
}
}

View File

@ -1,66 +1,92 @@
package c.a.a;
import android.os.Bundle;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.e;
import c.a.e.o;
import c.a.j.h;
import com.discord.app.AppDialog;
import com.discord.utilities.uri.UriHandler;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: CameraCapacityDialog.kt */
/* compiled from: ConnectedAccountActionsDialog.kt */
public final class i extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(i.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(i.class, "binding", "getBinding()Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0)};
public static final b j = new b(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
/* compiled from: CameraCapacityDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
/* compiled from: java-style lambda group */
public static final class a implements View.OnClickListener {
public final /* synthetic */ int i;
public final /* synthetic */ Object j;
public final /* synthetic */ Object k;
public a(int i, Object obj, Object obj2) {
this.i = i;
this.j = obj;
this.k = obj2;
}
public final void a(FragmentManager fragmentManager, int i) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
Bundle bundle = new Bundle();
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
i iVar = new i();
iVar.setArguments(bundle);
iVar.show(fragmentManager, i.class.getSimpleName());
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
int i = this.i;
if (i == 0) {
UriHandler uriHandler = UriHandler.INSTANCE;
Context requireContext = ((i) this.j).requireContext();
m.checkNotNullExpressionValue(requireContext, "requireContext()");
UriHandler.handle$default(uriHandler, requireContext, (String) this.k, null, 4, null);
((i) this.j).dismiss();
} else if (i == 1) {
Context requireContext2 = ((i) this.j).requireContext();
m.checkNotNullExpressionValue(requireContext2, "requireContext()");
String str = (String) this.k;
m.checkNotNullExpressionValue(str, "username");
o.a(requireContext2, str, 2131887638);
((i) this.j).dismiss();
} else {
throw null;
}
}
}
/* compiled from: CameraCapacityDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, e> {
public static final b i = new b();
/* compiled from: ConnectedAccountActionsDialog.kt */
public static final class b {
public b(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public b() {
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0);
/* compiled from: ConnectedAccountActionsDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, h> {
public static final c i = new c();
public c() {
super(1, h.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/ConnectedAccountActionsDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public e invoke(View view) {
public h invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362234;
TextView textView = (TextView) view2.findViewById(2131362234);
int i2 = 2131362722;
TextView textView = (TextView) view2.findViewById(2131362722);
if (textView != null) {
i2 = 2131362235;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362235);
if (materialButton != null) {
i2 = 2131364140;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364140);
if (linearLayout != null) {
return new e((LinearLayout) view2, textView, materialButton, linearLayout);
i2 = 2131362723;
TextView textView2 = (TextView) view2.findViewById(2131362723);
if (textView2 != null) {
i2 = 2131362724;
TextView textView3 = (TextView) view2.findViewById(2131362724);
if (textView3 != null) {
return new h((LinearLayout) view2, textView, textView2, textView3);
}
}
}
@ -68,35 +94,33 @@ public final class i extends AppDialog {
}
}
/* compiled from: CameraCapacityDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ i i;
public c(i iVar) {
this.i = iVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
public i() {
super(2131558438);
super(2131558447);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
requireDialog().setCanceledOnTouchOutside(true);
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.k;
KProperty<?>[] kPropertyArr = i;
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f83c.setOnClickListener(new c(this));
Bundle arguments = getArguments();
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
TextView textView = ((e) this.k.getValue((Fragment) this, kPropertyArr[0])).b;
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
textView.setText(c.a.k.b.j(this, 2131894819, new Object[]{String.valueOf(valueOf)}, null, 4));
public final h g() {
return (h) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
String string = getArgumentsOrDefault().getString("ARG_PROFILE_URL", "");
String string2 = getArgumentsOrDefault().getString("ARG_USERNAME", "");
int i2 = getArgumentsOrDefault().getInt("ARG_PLATFORM_IMAGE_RES", 0);
if (i2 != 0) {
TextView textView = g().f101c;
m.checkNotNullExpressionValue(textView, "binding.connectedAccountActionsDialogHeader");
ViewExtensions.setCompoundDrawableWithIntrinsicBounds$default(textView, i2, 0, 0, 0, 14, null);
}
TextView textView2 = g().f101c;
m.checkNotNullExpressionValue(textView2, "binding.connectedAccountActionsDialogHeader");
textView2.setText(string2);
TextView textView3 = g().d;
m.checkNotNullExpressionValue(textView3, "binding.connectedAccountActionsDialogOpenInBrowser");
textView3.setVisibility((string == null || string.length() == 0) ^ true ? 0 : 8);
g().d.setOnClickListener(new a(0, this, string));
g().b.setOnClickListener(new a(1, this, string2));
}
}

View File

@ -2,75 +2,65 @@ package c.a.a;
import android.os.Bundle;
import android.view.View;
import android.widget.DatePicker;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.j.e;
import com.discord.app.AppDialog;
import com.discord.utilities.birthday.BirthdayHelper;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import java.util.Calendar;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: DatePickerDialog.kt */
/* compiled from: CameraCapacityDialog.kt */
public final class j extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(j.class, "binding", "getBinding()Lcom/discord/databinding/DialogDatePickerBinding;", 0)};
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(j.class, "binding", "getBinding()Lcom/discord/databinding/CameraCapacityDialogBinding;", 0)};
public static final a j = new a(null);
public Function1<? super Long, Unit> k;
public long l;
public boolean m;
public final FragmentViewBindingDelegate n = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: DatePickerDialog.kt */
/* compiled from: CameraCapacityDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final j a(FragmentManager fragmentManager, CharSequence charSequence, long j, long j2) {
public final void a(FragmentManager fragmentManager, int i) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(charSequence, "label");
j jVar = new j();
Bundle bundle = new Bundle();
bundle.putCharSequence("label", charSequence);
bundle.putLong("initial_date", j);
bundle.putLong("max_date", j2);
bundle.putInt("ARG_MAX_VIDEO_CHANNEL_USERS", i);
j jVar = new j();
jVar.setArguments(bundle);
jVar.show(fragmentManager, j.class.getName());
return jVar;
jVar.show(fragmentManager, j.class.getSimpleName());
}
}
/* compiled from: DatePickerDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, c.a.i.k> {
/* compiled from: CameraCapacityDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, e> {
public static final b i = new b();
public b() {
super(1, c.a.i.k.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogDatePickerBinding;", 0);
super(1, e.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/CameraCapacityDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.i.k invoke(View view) {
public e invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362919;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362919);
if (materialButton != null) {
i2 = 2131362920;
DatePicker datePicker = (DatePicker) view2.findViewById(2131362920);
if (datePicker != null) {
i2 = 2131362921;
TextView textView = (TextView) view2.findViewById(2131362921);
if (textView != null) {
return new c.a.i.k((LinearLayout) view2, materialButton, datePicker, textView);
int i2 = 2131362237;
TextView textView = (TextView) view2.findViewById(2131362237);
if (textView != null) {
i2 = 2131362238;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362238);
if (materialButton != null) {
i2 = 2131364221;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364221);
if (linearLayout != null) {
return new e((LinearLayout) view2, textView, materialButton, linearLayout);
}
}
}
@ -78,94 +68,35 @@ public final class j extends AppDialog {
}
}
/* compiled from: DatePickerDialog.kt */
public static final class c implements DatePicker.OnDateChangedListener {
/* compiled from: CameraCapacityDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ j i;
public c(j jVar) {
this.i = jVar;
}
@Override // android.widget.DatePicker.OnDateChangedListener
public final void onDateChanged(DatePicker datePicker, int i, int i2, int i3) {
Calendar instance = Calendar.getInstance();
instance.set(i, i2, i3);
j jVar = this.i;
m.checkNotNullExpressionValue(instance, "cal");
jVar.l = instance.getTimeInMillis();
j jVar2 = this.i;
jVar2.m = true;
Function1<? super Long, Unit> function1 = jVar2.k;
if (function1 != null) {
function1.invoke(Long.valueOf(jVar2.l));
}
}
}
/* compiled from: DatePickerDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ j i;
public d(j jVar) {
this.i = jVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function1<? super Long, Unit> function1;
j jVar = this.i;
if (jVar.m && (function1 = jVar.k) != null) {
function1.invoke(Long.valueOf(jVar.l));
}
this.i.dismiss();
}
}
public j() {
super(2131558478);
}
public final c.a.i.k g() {
return (c.a.i.k) this.n.getValue((Fragment) this, i[0]);
super(2131558438);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
g().f113c.clearFocus();
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
CharSequence charSequence;
super.onViewBoundOrOnResume();
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.dialogDatePickerTitle");
public void onResume() {
super.onResume();
requireDialog().setCanceledOnTouchOutside(true);
FragmentViewBindingDelegate fragmentViewBindingDelegate = this.k;
KProperty<?>[] kPropertyArr = i;
((e) fragmentViewBindingDelegate.getValue((Fragment) this, kPropertyArr[0])).f85c.setOnClickListener(new c(this));
Bundle arguments = getArguments();
if (arguments == null || (charSequence = arguments.getCharSequence("label")) == null) {
charSequence = "";
}
textView.setText(charSequence);
DatePicker datePicker = g().f113c;
m.checkNotNullExpressionValue(datePicker, "binding.dialogDatePickerInput");
Bundle arguments2 = getArguments();
long j2 = 0;
datePicker.setMaxDate(arguments2 != null ? arguments2.getLong("max_date") : 0);
DatePicker datePicker2 = g().f113c;
m.checkNotNullExpressionValue(datePicker2, "binding.dialogDatePickerInput");
datePicker2.setMinDate(BirthdayHelper.INSTANCE.subtractYearsFromToday(150));
Bundle arguments3 = getArguments();
if (arguments3 != null) {
j2 = arguments3.getLong("initial_date");
}
this.l = j2;
if (this.k == null) {
dismiss();
}
Calendar instance = Calendar.getInstance();
m.checkNotNullExpressionValue(instance, "calendar");
instance.setTimeInMillis(this.l);
g().f113c.init(instance.get(1), instance.get(2), instance.get(5), new c(this));
g().b.setOnClickListener(new d(this));
Integer valueOf = arguments != null ? Integer.valueOf(arguments.getInt("ARG_MAX_VIDEO_CHANNEL_USERS")) : null;
TextView textView = ((e) this.k.getValue((Fragment) this, kPropertyArr[0])).b;
m.checkNotNullExpressionValue(textView, "binding.cameraCapacityBody");
textView.setText(c.a.l.b.k(this, 2131894916, new Object[]{String.valueOf(valueOf)}, null, 4));
}
}

View File

@ -1,26 +1,170 @@
package c.a.a;
import android.os.Bundle;
import android.view.View;
import android.widget.DatePicker;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.discord.app.AppDialog;
import com.discord.utilities.birthday.BirthdayHelper;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Calendar;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: FriendRequestDialogs.kt */
public final class k extends o implements Function1<View, Unit> {
public final /* synthetic */ Function1 $onConfirm;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: DatePickerDialog.kt */
public final class k extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(k.class, "binding", "getBinding()Lcom/discord/databinding/DialogDatePickerBinding;", 0)};
public static final a j = new a(null);
public Function1<? super Long, Unit> k;
public long l;
public boolean m;
public final FragmentViewBindingDelegate n = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public k(Function1 function1) {
super(1);
this.$onConfirm = function1;
/* compiled from: DatePickerDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final k a(FragmentManager fragmentManager, CharSequence charSequence, long j, long j2) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(charSequence, "label");
k kVar = new k();
Bundle bundle = new Bundle();
bundle.putCharSequence("label", charSequence);
bundle.putLong("initial_date", j);
bundle.putLong("max_date", j2);
kVar.setArguments(bundle);
kVar.show(fragmentManager, k.class.getName());
return kVar;
}
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(View view) {
m.checkNotNullParameter(view, "<anonymous parameter 0>");
this.$onConfirm.invoke(2131888817);
return Unit.a;
/* compiled from: DatePickerDialog.kt */
public static final /* synthetic */ class b extends d0.z.d.k implements Function1<View, c.a.j.k> {
public static final b i = new b();
public b() {
super(1, c.a.j.k.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogDatePickerBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public c.a.j.k invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362941;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362941);
if (materialButton != null) {
i2 = 2131362942;
DatePicker datePicker = (DatePicker) view2.findViewById(2131362942);
if (datePicker != null) {
i2 = 2131362943;
TextView textView = (TextView) view2.findViewById(2131362943);
if (textView != null) {
return new c.a.j.k((LinearLayout) view2, materialButton, datePicker, textView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: DatePickerDialog.kt */
public static final class c implements DatePicker.OnDateChangedListener {
public final /* synthetic */ k i;
public c(k kVar) {
this.i = kVar;
}
@Override // android.widget.DatePicker.OnDateChangedListener
public final void onDateChanged(DatePicker datePicker, int i, int i2, int i3) {
Calendar instance = Calendar.getInstance();
instance.set(i, i2, i3);
k kVar = this.i;
m.checkNotNullExpressionValue(instance, "cal");
kVar.l = instance.getTimeInMillis();
k kVar2 = this.i;
kVar2.m = true;
Function1<? super Long, Unit> function1 = kVar2.k;
if (function1 != null) {
function1.invoke(Long.valueOf(kVar2.l));
}
}
}
/* compiled from: DatePickerDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ k i;
public d(k kVar) {
this.i = kVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Function1<? super Long, Unit> function1;
k kVar = this.i;
if (kVar.m && (function1 = kVar.k) != null) {
function1.invoke(Long.valueOf(kVar.l));
}
this.i.dismiss();
}
}
public k() {
super(2131558478);
}
public final c.a.j.k g() {
return (c.a.j.k) this.n.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
g().f115c.clearFocus();
}
@Override // com.discord.app.AppDialog
public void onViewBoundOrOnResume() {
CharSequence charSequence;
super.onViewBoundOrOnResume();
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.dialogDatePickerTitle");
Bundle arguments = getArguments();
if (arguments == null || (charSequence = arguments.getCharSequence("label")) == null) {
charSequence = "";
}
textView.setText(charSequence);
DatePicker datePicker = g().f115c;
m.checkNotNullExpressionValue(datePicker, "binding.dialogDatePickerInput");
Bundle arguments2 = getArguments();
long j2 = 0;
datePicker.setMaxDate(arguments2 != null ? arguments2.getLong("max_date") : 0);
DatePicker datePicker2 = g().f115c;
m.checkNotNullExpressionValue(datePicker2, "binding.dialogDatePickerInput");
datePicker2.setMinDate(BirthdayHelper.INSTANCE.subtractYearsFromToday(150));
Bundle arguments3 = getArguments();
if (arguments3 != null) {
j2 = arguments3.getLong("initial_date");
}
this.l = j2;
if (this.k == null) {
dismiss();
}
Calendar instance = Calendar.getInstance();
m.checkNotNullExpressionValue(instance, "calendar");
instance.setTimeInMillis(this.l);
g().f115c.init(instance.get(1), instance.get(2), instance.get(5), new c(this));
g().b.setOnClickListener(new d(this));
}
}

View File

@ -1,85 +1,26 @@
package c.a.a;
import android.view.View;
import android.widget.LinearLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.a.i.s;
import com.discord.app.AppDialog;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.google.android.material.button.MaterialButton;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: GuildVideoAtCapacityDialog.kt */
public final class l extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(l.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: FriendRequestDialogs.kt */
public final class l extends o implements Function1<View, Unit> {
public final /* synthetic */ Function1 $onConfirm;
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final void a(FragmentManager fragmentManager) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
new l().show(fragmentManager, l.class.getSimpleName());
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public l(Function1 function1) {
super(1);
this.$onConfirm = function1;
}
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, s> {
public static final b i = new b();
public b() {
super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public s invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131363559;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363559);
if (materialButton != null) {
i2 = 2131364140;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364140);
if (linearLayout != null) {
return new s((LinearLayout) view2, materialButton, linearLayout);
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ l i;
public c(l lVar) {
this.i = lVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
public l() {
super(2131558523);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
requireDialog().setCanceledOnTouchOutside(true);
((s) this.k.getValue((Fragment) this, i[0])).b.setOnClickListener(new c(this));
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(View view) {
m.checkNotNullParameter(view, "<anonymous parameter 0>");
this.$onConfirm.invoke(2131888834);
return Unit.a;
}
}

View File

@ -1,122 +1,67 @@
package c.a.a;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;
import c.a.i.l;
import c.a.j.s;
import com.discord.app.AppDialog;
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.google.android.material.button.MaterialButton;
import d0.t.j;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SelectorDialog.kt */
/* compiled from: GuildVideoAtCapacityDialog.kt */
public final class m extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(m.class, "binding", "getBinding()Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0)};
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(m.class, "binding", "getBinding()Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0)};
public static final a j = new a(null);
public Function1<? super Integer, Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
/* compiled from: SelectorDialog.kt */
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final m a(FragmentManager fragmentManager, CharSequence charSequence, CharSequence[] charSequenceArr, Function1<? super Integer, Unit> function1) {
public final void a(FragmentManager fragmentManager) {
d0.z.d.m.checkNotNullParameter(fragmentManager, "fragmentManager");
d0.z.d.m.checkNotNullParameter(charSequence, "title");
d0.z.d.m.checkNotNullParameter(charSequenceArr, "options");
d0.z.d.m.checkNotNullParameter(function1, "onSelectedListener");
m mVar = new m();
Bundle bundle = new Bundle();
bundle.putCharSequence("INTENT_DIALOG_TITLE", charSequence);
bundle.putCharSequenceArray("INTENT_DIALOG_OPTIONS", charSequenceArr);
mVar.setArguments(bundle);
mVar.k = function1;
mVar.show(fragmentManager, a0.getOrCreateKotlinClass(m.class).toString());
return mVar;
new m().show(fragmentManager, m.class.getSimpleName());
}
}
/* compiled from: SelectorDialog.kt */
public final class b extends SimpleRecyclerAdapter.ViewHolder<CharSequence> {
public final c.a.i.m a;
public final /* synthetic */ m b;
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, s> {
public static final b i = new b();
/* JADX WARNING: Illegal instructions before constructor call */
public b(m mVar, c.a.i.m mVar2) {
super(r2);
d0.z.d.m.checkNotNullParameter(mVar2, "binding");
this.b = mVar;
TextView textView = mVar2.a;
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.root");
this.a = mVar2;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
public void bind(CharSequence charSequence) {
CharSequence charSequence2 = charSequence;
d0.z.d.m.checkNotNullParameter(charSequence2, "data");
TextView textView = this.a.a;
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.root");
textView.setText(charSequence2);
this.a.a.setOnClickListener(new n(this));
}
}
/* compiled from: SelectorDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, l> {
public static final c i = new c();
public c() {
super(1, l.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0);
public b() {
super(1, s.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/GuildVideoAtCapacityBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public l invoke(View view) {
public s invoke(View view) {
View view2 = view;
d0.z.d.m.checkNotNullParameter(view2, "p1");
int i2 = 2131362900;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362900);
int i2 = 2131363640;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363640);
if (materialButton != null) {
i2 = 2131362924;
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(2131362924);
if (maxHeightRecyclerView != null) {
i2 = 2131362925;
TextView textView = (TextView) view2.findViewById(2131362925);
if (textView != null) {
return new l((LinearLayout) view2, materialButton, maxHeightRecyclerView, textView);
}
i2 = 2131364221;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131364221);
if (linearLayout != null) {
return new s((LinearLayout) view2, materialButton, linearLayout);
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: SelectorDialog.kt */
public static final class d implements View.OnClickListener {
/* compiled from: GuildVideoAtCapacityDialog.kt */
public static final class c implements View.OnClickListener {
public final /* synthetic */ m i;
public d(m mVar) {
public c(m mVar) {
this.i = mVar;
}
@ -126,70 +71,14 @@ public final class m extends AppDialog {
}
}
/* compiled from: SelectorDialog.kt */
public static final class e extends o implements Function2<LayoutInflater, ViewGroup, b> {
public final /* synthetic */ m this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(m mVar) {
super(2);
this.this$0 = mVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public b invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
LayoutInflater layoutInflater2 = layoutInflater;
ViewGroup viewGroup2 = viewGroup;
d0.z.d.m.checkNotNullParameter(layoutInflater2, "inflater");
d0.z.d.m.checkNotNullParameter(viewGroup2, "parent");
View inflate = layoutInflater2.inflate(2131558480, viewGroup2, false);
Objects.requireNonNull(inflate, "rootView");
c.a.i.m mVar = new c.a.i.m((TextView) inflate);
d0.z.d.m.checkNotNullExpressionValue(mVar, "DialogSimpleSelectorItem…(inflater, parent, false)");
return new b(this.this$0, mVar);
}
}
public m() {
super(2131558479);
}
public final l g() {
return (l) this.l.getValue((Fragment) this, i[0]);
super(2131558523);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
dismiss();
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
d0.z.d.m.checkNotNullParameter(view, "view");
super.onViewBound(view);
TextView textView = g().d;
d0.z.d.m.checkNotNullExpressionValue(textView, "binding.dialogTitle");
textView.setText(getArgumentsOrDefault().getCharSequence("INTENT_DIALOG_TITLE", null));
g().b.setOnClickListener(new d(this));
CharSequence[] charSequenceArray = getArgumentsOrDefault().getCharSequenceArray("INTENT_DIALOG_OPTIONS");
if (charSequenceArray != null) {
MaxHeightRecyclerView maxHeightRecyclerView = g().f119c;
d0.z.d.m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.dialogSelections");
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(j.asList(charSequenceArray), new e(this)));
MaxHeightRecyclerView maxHeightRecyclerView2 = g().f119c;
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
if (adapter != null) {
adapter.notifyDataSetChanged();
}
maxHeightRecyclerView2.setHasFixedSize(false);
maxHeightRecyclerView2.setNestedScrollingEnabled(false);
SimpleRecyclerAdapter.Companion companion = SimpleRecyclerAdapter.Companion;
MaxHeightRecyclerView maxHeightRecyclerView3 = g().f119c;
d0.z.d.m.checkNotNullExpressionValue(maxHeightRecyclerView3, "binding.dialogSelections");
companion.addThemedDivider(maxHeightRecyclerView3);
}
public void onResume() {
super.onResume();
requireDialog().setCanceledOnTouchOutside(true);
((s) this.k.getValue((Fragment) this, i[0])).b.setOnClickListener(new c(this));
}
}

View File

@ -1,24 +1,196 @@
package c.a.a;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import c.a.a.m;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.RecyclerView;
import c.a.j.l;
import com.discord.app.AppDialog;
import com.discord.utilities.view.recycler.MaxHeightRecyclerView;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.utilities.views.SimpleRecyclerAdapter;
import com.google.android.material.button.MaterialButton;
import d0.t.j;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
/* compiled from: SelectorDialog.kt */
public final class n implements View.OnClickListener {
public final /* synthetic */ m.b i;
public final class n extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(n.class, "binding", "getBinding()Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0)};
public static final a j = new a(null);
public Function1<? super Integer, Unit> k;
public final FragmentViewBindingDelegate l = FragmentViewBindingDelegateKt.viewBinding$default(this, c.i, null, 2, null);
public n(m.b bVar) {
this.i = bVar;
/* compiled from: SelectorDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
public final n a(FragmentManager fragmentManager, CharSequence charSequence, CharSequence[] charSequenceArr, Function1<? super Integer, Unit> function1) {
m.checkNotNullParameter(fragmentManager, "fragmentManager");
m.checkNotNullParameter(charSequence, "title");
m.checkNotNullParameter(charSequenceArr, "options");
m.checkNotNullParameter(function1, "onSelectedListener");
n nVar = new n();
Bundle bundle = new Bundle();
bundle.putCharSequence("INTENT_DIALOG_TITLE", charSequence);
bundle.putCharSequenceArray("INTENT_DIALOG_OPTIONS", charSequenceArr);
nVar.setArguments(bundle);
nVar.k = function1;
nVar.show(fragmentManager, a0.getOrCreateKotlinClass(n.class).toString());
return nVar;
}
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
m.b bVar = this.i;
Function1<? super Integer, Unit> function1 = bVar.b.k;
if (function1 != null) {
function1.invoke(Integer.valueOf(bVar.getAdapterPosition()));
/* compiled from: SelectorDialog.kt */
public final class b extends SimpleRecyclerAdapter.ViewHolder<CharSequence> {
public final c.a.j.m a;
public final /* synthetic */ n b;
/* JADX WARNING: Illegal instructions before constructor call */
public b(n nVar, c.a.j.m mVar) {
super(r2);
m.checkNotNullParameter(mVar, "binding");
this.b = nVar;
TextView textView = mVar.a;
m.checkNotNullExpressionValue(textView, "binding.root");
this.a = mVar;
}
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // com.discord.utilities.views.SimpleRecyclerAdapter.ViewHolder
public void bind(CharSequence charSequence) {
CharSequence charSequence2 = charSequence;
m.checkNotNullParameter(charSequence2, "data");
TextView textView = this.a.a;
m.checkNotNullExpressionValue(textView, "binding.root");
textView.setText(charSequence2);
this.a.a.setOnClickListener(new o(this));
}
}
/* compiled from: SelectorDialog.kt */
public static final /* synthetic */ class c extends k implements Function1<View, l> {
public static final c i = new c();
public c() {
super(1, l.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/DialogSimpleSelectorBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public l invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131362922;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131362922);
if (materialButton != null) {
i2 = 2131362946;
MaxHeightRecyclerView maxHeightRecyclerView = (MaxHeightRecyclerView) view2.findViewById(2131362946);
if (maxHeightRecyclerView != null) {
i2 = 2131362947;
TextView textView = (TextView) view2.findViewById(2131362947);
if (textView != null) {
return new l((LinearLayout) view2, materialButton, maxHeightRecyclerView, textView);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: SelectorDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ n i;
public d(n nVar) {
this.i = nVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
this.i.dismiss();
}
}
/* compiled from: SelectorDialog.kt */
public static final class e extends o implements Function2<LayoutInflater, ViewGroup, b> {
public final /* synthetic */ n this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public e(n nVar) {
super(2);
this.this$0 = nVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public b invoke(LayoutInflater layoutInflater, ViewGroup viewGroup) {
LayoutInflater layoutInflater2 = layoutInflater;
ViewGroup viewGroup2 = viewGroup;
m.checkNotNullParameter(layoutInflater2, "inflater");
m.checkNotNullParameter(viewGroup2, "parent");
View inflate = layoutInflater2.inflate(2131558480, viewGroup2, false);
Objects.requireNonNull(inflate, "rootView");
c.a.j.m mVar = new c.a.j.m((TextView) inflate);
m.checkNotNullExpressionValue(mVar, "DialogSimpleSelectorItem…(inflater, parent, false)");
return new b(this.this$0, mVar);
}
}
public n() {
super(2131558479);
}
public final l g() {
return (l) this.l.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog, androidx.fragment.app.Fragment
public void onPause() {
super.onPause();
dismiss();
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
TextView textView = g().d;
m.checkNotNullExpressionValue(textView, "binding.dialogTitle");
textView.setText(getArgumentsOrDefault().getCharSequence("INTENT_DIALOG_TITLE", null));
g().b.setOnClickListener(new d(this));
CharSequence[] charSequenceArray = getArgumentsOrDefault().getCharSequenceArray("INTENT_DIALOG_OPTIONS");
if (charSequenceArray != null) {
MaxHeightRecyclerView maxHeightRecyclerView = g().f120c;
m.checkNotNullExpressionValue(maxHeightRecyclerView, "binding.dialogSelections");
maxHeightRecyclerView.setAdapter(new SimpleRecyclerAdapter(j.asList(charSequenceArray), new e(this)));
MaxHeightRecyclerView maxHeightRecyclerView2 = g().f120c;
RecyclerView.Adapter adapter = maxHeightRecyclerView2.getAdapter();
if (adapter != null) {
adapter.notifyDataSetChanged();
}
maxHeightRecyclerView2.setHasFixedSize(false);
maxHeightRecyclerView2.setNestedScrollingEnabled(false);
SimpleRecyclerAdapter.Companion companion = SimpleRecyclerAdapter.Companion;
MaxHeightRecyclerView maxHeightRecyclerView3 = g().f120c;
m.checkNotNullExpressionValue(maxHeightRecyclerView3, "binding.dialogSelections");
companion.addThemedDivider(maxHeightRecyclerView3);
}
this.i.b.dismiss();
}
}

View File

@ -1,54 +1,24 @@
package c.a.a;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreNotices;
import com.discord.stores.StoreStream;
import com.discord.stores.StoreUserSettings;
import d0.z.d.m;
import java.util.Objects;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
public final class o extends AppViewModel<a> {
public final StoreUserSettings i;
public final StoreNotices j;
import android.view.View;
import c.a.a.n;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: SelectorDialog.kt */
public final class o implements View.OnClickListener {
public final /* synthetic */ n.b i;
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
public static abstract class a {
public o(n.b bVar) {
this.i = bVar;
}
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
/* renamed from: c.a.a.o$a$a reason: collision with other inner class name */
public static final class C0017a extends a {
public static final C0017a a = new C0017a();
public C0017a() {
super(null);
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
n.b bVar = this.i;
Function1<? super Integer, Unit> function1 = bVar.b.k;
if (function1 != null) {
function1.invoke(Integer.valueOf(bVar.getAdapterPosition()));
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public o() {
this(null, null, 3);
}
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public o(StoreUserSettings storeUserSettings, StoreNotices storeNotices, int i) {
super(a.C0017a.a);
StoreNotices storeNotices2 = null;
StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null;
storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2;
m.checkNotNullParameter(userSettings, "storeUserSettings");
m.checkNotNullParameter(storeNotices2, "storeNotices");
this.i = userSettings;
this.j = storeNotices2;
}
@Override // com.discord.app.AppViewModel, androidx.lifecycle.ViewModel
public void onCleared() {
StoreNotices storeNotices = this.j;
Objects.requireNonNull(g.j);
StoreNotices.markSeen$default(storeNotices, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG", 0, 2, null);
this.i.b.dismiss();
}
}

View File

@ -1,23 +1,54 @@
package c.a.a;
import com.discord.models.domain.ModelUserSettings;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreNotices;
import com.discord.stores.StoreStream;
import com.discord.stores.StoreUserSettings;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import java.util.Objects;
import kotlin.jvm.internal.DefaultConstructorMarker;
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
public final class p extends o implements Function1<ModelUserSettings, Unit> {
public static final p i = new p();
public final class p extends AppViewModel<a> {
public final StoreUserSettings i;
public final StoreNotices j;
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
public static abstract class a {
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
/* renamed from: c.a.a.p$a$a reason: collision with other inner class name */
public static final class C0019a extends a {
public static final C0019a a = new C0019a();
public C0019a() {
super(null);
}
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
public p() {
super(1);
this(null, null, 3);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(ModelUserSettings modelUserSettings) {
m.checkNotNullParameter(modelUserSettings, "it");
return Unit.a;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public p(StoreUserSettings storeUserSettings, StoreNotices storeNotices, int i) {
super(a.C0019a.a);
StoreNotices storeNotices2 = null;
StoreUserSettings userSettings = (i & 1) != 0 ? StoreStream.Companion.getUserSettings() : null;
storeNotices2 = (i & 2) != 0 ? StoreStream.Companion.getNotices() : storeNotices2;
m.checkNotNullParameter(userSettings, "storeUserSettings");
m.checkNotNullParameter(storeNotices2, "storeNotices");
this.i = userSettings;
this.j = storeNotices2;
}
@Override // com.discord.app.AppViewModel, androidx.lifecycle.ViewModel
public void onCleared() {
StoreNotices storeNotices = this.j;
Objects.requireNonNull(h.j);
StoreNotices.markSeen$default(storeNotices, "ALLOW_ACCESSIBILITY_DETECTION_DIALOG", 0, 2, null);
}
}

View File

@ -1,216 +1,23 @@
package c.a.a;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import c.a.i.z4;
import com.discord.api.auth.mfa.EnableMfaResponse;
import com.discord.app.AppDialog;
import com.discord.restapi.RestAPIParams;
import com.discord.utilities.error.Error;
import com.discord.utilities.rest.RestAPI;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.LoadingButton;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputLayout;
import d0.z.d.k;
import com.discord.models.domain.ModelUserSettings;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
import rx.Observable;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public final class q extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(q.class, "binding", "getBinding()Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
public Function1<? super String, Unit> l = c.i;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, z4> {
public static final b i = new b();
public b() {
super(1, z4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public z4 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131363119;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131363119);
if (linearLayout != null) {
i2 = 2131363120;
TextView textView = (TextView) view2.findViewById(2131363120);
if (textView != null) {
i2 = 2131363121;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363121);
if (materialButton != null) {
i2 = 2131363122;
TextView textView2 = (TextView) view2.findViewById(2131363122);
if (textView2 != null) {
i2 = 2131363123;
LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(2131363123);
if (linearLayout2 != null) {
i2 = 2131363124;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131363124);
if (loadingButton != null) {
i2 = 2131363125;
TextInputLayout textInputLayout = (TextInputLayout) view2.findViewById(2131363125);
if (textInputLayout != null) {
return new z4((LinearLayout) view2, linearLayout, textView, materialButton, textView2, linearLayout2, loadingButton, textInputLayout);
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class c extends o implements Function1<String, Unit> {
public static final c i = new c();
public c() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(String str) {
m.checkNotNullParameter(str, "it");
return Unit.a;
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ q i;
public final /* synthetic */ View j;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class a extends o implements Function1<EnableMfaResponse, Unit> {
public static final a i = new a();
public a() {
super(1);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(EnableMfaResponse enableMfaResponse) {
m.checkNotNullParameter(enableMfaResponse, "it");
return Unit.a;
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class b extends o implements Function1<Error, Unit> {
public final /* synthetic */ d this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(d dVar) {
super(1);
this.this$0 = dVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Error error) {
Error error2 = error;
m.checkNotNullParameter(error2, "error");
q qVar = this.this$0.i;
KProperty[] kPropertyArr = q.i;
qVar.g().f197c.setIsLoading(false);
Error.Response response = error2.getResponse();
m.checkNotNullExpressionValue(response, "error.response");
if (response.getCode() == 60005) {
error2.setShowErrorToasts(false);
this.this$0.i.dismiss();
q qVar2 = this.this$0.i;
Function1<? super String, Unit> function1 = qVar2.l;
TextInputLayout textInputLayout = qVar2.g().d;
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
function1.invoke(ViewExtensions.getTextOrEmpty(textInputLayout));
}
return Unit.a;
}
}
public d(q qVar, View view) {
this.i = qVar;
this.j = view;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
q qVar = this.i;
KProperty[] kPropertyArr = q.i;
TextInputLayout textInputLayout = qVar.g().d;
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout);
this.i.g().f197c.setIsLoading(true);
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().enableMFA(new RestAPIParams.EnableMFA("random code", "random secret", textOrEmpty)), false, 1, null), this.i, null, 2, null);
a aVar = a.i;
ObservableExtensionsKt.appSubscribe$default(ui$default, this.i.getClass(), this.j.getContext(), (Function1) null, new b(this), (Function0) null, (Function0) null, aVar, 52, (Object) null);
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class e implements View.OnClickListener {
public final /* synthetic */ q i;
public e(q qVar) {
this.i = qVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
FragmentActivity activity = this.i.getActivity();
if (activity != null) {
activity.onBackPressed();
}
}
}
/* compiled from: WidgetAccessibilityDetectionDialogViewModel.kt */
public final class q extends o implements Function1<ModelUserSettings, Unit> {
public static final q i = new q();
public q() {
super(2131559023);
super(1);
}
public final z4 g() {
return (z4) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
setCancelable(false);
g().f197c.setIsLoading(false);
g().f197c.setOnClickListener(new d(this, view));
g().b.setOnClickListener(new e(this));
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(ModelUserSettings modelUserSettings) {
m.checkNotNullParameter(modelUserSettings, "it");
return Unit.a;
}
}

View File

@ -1,72 +1,85 @@
package c.a.a;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.v;
import c.a.d.h0;
import c.a.d.j0;
import c.a.i.t5;
import androidx.fragment.app.FragmentActivity;
import c.a.j.z4;
import com.discord.api.auth.mfa.EnableMfaResponse;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreStream;
import com.discord.restapi.RestAPIParams;
import com.discord.utilities.error.Error;
import com.discord.utilities.rest.RestAPI;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.view.extensions.ViewExtensions;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.LoadingButton;
import d0.z.d.a0;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputLayout;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Lazy;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
import rx.subjects.PublishSubject;
/* compiled from: WidgetUrgentMessageDialog.kt */
import rx.Observable;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public final class r extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0)};
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(r.class, "binding", "getBinding()Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
public final Lazy l;
public Function1<? super String, Unit> l = c.i;
/* compiled from: WidgetUrgentMessageDialog.kt */
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, t5> {
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, z4> {
public static final b i = new b();
public b() {
super(1, t5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0);
super(1, z4.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetEnableTwoFactorPasswordDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public t5 invoke(View view) {
public z4 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131365664;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131365664);
if (loadingButton != null) {
i2 = 2131365665;
TextView textView = (TextView) view2.findViewById(2131365665);
int i2 = 2131363141;
LinearLayout linearLayout = (LinearLayout) view2.findViewById(2131363141);
if (linearLayout != null) {
i2 = 2131363142;
TextView textView = (TextView) view2.findViewById(2131363142);
if (textView != null) {
i2 = 2131365666;
TextView textView2 = (TextView) view2.findViewById(2131365666);
if (textView2 != null) {
return new t5((LinearLayout) view2, loadingButton, textView, textView2);
i2 = 2131363143;
MaterialButton materialButton = (MaterialButton) view2.findViewById(2131363143);
if (materialButton != null) {
i2 = 2131363144;
TextView textView2 = (TextView) view2.findViewById(2131363144);
if (textView2 != null) {
i2 = 2131363145;
LinearLayout linearLayout2 = (LinearLayout) view2.findViewById(2131363145);
if (linearLayout2 != null) {
i2 = 2131363146;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131363146);
if (loadingButton != null) {
i2 = 2131363147;
TextInputLayout textInputLayout = (TextInputLayout) view2.findViewById(2131363147);
if (textInputLayout != null) {
return new z4((LinearLayout) view2, linearLayout, textView, materialButton, textView2, linearLayout2, loadingButton, textInputLayout);
}
}
}
}
}
}
}
@ -74,102 +87,121 @@ public final class r extends AppDialog {
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class c extends o implements Function1<v.d, Unit> {
public final /* synthetic */ r this$0;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class c extends o implements Function1<String, Unit> {
public static final c i = new c();
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(r rVar) {
public c() {
super(1);
this.this$0 = rVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(v.d dVar) {
v.d dVar2 = dVar;
m.checkNotNullParameter(dVar2, "viewState");
r rVar = this.this$0;
KProperty[] kPropertyArr = r.i;
TextView textView = rVar.g().f164c;
m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader");
textView.setText(rVar.getString(2131894027));
TextView textView2 = rVar.g().d;
m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText");
textView2.setText(rVar.getString(2131894026));
rVar.g().b.setText(rVar.getString(2131891868));
rVar.g().b.setIsLoading(dVar2.b);
rVar.g().b.setOnClickListener(new s(rVar));
public Unit invoke(String str) {
m.checkNotNullParameter(str, "it");
return Unit.a;
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class d extends o implements Function1<v.b, Unit> {
public final /* synthetic */ r this$0;
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class d implements View.OnClickListener {
public final /* synthetic */ r i;
public final /* synthetic */ View j;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(r rVar) {
super(1);
this.this$0 = rVar;
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class a extends o implements Function1<EnableMfaResponse, Unit> {
public static final a i = new a();
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(v.b bVar) {
v.b bVar2 = bVar;
m.checkNotNullParameter(bVar2, "event");
r rVar = this.this$0;
KProperty[] kPropertyArr = r.i;
Objects.requireNonNull(rVar);
if (m.areEqual(bVar2, v.b.a.a)) {
rVar.dismiss();
} else if (m.areEqual(bVar2, v.b.C0018b.a)) {
c.a.d.o.g(rVar.getContext(), 2131890652, 0, null, 12);
} else {
throw new NoWhenBranchMatchedException();
public a() {
super(1);
}
return Unit.a;
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(EnableMfaResponse enableMfaResponse) {
m.checkNotNullParameter(enableMfaResponse, "it");
return Unit.a;
}
}
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class b extends o implements Function1<Error, Unit> {
public final /* synthetic */ d this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public b(d dVar) {
super(1);
this.this$0 = dVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(Error error) {
Error error2 = error;
m.checkNotNullParameter(error2, "error");
r rVar = this.this$0.i;
KProperty[] kPropertyArr = r.i;
rVar.g().f198c.setIsLoading(false);
Error.Response response = error2.getResponse();
m.checkNotNullExpressionValue(response, "error.response");
if (response.getCode() == 60005) {
error2.setShowErrorToasts(false);
this.this$0.i.dismiss();
r rVar2 = this.this$0.i;
Function1<? super String, Unit> function1 = rVar2.l;
TextInputLayout textInputLayout = rVar2.g().d;
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
function1.invoke(ViewExtensions.getTextOrEmpty(textInputLayout));
}
return Unit.a;
}
}
public d(r rVar, View view) {
this.i = rVar;
this.j = view;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
r rVar = this.i;
KProperty[] kPropertyArr = r.i;
TextInputLayout textInputLayout = rVar.g().d;
m.checkNotNullExpressionValue(textInputLayout, "binding.enableTwoFactorPasswordViewInput");
String textOrEmpty = ViewExtensions.getTextOrEmpty(textInputLayout);
this.i.g().f198c.setIsLoading(true);
Observable ui$default = ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(RestAPI.Companion.getApi().enableMFA(new RestAPIParams.EnableMFA("random code", "random secret", textOrEmpty)), false, 1, null), this.i, null, 2, null);
a aVar = a.i;
ObservableExtensionsKt.appSubscribe$default(ui$default, this.i.getClass(), this.j.getContext(), (Function1) null, new b(this), (Function0) null, (Function0) null, aVar, 52, (Object) null);
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class e extends o implements Function0<AppViewModel<v.d>> {
public static final e i = new e();
/* compiled from: WidgetEnableTwoFactorPasswordDialog.kt */
public static final class e implements View.OnClickListener {
public final /* synthetic */ r i;
public e() {
super(0);
public e(r rVar) {
this.i = rVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<v.d> mo1invoke() {
return new v(null, null, null, 7);
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
FragmentActivity activity = this.i.getActivity();
if (activity != null) {
activity.onBackPressed();
}
}
}
public r() {
super(2131559293);
e eVar = e.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(v.class), new m(1, h0Var), new j0(eVar));
super(2131559040);
}
public final t5 g() {
return (t5) this.k.getValue((Fragment) this, i[0]);
}
public final v h() {
return (v) this.l.getValue();
}
@Override // androidx.fragment.app.Fragment
public void onDestroy() {
StoreStream.Companion.getNotices().markDialogSeen("URGENT_MESSAGE_DIALOG");
super.onDestroy();
public final z4 g() {
return (z4) this.k.getValue((Fragment) this, i[0]);
}
@Override // com.discord.app.AppDialog
@ -177,9 +209,8 @@ public final class r extends AppDialog {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
setCancelable(false);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(h().observeViewState(), this), r.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
PublishSubject<v.b> publishSubject = h().j;
m.checkNotNullExpressionValue(publishSubject, "eventSubject");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(publishSubject, this), r.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
g().f198c.setIsLoading(false);
g().f198c.setOnClickListener(new d(this, view));
g().b.setOnClickListener(new e(this));
}
}

View File

@ -2,40 +2,184 @@ package c.a.a;
import android.content.Context;
import android.view.View;
import c.a.a.v;
import com.discord.restapi.RestAPIParams;
import com.discord.utilities.channel.ChannelSelector;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import c.a.a.w;
import c.a.e.h0;
import c.a.e.j0;
import c.a.j.t5;
import com.discord.app.AppDialog;
import com.discord.app.AppViewModel;
import com.discord.stores.StoreStream;
import com.discord.utilities.rx.ObservableExtensionsKt;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegate;
import com.discord.utilities.viewbinding.FragmentViewBindingDelegateKt;
import com.discord.views.LoadingButton;
import d0.z.d.a0;
import d0.z.d.k;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Lazy;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.reflect.KProperty;
import rx.subjects.PublishSubject;
/* compiled from: WidgetUrgentMessageDialog.kt */
public final class s implements View.OnClickListener {
public final /* synthetic */ r i;
public final class s extends AppDialog {
public static final /* synthetic */ KProperty[] i = {c.d.b.a.a.V(s.class, "binding", "getBinding()Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0)};
public static final a j = new a(null);
public final FragmentViewBindingDelegate k = FragmentViewBindingDelegateKt.viewBinding$default(this, b.i, null, 2, null);
public final Lazy l;
public s(r rVar) {
this.i = rVar;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Integer num;
r rVar = this.i;
KProperty[] kPropertyArr = r.i;
v h = rVar.h();
m.checkNotNullExpressionValue(view, "button");
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "button.context");
Objects.requireNonNull(h);
m.checkNotNullParameter(context, "context");
ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, 643945264868098049L);
v.d viewState = h.getViewState();
if (viewState != null && (num = viewState.a) != null) {
RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null);
h.updateViewState(new v.d(viewState.a, true));
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.k.patchUser(userInfo), false, 1, null), h, null, 2, null), v.class, (Context) null, (Function1) null, new x(h), (Function0) null, (Function0) null, new w(h), 54, (Object) null);
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final /* synthetic */ class b extends k implements Function1<View, t5> {
public static final b i = new b();
public b() {
super(1, t5.class, "bind", "bind(Landroid/view/View;)Lcom/discord/databinding/WidgetUrgentMessageDialogBinding;", 0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public t5 invoke(View view) {
View view2 = view;
m.checkNotNullParameter(view2, "p1");
int i2 = 2131365749;
LoadingButton loadingButton = (LoadingButton) view2.findViewById(2131365749);
if (loadingButton != null) {
i2 = 2131365750;
TextView textView = (TextView) view2.findViewById(2131365750);
if (textView != null) {
i2 = 2131365751;
TextView textView2 = (TextView) view2.findViewById(2131365751);
if (textView2 != null) {
return new t5((LinearLayout) view2, loadingButton, textView, textView2);
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(view2.getResources().getResourceName(i2)));
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class c extends o implements Function1<w.d, Unit> {
public final /* synthetic */ s this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public c(s sVar) {
super(1);
this.this$0 = sVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(w.d dVar) {
w.d dVar2 = dVar;
m.checkNotNullParameter(dVar2, "viewState");
s sVar = this.this$0;
KProperty[] kPropertyArr = s.i;
TextView textView = sVar.g().f166c;
m.checkNotNullExpressionValue(textView, "binding.viewDialogConfirmationHeader");
textView.setText(sVar.getString(2131894120));
TextView textView2 = sVar.g().d;
m.checkNotNullExpressionValue(textView2, "binding.viewDialogConfirmationText");
textView2.setText(sVar.getString(2131894119));
sVar.g().b.setText(sVar.getString(2131891954));
sVar.g().b.setIsLoading(dVar2.b);
sVar.g().b.setOnClickListener(new t(sVar));
return Unit.a;
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class d extends o implements Function1<w.b, Unit> {
public final /* synthetic */ s this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public d(s sVar) {
super(1);
this.this$0 = sVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(w.b bVar) {
w.b bVar2 = bVar;
m.checkNotNullParameter(bVar2, "event");
s sVar = this.this$0;
KProperty[] kPropertyArr = s.i;
Objects.requireNonNull(sVar);
if (m.areEqual(bVar2, w.b.a.a)) {
sVar.dismiss();
} else if (m.areEqual(bVar2, w.b.C0020b.a)) {
c.a.e.o.g(sVar.getContext(), 2131890714, 0, null, 12);
} else {
throw new NoWhenBranchMatchedException();
}
return Unit.a;
}
}
/* compiled from: WidgetUrgentMessageDialog.kt */
public static final class e extends o implements Function0<AppViewModel<w.d>> {
public static final e i = new e();
public e() {
super(0);
}
/* Return type fixed from 'java.lang.Object' to match base method */
@Override // kotlin.jvm.functions.Function0
/* renamed from: invoke */
public AppViewModel<w.d> mo1invoke() {
return new w(null, null, null, 7);
}
}
public s() {
super(2131559320);
e eVar = e.i;
h0 h0Var = new h0(this);
this.l = FragmentViewModelLazyKt.createViewModelLazy(this, a0.getOrCreateKotlinClass(w.class), new m(1, h0Var), new j0(eVar));
}
public final t5 g() {
return (t5) this.k.getValue((Fragment) this, i[0]);
}
public final w h() {
return (w) this.l.getValue();
}
@Override // androidx.fragment.app.Fragment
public void onDestroy() {
StoreStream.Companion.getNotices().markDialogSeen("URGENT_MESSAGE_DIALOG");
super.onDestroy();
}
@Override // com.discord.app.AppDialog
public void onViewBound(View view) {
m.checkNotNullParameter(view, "view");
super.onViewBound(view);
setCancelable(false);
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(h().observeViewState(), this), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new c(this), 62, (Object) null);
PublishSubject<w.b> publishSubject = h().j;
m.checkNotNullExpressionValue(publishSubject, "eventSubject");
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.bindToComponentLifecycle(publishSubject, this), s.class, (Context) null, (Function1) null, (Function1) null, (Function0) null, (Function0) null, new d(this), 62, (Object) null);
}
}

View File

@ -1,33 +1,41 @@
package c.a.a;
import c.a.a.v;
import com.discord.models.user.User;
import android.content.Context;
import android.view.View;
import c.a.a.w;
import com.discord.restapi.RestAPIParams;
import com.discord.utilities.channel.ChannelSelector;
import com.discord.utilities.rx.ObservableExtensionsKt;
import d0.z.d.m;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
public final class t extends o implements Function1<v.c, Unit> {
public final /* synthetic */ v this$0;
import kotlin.reflect.KProperty;
/* compiled from: WidgetUrgentMessageDialog.kt */
public final class t implements View.OnClickListener {
public final /* synthetic */ s i;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public t(v vVar) {
super(1);
this.this$0 = vVar;
public t(s sVar) {
this.i = sVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public Unit invoke(v.c cVar) {
v.c cVar2 = cVar;
m.checkNotNullParameter(cVar2, "storeState");
v vVar = this.this$0;
Objects.requireNonNull(vVar);
User user = cVar2.a;
v.d viewState = vVar.getViewState();
vVar.updateViewState(new v.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.b));
return Unit.a;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
Integer num;
s sVar = this.i;
KProperty[] kPropertyArr = s.i;
w h = sVar.h();
m.checkNotNullExpressionValue(view, "button");
Context context = view.getContext();
m.checkNotNullExpressionValue(context, "button.context");
Objects.requireNonNull(h);
m.checkNotNullParameter(context, "context");
ChannelSelector.Companion.getInstance().findAndSetDirectMessage(context, 643945264868098049L);
w.d viewState = h.getViewState();
if (viewState != null && (num = viewState.a) != null) {
RestAPIParams.UserInfo userInfo = new RestAPIParams.UserInfo(null, null, null, null, null, null, null, null, Integer.valueOf(num.intValue() & -8193), null, 767, null);
h.updateViewState(new w.d(viewState.a, true));
ObservableExtensionsKt.appSubscribe$default(ObservableExtensionsKt.ui$default(ObservableExtensionsKt.restSubscribeOn$default(h.k.patchUser(userInfo), false, 1, null), h, null, 2, null), w.class, (Context) null, (Function1) null, new y(h), (Function0) null, (Function0) null, new x(h), 54, (Object) null);
}
}
}

View File

@ -1,19 +1,33 @@
package c.a.a;
import c.a.a.v;
import com.discord.models.user.MeUser;
import c.a.a.w;
import com.discord.models.user.User;
import d0.z.d.m;
import j0.k.b;
import d0.z.d.o;
import java.util.Objects;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: WidgetUrgentMessageDialogViewModel.kt */
public final class u<T, R> implements b<MeUser, v.c> {
public static final u i = new u();
public final class u extends o implements Function1<w.c, Unit> {
public final /* synthetic */ w this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public u(w wVar) {
super(1);
this.this$0 = wVar;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // j0.k.b
public v.c call(MeUser meUser) {
MeUser meUser2 = meUser;
m.checkNotNullExpressionValue(meUser2, "meUser");
return new v.c(meUser2);
@Override // kotlin.jvm.functions.Function1
public Unit invoke(w.c cVar) {
w.c cVar2 = cVar;
m.checkNotNullParameter(cVar2, "storeState");
w wVar = this.this$0;
Objects.requireNonNull(wVar);
User user = cVar2.a;
w.d viewState = wVar.getViewState();
wVar.updateViewState(new w.d(Integer.valueOf(user.getFlags()), viewState == null ? false : viewState.b));
return Unit.a;
}
}

Some files were not shown because too many files have changed in this diff Show More